06-05-2024, 04:29 PM
[quote pid="122119" dateline="1713890250"]
1. How did he/you guys find the U-boot partition map? I have seen the JH7110 Boot User Guide, but I haven't been able to figure out how U-boot mentions the partition sizes in their documentation.
2. I couldn't quite find where StarFive mentions that their drivers are not compatible with the newer 6.1xx Linux kernel, forcing @Fishwaldo to use the 5.1xx kernel. Ideally, one would be able to download the source tree and place the patches in the tree to compile it with bitbake in Yocto, yes?
[/quote]
You found the right doc but not everything is documented.
Regarding emmc/sd card:
BootROM loads from the GPT partition with type ID 2E54B353-1271-4842-806F-E436D6AF6985.
Upstream OpenSBI loads the second partition but you can do anything you want if you compile your own.
Upstream U-Boot is still looking for the right way to do a standardized boot - again, it's up to you.
Search for extlinux.conf in the U-Boot docs if your interested.
I've collected some information in this script:
https://github.com/yogo1212/arch-linux-s..._image#L52
You should be able to create an image using your own OpenSBI and U-Boot:
Just remember to give U-Boot something to work with (e.g. /boot/extlinux/extlinux.conf)
1. How did he/you guys find the U-boot partition map? I have seen the JH7110 Boot User Guide, but I haven't been able to figure out how U-boot mentions the partition sizes in their documentation.
2. I couldn't quite find where StarFive mentions that their drivers are not compatible with the newer 6.1xx Linux kernel, forcing @Fishwaldo to use the 5.1xx kernel. Ideally, one would be able to download the source tree and place the patches in the tree to compile it with bitbake in Yocto, yes?
[/quote]
You found the right doc but not everything is documented.
Regarding emmc/sd card:
BootROM loads from the GPT partition with type ID 2E54B353-1271-4842-806F-E436D6AF6985.
Upstream OpenSBI loads the second partition but you can do anything you want if you compile your own.
Upstream U-Boot is still looking for the right way to do a standardized boot - again, it's up to you.
Search for extlinux.conf in the U-Boot docs if your interested.
I've collected some information in this script:
https://github.com/yogo1212/arch-linux-s..._image#L52
You should be able to create an image using your own OpenSBI and U-Boot:
Code:
ROOTFS_IMG=.. UBOOT_ITB=.. UBOOT_SPL=.. ./compile_image /dev/mmcblk0
Just remember to give U-Boot something to work with (e.g. /boot/extlinux/extlinux.conf)