-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why does Fedora initframfs require fdt_high and initrd_high? #24
Comments
@tekkamanninja @lbmeng @tpetazzoni @mcd500 @davidlt I would appreciate any feedback. @atishp04 and @trini seem to think there might be an issue with |
@pdp7 If the problem is finding space for relocating initrd and dtb then the reason the 5.13 kernel works may be simply because you don't use an initrd with that. |
Since I have used GRUB to boot Fedora, we don't need fdt_high and initrd_high any more. |
After some community investigation, this seems likely due to a lack of arch_lmb_reserve on riscv. A simple one like on arc or m68k (but with 4K stack, not 1K) should do it, but needs to be checked on hardware. |
Regression
@atishp04 reported regression with https://github.com/starfive-tech/u-boot/tree/Fedora_VIC_7100_2021.04 branch after commit 985c9ef (in PR #20) which removed
fdt_high=0xffffffffffffffff
andinitrd_high=0xffffffffffffffff
Note: PR #20 was the result of issue #19. That issue was trying to figure out why @tpetazzoni had to patch
fdt_addr_r
andkernel_comp_addr_r
in buildroot commit buildroot/buildroot@839f00a#diff-b6f2579d76a7d36d1749682795632c0a37a5b73e1a1c78327cd2e32b3d119c61extlinux.conf
@atishp04 has this in extlinux.conf on Fedora SD card:
I have this in extlinux.conf on my Fedora SD card:
attempted fix with
bootm_size
@trini suggested setting
"bootm_size=0x10000000
. However adding that to env did not help:still failed:
setting bigger
bootm_size=0x20000000
also failed:no regression for 5.13 esmil_starlight
For comparison, the removal of
fdt_high
andinitrd_high
in 985c9ef is not a problem when using the 5.13 @esmil kernel on the same Fedora SD card:Commit 985c9ef is also not a problem for buildroot SD card:
what controls
fdt_blob
?Note that when boot fails for Fedora 5.10 kernel fdt blob is at
ff737920
:instead of
88000000
which is the case for 5.13 esmil_starlight kernel on the Fedora SD card and the 5.13 kernel on the buildroot SD card:The address
ff737920
looks weird to me. @trini asked me to runbdi
:issue with
lmb_alloc_base
on RISC-V?@atishp04 notes that:
@trini commented:
Results from reverting
I can confirm that reverting commit 985c9ef and restoring
fdt_high=0xffffffffffffffff
andinitrd_high=0xffffffffffffffff
does fix booting with the Fedora 5.10 initrd.The text was updated successfully, but these errors were encountered: