Building u-boot for A20-OLinuXino_MICRO-eMMC fails to apply overlays in uEnv.txt

Started by luimarma, May 16, 2024, 10:34:19 AM

Previous topic - Next topic

luimarma

Hello,

I am trying to compile u-boot for the A20 Olinuxino micro with emmc, for the current Bullseye image with olimex 5.10.180-olimex kernel.
The reason is to avoid some drivers checking and speed up booting.

I have started just compiling with the default configuration, but the resulting u-boot is not applying the overlays in /boot/uEnv.txt

The procedure I have followed is the next one:

I have downloaded the source from here, https://github.com/OLIMEX/u-boot-olinuxino
Next applied the following commands to set the default config and compile.

#make CROSS_COMPILE=arm-linux-gnueabihf- distclean
#make CROSS_COMPILE=arm-linux-gnueabihf- clean
#make CROSS_COMPILE=arm-linux-gnueabihf- A20-OLinuXino_MICRO-eMMC_defconfig
#make CROSS_COMPILE=arm-linux-gnueabihf-

And finally to install the new u-boot and make sure that all is consistent, I did the following.
copy u-boot-sunxi-with-spl.bin to /usr/lib/u-boot-olinuxino/a20-olinuxino/u-boot-sunxi-with-spl.bin
#u-boot-install /dev/mmcblk0
#/usr/sbin/update-initramfs -u
#/etc/kernel/postinst.d/uboot-fit 5.10.180-olimex

When booting with the new u-boot the board boots, but I no longer see the overlays reflected at uEnv.txt loading, before I could see the following output after the FIT image overlays:

   Loading Kernel Image
   Loading Ramdisk to 49781000, end 49fffdd6 ... OK
   Loading Device Tree to 49772000, end 49780490 ... OK
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi1-spidev.dtbo'...
408 bytes read in 5 ms (79.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi2-spidev.dtbo'...
408 bytes read in 7 ms (56.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-can.dtbo'...
732 bytes read in 8 ms (88.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c0.dtbo'...
722 bytes read in 6 ms (117.2 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c1.dtbo'...
726 bytes read in 8 ms (87.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c2.dtbo'...
726 bytes read in 5 ms (141.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi0.dtbo'...
1001 bytes read in 6 ms (162.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi1.dtbo'...
1005 bytes read in 7 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi2.dtbo'...
1005 bytes read in 5 ms (196.3 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart3.dtbo'...
863 bytes read in 6 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart4.dtbo'...
867 bytes read in 5 ms (168.9 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart5.dtbo'...
867 bytes read in 6 ms (140.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart6.dtbo'...
867 bytes read in 8 ms (105.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart7.dtbo'...
867 bytes read in 7 ms (120.1 KiB/s)

Starting kernel ...

[    0.006145] /cpus/cpu@0 missing clock-frequency property
[    0.006201] /cpus/cpu@1 missing clock-frequency property

But now only the following:

   Loading Kernel Image
   Loading Ramdisk to 49781000, end 49fffdd1 ... OK
   Loading Device Tree to 49772000, end 49780490 ... OK

Starting kernel ...

[    0.006245] /cpus/cpu@0 missing clock-frequency property
[    0.006302] /cpus/cpu@1 missing clock-frequency property

With stock u-boot and compiled one I can see the uEnv.txt loading BTW.

Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
1210 bytes read in 2 ms (590.8 KiB/s)
Loaded environment from /boot/uEnv.txt

What am I missing?

Thanks in advance,

Luis