:-( nothing changes....
1.create a nand flash, with all 0xff filled..
prife@smart:~/work$ ./creatNand.py
prife@smart:~/work$ ls -lh u-boot.nand
-rw-rw-r-- 1 prife prife 132M 7月 11 03:33 u-boot.nand (128M nand flash, 1page = 2048+64)
2.copy the u-boot.bin to nand flash .
prife@smart:~/work$ ./mkuboot.py
3. run qemu
prife@smart:~/work$ qemu -M mini2440 -mtdblock u-boot.nand -serial stdio
mini2440_init: Boot mode: NAND
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded default u-boot from NAND
QEMU mini2440_reset: loaded override u-boot (size 3b400)
浮点数例外 (核心已转储), while in Chinese it means " floating point exception(the core has been dumped")
retry, well, this time it works...,
prife@smart:~/work$ qemu -M mini2440 -mtdblock u-boot.nand -serial stdio
mini2440_init: Boot mode: NAND
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded default u-boot from NAND
QEMU mini2440_reset: loaded override u-boot (size 3b400)
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=48
S3C: CLK=304 HCLK=304 PCLK=304 UCLK=48
S3C: CLK=304 HCLK=101 PCLK=50 UCLK=48
S3C: CLK=304 HCLK=76 PCLK=38 UCLK=48
S3C: CLK=304 HCLK=76 PCLK=38 UCLK=48
S3C: CLK=405 HCLK=101 PCLK=50 UCLK=48
U-Boot 1.3.2-mini2440 (Oct 6 2009 - 12:51:09)
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: Bad block table not found for chip 0
Bad block table not found for chip 0
128 MiB
*** Warning - bad CRC or NAND, using default environment
USB: S3C2410 USB Deviced
In: serial
Out: serial
Err: serial
MAC: 08:08:11:18:12:27
Hit any key to stop autoboot: 0
MINI2440 #
MINI2440 #
MINI2440 #
" floating point exception(the core has been dumped")
this errors is often occurred, is there anyone who can fixed it??