ARM: rockchip: rv1108: Fix booting with initramfs
PATCH 1/1 ARM: rockchip: rv1108: Fix booting with initramfs
We move the ramdisk_addr_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.
---
include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/configs/rv1108_common.h +3 -1
@@ -34,7 +34,9 @@"scriptaddr=0x60000000\0" \"fdt_addr_r=0x61f00000\0" \"kernel_addr_r=0x62000000\0" \ - "ramdisk_addr_r=0x64000000\0" +"ramdisk_addr_r=0x68000000\0" \ +"initrd_high=0xffffffff\0" \ + "fdt_high=0xffffffff\0"#include <config_distro_bootcmd.h> #define CONFIG_EXTRA_ENV_SETTINGS \
Signature · 1 line
2.19.2
PATCH 1/1 ARM: rockchip: rv1108: Fix booting with initramfs
Quoted 8 lines · Otavio Salvador
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>
PATCH 1/1 ARM: rockchip: rv1108: Fix booting with initramfs
Hello Philipp,
Quoted 7 lines · Philipp Tomsich
Quoted 5 lines · Otavio Salvador
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>
As you sent the PR for Rockchip tree, do you mind if Tom applies this one directly?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
PATCH 1/1 ARM: rockchip: rv1108: Fix booting with initramfs
Otavio,
Quoted 10 lines · Otavio Salvador
Hello Philipp,
Quoted 4 lines · Philipp Tomsich
Quoted 4 lines · Otavio Salvador
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>As you sent the PR for Rockchip tree, do you mind if Tom applies this one directly?
I am preparing another PR to go out prior to RC2. There’s a number of bug-fixes that have collected over this week.
Unfortunately, this is not as quick and painless as it could as not everyone runs their patches through Travis.
Thanks,
Phil.
Quoted 10 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Applied to u-boot-rockchip, thanks!
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
Quoted 5 lines
Quoted 3 lines
include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use bootm_size.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181209/c9146634/attachment.sig>
Tom,
Quoted 9 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
include/configs/rv1108_common.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.
Thanks for spotting this (just in time).
I’ll drop it and rerun Travis for tomorrow’s PR.
Thanks,
Philipp.
Quoted 16 lines · Philipp Tomsich
Tom,
Quoted 13 lines · Tom Rini
Quoted 11 lines · Philipp Tomsich
Quoted 10 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
include/configs/rv1108_common.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.Thanks for spotting this (just in time).
I’ll drop it and rerun Travis for tomorrow’s PR.
Thanks. And you might want to audit the rest of rockchip (and no, my own house isn't 100% in order) as it looks like in general at least you're using fdt_high to (good) set an upper bound but I think bootm_size is more robust as we can set that and it covers fdt and initrd if present (which not all rk3xxx_common.h are setting).
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181209/0f6708ee/attachment.sig>
+ Heiko
Quoted 24 lines · Tom Rini
Quoted 21 lines · Philipp Tomsich
Tom,
Quoted 17 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
Quoted 5 lines
Quoted 3 lines
include/configs/rv1108_common.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.
Quoted 8 lines
Quoted 2 lines
Thanks for spotting this (just in time).
I’ll drop it and rerun Travis for tomorrow’s PR.Thanks. And you might want to audit the rest of rockchip (and no, my own house isn't 100% in order) as it looks like in general at least you're using
fdt_highto (good) set an upper bound but I thinkbootm_sizeis more robust as we can set that and it covers fdt and initrd if present (which not allrk3xxx_common.hare setting).
We may have a problem on rk3188 and rk3288 configurations. While I can convert these to bootm_size, I would have to do so blindly, as I don’t have any boards.
@Heiko: you have added the fdt_high and initrd_high in rk3188_common.h, do you have more info and would you have able to test this changed to bootm_size instead?
Cheers,
Philipp.
Hi Philipp,
Am Dienstag, 11. Dezember 2018, 00:12:40 CET schrieb Philipp Tomsich:
Quoted 35 lines
+ Heiko
Quoted 24 lines · Tom Rini
Quoted 21 lines · Philipp Tomsich
Tom,
Quoted 17 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
Quoted 5 lines
Quoted 3 lines
include/configs/rv1108_common.h| 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.Quoted 8 lines
Quoted 2 lines
Thanks for spotting this (just in time).
I’ll drop it and rerun Travis for tomorrow’s PR.Thanks. And you might want to audit the rest of rockchip (and no, my own house isn't 100% in order) as it looks like in general at least you're using
fdt_highto (good) set an upper bound but I thinkbootm_sizeis more robust as we can set that and it covers fdt and initrd if present (which not allrk3xxx_common.hare setting).
Quoted 7 lines
We may have a problem on rk3188 and rk3288 configurations. While I can convert these to
bootm_size, I would have to do so blindly, as I don’t have any boards.@Heiko: you have added the
fdt_highandinitrd_highinrk3188_common.h, do you have more info and would you have able to test this changed tobootm_sizeinstead?
I think I more or less only copied that from rk3288 (adjusted for actual ram-location) and I'm of course able to test changes you want to do on rk3188 [Though only starting from thursday].
Heiko
Quoted 8 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.
I never used it, any reference to look at?
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
Quoted 13 lines · Otavio Salvador
Quoted 12 lines · Tom Rini
Quoted 11 lines · Philipp Tomsich
Quoted 10 lines
We move the
ramdisk_addr_rto0x68000000and disable the initrd and fdt relocation, so the initramfs works out of box.Signed-off-by Otavio Salvador <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>---
include/configs/rv1108_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Applied to u-boot-rockchip, thanks!
Ugh, sorry for not spotting this sooner. Please don't disable fdt/initrd relocation and instead use
bootm_size.I never used it, any reference to look at?
Specifically? No. There should be a lot of general hits on $search-engine over it however as not disabling and instead using bootm_size is how to fix "Kernel suddenly stops booting... oh we're overwriting fdt/initrd".
This isn't to say that disabling fdt/initrd relocation isn't a useful production optimization, it is. But it's not a good general best practice.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181210/3213115b/attachment.sig>