Jump to content

[Armbian build PR] - Fixed u-boot v2022.07 compilation for Helios64


Recommended Posts

Posted

Description

u-boot v2022.07 and up failed to build with helios64 code call to spi_get_bus_and_cs whose previous signature has been renamed _spi_get_bus_and_cs (note the underscore). Note that this new function is not available in v2022.04, but I guess Armbian does not require its code to be backward compatible.

No JIra report I know of. There is a forum thread https://forum.armbian.com/topic/24005-helios64-u-boot-does-not-build-anymore-after-we-bumped-to-202207/

How Has This Been Tested?

ON helios64 running on SD card (since I am investigating the emmc hs400es issue) but I had to update the emmc u-boot since my helios64 jumper is set to boot from emmc and not sd. (thus emmc u-boot which then boots the SD card Armbian system partition). This is by hand as the /proc/cmdline root fs is not the emmc (mount emmc Armbian partition to /mnt/a and chroot to it then install the u-boot debian package and:

cd /usr/lib/linux-u-boot-edge-helios64_22.11.0-trunk_arm64
dd if=./idbloader.img of=/dev/mmcblk1 seek=64 conv=notrunc status=none
dd if=./u-boot.itb of=/dev/mmcblk1 seek=16384 conv=notrunc status=none

I note that u-boot seems to have an issue with enumerating the SD card but still boots to it (one should test with the helios64 jumper set to SD instead of emmc to see if the error switch from SD to emmc):

U-Boot SPL 2022.07-armbian (Nov 22 2022 - 02:23:55 +0000)
Trying to boot from SPI
Trying to boot from MMC1
Card did not respond to voltage select! : -110
spl: mmc init failed with error: -95
Trying to boot from MMC2

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines