Skip to contentSkip to conversation

configs/qemu_sh4*: switch to initramfs

PATCH Applied Waldemar Brodkorb 3 participants 3 messages Jul 5, 2024 – Jul 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 configs/qemu_sh4*: switch to initramfs

Qemu 9.0.0/9.0.1 has introduced a Bug in sh4/sh4eb emulation so that the system doesn't boot anymore.
The issue is already reported by Guenter Roeck:
https://lists.nongnu.org/archive/html/qemu-devel/2024-05/msg00606.html

Switch to initramfs for sh4/sh4eb emulation.

---
v2->v3:
- separate sh4 switch to initramfs from kernel update

---
 board/qemu/sh4-r2d/readme.txt    | 2 +-
 board/qemu/sh4eb-r2d/readme.txt  | 2 +-
 configs/qemu_sh4_r2d_defconfig   | 2 +-
 configs/qemu_sh4eb_r2d_defconfig | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
board/qemu/sh4-r2d/readme.txt +1 -1
index b0799e47a8..24c3676d8a 100644
@@ -1,6 +1,6 @@
 Run the emulation with:
 
-  qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append "rootwait root=/dev/sda console=ttySC1,115200 noiotrap" -serial null -serial stdio -net nic,model=rtl8139 -net user # qemu_sh4_r2d_defconfig
+  qemu-system-sh4 -M r2d -kernel output/images/zImage -append "console=ttySC1,115200 noiotrap" -serial null -serial stdio -net nic,model=rtl8139 -net user # qemu_sh4_r2d_defconfig
 
 The login prompt will appear in the terminal that started Qemu.
 The graphical window is the framebuffer.
board/qemu/sh4eb-r2d/readme.txt +1 -1
index 9f3dd8b20b..577c54cd9d 100644
@@ -1,6 +1,6 @@
 Run the emulation with:
 
-  qemu-system-sh4eb -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append "rootwait root=/dev/sda console=ttySC1,115200 noiotrap" -serial null -serial stdio -net nic,model=rtl8139 -net user # qemu_sh4eb_r2d_defconfig
+  qemu-system-sh4eb -M r2d -kernel output/images/zImage -append "console=ttySC1,115200 noiotrap" -serial null -serial stdio -net nic,model=rtl8139 -net user # qemu_sh4eb_r2d_defconfig
 
 The login prompt will appear in the terminal that started Qemu.
 The graphical window is the framebuffer.
configs/qemu_sh4_r2d_defconfig +1 -1
index e5570dcbab..8d3e96c9c5 100644
@@ -7,7 +7,7 @@ BR2_SYSTEM_DHCP="eth0"
 BR2_TARGET_GENERIC_GETTY_PORT="ttySC1"
 
 # Filesystem
-BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_INITRAMFS=y
 # BR2_TARGET_ROOTFS_TAR is not set
 
 # Image
configs/qemu_sh4eb_r2d_defconfig +1 -1
index 468d6567ae..10c547e0c4 100644
@@ -6,7 +6,7 @@ BR2_sh4eb=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttySC1"
 
 # Filesystem
-BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_INITRAMFS=y
 # BR2_TARGET_ROOTFS_TAR is not set
 
 # Image
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · On Fri, 5 Jul 2024 10:50:06 +0200 Waldemar Brodkorb <[email protected]> wrote:

Qemu 9.0.0/9.0.1 has introduced a Bug in sh4/sh4eb emulation so that the system doesn't boot anymore.
The issue is already reported by Guenter Roeck:
https://lists.nongnu.org/archive/html/qemu-devel/2024-05/msg00606.html

Switch to initramfs for sh4/sh4eb emulation.

---
v2->v3:
- separate sh4 switch to initramfs from kernel update

Quoted 6 lines
---
 board/qemu/sh4-r2d/readme.txt    | 2 +-
 board/qemu/sh4eb-r2d/readme.txt  | 2 +-
 configs/qemu_sh4_r2d_defconfig   | 2 +-
 configs/qemu_sh4eb_r2d_defconfig | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Waldemar Brodkorb
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Waldemar" == Waldemar Brodkorb <[email protected]> writes:

Qemu 9.0.0/9.0.1 has introduced a Bug in sh4/sh4eb emulation so that the system doesn't boot anymore.
The issue is already reported by Guenter Roeck:
https://lists.nongnu.org/archive/html/qemu-devel/2024-05/msg00606.html

Switch to initramfs for sh4/sh4eb emulation.

Committed to 2024.05.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot