Skip to contentSkip to conversation

Regression: QEMU 0.8.2 (and CVS) fails to boot a debian arm

Qemu-devel Aurelien Jarno 3 participants 9 messages Sep 6, 2006 – Sep 7, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I have setup a debian arm (unstable) under QEMU, until now using version 0.8.1 and a root on NFS.

I wanted to use the new SCSI card emulation introduced in QEMU 0.8.2, but it fails to boot (still with root on NFS). It freeze, the last message being:

INIT: version 2.86 booting

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I can provide some more details if needed, just ask. Or please tell me how to debug that.

FYI, on an Athlon 64 @2.2 GHz, qemu-system-arm is faster than my NSLU2, and it has a lot more ram. That rocks!

Bye,
Aurelien

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#1 lore raw
Quoted 5 lines · Aurelien Jarno

Hi,

I have setup a debian arm (unstable) under QEMU, until now using version 0.8.1 and a root on NFS.

Quoted 9 lines

I wanted to use the new SCSI card emulation introduced in QEMU 0.8.2, but it fails to boot (still with root on NFS). It freeze, the last message being:

INIT: version 2.86 booting

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#2 lore raw
Quoted 11 lines
Quoted 2 lines

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

I've not idea what might be causing this. It works fine for me using both machine types.

Paul

#3 lore raw
Quoted 8 lines · Paul Brook
Quoted 8 lines
Quoted 2 lines

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Quoted 5 lines
Quoted 2 lines

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

I've not idea what might be causing this. It works fine for me using both machine types.

So maybe I am doing something wrong, or I have something broken in my kernel. Here is the command line I used:

qemu-system-arm -M versatilepb -kernel vmlinuz -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -nographic

The kernel and the initrd are available on http://temp.aurel32.net/arm . The initrd is actually the one from the debian-installer. To get a console, select "Go Back" to get a menu where you can select "Execute a shell".

I have compared QEMU 0.8.1, QEMU 0.8.2 and QEMU CVS, both on an i386 and an amd64 machines. Versions 0.8.2 and CVS are a lot slower than version 0.8.1, even for booting the kernel.

It would be nice if somebody could do the same tests, to make sure it is not related to my machines.

Thanks,
Aurelien

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#4 lore raw
Quoted 27 lines · Aurelien Jarno
Quoted 8 lines · Paul Brook
Quoted 8 lines
Quoted 2 lines

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Quoted 6 lines
Quoted 2 lines

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

I've not idea what might be causing this. It works fine for me using both machine types.

So maybe I am doing something wrong, or I have something broken in my kernel. Here is the command line I used:

qemu-system-arm -M versatilepb -kernel vmlinuz -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -nographic

The kernel and the initrd are available on http://temp.aurel32.net/arm . The initrd is actually the one from the debian-installer. To get a console, select "Go Back" to get a menu where you can select "Execute a shell".

Quoted 7 lines

I have compared QEMU 0.8.1, QEMU 0.8.2 and QEMU CVS, both on an i386 and an amd64 machines. Versions 0.8.2 and CVS are a lot slower than version 0.8.1, even for booting the kernel.

It would be nice if somebody could do the same tests, to make sure it is not related to my machines.

I have been able to determine that the bug has been introduced between 20060714 and 20060715, so it is hidden somewhere in the diff attached. I will have a closer look later.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#5 lore raw
Quoted 20 lines · Aurelien Jarno
Quoted 19 lines · Aurelien Jarno
Quoted 8 lines · Paul Brook
Quoted 8 lines
Quoted 2 lines

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Quoted 4 lines
Quoted 2 lines

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

I've not idea what might be causing this. It works fine for me using both machine types.

So maybe I am doing something wrong, or I have something broken in my kernel. Here is the command line I used:

qemu-system-arm -M versatilepb -kernel vmlinuz -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -nographic

The kernel and the initrd are available on http://temp.aurel32.net/arm . The initrd is actually the one from the debian-installer. To get a console, select "Go Back" to get a menu where you can select "Execute a shell".

