On 20/05/2016 04:41, xiaoqiang zhao wrote: > > It seems that qemu_char_get_next_serial() call the qemu_chr_fe_claim, > which is also called by > qdev_prop_set_chr ! This cause chr->avail_connectinos less than 1. as > the error message said: > "it's in use". > A stright fix is to call the qemu_chr_fe_release after > qemu_char_get_next_serial and the call the > qdev_prop_set_chr, the error is gone! I have test with your test cases > and it works. > > Or another way, can we modify qemu_char_get_next_serial and just skip > the call of qemu_chr_fe_claim?
You can replace calls to qemu_char_get_next_serial() with direct access to serial_hds[0], serial_hds[1], etc. Please do this for etrax_ser too. Paolo