[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian and QEMU virtio-net-device



On Wed, Nov 09, 2016 at 08:18:06AM -0500, Jerry Stuckle wrote:
> Hi, Ian,
> 
> Sorry for the delay and not posting to the listserv - my mistake.
> 
> The entire qemu command line is:
> 
> qemu-system-arm -m 1024M \
> -sd /export/armhf.qcow2 \
> -M vexpress-a9 \
> -cpu cortex-a9 \
> -kernel /export/boot/vmlinuz \
> -initrd /export/boot/initrd.img \
> -append "root=/dev/mmcblk0p2" \
> -monitor stdio \
> -netdev bridge,br=bridge0,id=net0,helper=/usr/lib/qemu/qemu-bridge-helper \
> -device virtio-net-device,netdev=net0,mac=DE:AD:BE:EF:37:30

Could you try adding -dtb with the right dtb for that machine?
ARM kernels really want a DTB to control all the busses and devices
in general.

Did you append the dtb to the kernel instead or something?  I can't even
get qemu to boot without the -dtb.  Of course I also get no output unless
I pass a console argument to the kernel.

I don't have a bridge setup, but using -netdev user instead of -netdev
bridge, I get working networking.

With working virtio net you will see NOTHING in dmesg.  It doesn't
print anything.  'ip link' will show eth0 however, and if your bridge
setup is done right, it will work.  Trying user mode first is a lot
simpler and an easier way to check if the virtio is working first before
worrying about the bridge setup.

The smx device is a different one, and not the one used by virtio.

-- 
Len Sorensen


Reply to: