[Bug 937] Qemu doens't want to flash images

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Fri Nov 2 03:23:49 CET 2007


------- Additional Comments From pochun.hsu at gmail.com  2007-11-02 03:23 -------
Hi everyone,
I found that in $HOME/moko/build/qemu/openmoko/flash.sh at line 82.
If you use vi to open this file.
you can type :set list to show tab as ^I and newline as $.

Originally, line 82 looks like that
^Iemu $1 <<< "                $
there are a lot of spaces between " and $
So, I remove these spaces that makes line 82 looks like this
^Iemu $1 <<< "$ 

Then, I found that the possibility to successfully execute 'make
flash-qemu-local' or 'make flash-qemu-official' is raised.

So, after I removed the garbage spaces and execute 'make flash-qemu-offical'
successfully. It shows me the following message:

All done.

    Read the qemu manual and use a commandline like the following to boot:
 $ arm-softmmu/qemu-system-arm -M neo -m 130 -mtdblock
openmoko/openmoko-flash.image -kernel openmoko/openmoko-kernel.bin -usb -show-cursor

    Append '-snapshot' to make the flash image read-only so that every
    time emulation starts in the original unmodified state.
    Use [Enter] for AUX button, [Space] for POWER.
    Append '-usbdevice keyboard' to attach a standard keyboard.
    If you've configured qemu with --enable-phonesim (requieres Qt4 and
    a C++ toolchain), use the following commandline to run phonesim:
 $ (cd phonesim; LD_LIBRARY_PATH=lib ./phonesim -gui ../openmoko/neo1973.xml)&
    The GUI is optional. When phonesim is running, append
    '-serial tcp:localhost:12345' to qemu invocation. Security
    note a la GLSA: phonesim listens on

But things seems not done!

Even 'make flash-qemu-official' is successful, 'make run-qemu' still have problems.

qemu shows me that:

U-Boot 1.2.0-moko8_r0 (Aug 19 2007 - 19:17:12)

*** BOOT MENU ***

   Set console to USB
   Set condole to serial
   Power off
   Factory reset

Press [AUX] to select, [Power] to execute.

Then when I select Boot to execute, it always fail.

NAND read: device 0 offset 0x54000, size 0x208000

Reading data from 0x25be00 --100% complete.
2129920 bytes read:OK
##Booting image at 32000000 ...
Bad Magic Number

Press [AUX] to return to boot menu.


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the buglog mailing list