Message ID | 559CC074.8000105@web.de |
---|---|
State | Accepted |
Headers | show |
On 8 July 2015 at 14:17, Dirk Neukirchen <dirkneukirchen@web.de> wrote: > works with: > qemu-system-mipsel -M malta \ > -hda openwrt-malta-le-root.ext4 \ > -kernel openwrt-malta-le-vmlinux.elf \ > -nographic -append "root=/dev/sda console=ttyS0" > Nice. Never get a chance to play with a real malta board, I have been wondering whether we should convert malta to a router type DEVICE_TYPE and give it 2 interfaces for lan and wan by default. I have run OpenWrt within QEMU Malta for quite a while and it's working very well. In case someone is interested, a gist for the steps involved is available in https://gist.github.com/yousong/8d94c6823a2a6f0f79fd yousong
diff --git a/target/linux/malta/config-3.18 b/target/linux/malta/config-3.18 index 8feead1..2048dc4 100644 --- a/target/linux/malta/config-3.18 +++ b/target/linux/malta/config-3.18 @@ -7,6 +7,8 @@ CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y # CONFIG_AX88796_93CX6 is not set +CONFIG_ATA=y +CONFIG_ATA_PIIX=y CONFIG_BLK_DEV_BSG=y CONFIG_BLK_DEV_BSGLIB=y # CONFIG_BLK_DEV_INITRD is not set @@ -14,6 +16,7 @@ CONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 +CONFIG_BLK_DEV_SD=y CONFIG_BOARD_SCACHE=y CONFIG_BOOT_ELF32=y CONFIG_BOUNCE=y @@ -51,6 +54,7 @@ CONFIG_DNOTIFY=y CONFIG_DUMMY_CONSOLE=y CONFIG_EARLY_PRINTK=y CONFIG_ENABLE_MUST_CHECK=y +CONFIG_EXT4_FS=y CONFIG_FIRMWARE_IN_KERNEL=y CONFIG_FS_POSIX_ACL=y CONFIG_GENERIC_ATOMIC64=y
works with: qemu-system-mipsel -M malta \ -hda openwrt-malta-le-root.ext4 \ -kernel openwrt-malta-le-vmlinux.elf \ -nographic -append "root=/dev/sda console=ttyS0" Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> --- target/linux/malta/config-3.18 | 4 ++++ 1 file changed, 4 insertions(+)