Uboot says bad image magic - mainline kernel
#4
This was great fun, I reached the first milestone and if it's of interest to anyone I thought I'd share my experience:

Did not see usb stick assigned to sdX, but spotted kmod "uas" depending on usb_storage on my own PC. Thus added CONFIG_USB_UAS=y to config. After that it shows up in pine's kernel.

(Though, when usb stick plugged in at powerup, path for root /dev/mmcblk0p1 does not work anymore, but that can be sorted later).

Statically built bash and used as init (using crosstool-ng, works like a charm):

Code:
bash         export CROSS_COMPILE=aarch64-unknown-linux-gnu-         export ARCH=arm64         export PATH=$PATH:/home/lash/x-tools/aarch64-unknown-linux-gnu/bin         ./configure --host aarch64-unknown-linux-gnu --enable-static-link --enable-minimal-config          make CFLAGS="-Wl,-w" -j8


final u-boot command sequence:


Code:
        setenv bootargs root=/dev/mmcblk0p1 init=/bin/bash earlycon console=tty debug loglevel=7         fatload mmc 0:1 0x42000000 /boot/Image         fatload mmc 0:1 0x45000000 /boot/u-boot.dtb         booti 0x42000000 - 0x45000000


sdcard tree:


Code:
/mnt: bin  boot /mnt/bin: bash /mnt/boot: Image  u-boot.dtb


can't do much with this of course, but from here on it is pretty familiar territory

Ah yes, and still on the 5.14 kernel.
  Reply


Messages In This Thread
RE: Uboot says bad image magic - mainline kernel - by lash - 10-14-2024, 07:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Kernel rebuild resources and process for pine64-LTS Atreyo tech 2 7,665 07-02-2021, 12:23 AM
Last Post: Atreyo tech
  Networking on A64 LTS broken on Debian with Kernel 5.9 kuleszdl 0 5,226 01-02-2021, 06:26 PM
Last Post: kuleszdl
  Fedora-30 w/ kernel 5.0 maya.b 1 9,395 02-24-2019, 01:48 AM
Last Post: tllim
  Arch Linux mainline XFCE (PINE A64-LTS / SOPINE) pineadmin 1 10,606 11-09-2018, 03:07 AM
Last Post: pineadmin
  No boot on any Linux image :/ oxomoxo 2 6,112 08-11-2017, 09:44 AM
Last Post: oxomoxo

Forum Jump:


Users browsing this thread: 1 Guest(s)