-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Issue: Stuck on "infer network start" when running sample firmware in check mode
Hi, I'm encountering an issue when trying to run a sample firmware in check mode. The execution gets stuck at:
infer network start...
Environment:
OS: Ubuntu 18.04
Python: 3.10.8
What I’ve Checked:
I have reviewed the following logs:
makeNetwork.log
qemu.initial.serial.log
qemu.final.serial.log
From what I can tell, qemu-system seems to start successfully. However, the logs show the following messages:
'''
iptables v1.4.7: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?)
wlt1: WLC_GET_VAR(authe_sta_list): No such device
wifig0: WLC_GET_VAR(chanspec): No such device
net interface not found
firmadyne: sys_socket [...] updatewifistats
'''
Is there anything I'm missing in terms of kernel modules (e.g., iptable_nat) or configuration that I should install to support NAT or networking in this emulation?
(python3.11) root@user-virtual-machine:~/FirmAEuse/scratch/2# ps auxf | grep "qemu" root 229798 0.0 0.1 790220 31968 pts/1 Rl 09:24 0:00 | \_ qemu-system-arm -m 256 -M virt -kernel /root/FirmAEuse/binaries//zImage.armel -drive if=none,file=/root/FirmAEuse/scratch/2/image.raw,format=raw,id=rootfs -device virtio-blk-device,drive=rootfs -append firmadyne.syscall=1 root=/dev/vda1 console=ttyS0 nandsim.parts=64,64,64,64,64,64,64,64,64,64 rdinit=/firmadyne/preInit.sh rw debug ignore_loglevel print-fatal-signals=1 FIRMAE_NET=true FIRMAE_NVRAM=true FIRMAE_KERNEL=true FIRMAE_ETC=true user_debug=31 -serial file:/root/FirmAEuse/scratch/2/qemu.initial.serial.log -serial unix:/tmp/qemu.2.S1,server,nowait -monitor unix:/tmp/qemu.2,server,nowait -display none -device virtio-net-device,netdev=net0 -netdev user,id=net0 root 229802 0.0 0.0 11472 1920 pts/2 S+ 09:24 0:00 \_ grep --color=auto qemu
By the way, I’m running this in a Docker environment; here is the command I used:
docker run --privileged --net=host -it ubuntu:18.04 /bin/bash