Closed UtkarshVerma closed 11 months ago
My use case is kernel development for the RPi 4B and I'm planning to use USB boot to load the kernel from my laptop. Since I'm fairly new to the RPi ecosystem, any suggestions would be highly appreciated.
On a side note, one doubt I'm having is with the need for bootcode.bin
. Isn't it already in the EEPROM for RPi 4B? Why does the CLI tool still enforce that it is needed?
Run "rpiboot -l" to keep it running.
N.B. Individual file loading is deprecated in favour of the boot.img ramdisk approach. The file-loading is prone to timeouts and is no longer maintained.
Thanks for the update. I knew about the -l
flag as mentioned in the issue description. #8 also had this issue and got a fix. Do I take it that this issue is only for single file loading and will go away if I use boot.img
?
On a side note, one doubt I'm having is with the need for
bootcode.bin
. Isn't it already in the EEPROM for RPi 4B? Why does the CLI tool still enforce that it is needed?
Could you also please let me know about this? USB boot takes about 13s and I was just curious if removing bootcode would make it faster.
Loading a boot.img means that bootloader loads a single large blob which avoids problems when there are delays between loading individual files.
rpiboot causes the bootrom to load the second-stage (bootcode.bin) from USB rather than the SPI EEPROM so it's not possible to get rid of bootcode.bin.
13s seems about right, unfortunately the only way to make this after is to make the kernel smaller
Thanks a lot for the clarification and for this really handy tool. Regarding the kernel (blink example), it is only 332B, so I don't think it could be reduced. I guess this is just how USB boot performs and that is totally fine.
Describe the bug
I have a
dev
directory containing these files:I pass this directory to
rpiboot
and my blink kernel works, but it takes two tries. I think this is related to https://github.com/raspberrypi/usbboot/issues/8.I also notice that some files are being transferred again. This entire sequence takes 13s with
-l
set. Would it be possible to reduce this time somehow?Steps to reproduce the behaviour
BOOT_ORDER=0xf31
in the EEPROM bootloader config../rpidev -d dev
Device(s)
Other
Compute Module IO board.
No response
RPIBOOT logs
No response
Kernel logs
No response
Device UART logs
No response