<features.h>明明是存在的
编译命令:arm-linux-gnueabihf-g++ -std=c++11 -o gpio gpio.cpp -lgpiod -L/usr/local/lib -I/usr/local/include -I/home/eke/linux/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.4.1 --sysroot=/home/eke/linux/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf
-lgpiod: 指定链接的库,这里是 libgpiod。
-L/usr/local/lib: 指定编译器在链接时查找libgpiod库文件的路径为 /usr/local/lib。
-I/usr/local/include: 指定编译器在编译时查找libgpiod头文件的路径为 /usr/local/include。gpiod.h在这个路径下
-I/home/eke/linux/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.4.1: 指定编译器在编译时查找 C++ 标准库头文件的路径为 /home/eke/linux/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.4.1。
--sysroot=/home/eke/linux/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf: 指定编译器在查找标准系统头文件和库文件时的根路径,即交叉编译环境的根路径。
具体的错误报告输出:
求助大佬们,谢谢!
;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip_used: 0:disable 1:enable
;vip_mode: 0:sample one interface to one buffer 1:sample two interface to one buffer
;vip_dev_qty: The quantity of devices linked to capture bus
;
;vip_define_sensor_list: If you want use sensor detect function, please set vip_define_sensor_list = 1, and
; verify that file /system/etc/hawkview/sensor_list_cfg.ini is properly configured!
;
;vip_dev(x)_pos: sensor position, "rear" or "front", if vip_define_sensor_list = 1,vip_dev(x)_pos must be configured!
;
;vip_dev(x)_isp_used 0:not use isp 1:use isp
;vip_dev(x)_fmt: 0:yuv 1:bayer raw rgb
;vip_dev(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip_dev(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip_dev(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip_dev(x)_iovdd: camera module io power handle string, pmu power supply
;vip_dev(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip_dev(x)_avdd: camera module analog power handle string, pmu power supply
;vip_dev(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip_dev(x)_dvdd: camera module core power handle string, pmu power supply
;vip_dev(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip_dev(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip_dev(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;x indicates the index of the devices which are linked to the same capture bus
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------
[csi0]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 0
vip_csi_mck = port:PE20<3><default><default><default>
vip_csi_sck = port:PE21<2><default><default><default>
vip_csi_sda = port:PE22<2><default><default><default>
vip_dev0_mname = "h22_mipi"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 0
vip_dev0_twi_addr = 0x60
vip_dev0_isp_used = 1
vip_dev0_fmt = 1
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = ""
vip_dev0_iovdd_vol = 3000000
vip_dev0_avdd = "csi-avdd"
vip_dev0_avdd_vol = 3000000
vip_dev0_dvdd = "csi-dvdd"
vip_dev0_dvdd_vol = 3000000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PG00<1><default><default><default>
vip_dev0_pwdn = port:PG01<1><default><default><default>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev0_act_used = 0
vip_dev0_act_name = "dw9714_act"
vip_dev0_act_slave = 0x18
vip_dev1_mname = ""
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 0
vip_dev1_twi_addr =
vip_dev1_isp_used = 0
vip_dev1_fmt = 1
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = ""
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = ""
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = ""
vip_dev1_dvdd_vol = 1500000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------
[csi0]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 0
vip_csi_mck = port:PE20<3><default><default><default>
vip_csi_sck = port:PE21<2><default><default><default>
vip_csi_sda = port:PE22<2><default><default><default>
vip_dev0_mname = "h22_mipi"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 0
vip_dev0_twi_addr = 0x60
vip_dev0_isp_used = 1
vip_dev0_fmt = 1
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = ""
vip_dev0_iovdd_vol = 3000000
vip_dev0_avdd = "csi-avdd"
vip_dev0_avdd_vol = 3000000
vip_dev0_dvdd = "csi-dvdd"
vip_dev0_dvdd_vol = 3000000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PG00<1><default><default><default>
vip_dev0_pwdn = port:PG01<1><default><default><default>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev0_act_used = 0
vip_dev0_act_name = "dw9714_act"
vip_dev0_act_slave = 0x18
vip_dev1_mname = ""
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 0
vip_dev1_twi_addr =
vip_dev1_isp_used = 0
vip_dev1_fmt = 1
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = ""
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = ""
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = ""
vip_dev1_dvdd_vol = 1500000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =
[csi1]
[csi1]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 0
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>
vip_csi_d8 = port:PE12<2><default><default><default>
;vip_csi_d9 = port:PE13<2><default><default><default>
vip_csi_d10 = port:PE14<2><default><default><default>
vip_csi_d11 = port:PE15<2><default><default><default>
vip_csi_sck = port:PE21<2><default><default><default>
vip_csi_sda = port:PE22<2><default><default><default>
vip_dev0_mname = "ov2640"
vip_dev0_pos = "front"
vip_dev0_twi_id = 1
vip_dev0_twi_addr = 0x60
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = ""
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = ""
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = ""
vip_dev0_dvdd_vol = 1500000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset =
vip_dev0_pwdn =
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18
vip_dev1_mname = "gc2035"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 4
vip_dev1_twi_addr = 0x78
vip_dev1_isp_used = 0
vip_dev1_fmt = 1
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = ""
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = ""
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = ""
vip_dev1_dvdd_vol = 1500000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =
将其中的摄像头信息改成自己使用的摄像头信息。
保存,并使用 fex2bin sys_config.fex script.bin 生成script.bin文件。
如果提示E: sys_config.fex:165: invalid character at 4.
就注释掉165 166两行。
请问为什么按照荔枝派官方文档要求注释掉165 166两行:
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
可还是提示E: sys_config.fex:165: invalid character at 4.
有大佬知道问题出在哪吗?谢谢!
/usr/bin/make all "LJCORE_O=ljamalg.o"
HOSTCC host/minilua.o
HOSTCC host/buildvm_asm.o
HOSTCC host/buildvm_peobj.o
HOSTCC host/buildvm_lib.o
HOSTCC host/buildvm_fold.o
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/buildvm.h:13,
from host/buildvm_asm.c:6:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/buildvm.h:13,
from host/buildvm_peobj.c:9:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
Makefile:664: recipe for target 'host/buildvm_asm.o' failed
make[4]: *** [host/buildvm_asm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Makefile:664: recipe for target 'host/buildvm_peobj.o' failed
make[4]: *** [host/buildvm_peobj.o] Error 1
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/buildvm.h:13,
from host/buildvm_fold.c:6:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
Makefile:664: recipe for target 'host/buildvm_fold.o' failed
make[4]: *** [host/buildvm_fold.o] Error 1
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/buildvm.h:13,
from host/buildvm_lib.c:6:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
Makefile:664: recipe for target 'host/buildvm_lib.o' failed
make[4]: *** [host/buildvm_lib.o] Error 1
In file included from /usr/include/bits/errno.h:24:0,
from /usr/include/errno.h:35,
from host/minilua.c:40:
/usr/include/linux/errno.h:1:23: fatal
解决办法:sudo apt-get install linux-libc-dev:i386
U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Dec 14 2023 - 02:17:48 -0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, c2, 12
*** Warning - spi_flash_probe() failed, using default environment
Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
reading zImage
** Unable to read file zImage **
reading sun8i-v3s-licheepi-zero-dock.dtb
** Unable to read file sun8i-v3s-licheepi-zero-dock.dtb **
=>
该如何正确配置suni8.h文件才能读取uimage呢
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,6M(kernel)ro,-(rootfs) root=/dev/mmcblk0p2 earlyprintk rw"
#define CONFIG_BOOTCOMMAND \
"setenv bootm_boot_mode sec; " \
"load mmc 0:1 0x41000000 zImage; " \
"load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb;" \
"bootz 0x41000000 - 0x41800000; "
eke@eke-virtual-machine:~/linux/tools/u-boot$ df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 1.9G 28K 1.9G 1% /dev
tmpfs 391M 1.7M 389M 1% /run
/dev/sda1 40G 9.8G 28G 27% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop1 41M 41M 0 100% /snap/snapd/20290
/dev/loop2 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop3 497M 497M 0 100% /snap/gnome-42-2204/141
/dev/loop5 56M 56M 0 100% /snap/core18/2796
/dev/loop6 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop7 128K 128K 0 100% /snap/bare/5
/dev/loop4 512K 512K 0 100% /snap/gnome-characters/795
/dev/loop0 1.7M 1.7M 0 100% /snap/gnome-system-monitor/186
/dev/loop8 242M 242M 0 100% /snap/gnome-3-38-2004/70
/dev/loop9 2.5M 2.5M 0 100% /snap/gnome-calculator/884
/dev/loop10 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop11 62M 62M 0 100% /snap/core20/1081
/dev/loop12 74M 74M 0 100% /snap/core22/864
/dev/loop13 56M 56M 0 100% /snap/core18/2128
/dev/loop15 350M 350M 0 100% /snap/gnome-3-38-2004/143
/dev/loop14 2.3M 2.3M 0 100% /snap/gnome-calculator/955
/dev/loop16 768K 768K 0 100% /snap/gnome-characters/726
/dev/loop17 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop18 896K 896K 0 100% /snap/gnome-logs/121
/dev/loop19 64M 64M 0 100% /snap/core20/2015
/dev/loop20 640K 640K 0 100% /snap/gnome-logs/106
/dev/loop21 2.5M 2.5M 0 100% /snap/gnome-system-monitor/163
tmpfs 391M 28K 391M 1% /run/user/1000
/dev/sr0 2.4G 2.4G 0 100% /media/eke/Ubuntu 18.04.6 LTS amd64
LD spl/lib/built-in.o
CC spl/disk/part.o
LD spl/disk/built-in.o
CC spl/drivers/block/blk_legacy.o
LD spl/drivers/block/built-in.o
CC spl/drivers/gpio/sunxi_gpio.o
LD spl/drivers/gpio/built-in.o
CC spl/drivers/mmc/mmc_legacy.o
CC spl/drivers/mmc/mmc.o
CC spl/drivers/mmc/sunxi_mmc.o
LD spl/drivers/mmc/built-in.o
CC spl/drivers/serial/serial.o
CC spl/drivers/serial/serial_ns16550.o
CC spl/drivers/serial/ns16550.o
LD spl/drivers/serial/built-in.o
CC spl/drivers/mtd/spi/sunxi_spi_spl.o
LD spl/drivers/built-in.o
LD spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
COPY spl/u-boot-spl.bin
MKSUNXI spl/sunxi-spl.bin
OBJCOPY u-boot-nodtb.bin
CAT u-boot-dtb.bin
COPY u-boot.bin
MKIMAGE u-boot.img
BINMAN u-boot-sunxi-with-spl.bin
/bin/sh: 1: ./tools/binman/binman: not found
make: *** [Makefile:1082: u-boot-sunxi-with-spl.bin] Error 127
real 0m45.938s
user 0m29.072s
sys 0m10.988s