OpenWrt Forum Archive

Topic: Ramips Virtual Machine

The content of this topic has been archived on 12 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I'm looking for how to virtualize a openwrt ramips image, so i know that in the download page of every release there is a vmlinux .elf  file, or i can use also le or be malta images. But i need to do some changes and i can't modify the elf image to run with qemu-system-ramips  (mipsel or whatever). This, because im testing some hardware that i haven't physically access, and i need to test it.

So, is there a way to make a elf, img or some VM image with my changes to test what i need? or It's possible to modify a elf image every time that i need to change something to test in qemu?

Regards

look at: http://wiki.openwrt.org/doc/howto/qemu

You can have a writeable ext4 partition as rootfs when using malta/mips in qemu.

You can modify the kernel/rootfs in the buildroot by patching the sources or by using the files/ dir (files in that dir get 1:1 into rootfs).

You can check the commands / Makefile in the build system how the elf/... other files are created (see target/linux/<arch>/... )

The discussion might have continued from here.