From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49105 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PirgG-0006KR-TV for qemu-devel@nongnu.org; Fri, 28 Jan 2011 12:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PirgF-00063s-FQ for qemu-devel@nongnu.org; Fri, 28 Jan 2011 12:00:16 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:39842) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PirgF-00063b-2I for qemu-devel@nongnu.org; Fri, 28 Jan 2011 12:00:15 -0500 Content-Type: text/plain; charset="utf-8" Date: Fri, 28 Jan 2011 18:00:08 +0100 From: "Comicinker" Message-ID: <20110128170008.139840@gmx.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] New machine? List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I want to boot a embedded linux environment in qemu, namely xxsvideo [1]. It is for an arm based fujitsu development board [2]. The toolchain provideds finally 3 files to flash the target device: ----- comicinker@hardy:~/workspace/jade_rootfs_build-0.8.5/images$ ls -lh insgesamt 5,4M -rw-r--r-- 1 comicinker comicinker 3,9M 2011-01-22 19:21 rootfs-xxsvideo-jadeevalkit-0.8.5.bin -rwxr-xr-x 1 comicinker comicinker 110K 2011-01-22 19:17 u-boot-xxsvideo-jadeevalkit-0.8.5.bin -rw-r--r-- 1 comicinker comicinker 1,4M 2011-01-22 19:21 uImage-xxsvideo-jadeevalkit-0.8.5.bin ----- The documentation of xxsvideo tells the following about the Kernel: ----- 3.2 Kernel Currently the following flash partition is used. This may change e.g. to reserve space for a splash-image: cat /proc/mtd dev: size erasesize name mtd0: 00020000 00020000 "u-boot" mtd1: 00020000 00020000 "u-boot var" mtd2: 00200000 00020000 "kernel" mtd3: 01dc0000 00020000 "rootfs" To install the kernel to flash, put the image (images/uImage-xxsvideo-jadeevalkit-0.8.4.bin) to your tftpboot-directory and type on the u-boot console: xxsvideo> set autostart no xxsvideo> tftpboot 0x40500000 uImage-xxsvideo-jadeevalkit-0.8.4.bin xxsvideo> erase 0x10040000 0x1023ffff xxsvideo> cp.b 0x40500000 0x10040000 $(filesize) To install the kernel inside the running linux, do: flashcp --verbose /tmp/uImage /dev/mtd2 ----- I tried to boot the Kernel with the following command: qemu-system-arm -kernel uImage-xxsvideo-jadeevalkit-0.8.5.bin -M integratorcp -nographic And qemu returns with following error message: ----- qemu: fatal: Trying to execute code outside RAM or ROM at 0x40008000 R00=00000000 R01=00000113 R02=00000100 R03=00000000 R04=00000000 R05=00000000 R06=00000000 R07=00000000 R08=00000000 R09=00000000 R10=00000000 R11=00000000 R12=00000000 R13=00000000 R14=00000000 R15=40008000 PSR=400001d3 -Z-- A svc32 s00=00000000( 0) s01=00000000( 0) d00=0000000000000000( 0) [...] ----- How can I boot the kernel, or u-boot? Do I have to patch qemu to support a new machine? In my ideal imagination, I just tell qemu about the jffs2/mtd images/files and specify eventually some memory addresses. How could I do that? Thanks in advance! Comicinker [1] http://sourceforge.net/projects/xxsvideo/ [2] http://www.fujitsu.com/emea/services/microelectronics/gdc/gdcdevices/mb86r01-jade.html -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone