therealsaumil / emux

EMUX Firmware Emulation Framework (formerly ARMX)
Mozilla Public License 2.0
687 stars 87 forks source link

Emulating Netgear R8000 issue #28

Open WizardsOfTheInternet opened 2 years ago

WizardsOfTheInternet commented 2 years ago

I have managed to get the router launching when using ./run-emux-docker, running launcher and then selecting my newly created Netgear R8000 device.

I have an issue when I run the emux-docker-shell command, run userspace and then select /bin/sh. I get the following error:

[emux-docker 🐚] ~$ userspace
Entering Netgear R8000 Wi-Fi Router CONSOLE (/bin/sh)
mount: mounting /proc on /emux/R8000/rootfs/proc failed: No such file or directory
mount: mounting /sys on /emux/R8000/rootfs/sys failed: No such file or directory
[+] chroot /emux/R8000/rootfs /.emux/emuxshell
chroot: can't execute '/.emux/emuxshell': No such file or directory
Connection to 192.168.100.2 closed.

What else am I meant to do to be able to get this running?

Config

# Sample device configuration file
#
id=R8000
nvram=nvram.ini
rootfs=rootfs
randomize_va_space=0
#ld_preload=preload
initcommands="/sbin/preinit;/bin/sh"

Device Information

R8000,qemu-system-arm-6.0.0,vexpress-a9,,,256M,zImage-2.6.39.4-vexpress,VEXPRESS2,Netgear R8000 Wi-Fi Router

File System The file system is taken from the extracted firmware and then compressed into a .tar.bz2.