U-Boot 1.3.2-mini2440 (Apr 5 2010 - 08:20:17)I2C: readyDRAM: 64 MBFlash: 2 MBNAND: Bad block table not found for chip 0Bad block table not found for chip 0256 MiB*** Warning - bad CRC or NAND, using default environmentUSB: S3C2410 USB DevicedIn: serialOut: serialErr: serialMAC: 08:08:11:18:12:27Hit any key to stop autoboot: 0MINI2440 # nand badDevice 0 bad blocks:02e20000096c000009aa00000ff800000ffa00000ffc00000ffe0000
MINI2440 # nand scrubNAND scrub: device 0 whole chipWarning: scrub option will erase all factory set bad blocks!There is no reliable way to recover them.Use this command only for testing purposes if youare sure of what you are doing!Really scrub this NAND flash? <y/N>Erasing at 0x2e00000 -- 18% complete.NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5Erasing at 0x9460000 -- 58% complete.NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5Erasing at 0x9980000 -- 60% complete.NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5Erasing at 0xffe0000 -- 100% complete.Bad block table not found for chip 0Bad block table not found for chip 0OK
MINI2440 # nand badDevice 0 bad blocks:02e20000096c000009aa00000ff800000ffa00000ffc00000ffe0000MINI2440 # nand createbbtCreate BBT and erase everything ? <y/N>Skipping bad block at 0x02e20000Skipping bad block at 0x096c0000Skipping bad block at 0x09aa0000Skipping bad block at 0x0ff80000Skipping bad block at 0x0ffa0000Skipping bad block at 0x0ffc0000Skipping bad block at 0x0ffe0000Creating BBT. Please wait ...Bad block table not found for chip 0Bad block table not found for chip 0Bad block table written to 0x0ffe0000, version 0x01Bad block table written to 0x0ffc0000, version 0x01
MINI2440 # nand badDevice 0 bad blocks:02e20000096c000009aa00000ff800000ffa00000ffc00000ffe0000
MINI2440 # setenv ipaddr 10.10.1.150MINI2440 # setenv serverip 10.10.1.138MINI2440 # dynenv set 40000device 0 offset 0x40000, size 0xffc000045 4e 56 30 - 00 00 04 00MINI2440 # saveenvSaving Environment to NAND...Erasing Nand...Writing to Nand... done
MINI2440 # mtdpartsdevice nand0 <mini2440-nand>, # parts = 4#: name size offset mask_flags0: u-boot 0x00040000 0x00000000 01: env 0x00020000 0x00040000 02: kernel 0x00500000 0x00060000 03: root 0x0faa0000 0x00560000 0active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000defaults:mtdids : nand0=mini2440-nandmtdparts: <NULL>MINI2440 # tftp 0x32000000 u-boot-nand2k.binBytes transferred = 241664 (3b000 hex)
MINI2440 # nand write 32000000 0 3b000NAND write: device 0 offset 0x0, size 0x3b000241664 bytes written: OKMINI2440 # tftp 0x32000000 uImage-mini2440.binBytes transferred = 2152540 (20d85c hex)MINI2440 # nand write.e 32000000 kernel 20E000NAND write: device 0 offset 0x60000, size 0x20e000Writing data at 0x26d800 -- 100% complete.2154496 bytes written: OK
MINI2440 # tftp 0x30000000 x11-image.jffs2Bytes transferred = 59506688 (38c0000 hex)MINI2440 # nand write.jffs2 30000000 root 38c0000NAND write: device 0 offset 0x560000, size 0x38c0000Bad block at 0x2e20000 in erase block from 0x2e20000 will be skippedWriting data at 0x3e3f800 -- 100% complete.59506688 bytes written: OKMINI2440 # setenv bootcmd 'nboot.e kernel ; bootm'MINI2440 # saveenvSaving Environment to NAND...Erasing Nand...Writing to Nand... done
MINI2440 # bootLoading from NAND 256MiB 3,3V 8-bit, offset 0x60000Image Name: Angstrom/2.6.31+git/mini2440Created: 2010-03-30 12:46:33 UTCImage Type: ARM Linux Kernel Image (uncompressed)Data Size: 2152476 Bytes = 2.1 MBLoad Address: 30008000Entry Point: 30008000## Booting kernel from Legacy Image at 32000000 ...Image Name: Angstrom/2.6.31+git/mini2440Created: 2010-03-30 12:46:33 UTCImage Type: ARM Linux Kernel Image (uncompressed)Data Size: 2152476 Bytes = 2.1 MBLoad Address: 30008000Entry Point: 30008000Verifying Checksum ... OKLoading Kernel Image ... OKOKStarting kernel ...Uncompressing Linux....................................................................................................................................... done, booting the kernel.Linux version 2.6.31.1 (buildmaster@neger603) (gcc version 4.3.3 (GCC) ) #1 Tue Mar 30 09:41:48 BRT 2010CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177CPU: VIVT data cache, VIVT instruction cacheMachine: MINI2440Memory policy: ECC disabled, Data cache writebackCPU S3C2440A (id 0x32440001)S3C24XX Clocks, (c) 2004 Simtec ElectronicsS3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHzCLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL onBuilt 1 zonelists in Zone order, mobility grouping on. Total pages: 16256Kernel command line: root=/dev/mtdblock3 rootfstype=jffs2 console=ttySAC0,115200PID hash table entries: 256 (order: 8, 1024 bytes)Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 64MB = 64MB totalMemory: 60420KB available (3808K code, 413K data, 120K init, 0K highmem)SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1NR_IRQS:85irq: clearing subpending status 00000003irq: clearing subpending status 00000002Console: colour dummy device 80x30console [ttySAC0] enabledCalibrating delay loop... 201.93 BogoMIPS (lpj=504832)Mount-cache hash table entries: 512CPU: Testing write buffer coherency: okNET: Registered protocol family 16MINI2440: Option string mini2440=0tbMINI2440: LCD [0:240x320] 1:800x480 2:1024x768S3C2440: Initialising architectureS3C2440: IRQ SupportS3C24XX DMA Driver, (c) 2003-2004,2006 Simtec ElectronicsDMA channel 0 at c4808000, irq 33DMA channel 1 at c4808040, irq 34DMA channel 2 at c4808080, irq 35DMA channel 3 at c48080c0, irq 36S3C244X: Clock Support, DVS offbio: create slab <bio-0> at 0usbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbs3c-i2c s3c2440-i2c: slave address 0x10s3c-i2c s3c2440-i2c: bus frequency set to 98 KHzs3c-i2c s3c2440-i2c: i2c-0: S3C I2C adaptercfg80211: Using static regulatory domain infocfg80211: Regulatory domain: US(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)cfg80211: Calling CRDA for country: USNET: Registered protocol family 2IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP established hash table entries: 2048 (order: 2, 16384 bytes)TCP bind hash table entries: 2048 (order: 1, 8192 bytes)TCP: Hash tables configured (established 2048 bind 2048)TCP reno registeredNET: Registered protocol family 1JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.ROMFS MTD (C) 2007 Red Hat, Inc.msgmni has been set to 118alg: No test for stdrng (krng)Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)io scheduler noop registeredio scheduler anticipatory registered (default)io scheduler deadline registeredio scheduler cfq registeredConsole: switching to colour frame buffer device 60x53fb0: s3c2410fb frame buffer deviceleds initializedbuttons initializedpwm initializeds3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440loop: module loadedat24 0-0050: 1024 byte 24c08 EEPROM (writable)dm9000 Ethernet Driver, V1.31eth0: dm9000e at c486e300,c4872304 IRQ 51 MAC: 08:08:11:18:12:27 (chip)usbcore: registered new interface driver rt73usbS3C24XX NAND Driver, (c) 2004 Simtec Electronicss3c24xx-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=2 19nss3c24xx-nand s3c2440-nand: NAND soft ECCNAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":0x000000000000-0x000000040000 : "u-boot"ftl_cs: FTL header not found.0x000000040000-0x000000060000 : "u-boot-env"ftl_cs: FTL header not found.0x000000060000-0x000000560000 : "kernel"ftl_cs: FTL header not found.0x000000560000-0x000010000000 : "root"ftl_cs: FTL header not found.ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Drivers3c2410-ohci s3c2410-ohci: S3C24XX OHCIs3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000usb usb1: configuration #1 chosen from 1 choicehub 1-0:1.0: USB hub foundhub 1-0:1.0: 2 ports detectedusbcore: registered new interface driver cdc_wdmusbcore: registered new interface driver libusuals3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytesmice: PS/2 mouse device common for all miceinput: gpio-keys as /devices/platform/gpio-keys/input/input0s3c2440-ts s3c2440-ts: StartingCreated group ts filter len 12 depth 2 close 10 thresh 6Created Median ts filter len 20 depth 2 dec 24Created Mean ts filter len 4 depth 2 thresh 65535Created Linear ts filter depth 2s3c2440-ts s3c2440-ts: 4 filter(s) initializeds3c2440-ts s3c2440-ts: successfully loadedinput: s3c2410 TouchScreen as /devices/virtual/input/input1S3C24XX RTC, (c) 2004,2006 Simtec Electronicss3c2410-rtc s3c2410-rtc: rtc disabled, re-enablings3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0i2c /dev entries driverS3C2410 Watchdog Timer, (c) 2004 Simtec Electronicss3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabledcpuidle: using governor laddersdhci: Secure Digital Host Controller Interface driversdhci: Copyright(c) Pierre Ossmanmapped channel 0 to 0s3c2440-sdi s3c2440-sdi: powered down.s3c2440-sdi s3c2440-sdi: initialisation done.Registered led device: led1Registered led device: led2Registered led device: led3Registered led device: led4Registered led device: backlightusbcore: registered new interface driver hiddevusbcore: registered new interface driver usbhidusbhid: v2.6:USB HID core driverAdvanced Linux Sound Architecture Driver Version 1.0.20.No device for DAI UDA134XNo device for DAI s3c24xx-i2sS3C24XX_UDA134X SoC Audio driverUDA134X SoC Audio Codecasoc: UDA134X <-> s3c24xx-i2s mapping okALSA device list:#0: S3C24XX_UDA134X (UDA134X)TCP cubic registeredNET: Registered protocol family 17RPC: Registered udp transport module.RPC: Registered tcp transport module.lib80211: common routines for IEEE802.11 driverss3c2410-rtc s3c2410-rtc: setting system clock to 2010-04-05 14:15:39 UTC (1270476939)jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e640: 0x162d insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e644: 0xbfa2 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e648: 0xbf34 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e64c: 0xf692 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e650: 0xf0af insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e654: 0x4ae7 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e658: 0xe4f7 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e65c: 0x4898 insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e660: 0x915c insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e664: 0xe64a insteadFurther such events for this erase block will not be printedjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa6005c: 0xfff3 insteadEmpty flash at 0x0fa60060 ends at 0x0fa6012cjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa6012c: 0xcfff insteadEmpty flash at 0x0fa60130 ends at 0x0fa60134jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa60134: 0xf3ff insteadjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa8005c: 0xfff3 insteadEmpty flash at 0x0fa80060 ends at 0x0fa8012cjffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa8012c: 0xcfff insteadEmpty flash at 0x0fa80130 ends at 0x0fa80134jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa80134: 0xf3ff insteadVFS: Mounted root (jffs2 filesystem) on device 31:3.Freeing init memory: 120KINIT: version 2.86 bootingJFFS2 notice: (39) read_dnode: wrong data CRC in data node at 0x0001dffc: read 0x770dfda4, calculated 0x3d1ad3eb.
> *MINI2440 # nand bad*
>
> Device 0 bad blocks:
> 02e20000
> 096c0000
> 09aa0000
> 0ff80000
> 0ffa0000
> 0ffc0000
> 0ffe0000
>
> *MINI2440 # nand scrub*
>
> NAND scrub: device 0 whole chip
> Warning: scrub option will erase all factory set bad blocks!
> There is no reliable way to recover them.
> Use this command only for testing purposes if you
> are sure of what you are doing!
>
> Really scrub this NAND flash? <y/N>
> Erasing at 0x2e00000 -- 18% complete.
> NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
> Erasing at 0x9460000 -- 58% complete.
> NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
> Erasing at 0x9980000 -- 60% complete.
> NAND 256MiB 3,3V 8-bit: MTD Erase failure: -5
> Erasing at 0xffe0000 -- 100% complete.
> Bad block table not found for chip 0
> Bad block table not found for chip 0
> OK
>
> *MINI2440 # nand bad*
>
> Device 0 bad blocks:
> 02e20000
> 096c0000
> 09aa0000
> 0ff80000
> 0ffa0000
> 0ffc0000
> 0ffe0000
>
> *MINI2440 # nand createbbt*
> Create BBT and erase everything ? <y/N>
> Skipping bad block at 0x02e20000
>
> Skipping bad block at 0x096c0000
>
> Skipping bad block at 0x09aa0000
>
> Skipping bad block at 0x0ff80000
>
> Skipping bad block at 0x0ffa0000
>
> Skipping bad block at 0x0ffc0000
>
> Skipping bad block at 0x0ffe0000
>
> 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 0x0ffe0000, version 0x01
> Bad block table written to 0x0ffc0000, version 0x01
>
> *MINI2440 # nand bad*
>
> Device 0 bad blocks:
> 02e20000
> 096c0000
> 09aa0000
> 0ff80000
> 0ffa0000
> 0ffc0000
> 0ffe0000
>
> *MINI2440 # setenv ipaddr 10.10.1.150*
> *MINI2440 # setenv serverip 10.10.1.138*
> *MINI2440 # dynenv set 40000*
> device 0 offset 0x40000, size 0xffc0000
> 45 4e 56 30 - 00 00 04 00
> *MINI2440 # saveenv*
> Saving Environment to NAND...
> Erasing Nand...Writing to Nand... done
>
> *MINI2440 # mtdparts*
>
> device nand0 <mini2440-nand>, # parts = 4
> #: name size offset mask_flags
> 0: u-boot 0x00040000 0x00000000 0
> 1: env 0x00020000 0x00040000 0
> 2: kernel 0x00500000 0x00060000 0
> 3: root 0x0faa0000 0x00560000 0
>
> active partition: nand0,0 - (u-boot) 0x00040000 @ 0x00000000
>
> defaults:
> mtdids : nand0=mini2440-nand
> mtdparts: <NULL>
>
> *MINI2440 # tftp 0x32000000 u-boot-nand2k.bin*
> Bytes transferred = 241664 (3b000 hex)
>
> *MINI2440 # nand write 32000000 0 3b000*
> NAND write: device 0 offset 0x0, size 0x3b000
> 241664 bytes written: OK
>
> *MINI2440 # tftp 0x32000000 uImage-mini2440.bin*
> Bytes transferred = 2152540 (20d85c hex)
>
> *
> MINI2440 # nand write.e 32000000 kernel 20E000
> NAND write: device 0 offset 0x60000, size 0x20e000
> Writing data at 0x26d800 -- 100% complete.
> 2154496 bytes written: OK
> *
>
> *MINI2440 # tftp 0x30000000 x11-image.jffs2*
> Bytes transferred = 59506688 (38c0000 hex)
>
> *MINI2440 # nand write.jffs2 30000000 root 38c0000*
> NAND write: device 0 offset 0x560000, size 0x38c0000
> Bad block at 0x2e20000 in erase block from 0x2e20000 will be skipped
> Writing data at 0x3e3f800 -- 100% complete.
> 59506688 bytes written: OK
>
> *MINI2440 # setenv bootcmd 'nboot.e kernel ; bootm'*
> *MINI2440 # saveenv *
> Saving Environment to NAND...
> Erasing Nand...Writing to Nand... done
>
> *MINI2440 # boot*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e640:
> 0x162d instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e644:
> 0xbfa2 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e648:
> 0xbf34 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e64c:
> 0xf692 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e650:
> 0xf0af instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e654:
> 0x4ae7 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e658:
> 0xe4f7 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e65c:
> 0x4898 instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e660:
> 0x915c instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0001e664:
> 0xe64a instead*
> *Further such events for this erase block will not be printed*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa6005c:
> 0xfff3 instead*
> *Empty flash at 0x0fa60060 ends at 0x0fa6012c*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa6012c:
> 0xcfff instead*
> *Empty flash at 0x0fa60130 ends at 0x0fa60134*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa60134:
> 0xf3ff instead*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa8005c:
> 0xfff3 instead*
> *Empty flash at 0x0fa80060 ends at 0x0fa8012c*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa8012c:
> 0xcfff instead*
> *Empty flash at 0x0fa80130 ends at 0x0fa80134*
> *jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0fa80134:
> 0xf3ff instead*
> *VFS: Mounted root (jffs2 filesystem) on device 31:3.*
> *Freeing init memory: 120K*
> *INIT: version 2.86 booting*
> *JFFS2 notice: (39) read_dnode: wrong data CRC in data node at 0x0001dffc:
> read 0x770dfda4, calculated 0x3d1ad3eb.*