root@rplinux-desktop:/root/openmoko/qemu-neo1973# openmoko/flash.sh
/usr/bin/pngtopnm
/usr/bin/ppmtorgb3
make: “splash.gz”is the newest
ls: /root/openmoko/qemu-neo1973/openmoko/uImage-2.6.*-neo1973.bin: No such file or directory
basename: lack of operand
For more information,try‘basename --help’
Using '' as the kernel image.
Using 'OpenMoko-openmoko-devel-image-glibc-P1-August-Snapshot-20070819-fic-gta01.rootfs.jffs2' as the root filesystem image.
Using 'u-boot-gta01bv4-1.2.0+git8993e54b6f397973794f3d6f47d3b3c0c98dd4f6+svn20070819-r0.bin' as bootloader.
# Making an empty/erased flash image.  Need a correct echo behavior.
echo -en \\0377\\0377\\0377\\0377\\0377\\0377\\0377\\0377 > .8b
cat .8b .8b > .16b # OOB is 16 bytes
cat .16b .16b .16b .16b .16b .16b .16b .16b > .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .16b .16b .16b .16b .16b .16b .16b .16b >> .512b
cat .512b .16b > .sec # A sector is 512 bytes of data + OOB
cat .sec .sec .sec .sec .sec .sec .sec .sec > .8sec
cat .8sec .8sec .8sec .8sec .8sec .8sec .8sec .8sec > .64sec
cat .64sec .64sec .64sec .64sec .64sec .64sec .64sec .64sec > .512sec
cat .512sec .512sec .512sec .512sec > .2ksec
cat .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec .2ksec > .16ksec
# Neo NAND is 128k sectors big
cat .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec .16ksec > openmoko-flash.base
rm -rf .8b .16b .512b .sec .8sec .64sec .512sec .2ksec .16ksec
Please wait, programming the NAND flash...
neo_gsm_switch: GSM disabled.


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

DRAM:  128 MB
NAND:  Bad block table not found for chip 0
Bad block table not found for chip 0
64 MiB
*** Warning - bad CRC or NAND, using default environment

Video: 640x480x8 31kHz 59Hz


USB:   S3C2410 USB Deviced
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
In:    serial
Out:   serial
Err:   serial
pcf_write: charging in Qualification Mode.
pcf_write: charge voltage 4.20V.
neo_lcd_rst_switch: LCD reset.
jbt6k74_command: Display on.
neo_vib_switch: Buzz, buzz.
neo_vib_switch: Vibrator stopped.
neo_bl_switch: LCD Backlight now on.
GTA01Bv4 #
GTA01Bv4 #
GTA01Bv4 # setenv dontask y
GTA01Bv4 # nand createbbt
Create BBT and erase everything ? <y/N>
Skipping bad block at  0x03ff0000
Skipping bad block at  0x03ff4000
Skipping bad block at  0x03ff8000
Skipping bad block at  0x03ffc000

Creating BBT. Please wait ...Bad block table not found for chip 0
Bad block table not found for chip 0
Bad block table written to 0x03ffc000, version 0x01
Bad block table written to 0x03ff8000, version 0x01

GTA01Bv4 # setenv bootcmd 'setenv bootargs ${bootargs_base} ${mtdparts}; bootm 0x31000000'
GTA01Bv4 # setenv menu_1 'Set console to USB: setenv stdin usbtty; setenv stdout usbtty; setenv stderr usbtty'
GTA01Bv4 # setenv menu_2 'Set console to serial: setenv stdin serial; setenv stdout serial; setenv stderr serial'
GTA01Bv4 # setenv menu_3 'Power off: neo1973 power-off'
GTA01Bv4 # setenv splashimage 'nand read.e 0x36000000 splash 0x5000; unzip 0x36000000 0x33d00000 0x96000'
GTA01Bv4 # setenv mtdids nand0=neo1973-nand
GTA01Bv4 # setenv mtdparts mtdparts=neo1973-nand:0x00050000(u-boot),0x00004000(u-boot_env),0x00208000(kernel),0x00010000(splash),0x039a4000(rootfs)
GTA01Bv4 # #dynpart
Unknown command '#dynpart' - try 'help'
GTA01Bv4 # nand write.e 0x31000000 u-boot 0x33660

NAND write: device 0 offset 0x0, size 0x33660

Writing data at 0x33600 -- 100% complete.


 210528 bytes written: OK
GTA01Bv4 # dynenv set u-boot_env
device 0 offset 0x50000, size 0x4000
45 4e 56 30 - 00 00 05 00
GTA01Bv4 # saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
GTA01Bv4 # neo1973 power-off
poweroff
pcf_write: Power-off requested.
openmoko/flash.sh: line 114: 30382 已终止               ( sleep $2; kill $pid; sleep 1; kill -KILL $pid )  (wd: /root/openmoko/qemu-neo1973)
Please wait, programming the NAND flash...
neo_gsm_switch: GSM disabled.


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

DRAM:  128 MB
NAND:  64 MiB
Found Environment offset in OOB..
Video: 640x480x8 31kHz 59Hz

NAND read: device 0 offset 0x25c000, size 0x5000

Reading data from 0x260e00 -- 100% complete.
 20480 bytes read: OK
Error: Bad gzipped data
USB:   S3C2410 USB Deviced
In:    serial
Out:   serial
Err:   serial
pcf_write: charging in Qualification Mode.
pcf_write: charge voltage 4.20V.
neo_lcd_rst_switch: LCD reset.
jbt6k74_command: Display on.
neo_vib_switch: Buzz, buzz.
neo_vib_switch: Vibrator stopped.
neo_bl_switch: LCD Backlight now on.
GTA01Bv4 #
GTA01Bv4 #
GTA01Bv4 # nand write.e 0x31000000 splash 0x5000

NAND write: device 0 offset 0x25c000, size 0x5000

Writing data at 0x260e00 -- 100% complete.
 20480 bytes written: OK
GTA01Bv4 # neo1973 power-off
poweroff
pcf_write: Power-off requested.
Please wait, programming the NAND flash...
sleep: invalid time interval ‘nand’
sleep: invalid time interval ‘write.e’
sleep: invalid time interval ‘kernel’
For more information, try ‘sleep --help’

openmoko/flash.sh: line 88: 30385 terminaled               ( sleep $2; kill $pid; sleep 1; kill -KILL $pid )
openmoko/flash.sh: line 88: 30387 terminaled               $qemu -mtdblock "$script_dir/$flash_base" -kernel "$script_dir/$1" -serial stdio -nographic -usb -monitor null 0<&0


U-boot failed to finish writing in nand write.e 0x31000000 kernel 0x1000 seconds, giving up.
