Other Parts Discussed in Thread: AM3359, TPS65910, DA8XX
Hi,Sir:
I have the custom board with AM3359. The nand on the board is the H27U4G8F2D from Hynix. The SLC with subpage(4 * 512bytes) support.
The nand spec: - X8: (2K + 64) bytes x 64 pages x 4096 blocks
I create the UBI image like below this:
sudo ./mkfs.ubifs -r rootfs -F -m 2048 -e 126976 -c 812 -o ubifs.img
sudo ./ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 -O 2048 /home/fan/ti-sdk-am335x-evm-06.00.00.00/tools/ubinize.cfg
And I download all the image in the nand with U-boot:
"update=nand erase.chip;mmc rescan;"\
"fatload mmc 0 0x82000000 MLO; nand write 0x82000000 0 ${filesize};"\
"fatload mmc 0 0x82000000 u-boot.img;"\
"nand write 0x82000000 0x80000 ${filesize};"\
"fatload mmc 0 0x82000000 uImage;"\
"nand write 0x82000000 0x280000 ${filesize};"\
"fatload mmc 0 0x82000000 ubi.img;"\
"nand write 0x82000000 0x780000 ${filesize}\0"\
But from the kernel booting,it can not mount the UBI fs:
The boot log is :
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.08.11 14:17:55 =~=~=~=~=~=~=~=~=~=~=~=
CCCCCCCC
U-Boot SPL 2013.01.01 (Aug 07 2014 - 20:08:33)
Incorrect magic number (0xffffffff) in EEPROM
Could not get board ID.
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
U-Boot 2013.01.01 (Aug 07 2014 - 20:08:33)
I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
Incorrect magic number (0xffffffff) in EEPROM
Could not get board ID.
NAND: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net: <ethaddr> not set. Validating first E-fuse MAC
PHY reset timed out
cpsw, usb_ether
Hit any key to stop autoboot: 2 1 0
Card did not respond to voltage select!
mmc0(part 0) is current device
Card did not respond to voltage select!
Booting from nand ...
NAND read: device 0 offset 0x280000, size 0x500000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.2.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3189792 Bytes = 3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (fan@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #21 Thu Aug 7 19:54:25 PDT 2014
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513180k/513180k available, 11108k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0596000 (5688 kB)
[ 0.000000] .init : 0xc0596000 - 0xc05d1000 ( 236 kB)
[ 0.000000] .data : 0xc05d2000 - 0xc063b3b0 ( 421 kB)
[ 0.000000] .bss : 0xc063b3d4 - 0xc066a1a4 ( 188 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 25000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.058959] pid_max: default: 32768 minimum: 301
[ 0.059082] Security Framework initialized
[ 0.059173] Mount-cache hash table entries: 512
[ 0.059570] CPU: Testing write buffer coherency: ok
[ 0.079803] omap_hwmod: pruss: failed to hardreset
[ 0.080902] print_constraints: dummy:
[ 0.081268] NET: Registered protocol family 16
[ 0.083435] OMAP GPIO hardware version 0.1
[ 0.086029] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.087829] omap_i2c.1: alias fck already exists
[ 0.088653] omap2_mcspi.1: alias fck already exists
[ 0.088867] omap2_mcspi.2: alias fck already exists
[ 0.089874] edma.0: alias fck already exists
[ 0.089874] edma.0: alias fck already exists
[ 0.089904] edma.0: alias fck already exists
[ 0.116546] bio: create slab <bio-0> at 0
[ 0.118743] SCSI subsystem initialized
[ 0.120422] usbcore: registered new interface driver usbfs
[ 0.120727] usbcore: registered new interface driver hub
[ 0.120941] usbcore: registered new device driver usb
[ 0.121246] registerd cppi-dma Intr @ IRQ 17
[ 0.121246] Cppi41 Init Done Qmgr-base(e087a000) dma-base(e0878000)
[ 0.121246] Cppi41 Init Done
[ 0.121276] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
[ 0.121582] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
[ 0.122741] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.124572] tps65910 1-002d: JTAGREVNUM 0x0
[ 0.126953] print_constraints: VRTC:
[ 0.128387] print_constraints: VIO: at 1500 mV
[ 0.130706] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.132995] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.134002] print_constraints: VDD3: 5000 mV
[ 0.135406] print_constraints: VDIG1: at 1800 mV
[ 0.136810] print_constraints: VDIG2: at 1800 mV
[ 0.138244] print_constraints: VPLL: at 1800 mV
[ 0.139678] print_constraints: VDAC: at 1800 mV
[ 0.141082] print_constraints: VAUX1: at 1800 mV
[ 0.142517] print_constraints: VAUX2: at 3300 mV
[ 0.143920] print_constraints: VAUX33: at 3300 mV
[ 0.145355] print_constraints: VMMC: at 3300 mV
[ 0.145874] tps65910 1-002d: No interrupt support, no core IRQ
[ 0.147247] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.148406] Switching to clocksource gp timer
[ 0.163818] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.164001] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.164306] MUSB0 controller's USBSS revision = 4ea20800
[ 0.165222] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using DMA, IRQ 18
[ 0.165405] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.165679] MUSB1 controller's USBSS revision = 4ea20800
[ 0.166137] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.166229] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 0.166351] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.166381] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.166381] usb usb1: Product: MUSB HDRC host driver
[ 0.166381] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[ 0.166412] usb usb1: SerialNumber: musb-hdrc.1
[ 0.167205] hub 1-0:1.0: USB hub found
[ 0.167236] hub 1-0:1.0: 1 port detected
[ 0.167785] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using DMA, IRQ 19
[ 0.168212] NET: Registered protocol family 2
[ 0.168487] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.168792] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.169097] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.169250] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.169281] TCP reno registered
[ 0.169281] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.169311] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.169494] NET: Registered protocol family 1
[ 0.169769] RPC: Registered named UNIX socket transport module.
[ 0.169769] RPC: Registered udp transport module.
[ 0.169769] RPC: Registered tcp transport module.
[ 0.169799] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.170043] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.189483] VFS: Disk quotas dquot_6.5.2
[ 0.189544] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.190063] msgmni has been set to 1002
[ 0.193206] alg: No test for stdrng (krng)
[ 0.193847] io scheduler noop registered
[ 0.193878] io scheduler deadline registered
[ 0.193939] io scheduler cfq registered (default)
[ 0.195129] Could not set LED4 to fully on
[ 0.196868] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.840179] console [ttyO0] enabled
[ 0.844451] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.852294] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.860107] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.867858] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.875640] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.883941] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 0.900299] brd: module loaded
[ 0.908264] loop: module loaded
[ 0.911773] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.918212] i2c-core: driver [tsl2550] using legacy resume method
[ 0.924652] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.988983] No daughter card found
[ 0.992553] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.001922] The board is general purpose EVM in profile 0
[ 1.008483] da8xx_lcdc.0: alias fck already exists
[ 1.014038] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
[ 1.032440] Console: switching to colour frame buffer device 100x30
[ 1.046264] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 1.051300] Registering NAND on CS0
[ 1.055877] omap_hsmmc.0: alias fck already exists
[ 1.065521] registered am33xx_sr device
[ 1.072113] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.079437] omap2-nand driver initializing
[ 1.084045] ONFI flash detected
[ 1.087463] ONFI param page 0 valid
[ 1.091125] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix H27U4G8F2DTR-BC)
[ 1.099517] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.105072] 0x000000000000-0x000000020000 : "SPL"
[ 1.111511] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.118377] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.125274] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.132171] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.139373] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.146148] 0x000000280000-0x000000780000 : "Kernel"
[ 1.154663] 0x000000780000-0x000020000000 : "File System"
[ 1.370788] OneNAND driver initializing
[ 1.375549] UBI: attaching mtd7 to ubi0
[ 1.379577] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.386138] UBI: logical eraseblock size: 126976 bytes
[ 1.391754] UBI: smallest flash I/O unit: 2048
[ 1.396667] UBI: VID header offset: 2048 (aligned 2048)
[ 1.402954] UBI: data offset: 4096
[ 4.669830] UBI: max. sequence number: 21
[ 4.693847] UBI: attached mtd7 to ubi0
[ 4.697753] UBI: MTD device name: "File System"
[ 4.703552] UBI: MTD device size: 504 MiB
[ 4.708709] UBI: number of good PEBs: 4034
[ 4.713623] UBI: number of bad PEBs: 2
[ 4.718261] UBI: number of corrupted PEBs: 0
[ 4.722900] UBI: max. allowed volumes: 128
[ 4.727722] UBI: wear-leveling threshold: 4096
[ 4.732635] UBI: number of internal volumes: 1
[ 4.737274] UBI: number of user volumes: 1
[ 4.741882] UBI: available PEBs: 0
[ 4.746520] UBI: total number of reserved PEBs: 4034
[ 4.751708] UBI: number of PEBs reserved for bad PEB handling: 40
[ 4.758056] UBI: max/mean erase counter: 1/0
[ 4.762512] UBI: image sequence number: 1395339475
[ 4.767730] UBI: background thread "ubi_bgt0d" started, PID 600
[ 4.779571] CAN device driver interface
[ 4.783569] CAN bus driver for Bosch D_CAN controller 1.0
[ 4.859436] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 4.865905] davinci_mdio davinci_mdio.0: detected phy mask ffffffef
[ 4.889282] davinci_mdio.0: probed
[ 4.892852] davinci_mdio davinci_mdio.0: phy[4]: device 0:04, driver unknown
[ 4.909515] usbcore: registered new interface driver zd1201
[ 4.919128] usbcore: registered new interface driver cdc_ether
[ 4.939056] usbcore: registered new interface driver cdc_eem
[ 4.945098] usbcore: registered new interface driver dm9601
[ 4.950988] cdc_ncm: 04-Aug-2011
[ 4.969055] usbcore: registered new interface driver cdc_ncm
[ 4.974945] Initializing USB Mass Storage driver...
[ 4.989135] usbcore: registered new interface driver usb-storage
[ 4.995391] USB Mass Storage support registered.
[ 5.009338] mousedev: PS/2 mouse device common for all mice
[ 5.029785] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 5.050140] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 5.057342] i2c /dev entries driver
[ 5.069366] Linux video capture interface: v2.00
[ 5.079345] usbcore: registered new interface driver uvcvideo
[ 5.085327] USB Video Class driver (1.1.1)
[ 5.209442] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 5.229461] cpuidle: using governor ladder
[ 5.239257] cpuidle: using governor menu
[ 5.269409] omap4_aes_mod_init: loading AM33X AES driver
[ 5.275085] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 5.289520] omap4_aes_probe: probe() done
[ 5.295013] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 5.301177] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 5.379699] omap4_sham_probe: probe() done
[ 5.419433] usbcore: registered new interface driver usbhid
[ 5.425262] usbhid: USB HID core driver
[ 5.439605] tiadc tiadc: attached adc driver
[ 5.449157] usbcore: registered new interface driver snd-usb-audio
[ 5.470245] ALSA device list:
[ 5.473358] No soundcards found.
[ 5.476898] oprofile: hardware counters not available
[ 5.482177] oprofile: using timer interrupt.
[ 5.486663] nf_conntrack version 0.5.0 (8018 buckets, 32072 max)
[ 5.493469] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.499176] TCP cubic registered
[ 5.502532] NET: Registered protocol family 17
[ 5.507171] can: controller area network core (rev 20090105 abi 8)
[ 5.513732] NET: Registered protocol family 29
[ 5.518371] can: raw protocol (rev 20090105)
[ 5.522827] can: broadcast manager protocol (rev 20090105 t)
[ 5.528778] Registering the dns_resolver key type
[ 5.533782] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 5.541809] ThumbEE CPU extension supported.
[ 5.546295] mux: Failed to setup hwmod io irq -22
[ 5.551910] Power Management for AM33XX family
[ 5.556762] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 5.563446] Copied the M3 firmware to UMEM
[ 5.567810] Cortex M3 Firmware Version = 0x181
[ 5.680603] create_regulator: VDD1: Failed to create debugfs directory
[ 5.700347] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 5.743011] clock: disabling unused clocks to save power
[ 6.009582] Detected MACID=78:c5:e5:76:9d:e3
[ 6.015197] cpsw: Detected MACID = 78:c5:e5:76:9d:e4
[ 6.030426] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 6.049560] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 6.161224] UBIFS: start fixing up free space
[ 7.256011] Unable to handle kernel paging request at virtual address bebdc008
[ 7.263580] pgd = c0004000
[ 7.266418] [bebdc008] *pgd=00000000
[ 7.270141] Internal error: Oops: 805 [#1]
[ 7.274414] Modules linked in:
[ 7.277618] CPU: 0 Not tainted (3.2.0 #21)
[ 7.282257] PC is at ltree_add_entry+0xa0/0x100
[ 7.287017] LR is at ubi_eba_atomic_leb_change+0x1cc/0x368
[ 7.292724] pc : [<c0266a34>] lr : [<c0267a3c>] psr: 40000033
[ 7.292724] sp : df02dcb8 ip : df02dc58 fp : df02dd2c
[ 7.304718] r10: 00000000 r9 : 000001fc r8 : 00000000
[ 7.310180] r7 : df5c4400 r6 : 0000001a r5 : df3db800 r4 : 00000000
[ 7.316986] r3 : 00000000 r2 : 0000001a r1 : 00000000 r0 : df5ee004
[ 7.323791] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment kernel
[ 7.331604] Control: 10c5387d Table: 80004019 DAC: 00000015
[ 7.337615] Process swapper (pid: 1, stack limit = 0xdf02c2f0)
[ 7.343688] Stack: (0xdf02dcb8 to 0xdf02e000)
[ 7.348236]