apertus-open-source-cinema / axiom-firmware

AXIOM firmware (linux image, gateware and software tools)
GNU General Public License v3.0
171 stars 54 forks source link

Network support in emulation #130

Open rroohhh opened 4 years ago

rroohhh commented 4 years ago

For example to be able to test the webui and login via ssh (see also #129) it would be nice to better support networking when booting with qemu.

This command atleast works for forwarding the ssh server:

sudo ../../qemu-xilinx-v2018.3.git/aarch64-softmmu/qemu-system-aarch64 -M arm-generic-fdt-7series -serial /dev/null -serial mon:stdio -nographic -dtb /tmp/devicetree.dtb -drive if=sd,format=raw,index=0,file=build/axiom-micro.img -kernel build/boot.fs/zImage -append 'console=ttyPS0,115200n8 root=PARTUUID=f37043ff-02 rw rootfstype=ext4 rootwait systemd.log_level=warning loglevel=7 systemd.log_target=console kernel.sysrq=1 init=/usr/lib/systemd/systemd sdhci.debug_quirks=64 kernel.sysrq=1' -net nic -net user,hostfwd=tcp:127.0.0.1:10022-10.0.2.15:22