Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0wIa-0001ax-Ij for qemu-devel@nongnu.org; Thu, 13 Jul 2006 04:11:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0wIX-0001XT-QM for qemu-devel@nongnu.org; Thu, 13 Jul 2006 04:11:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0wIX-0001XE-GJ for qemu-devel@nongnu.org; Thu, 13 Jul 2006 04:11:49 -0400 Received: from [209.191.124.128] (helo=web38101.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1G0wKF-0004Iv-Pi for qemu-devel@nongnu.org; Thu, 13 Jul 2006 04:13:36 -0400 Message-ID: <20060713081148.24569.qmail@web38101.mail.mud.yahoo.com> Date: Thu, 13 Jul 2006 01:11:48 -0700 (PDT) From: Tieu Ma Dau Subject: Re: [Qemu-devel] Insert module into kernel In-Reply-To: <200607121436.26998.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-55843934-1152778308=:23262" Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-55843934-1152778308=:23262 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I tried your instruction as below: + Download the installer Debian Sarge 3.1r0 on FreeOSZoo project: http://free.oszoo.org/download.php + Run the ARM simulated system with the command: " ./qemu-system-arm -kernel my_own_2.6_compiled_kernel sarge.img " + But I got the error: " VFS: Unable to mount root fs via NFS, trying floppy VFS: Cannot open root device "" or unknown-block(2,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) " The error arrives because this installer is only used for x86, not for ARM? or because I used wrong this installer? or the installer which Paul introduced is not the Debian Sarge on FreeOSZoo prj website? Do you have any idea? Tieu Paul Brook wrote: On Wednesday 12 July 2006 14:15, Tieu Ma Dau wrote: > Hi all, > I want to simulate the ARM system and add a simple simulated device with > its corresponding module device driver. So: > 1. I must run the command "insmod" to insert this module into kernel. > But there is not this command in the ARM Linux shell > 2. I must run the command "mknod" to make a file > (exp: /dev/my_simulated_device) corresponding to the simulated device. But > this command is not run because the "read only" property of file system. > 3. I must make a small program in which I open the file by the command > "fopen("/dev/my_simulated_device","w")" but I think that I have the problem > as in the question 2 Do you have any idea? None of these problems have anything to do with qemu. They are problems with your root FS. Qemu works exactly the same way as a real Arm machine. The arm_test image on the qemu website is a minimal cut-down test/demo system. It is not not intended to be a full general purpose linux system. Sounds like you need to get yourself a proper linux install. The Debian installers work pretty much out the box. If you already are using a different linux distro, you need to contact whoever supplied it. Paul __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-55843934-1152778308=:23262 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi,
I tried your instruction as below:
+ Download the installer Debian Sarge 3.1r0 on FreeOSZoo project: http://free.oszoo.org/download.php
+ Run the ARM simulated system with the command: " ./qemu-system-arm -kernel my_own_2.6_compiled_kernel sarge.img "
+ But I got the error:
"
VFS: Unable to mount root fs via NFS, trying floppy
VFS: Cannot open root device "<NULL>" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
"
The error arrives because this installer is only used for x86, not for ARM? or because I used wrong this installer? or the installer which Paul introduced is not the Debian Sarge on FreeOSZoo prj website?
Do you have any idea?
Tieu

Paul Brook <paul@codesourcery.com> wrote:
On Wednesday 12 July 2006 14:15, Tieu Ma Dau wrote:
> Hi all,
> I want to simulate the ARM system and add a simple simulated device with
> its corresponding module device driver. So:
> 1. I must run the command "insmod" to insert this module into kernel.
> But there is not this command in the ARM Linux shell
> 2. I must run the command "mknod" to make a file
> (exp: /dev/my_simulated_device) corresponding to the simulated device. But
> this command is not run because the "read only" property of file system.
> 3. I must make a small program in which I open the file by the command
> "fopen("/dev/my_simulated_device","w")" but I think that I have the problem
> as in the question 2 Do you have any idea?

None of these problems have anything to do with qemu. They are problems with
your root FS. Qemu works exactly the same way as a real Arm machine.

The arm_test image on the qemu website is a minimal cut-down test/demo system.
It is not not intended to be a full general purpose linux system. Sounds like
you need to get yourself a proper linux install. The Debian installers work
pretty much out the box.

If you already are using a different linux distro, you need to contact whoever
supplied it.

Paul

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com --0-55843934-1152778308=:23262--