Quoted 9 lines
Quoted 4 lines

I have compared QEMU 0.8.1, QEMU 0.8.2 and QEMU CVS, both on an i386 and an amd64 machines. Versions 0.8.2 and CVS are a lot slower than version 0.8.1, even for booting the kernel.

It would be nice if somebody could do the same tests, to make sure it is not related to my machines.

I have been able to determine that the bug has been introduced between 20060714 and 20060715, so it is hidden somewhere in the diff attached. I will have a closer look later.

And it seems the bug is only present on SMP (or HT) hosts.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#6 lore raw
In reply to Aurelien Jarno
Quoted 36 lines · Aurelien Jarno
Quoted 27 lines · Aurelien Jarno
Quoted 8 lines · Paul Brook
Quoted 8 lines
Quoted 2 lines

There is the same problem with QEMU CVS. Note that using root=/bin/sh works well using root on NFS and even using the emulated SCSI drive.

I think I have found the problem. Actually the system is not frozen, but just very slow. I now get while booting the kernel:
Calibrating delay loop... 12.16 BogoMIPS (lpj=60800)
instead of
Calibrating delay loop... 486.60 BogoMIPS (lpj=2433024)

Quoted 6 lines
Quoted 2 lines

Note that it is with the versatilepb (or versatileab) machine, the problem is not there with the integrator one.

I've not idea what might be causing this. It works fine for me using both machine types.

So maybe I am doing something wrong, or I have something broken in my kernel. Here is the command line I used:

qemu-system-arm -M versatilepb -kernel vmlinuz -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -nographic

The kernel and the initrd are available on http://temp.aurel32.net/arm . The initrd is actually the one from the debian-installer. To get a console, select "Go Back" to get a menu where you can select "Execute a shell".

Quoted 7 lines

I have compared QEMU 0.8.1, QEMU 0.8.2 and QEMU CVS, both on an i386 and an amd64 machines. Versions 0.8.2 and CVS are a lot slower than version 0.8.1, even for booting the kernel.

It would be nice if somebody could do the same tests, to make sure it is not related to my machines.

Quoted 6 lines

I have been able to determine that the bug has been introduced between 20060714 and 20060715, so it is hidden somewhere in the diff attached. I will have a closer look later.

From the attached diff, removing this small change make QEMU working

back at normal speed:

vl.c +1 -1
diff -Nurd qemu-0.8.2.orig/vl.c qemu-0.8.2/vl.c
@@ -774,7 +774,7 @@
         return get_clock() / 1000000;
     default:
     case QEMU_TIMER_VIRTUAL:
-        return cpu_get_clock();
+        return cpu_get_ticks();
     }
 }
 

It's probably a very wrong patch. As the arm integrator target is running correctly, my guess is that the sp804 timer call this function too often, and the small overhead introduced by this change becomes really important.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#7 lore raw

[Qemu-devel] Load PL110 module driver to reserve a specified address?

In reply to Paul Brook

Hi all,
I run ARM Linux kernel on Qemu ARM simulator. In this simulator, PL110 LCD controller is at 0xc0000000 and PL110 driver will control LCD device at this address.
For my project, I want to add a new PL110 LCD controller at 0x1b000000, so I don't know how I can load / insmod the second PL110 module driver so that this module driver can control the second PL110 LCD controller at 0x1b000000. Thanks for any reply.
Tieu

---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

#8 lore raw

Re: [Qemu-devel] Load PL110 module driver to reserve a specified address?

Quoted 7 lines · Tieu Ma Dau

Hi all,
I run ARM Linux kernel on Qemu ARM simulator. In this simulator, PL110
LCD controller is at 0xc0000000 and PL110 driver will control LCD device at this address. For my project, I want to add a new PL110 LCD controller at 0x1b000000, so I don't know how I can load / insmod the second PL110 module driver so that this module driver can control the second PL110 LCD controller at 0x1b000000. Thanks for any reply.

This is the wrong place for this question. Ask your OS vendor.

Paul