qemu-x86 issues
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Any ideas, or places I should try poking to solve these issues? I'm going to kludge around this for now by disabling these tests locally. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161014/874257df/attachment.sig>
Hi Tom,
Quoted 9 lines · Tom Rini
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
I just tried QEMU v2.6.1 with u-boot.rom built from the master head, but did not see such issue.
Quoted 2 lines
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Typical emulation target issue :) Did you see similar issue on other QEMU platform with U-Boot?
Quoted 5 lines
Any ideas, or places I should try poking to solve these issues? I'm going to kludge around this for now by disabling these tests locally. Thanks!
Regards,
Bin
Quoted 13 lines · Bin Meng
Hi Tom,
Quoted 9 lines · Tom Rini
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
Quoted 2 lines
I just tried QEMU v2.6.1 with u-boot.rom built from the master head, but did not see such issue.
Ah, I think I see it now. We can't use 0x0 as where to load stuff to and the tests default to 0x0 if you don't provide an address rather than $loadaddr. I'll see about changing the tests.
Quoted 5 lines
Quoted 2 lines
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Typical emulation target issue :) Did you see similar issue on other QEMU platform with U-Boot?
So this one is interesting. I see the same failure for MIPS/PPC for the qemu targets we have as well. I don't see this under QEMU for the ARM targets that I'm emulating. I suspect there's some common problem on the U-Boot side as also don't see this on the VMs I have running under qemu nor when I boot the kernelci rootfs from U-Boot.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161018/b48c198b/attachment.sig>
Quoted 24 lines · Tom Rini
Quoted 13 lines · Bin Meng
Hi Tom,
Quoted 9 lines · Tom Rini
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
Quoted 2 lines
I just tried QEMU v2.6.1 with u-boot.rom built from the master head, but did not see such issue.
Ah, I think I see it now. We can't use
0x0as where to load stuff to and the tests default to0x0if you don't provide an address rather than $loadaddr. I'll see about changing the tests.Quoted 3 lines
Quoted 2 lines
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Quoted 8 lines
Quoted 2 lines
Typical emulation target issue :) Did you see similar issue on other QEMU platform with U-Boot?
So this one is interesting. I see the same failure for MIPS/PPC for the qemu targets we have as well. I don't see this under QEMU for the ARM targets that I'm emulating. I suspect there's some common problem on the U-Boot side as also don't see this on the VMs I have running under qemu nor when I boot the kernelci rootfs from U-Boot.
Bah, lemme correct myself. MIPS* and PowerPC fail due to sleep taking slightly too long. x86 is the only one where it's just way too fast. But this is not true once Linux itself is up.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161018/92078483/attachment.sig>
Hi Tom,
Quoted 34 lines · Tom Rini
Quoted 24 lines · Tom Rini
Quoted 13 lines · Bin Meng
Hi Tom,
Quoted 9 lines · Tom Rini
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
Quoted 2 lines
I just tried QEMU v2.6.1 with u-boot.rom built from the master head, but did not see such issue.
Ah, I think I see it now. We can't use
0x0as where to load stuff to and the tests default to0x0if you don't provide an address rather than $loadaddr. I'll see about changing the tests.Quoted 3 lines
Quoted 2 lines
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Quoted 8 lines
Quoted 2 lines
Typical emulation target issue :) Did you see similar issue on other QEMU platform with U-Boot?
So this one is interesting. I see the same failure for MIPS/PPC for the qemu targets we have as well. I don't see this under QEMU for the ARM targets that I'm emulating. I suspect there's some common problem on the U-Boot side as also don't see this on the VMs I have running under qemu nor when I boot the kernelci rootfs from U-Boot.
Quoted 4 lines
Bah, lemme correct myself. MIPS* and PowerPC fail due to sleep taking slightly too long. x86 is the only one where it's just way too fast. But this is not true once Linux itself is up.
U-Boot uses x86 TSC timer as the delay timer. Right now the timer frequency is hard-coded in device tree. Auto-calibration does not work on QEMU. I need have another check to see if we can do auto-calibration.
Regards,
Bin
Quoted 42 lines · Bin Meng
Hi Tom,
Quoted 34 lines · Tom Rini
Quoted 24 lines · Tom Rini
Quoted 13 lines · Bin Meng
Hi Tom,
Quoted 9 lines · Tom Rini
Hey guys,
After making Stephen's scripts work with qemu today, I've started testing out what platforms I can test out via qemu. I've found two problems with qemu-x86. First, there's a real problem with the network. I run qemu with "-nographic -cpu qemu32 -netdev user,id=net0,tftp=/tftpboot -device e1000,netdev=net0" so that I can tftpboot things in and I'm getting crc32 mismatches.
Quoted 2 lines
I just tried QEMU v2.6.1 with u-boot.rom built from the master head, but did not see such issue.
Ah, I think I see it now. We can't use
0x0as where to load stuff to and the tests default to0x0if you don't provide an address rather than $loadaddr. I'll see about changing the tests.Quoted 3 lines
Quoted 2 lines
Second, the sleep command is not at all accurate. It's returning the 3 second test in less than 1 second.
Quoted 8 lines
Quoted 2 lines
Typical emulation target issue :) Did you see similar issue on other QEMU platform with U-Boot?
So this one is interesting. I see the same failure for MIPS/PPC for the qemu targets we have as well. I don't see this under QEMU for the ARM targets that I'm emulating. I suspect there's some common problem on the U-Boot side as also don't see this on the VMs I have running under qemu nor when I boot the kernelci rootfs from U-Boot.
Quoted 4 lines
Bah, lemme correct myself. MIPS* and PowerPC fail due to sleep taking slightly too long. x86 is the only one where it's just way too fast. But this is not true once Linux itself is up.
Quoted 4 lines
U-Boot uses x86 TSC timer as the delay timer. Right now the timer frequency is hard-coded in device tree. Auto-calibration does not work on QEMU. I need have another check to see if we can do auto-calibration.
OK, thanks. So long as the problem is known it's not a high priority thing, esp if you're sure it's not going to cascade to problems elsewhere. I just use -k 'not sleep' in my jenkins job now.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161019/58837ef7/attachment.sig>
Hi!
Quoted 9 lines
Quoted 4 lines
Bah, lemme correct myself. MIPS* and PowerPC fail due to sleep taking slightly too long. x86 is the only one where it's just way too fast. But this is not true once Linux itself is up.
U-Boot uses x86 TSC timer as the delay timer. Right now the timer frequency is hard-coded in device tree. Auto-calibration does not work on QEMU. I need have another check to see if we can do auto-calibration.
TSC is not really suitable for delays on x86. (Actually, TSC is pretty much not suitable for anything :-) ). PIT should be easy to use and work everywhere...
Pavel
Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161203/7539cc6f/attachment.sig>