[yocto] QEMU with host USB serial

colin.helliwell at ln-systems.com colin.helliwell at ln-systems.com
Thu Jan 26 22:28:03 PST 2017


Hi,
That gives:

Continuing with the following parameters:
KERNEL:
[/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/deploy/images/qemux86-
64/bzImage-qemux86-64.bin]
ROOTFS:
[/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/deploy/images/qemux86-
64/core-image-qemu-qemux86-64-20170124145819.rootfs.ext4]
FSTYPE: [ext4]
Setting up tap interface under sudo
[sudo] password for colin:
Acquiring lockfile for tap0...
Interrupt character is '^]'
-net nic,model=virtio -net tap,vlan=0,ifname=tap0,script=no,downscript=no
-cpu core2duo -drive
file=/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/deploy/images/qemu
x86-64/core-image-qemu-qemux86-64-20170124145819.rootfs.ext4,if=virtio,forma
t=raw -show-cursor -usb -usbdevice wacom-tablet -vga vmware   -nographic
-serial stdio  -m 256
Running qemu-system-x86_64...
/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/sysroots/x86_64-linux/u
sr/bin/qemu-system-x86_64 -kernel
/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/deploy/images/qemux86-6
4/bzImage-qemux86-64.bin -net nic,model=virtio -net
tap,vlan=0,ifname=tap0,script=no,downscript=no -cpu core2duo -drive
file=/home/colin/100051-karo/fsl-community-bsp/buildq/tmp/deploy/images/qemu
x86-64/core-image-qemu-qemux86-64-20170124145819.rootfs.ext4,if=virtio,forma
t=raw -show-cursor -usb -usbdevice wacom-tablet -vga vmware -no-reboot
-nographic -serial stdio -m 256 -serial null --append "vga=0
uvesafb.mode_option=640x480-32 root=/dev/vda rw mem=256M
ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1 rootfstype=ext4
console=ttyS0 console=ttyS0"
QEMU 2.4.0 monitor - type 'help' for more information
(qemu) qemu-system-x86_64: -serial stdio: cannot use stdio by multiple
character devices
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'


-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org]
On Behalf Of Khem Raj
Sent: 27 January 2017 02:10
To: yocto at yoctoproject.org
Subject: Re: [yocto] QEMU with host USB serial

On 1/26/17 6:22 AM, colin.helliwell at ln-systems.com wrote:
> I'm investigating using qemu to give us some test capability, for 
> which we need to use the host's serial devices.
> 
> I have a qemu build which boots up fine; I'm trying to give it access 
> to the host USB. To keep it simple(r), I've seen mention of FTDI's 
> device
> (0403:6001) in the qemu source so that's what I've plugged in. I've 
> done a 'chmod me:me' on the relevant /dev/bus/usb/xxx/yyy node.
> 
>  
> 
> I can't though figure out what options I should be passing to runqemu 
> to hook this in. I daresay I may need bootparams too, but am first 
> just trying to get past 'qemuparams'.
> 
> As a starting point, I'm trying things like
> 
>     runqemu qemux86-64 nographic qemuparams="-usbdevice serial"

can you try with

runqemu qemux86-64 nographic serial

--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto




More information about the yocto mailing list