Skip to contentSkip to conversation

ARM: rockchip: rv1108: Fix booting with initramfs

PATCH In review Otavio Salvador 5 participants 12 messages Dec 4, 2018 – Dec 11, 2018

lore
Share & tools
lore
#0 lore raw

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
index 16d4e2e355..91a9f9758b 100644
@@ -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
#2 lore raw

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_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

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
#3 lore raw

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_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

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.

#5 lore raw
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines

We move the ramdisk_addr_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

---

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>
#6 lore raw

Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines

We move the ramdisk_addr_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

---

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.

#7 lore raw
Quoted 16 lines · Philipp Tomsich

Tom,

Quoted 13 lines · Tom Rini
Quoted 11 lines · Philipp Tomsich
Quoted 10 lines

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(-)
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>
#8 lore raw

+ 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_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

---

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_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).

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.

#9 lore raw

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_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

---

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_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).

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_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?

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

#10 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini
Quoted 7 lines · Philipp Tomsich
Quoted 7 lines

We move the ramdisk_addr_r to 0x68000000 and disable the initrd and fdt relocation, so the initramfs works out of box.

---

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
#11 lore raw
Quoted 13 lines · Otavio Salvador
Quoted 12 lines · Tom Rini
Quoted 11 lines · Philipp Tomsich
Quoted 10 lines

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(-)
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>