linux - Redirect multiple UARTs in Qemu -
i emulating chip multiple uarts/usarts. want redirect uart3 /dev/uart3 on host, uart7 /dev/uart7 on host, etc. can't seem find examples or guides deal more 1 uart, , examples did find don't seem select uart dumping console/socket/whatever. (some of them use "id=id" have no idea means , qemu documentation didn't seem cover it.)
man qemu
says:
-serial dev
redirect virtual serial port host character device dev. default device "vc" in graphical mode , "stdio" in non graphical mode.this option can used several times simulate up 4 serial ports.
also, add virtual usb serial ports:
-usbdevice serial:[vendorid=vendor_id][,productid=product_id]:dev
for dev
substitute host's serial ports in form /dev/ttyxxx
in both cases
you omit vendor , product id specification. in case qemu
create generic serial usb device virto' ids
Comments
Post a Comment