jernej
I'm trying an A20 olimex-lime2 image build from your repo, but if I do
PROJECT=Allwinner DEVICE=A20 UBOOT_SYSTEM="olimex_lime2" ARCH=arm make image
then u-boot fails to compile with
cmd/dfu.c: In function 'do_dfu':
cmd/dfu.c:31:8: warning: unused variable 'devstring' [-Wunused-variable]
char *devstring = argv[3];
^~~~~~~~~
cmd/dfu.c:30:8: warning: unused variable 'interface' [-Wunused-variable]
char *interface = argv[2];
^~~~~~~~~
In file included from include/image.h:45,
from include/common.h:35,
from cmd/dfu.c:13:
cmd/dfu.c: At top level:
include/command.h:182:24: error: expected expression before ',' token
# define _CMD_HELP(x) x,
^
include/command.h:191:4: note: in expansion of macro '_CMD_HELP'
_CMD_HELP(_help) _CMD_COMPLETE(_comp) }
^~~~~~~~~
include/command.h:195:3: note: in expansion of macro 'U_BOOT_CMD_MKENT_COMPLETE'
U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd, \
^~~~~~~~~~~~~~~~~~~~~~~~~
include/command.h:221:2: note: in expansion of macro 'U_BOOT_CMD_COMPLETE'
U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, NULL)
^~~~~~~~~~~~~~~~~~~
cmd/dfu.c:64:1: note: in expansion of macro 'U_BOOT_CMD'
U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu,
^~~~~~~~~~
CC common/stdio.o
CC common/cli.o
make[2]: *** [scripts/Makefile.build:278: cmd/dfu.o] Error 1
LD drivers/built-in.o
make[1]: *** [Makefile:1517: cmd] Error 2
make[1]: *** Waiting for unfinished jobs....
Display More
it's going on using the u-boot CONFIG_SYS_LONGHELP=y
if I don't pass the BOOT_SYSTEM="olimex_lime2" then the image is empty
in script/uboot_helper to Allwinner I added the entry
'A20' : {
'olimex_lime2' : { 'dtb' : 'sun7i-a20-olinuxino-lime2.dtb', 'config' : 'A20-OLinuXino-Lime2_defconfig' },
'olimex_lime2_emmc' : { 'dtb' : 'sun7i-a20-olinuxino-lime2-emmc.dtb', 'config' : 'A20-OLinuXino-Lime2-eMMC_defconfig' },
},
the other options where taken from H3 board example and the kernel config was completed with a tested working config, beside other kernel patches do I miss something ? I don't see other patches for A20 missing on u-boot, as the board is fully supported
Thanks