Fred . wrote:
when I tried it under QEMU it did not work
So what happens? What does the serial debug log look like? If you don't provide details about the problem it is impossible to give any advice.
Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
//Peter