nongiach / arm_now

arm_now is a qemu powered tool that allows instant setup of virtual machines on arm cpu, mips, powerpc, nios2, x86 and more, for reverse, exploit, fuzzing and programming purpose.
https://github.com/nongiach/arm_now/wiki
MIT License
863 stars 87 forks source link

Using arm_now for QEMU development for Onion Omega2 #43

Open whatnick opened 4 years ago

whatnick commented 4 years ago

I am attempting to setup Onion Omega2 Developments stack without the real hardware using arm_now. Mostly for Python scripts with stubs for hardware stuff.

However bringing up mips32el is stalling with this :

File not found by ext2_lookup
WARNING: e2rm file already suppressed
File not found by ext2_lookup
WARNING: e2rm file already suppressed
Tempdir /tmp/tmpolljr1r0
Starting qemu-system-mipsel
stty intr ^]
       export QEMU_AUDIO_DRV="none"
       qemu-system-mipsel -kernel arm_now/kernel -hda arm_now/rootfs.ext2 -append 'root=/dev/hda console=ttyS0 rw physmap.enabled=0 noapic'                -m 256M                -nographic                -serial stdio -monitor null  -nic user                                 -no-reboot
       stty intr ^c

qemu-system-mipsel: -nic: invalid option

Will work on checking the architecture and options for opkg support for this board since images are available with links to Onion opkg repo here.

nongiach commented 4 years ago

Hello Tisham Dhar,

I hope you are doing well!

you can either adjust to fix the bellow command manually because once the image are downloaded you don't need arm_now if you start qemu your self:
qemu-system-mipsel -kernel arm_now/kernel -hda arm_now/rootfs.ext2 -append 'root=/dev/hda console=ttyS0 rw physmap.enabled=0 noapic' -m 256M -nographic -serial stdio -monitor null -nic user -no-reboot

Or you can: Try this: https://askubuntu.com/questions/1067722/how-do-i-install-qemu-3-0-on-ubuntu-18-04

Regards