frank-w / BPI-Router-Images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't boot bpi-r4

ChrisSiedler opened this issue · comments

Dear Frank,
thanks for your great work.

I have a bpi-r4, tried to create a debian 12 image with your tools.

./buildimg.sh bpi-r4 bookworm

It build the image without problems, I copied it to the sd card, changed the jumpers to sd card.

Then, when I tried to boot the bpi-r4, I saw the following message:

## Error: "initrd" not defined
PARTITION_CONFIG only exists on eMMC
sd available
bootconf=#conf-sd
fit=bpi-r4.itb
Failed to load 'bpi-r4.itb'
BPI-R4> 

Any help is appreciated

first 2 can be ignored.

first one is check for initrd variable (printenv command shows error buti only check return value - so not using initrd if undefined)

second one is check for emmc, if this failes use the sd config which is done

your main problem is that it seems to be no bpi-r4.itb on BPI-Boot-Partition on sdcard

for r4 there is a problem, that i have not yet included support in a lts variant (6.6 as latest), but you can try setting the kernel to 6.9 which should find a prebuilt kernel package on my kernel repo

adding in this file

https://github.com/frank-w/BPI-Router-Images/blob/main/buildimg.sh

if [[  "$board" == "bpi-r4"]] then
	kernel="6.9" #r4 does not have LTS support yet
fi

at line 45 (after the case)

can confirm, with kernel="6.9" the script is creating a good image.
The bpi-r4 is booting now.

Thanks for the amazing quick support!