qemu emulator for the mini2440

LeshaK
Posts: 35
Joined: Wed Jan 14, 2009 1:01 am

Re: qemu emulator for the mini2440

Post by LeshaK » Mon Mar 02, 2009 12:09 am

I have error then I run your ru-script
I made a little modification - add -nographic, and:

Code: Select all

root@leshak-dev2:/home/-qemu/mini2440/mini2440# Starting in .
./mini2440_start.sh: line 14: [: missing `]'
./../arm-softmmu/qemu-system-arm -nographic -M mini2440 -m 66 -semihosting -serial stdio -kernel /opt/share/tftp/uImage -mtdblock ./mini2440_nand.bin -show-cursor -usb -usbdevice keyboard -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 -monitor unix:.mini2440_monitor,server,nowait
s3c_mmci_cardirq: level 0 (control 0000)
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
mini2440_reset: loaded default u-boot (size 0)
mini2440_reset: loaded /opt/share/tftp/uImage (size 18d800)
qemu: fatal: Trying to execute code outside RAM or ROM at 0x34000000

R00=00000000 R01=00000000 R02=00000000 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=34000000
PSR=400001d3 -Z-- A svc32
./mini2440_start.sh: line 38: 29711 Aborted                 $cmd
may be error in: u-boot (size 0) ?
My qq2440 page
Sorry, it's russian, but you can use http://translate.google.com/ (ru > en/...)

buserror
Posts: 92
Joined: Thu Jan 22, 2009 12:28 am

Re: qemu emulator for the mini2440

Post by buserror » Mon Mar 02, 2009 12:39 am

Yes sorry, the u-boot.bin needs to be moved into the mini2440/ subdirectory (with the script)

Otherwise -nographic works, I used it.

LeshaK
Posts: 35
Joined: Wed Jan 14, 2009 1:01 am

Re: qemu emulator for the mini2440

Post by LeshaK » Mon Mar 02, 2009 12:46 am

I moved, but:

Code: Select all

root@leshak-dev2:/home/-qemu/mini2440/mini2440# ls
mini2440_nand.bin  mini2440_start.sh  u-boot.bin
root@leshak-dev2:/home/-qemu/mini2440/mini2440# ./mini2440_start.sh
Starting in .
./mini2440_start.sh: line 14: [: missing `]'
./../arm-softmmu/qemu-system-arm -nographic -M mini2440 -m 66 -semihosting -serial stdio -kernel /opt/share/tftp/uImage -mtdblock ./mini2440_nand.bin -show-cursor -usb -usbdevice keyboard -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 -monitor unix:.mini2440_monitor,server,nowait
s3c_mmci_cardirq: level 0 (control 0000)
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
mini2440_reset: loaded default u-boot (size 0)
mini2440_reset: loaded /opt/share/tftp/uImage (size 18d800)
qemu: fatal: Trying to execute code outside RAM or ROM at 0x34000000

R00=00000000 R01=00000000 R02=00000000 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=34000000
PSR=400001d3 -Z-- A svc32
./mini2440_start.sh: line 38: 29802 Aborted                 $cmd
My qq2440 page
Sorry, it's russian, but you can use http://translate.google.com/ (ru > en/...)

buserror
Posts: 92
Joined: Thu Jan 22, 2009 12:28 am

Re: qemu emulator for the mini2440

Post by buserror » Mon Mar 02, 2009 12:58 am

Hmm try launching the script from the qemu directory:

./mini2440/mini2440_start.sh

Thats how I used it, I haven't tried anything else. Sorry thats the last thing I;m interested in, shell scripts :D You can fix the script and make it better if you like :D

(the code that loads u-boot.bin is in hw/mini2440.c, near the bottom)

LeshaK
Posts: 35
Joined: Wed Jan 14, 2009 1:01 am

Re: qemu emulator for the mini2440

Post by LeshaK » Mon Mar 02, 2009 1:59 am

Thanks,
everything - ok! :)
My qq2440 page
Sorry, it's russian, but you can use http://translate.google.com/ (ru > en/...)

buserror
Posts: 92
Joined: Thu Jan 22, 2009 12:28 am

Re: qemu emulator for the mini2440

Post by buserror » Mon Mar 02, 2009 10:12 am

So you like it ? works for you ?

I created a Blog too, so I don't have to post here (private forum, waste of my time) http://bliterness.blogspot.com/

I also created a new google code page, you can join if you like ! http://code.google.com/p/mini2440/

It has a wiki, space for binaries etc etc...

dbrazeau

Re: qemu emulator for the mini2440

Post by dbrazeau » Mon Mar 02, 2009 4:33 pm

This is probably a simple question but how do you create the mini2440_nand.bin and mini2440_sd.img. I only see the uImage when I build the kernel.

Thanks.

buserror
Posts: 92
Joined: Thu Jan 22, 2009 12:28 am

Re: qemu emulator for the mini2440

Post by buserror » Mon Mar 02, 2009 4:51 pm

the new script /should/ create a nand file if not present (just a dd) it's a good idea to "nand scrub" it the first time, using u-boot.

the _sd file can be created with "qemu-img" ...
OR it can be any directory if you pass the argument like -sd fat:/some_directory

If you create the qemu-img, it will be empty, you will have to partition/populate it from inside a running qemu..

dbrazeau

Re: qemu emulator for the mini2440

Post by dbrazeau » Mon Mar 02, 2009 7:00 pm

First of all I would like to thank you for the help as I'm a bit of a newbie. I am trying to boot via nfs root but am getting this:

------------------------------------------------------------------------------------------------------------------------
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
mini2440_reset: loaded default u-boot (size 30400)
mini2440_reset: loaded ./mini2440/uImage (size 25c200)

U-Boot 1.3.2-moko12 (Feb 28 2009 - 14:19:41)

I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 64 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
MAC: 08:08:11:18:12:27
Hit any key to stop autoboot: 0
MINI2440 # nfs
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
*** Warning: no boot file name; using '/nfsroot/0A00006F.img'
File transfer via NFS from server 10.0.0.4; our IP address is 10.0.0.111
Filename '/nfsroot/0A00006F.img'.
Load address: 0x32000000
Loading: *
ARP Retry count exceeded; starting again

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

also for the sd boot when you say it can be any directory if you pass the argument like -sd fat:/some_directory, what do you need the "some_directory" for it to work, just the basic linux fs?

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests