All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel not booting in QEMU_SYSTEM_MIPS
@ 2010-05-18  4:42 soumyasr
  2010-05-18  5:50 ` adnan iqbal
  0 siblings, 1 reply; 2+ messages in thread
From: soumyasr @ 2010-05-18  4:42 UTC (permalink / raw)
  To: linux-mips


Hi all,

   I am new to qemu as well as mips..

1)   I Downloaded the qemu latest version from
http://wiki.qemu.org/download/qemu-0.12.3.tar.gz and installed it
succesfully....
After that i downladed mips-test-0.2.tar.gz from
http://wiki.qemu.org/download/mips-test-0.2.tar.gz and followed the below
commands to boot the kernel
and root file system ....

$ tar zxvf mips-test-0.2.tar.gz
$ cd mips-test
$ qemu-system-mips -M mips -kernel vmlinux-2.6.18-3-qemu -initrdinitrd.gz

When I run the above command

Qemu is launching and nothing else happen. I don't have any error, but I
don't have prompt... It seems that nothing is booting.. I tried the same
with ARM
instead if mips it boots the kernel, rfs and got the login prompt.. Since i
am not getting any errors i am able to figure out what's the problem is???


2)  I tried to build our own customized kernel using the buildroot by
executing the command :
    $ makemenuconfig

Here is the buildroot configuration  :
- Target Architecture => MIPSEL
- Target architecture variant =>mips I (generic)
- Target ABI => o32
- Target Option => default configuration
- Build option => default configuration
- Toolchain => Include target utils in cross toolchain  and build gdb server
for the target
- Package selection => default configuration
- Target file system => cpio (gzip compression)
- Kernel => Same version as linux header
- config file => .config
- kernel binary format => zImage

  when i run the command make to build the kernel i get the following error
message,

rm -rf /home/soumya/buildroot/output/build/buildroot-config
mkdir -p /home/soumya/buildroot/output/build
cp -dpRf package/config/buildroot-config
/home/soumya/buildroot/output/build/buildroot-config
/usr/bin/make -j1 -C /home/soumya/buildroot/output/toolchain/uClibc-0.9.31 \
                ARCH="mips" \
                PREFIX= \
                DEVEL_PREFIX=/ \
                RUNTIME_PREFIX=/ \
                HOSTCC="/usr/lib/ccache/gcc" \
                all
make[1]: Entering directory
`/home/soumya/buildroot/output/toolchain/uClibc-0.9.31'
  LD ld-uClibc-0.9.31.so
mipsel-unknown-linux-uclibc-gcc: libgcc.a: No such file or directory
make[1]: *** [lib/ld-uClibc.so] Error 1
make[1]: Leaving directory
`/home/soumya/buildroot/output/toolchain/uClibc-0.9.31'
make: *** [/home/soumya/buildroot/output/toolchain/uClibc-0.9.31/lib/libc.a]
Error 2

          Please anybody can help me out to resolve it if I am doing
anything wrong..

Best Regards,
Soumya


-- 
View this message in context: http://old.nabble.com/Kernel-not-booting-in-QEMU_SYSTEM_MIPS-tp28591517p28591517.html
Sent from the linux-mips main mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Kernel not booting in QEMU_SYSTEM_MIPS
  2010-05-18  4:42 Kernel not booting in QEMU_SYSTEM_MIPS soumyasr
@ 2010-05-18  5:50 ` adnan iqbal
  0 siblings, 0 replies; 2+ messages in thread
From: adnan iqbal @ 2010-05-18  5:50 UTC (permalink / raw)
  To: soumyasr; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1928 bytes --]

Dear soumyasr,

Below are some notes form my experience in Qemu and Mips.

---------------------------------------------------------------------------------------------------------------------------------------------------------

This document contains information about how to install qemu on linux and
Mipsel-Linux over Qemu.

Helpful links:
1.
http://www.ibm.com/developerworks/linux/library/l-qemu-development/index.html?S_TACT=105AGX03&S_CMP=HP
2.  http://www.aurel32.net/info/debian_mips_qemu.php

General sequence of installation
    download initrd.gz, already prepared disk image
    create new qemu disk
    install mips-linux on newly created qemu-disk

Command to boot an installed mipsel linux in qemu
    qemu-system-mipsel -M mips -kernel vmlinux-2.6.18-6-qemu -hda hda.img
-append "root=/dev/hda1 console=ttyS0" -nographic

I started with link 1, but mainly followed link 2 to get the working
mipsel-linux combination on qemu.

Notes:
1. the current installation does not have a running network
-- Apt get works fine
-- HTTP (wget, Lynx) does not work

2. Mounting Hard disk that works in both Host/Guest (Done)
    a. Make/download a hard disk img that may work on both host linux and
guest linux (from:
http://blog.famzah.net/2009/11/16/create-a-qemu-image-file-which-you-can-mount-in-both-linux-and-qemu/)
    b. If you want to mount it in host os (linux) then use:
        sudo mount -o loop,offset=32256 empty-ext3-2GB.img /mnt/diskimg
    c. For mounting in qemu guest os use -hdb option at boot time
        qemu-system-mipsel  -k en-us -localtime -M mips -kernel
vmlinux-2.6.18-6-qemu -hda hda.img -hdb empty-ext3-2GB.img -append
"root=/dev/hda1 console=ttyS0" -nographic
        when system boots, hard disk is available , but not mounted. It can
be mounted using
        mount /dev/hdb1 /mnt
    d. Never FORGET to unmount after use, and never use it in other OS when
being used in one.

Regards
Adnan

[-- Attachment #2: Type: text/html, Size: 2433 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-18  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18  4:42 Kernel not booting in QEMU_SYSTEM_MIPS soumyasr
2010-05-18  5:50 ` adnan iqbal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.