10-14-2024, 07:11 PM
(This post was last modified: 10-14-2024, 07:26 PM by lash.
Edit Reason: prettier
)
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):
final u-boot command sequence:
sdcard tree:
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.
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.