View Single Post
Old 09-20-2019, 10:13 AM   #19
WaseemAlkurdi
Zealot
WaseemAlkurdi began at the beginning.
 
Posts: 147
Karma: 20
Join Date: Jul 2019
Device: Kindle Touch (K5) Wi-Fi x 2, Kindle (7th Gen, KT2), Paperwhite 3rd Gen
Quote:
Originally Posted by knc1 View Post
Say what???
Why are you not using the Amazon/Lab126 provided source of U-Boot?

You can't (and shouldn't) assume that a vendor provided, modified, source package will build or work the same as the mainline source.
I'm only using mainline U-Boot temporarily, as a second resort and something to compare Lab126 U-Boot with, until I can get any U-Boot at all for i.MX6 to work in QEMU, since the Amazon/Lab126 U-Boot won't build for any target except imx60_wario.
When I can get any U-Boot at all to boot in QEMU as i.MX6, I'm sticking permanently to Lab126 sources because they have the Kindle-specific modifications. (like idme variables and the like, which is, after all, why I'm sticking to their sh*tty ten-year-old tree).

Note that I have both trees side-by-side, and I'm ready to modify and build whichever tree you want me to.

EDIT: This is what happens when I try to build Amazon's U-Boot for versatile as to test it in QEMU ...
Code:
# time CROSS_COMPILE=/root/arm-2014.05/bin/arm-linux-gnueabi- make    
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory '/root/uboot_2009.08/tools'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/root/uboot_2009.08/tools'
make[1]: Entering directory '/root/uboot_2009.08/examples/standalone'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/root/uboot_2009.08/examples/standalone'
make[1]: Entering directory '/root/uboot_2009.08/examples/api'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/root/uboot_2009.08/examples/api'
make -C tools all
make[1]: Entering directory '/root/uboot_2009.08/tools'
make[1]: *** No rule to make target '/root/uboot_2009.08/include/asm/arch/mx6.h', needed by 'env_embedded.o'.  Stop.
make[1]: Leaving directory '/root/uboot_2009.08/tools'
make: *** [Makefile:357: tools] Error 2
... and for sabrelite:
Code:
make[1]: Entering directory '/root/uboot_2009.08/drivers/mmc'
/root/arm-2014.05/bin/arm-linux-gnueabi-gcc  -g  -Os   -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x27800000 -I/root/uboot_2009.08/include  -fno-builtin -ffreestanding -nostdinc -isystem /root/arm-2014.05/bin/../lib/gcc/arm-linux-gnueabi/4.9.4/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector   -o imx_esdhc.o imx_esdhc.c -c
imx_esdhc.c:44:25: error: 'CONFIG_SYS_FSL_ESDHC_NUM' undeclared here (not in a function)
 static struct mmc g_mmc[CONFIG_SYS_FSL_ESDHC_NUM];
                         ^
imx_esdhc.c:44:19: warning: 'g_mmc' defined but not used [-Wunused-variable]
 static struct mmc g_mmc[CONFIG_SYS_FSL_ESDHC_NUM];
                   ^
make[1]: *** [/root/uboot_2009.08/config.mk:218: imx_esdhc.o] Error 1
make[1]: Leaving directory '/root/uboot_2009.08/drivers/mmc'
make: *** [Makefile:351: drivers/mmc/libmmc.a] Error 2
TL;DR : Lab126's tree is really useless until I get QEMU's sabrelite (or more likely, imx60ul-evk) boards to accept Kindle images. But testing using mainline U-Boot is a stepping stone.

Last edited by WaseemAlkurdi; 09-20-2019 at 10:21 AM.
WaseemAlkurdi is offline   Reply With Quote