This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
we are using AM335x EVM , with in that i have tried to boot using NAND flash with ubifs flash file system, but it shows ECC error, i am using ti-sdk 7.0 and i have also checked both the u-boot and kernels ECC scheme and it was "OMAP_ECC_BCH8_CODE_HW", the ubifs file system was ti provided in the SDK.
By seeing the log can any please let me know where i am going wrong,
The process that i have followed for flashing NAND was,
#nand erase.chip
#fatload mmc 0 0x81000000 MLO
#nand write 0x81000000 0x0 0x80000
#fatload mmc 0 0x81000000 am335x-evm.dtb
#nand write 0x81000000 0x80000 0x40000
#fatload mmc 0 0x81000000 u-boot.img
#nand write 0x81000000 0xc0000 0x100000
#fatload mmc 0 0x81000000 zImage
#nand write 0x81000000 0x00200000 0x500000
#mw.b 0x81000000 0xFF 0x1f50000
#fatload mmc 0 0x81000000 base.ubi
#nand write 0x81000000 0xa00000 0x1f50000
And my MTD partition list was
device nand0 <nand.0>, # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00020000 0x00000000 0
1: NAND.SPL.backup1 0x00020000 0x00020000 0
2: NAND.SPL.backup2 0x00020000 0x00040000 0
3: NAND.SPL.backup3 0x00020000 0x00060000 0
4: NAND.u-boot-spl-os 0x00040000 0x00080000 0
5: NAND.u-boot 0x00100000 0x000c0000 0
6: NAND.u-boot-env 0x00020000 0x001c0000 0
7: NAND.u-boot-env.backup10x00020000 0x001e0000 0
8: NAND.kernel 0x00800000 0x00200000 0
9: NAND.rootfs 0x0f600000 0x00a00000 0
And the error log was,
U-Boot SPL 2013.10-00189-g78d8ebd-dirty (May 23 2014 - 16:42:16)
The Expected Linux image was not found. Please check your NAND configuration.
Trying to start u-boot now...
U-Boot 2013.10-00189-g78d8ebd (May 23 2014 - 16:33:52)
I2C: ready
DRAM: 512 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc0(part 0) is current device
Scanning mmc 0...
Card did not respond to voltage select!
** Bad device mmc 0 **
Card did not respond to voltage select!
mmc0(part 0) is current device
Card did not respond to voltage select!
Card did not respond to voltage select!
mmc1(part 0) is current device
Card did not respond to voltage select!
Booting from nand ...
NAND read: device 0 offset 0x80000, size 0x40000
262144 bytes read: OK
NAND read: device 0 offset 0x200000, size 0x800000
8388608 bytes read: OK
Kernel image @ 0x80200000 [ 0x000000 - 0x3ed460 ]
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Loading Device Tree to 9f31f000, end 9f32c25b ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.10-ti2013.12.01 (stesalit@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Mon May 12 04:19:32 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: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM
[ 0.000000] cma: CMA: reserved 24 MiB at 9d800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129280
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
[ 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: 483332K/521216K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 37884K 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc074a04c (7433 kB)
[ 0.000000] .init : 0xc074b000 - 0xc07a15f0 ( 346 kB)
[ 0.000000] .data : 0xc07a2000 - 0xc082ddd8 ( 560 kB)
[ 0.000000] .bss : 0xc082ddd8 - 0xc0866400 ( 226 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 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: timer2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000323] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[ 0.119716] pid_max: default: 32768 minimum: 301
[ 0.119825] Security Framework initialized
[ 0.119877] Mount-cache hash table entries: 512
[ 0.129073] CPU: Testing write buffer coherency: ok
[ 0.129496] Setting up static identity map for 0xc0572e68 - 0xc0572ed8
[ 0.130480] devtmpfs: initialized
[ 0.132229] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.194629] omap_hwmod: debugss: _wait_target_disable failed
[ 0.195365] pinctrl core: initialized pinctrl subsystem
[ 0.196244] regulator-dummy: no parameters
[ 0.198749] NET: Registered protocol family 16
[ 0.201152] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.203820] cpuidle: using governor ladder
[ 0.203838] cpuidle: using governor menu
[ 0.212618] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.213736] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.215001] OMAP GPIO hardware version 0.1
[ 0.224504] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
[ 0.224538] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[ 0.224925] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.228975] DSS not supported on this SoC
[ 0.228995] No ATAGs?
[ 0.229006] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.253396] bio: create slab <bio-0> at 0
[ 0.268290] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.269196] vbat: 5000 mV
[ 0.269598] lis3_reg: no parameters
[ 0.270115] wlan-en-regulator: 1800 mV
[ 0.273411] vgaarb: loaded
[ 0.274713] SCSI subsystem initialized
[ 0.276078] usbcore: registered new interface driver usbfs
[ 0.276266] usbcore: registered new interface driver hub
[ 0.276475] usbcore: registered new device driver usb
[ 0.277481] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[ 0.277511] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[ 0.277539] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
[ 0.277555] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
[ 0.277806] media: Linux media interface: v0.10
[ 0.277989] Linux video capture interface: v2.00
[ 0.278267] pps_core: LinuxPPS API ver. 1 registered
[ 0.278277] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.278411] PTP clock support registered
[ 0.281112] Switched to clocksource timer1
[ 0.300068] NET: Registered protocol family 2
[ 0.300731] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.300824] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.300876] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.300957] TCP: reno registered
[ 0.300971] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300992] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.301282] NET: Registered protocol family 1
[ 0.301687] RPC: Registered named UNIX socket transport module.
[ 0.301699] RPC: Registered udp transport module.
[ 0.301706] RPC: Registered tcp transport module.
[ 0.301714] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.302711] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.303400] PM: Loading am335x-pm-firmware.bin
[ 0.459816] VFS: Disk quotas dquot_6.5.2
[ 0.459892] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.460535] NFS: Registering the id_resolver key type
[ 0.460634] Key type id_resolver registered
[ 0.460643] Key type id_legacy registered
[ 0.460693] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.460876] msgmni has been set to 992
[ 0.462599] NET: Registered protocol family 38
[ 0.462642] io scheduler noop registered
[ 0.462652] io scheduler deadline registered
[ 0.462699] io scheduler cfq registered (default)
[ 0.464917] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.518759] Console: switching to colour frame buffer device 100x30
[ 0.526240] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.529204] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.179516] console [ttyO0] enabled
[ 1.184143] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[ 1.195367] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.212695] brd: module loaded
[ 1.221212] loop: module loaded
[ 1.224921] (stk) :sysfs entries created
[ 1.229101] (stk) : debugfs entries created
[ 1.238245] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.249326] usbcore: registered new interface driver asix
[ 1.255304] usbcore: registered new interface driver ax88179_178a
[ 1.261943] usbcore: registered new interface driver cdc_ether
[ 1.268290] usbcore: registered new interface driver r815x
[ 1.274263] usbcore: registered new interface driver smsc95xx
[ 1.280515] usbcore: registered new interface driver net1080
[ 1.286652] usbcore: registered new interface driver cdc_subset
[ 1.293095] usbcore: registered new interface driver zaurus
[ 1.299243] usbcore: registered new interface driver cdc_ncm
[ 1.305770] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.312712] ehci-pci: EHCI PCI platform driver
[ 1.317618] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.324125] usbcore: registered new interface driver cdc_wdm
[ 1.330333] usbcore: registered new interface driver usb-storage
[ 1.337854] mousedev: PS/2 mouse device common for all mice
[ 1.345037] input: matrix_keypad.7 as /devices/matrix_keypad.7/input/input0
[ 1.354567] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input1
[ 1.365119] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 1.373509] i2c /dev entries driver
[ 1.377791] Driver for 1-wire Dallas network protocol.
[ 1.385644] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.394948] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.402294] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.409526] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[ 1.416484] edma-dma-engine edma-dma-engine.0: freeing channel for 24
[ 1.423315] edma-dma-engine edma-dma-engine.0: freeing channel for 25
[ 1.430239] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[ 1.437992] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
[ 1.445214] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
[ 1.526227] omap_hwmod: gpio1: _wait_target_disable failed
[ 1.562131] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.571986] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[ 1.579282] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.585402] mmc0: card claims to support voltages below the defined range. These will be ignored.
[ 1.596152] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.602375] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[ 1.609498] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[ 1.618173] usbcore: registered new interface driver usbhid
[ 1.624109] usbhid: USB HID core driver
[ 1.630791] oprofile: no performance counters
[ 1.635943] oprofile: using timer interrupt.
[ 1.640858] TCP: cubic registered
[ 1.644407] Initializing XFRM netlink socket
[ 1.648949] NET: Registered protocol family 17
[ 1.653731] NET: Registered protocol family 15
[ 1.658504] 8021q: 802.1Q VLAN Support v1.8
[ 1.663051] Key type dns_resolver registered
[ 1.668281] cpu cpu0: cpu0 regulator not ready, retry
[ 1.673778] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[ 1.682258] ThumbEE CPU extension supported.
[ 1.689356] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.694867] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.702027] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.708749] ONFI param page 0 valid
[ 1.712505] ONFI flash detected
[ 1.715832] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), 256MiB, page size: 2048, OOB size: 64
[ 1.727889] omap2-nand: detected x8 NAND flash
[ 1.732593] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.738237] omap2-nand: using custom ecc layout
[ 1.743341] 10 ofpart partitions found on MTD device omap2-nand.0
[ 1.749783] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.755541] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.762728] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.769803] mmc0: new high speed SDIO card at address 0001
[ 1.777339] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.786454] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.794148] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.802118] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.809933] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.817426] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.825661] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.839326] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 2.052992] tps65910 0-002d: No interrupt support, no core IRQ
[ 2.061323] vrtc: 1800 mV
[ 2.064473] vrtc: supplied by vbat
[ 2.069334] vio: at 1800 mV
[ 2.072490] vio: supplied by vbat
[ 2.077376] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[ 2.082443] vdd_mpu: supplied by vbat
[ 2.087661] vdd_core: 912 <--> 1150 mV at 1137 mV
[ 2.092809] vdd_core: supplied by vbat
[ 2.097919] vdd3: 5000 mV
[ 2.101900] vdig1: at 1800 mV
[ 2.105197] vdig1: supplied by vbat
[ 2.109999] vdig2: at 1800 mV
[ 2.113382] vdig2: supplied by vbat
[ 2.118266] vpll: at 1800 mV
[ 2.121490] vpll: supplied by vbat
[ 2.126247] vdac: at 1800 mV
[ 2.129452] vdac: supplied by vbat
[ 2.134245] vaux1: at 1800 mV
[ 2.137546] vaux1: supplied by vbat
[ 2.142427] vaux2: at 3300 mV
[ 2.145728] vaux2: supplied by vbat
[ 2.150588] vaux33: at 3300 mV
[ 2.153990] vaux33: supplied by vbat
[ 2.158959] vmmc: 1800 <--> 3300 mV at 3300 mV
[ 2.163833] vmmc: supplied by vbat
[ 2.168261] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.177225] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 2.184169] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 2.191432] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 2.233516] UBI: attaching mtd9 to ubi0
[ 2.512283] UBI: fixable bit-flip detected at PEB 389
[ 3.171637] UBI: scanning is finished
[ 3.186478] UBI: attached mtd9 (name "NAND.file-system", size 246 MiB) to ubi0
[ 3.194215] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 3.201404] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 3.208391] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.215669] UBI: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
[ 3.222026] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 3.229570] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 145352975
[ 3.239046] UBI: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
[ 3.248812] UBI: background thread "ubi_bgt0d" started, PID 836
[ 3.341191] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 3.347648] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 3.371929] libphy: 4a101000.mdio: probed
[ 3.376182] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 3.401991] Detected MACID = 00:18:31:8f:57:fe
[ 3.421259] input: volume_keys.8 as /devices/volume_keys.8/input/input2
[ 3.429048] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:02 UTC (946684802)
[ 3.461231] UBIFS: background thread "ubifs_bgt0_0" started, PID 850
[ 3.532918] UBIFS: start fixing up free space
[ 3.584912] UBI: fixable bit-flip detected at PEB 335
[ 3.590256] UBI: schedule PEB 335 for scrubbing
[ 3.661626] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 17:4096, read only 124928 bytes, retry
[ 3.711204] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 17:4096, read only 124928 bytes, retry
[ 3.760854] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 17:4096, read only 124928 bytes, retry
[ 3.810984] UBI error: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 17:4096, read 124928 bytes
[ 3.822495] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.10-ti2013.12.01 #1
[ 3.829854] Backtrace:
[ 3.832487] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 3.841419] r6:dd309000 r5:0001e800 r4:ffffffb6 r3:00000000
[ 3.847433] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 3.855922] [<c056b590>] (dump_stack+0x0/0x28) from [<c03ab7ac>] (ubi_io_read+0x128/0x2ec)
[ 3.864677] [<c03ab684>] (ubi_io_read+0x0/0x2ec) from [<c03a9010>] (ubi_eba_read_leb+0x174/0x428)
[ 3.874086] [<c03a8e9c>] (ubi_eba_read_leb+0x0/0x428) from [<c03a8590>] (ubi_leb_read+0xb0/0x124)
[ 3.883490] [<c03a84e0>] (ubi_leb_read+0x0/0x124) from [<c01fde50>] (ubifs_leb_read+0x2c/0x90)
[ 3.892605] r8:dd2bd008 r7:0000000f r6:00000000 r5:0001e800 r4:0001e800
[ 3.899715] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c01fc1d8>] (fixup_leb+0x68/0x134)
[ 3.908553] r7:dd2bd834 r6:0000000f r5:dd2bd000 r4:0001e800
[ 3.914579] [<c01fc170>] (fixup_leb+0x0/0x134) from [<c01fdb88>] (ubifs_fixup_free_space+0x2a0/0x38c)
[ 3.924336] r6:00000000 r5:dd2bd000 r4:00000010
[ 3.929235] [<c01fd8e8>] (ubifs_fixup_free_space+0x0/0x38c) from [<c01fbbb8>] (ubifs_mount+0x1160/0x1674)
[ 3.939361] r7:00000000 r6:dd375000 r5:dd2bd000 r4:00000000
[ 3.945380] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 3.954049] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 3.962804] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 3.971641] r8:c07f5f04 r7:dd3971c0 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 3.979950] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 3.988260] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c074bf6c>] (mount_block_root+0x108/0x240)
[ 3.997371] r7:c0787294 r6:dd387000 r5:00008000 r4:dd387000
[ 4.003394] [<c074be64>] (mount_block_root+0x0/0x240) from [<c074c354>] (prepare_namespace+0x94/0x1cc)
[ 4.013251] [<c074c2c0>] (prepare_namespace+0x0/0x1cc) from [<c074bc1c>] (kernel_init_freeable+0x178/0x1bc)
[ 4.023557] r5:00000007 r4:c07a13c4
[ 4.027365] [<c074baa4>] (kernel_init_freeable+0x0/0x1bc) from [<c0566268>] (kernel_init+0x10/0xec)
[ 4.036962] [<c0566258>] (kernel_init+0x0/0xec) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[ 4.045801] r4:00000000 r3:00000000
[ 4.049595] UBIFS error (pid 1): ubifs_leb_read: reading 124928 bytes from LEB 15:0 failed, error -74
[ 4.059353] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.10-ti2013.12.01 #1
[ 4.066721] Backtrace:
[ 4.069314] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 4.078241] r6:00000000 r5:0001e800 r4:ffffffb6 r3:00000000
[ 4.084260] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 4.092735] [<c056b590>] (dump_stack+0x0/0x28) from [<c01fdea8>] (ubifs_leb_read+0x84/0x90)
[ 4.101581] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c01fc1d8>] (fixup_leb+0x68/0x134)
[ 4.110404] r7:dd2bd834 r6:0000000f r5:dd2bd000 r4:0001e800
[ 4.116427] [<c01fc170>] (fixup_leb+0x0/0x134) from [<c01fdb88>] (ubifs_fixup_free_space+0x2a0/0x38c)
[ 4.126180] r6:00000000 r5:dd2bd000 r4:00000010
[ 4.131082] [<c01fd8e8>] (ubifs_fixup_free_space+0x0/0x38c) from [<c01fbbb8>] (ubifs_mount+0x1160/0x1674)
[ 4.141203] r7:00000000 r6:dd375000 r5:dd2bd000 r4:00000000
[ 4.147211] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 4.155870] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 4.164625] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 4.173460] r8:c07f5f04 r7:dd3971c0 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 4.181783] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 4.190066] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c074bf6c>] (mount_block_root+0x108/0x240)
[ 4.199179] r7:c0787294 r6:dd387000 r5:00008000 r4:dd387000
[ 4.205192] [<c074be64>] (mount_block_root+0x0/0x240) from [<c074c354>] (prepare_namespace+0x94/0x1cc)
[ 4.215049] [<c074c2c0>] (prepare_namespace+0x0/0x1cc) from [<c074bc1c>] (kernel_init_freeable+0x178/0x1bc)
[ 4.225353] r5:00000007 r4:c07a13c4
[ 4.229151] [<c074baa4>] (kernel_init_freeable+0x0/0x1bc) from [<c0566268>] (kernel_init+0x10/0xec)
[ 4.238732] [<c0566258>] (kernel_init+0x0/0xec) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[ 4.247571] r4:00000000 r3:00000000
[ 4.261554] UBIFS: background thread "ubifs_bgt0_0" stops
[ 4.267980] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -74
[ 4.276509] Please append a correct "root=" boot option; here are the available partitions:
[ 4.285388] 1f00 128 mtdblock0 (driver?)
[ 4.290736] 1f01 128 mtdblock1 (driver?)
[ 4.296098] 1f02 128 mtdblock2 (driver?)
[ 4.301454] 1f03 128 mtdblock3 (driver?)
[ 4.306796] 1f04 256 mtdblock4 (driver?)
[ 4.312167] 1f05 1024 mtdblock5 (driver?)
[ 4.317511] 1f06 128 mtdblock6 (driver?)
[ 4.322869] 1f07 128 mtdblock7 (driver?)
[ 4.328215] 1f08 8192 mtdblock8 (driver?)
[ 4.333570] 1f09 251904 mtdblock9 (driver?)
[ 4.338911] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Hi,
Please follow the steps below. I just verified them using SDK 07.00.00.00 on the AM335x GP EVM. I'm using the base (the smaller one) ubifs provided in the SDK.
U-Boot# nand erase.chip
NAND erase.chip: device 0 whole chip
Erasing at 0xffe0000 -- 100% complete.
OK
U-Boot# mmc rescan
U-Boot# fatls mmc 0
107920 mlo
389768 u-boot.img
13 .ipaddr
41564 devicetree-zimage-am335x-evm.dtb
4117616 zimage
32768000 arago-base-tisdk-image-am335x-evm.ubi
6 file(s), 0 dir(s)
U-Boot# fatload mmc 0 0x81000000 MLO
reading MLO
107920 bytes read in 10 ms (10.3 MiB/s)
U-Boot# cp.b 0x81000000 0x81020000 20000; cp.b 0x81000000 0x81040000 20000; cp.b 0x81000000 0x81060000 20000
U-Boot# fatload mmc 0 0x81080000 devicetree-zimage-am335x-evm.dtb
reading devicetree-zimage-am335x-evm.dtb
41564 bytes read in 8 ms (5 MiB/s)
U-Boot# fatload mmc 0 0x810c0000 u-boot.img
reading u-boot.img
389768 bytes read in 28 ms (13.3 MiB/s)
U-Boot# fatload mmc 0 0x81200000 zImage
reading zImage
4117616 bytes read in 258 ms (15.2 MiB/s)
U-Boot# fatload mmc 0 0x81a00000 arago-base-tisdk-image-am335x-evm.ubi
reading arago-base-tisdk-image-am335x-evm.ubi
32768000 bytes read in 2039 ms (15.3 MiB/s)
U-Boot# nand write 0x81000000 0x0 0x2950000
NAND write: device 0 offset 0x0, size 0x2950000
43319296 bytes written: OK
Best regards,
Miroslav
Hi Miroslav,
Thanks for the reply,
I have followed the same steps what you have given but i got the error as, can you please tell me where i am going wrong,
U-Boot#
41564 am335x-evm.dtb
176621 beaglebone-quickstartguide.pdf
2371014 quickstartguide.pdf
32768000 base.ubi
107936 mlo
windows_users/
53 pointercal
1 .ipaddr
389776 u-boot.img
ti-working/
boot/
francis/
4117600 zimage
ubifs-uboot/
9 file(s), 5 dir(s)
U-Boot# nand erase.chip
NAND erase.chip: device 0 whole chip
Erasing at 0xffe0000 -- 100% complete.
OK
U-Boot# fatload mmc 0 0x81000000 MLO
reading MLO
107936 bytes read in 11 ms (9.4 MiB/s)
U-Boot# cp.b 0x81000000 0x81020000 20000; cp.b 0x81000000 0x81040000 20000; cp.b 0x81000000 0x81060000 20000
U-Boot# fatload mmc 0 0x81080000 am335x-evm.dtb
reading am335x-evm.dtb
41564 bytes read in 7 ms (5.7 MiB/s)
U-Boot# fatload mmc 0 0x810c0000 u-boot.img
reading u-boot.img
389776 bytes read in 30 ms (12.4 MiB/s)
U-Boot# fatload mmc 0 0x81200000 zImage
reading zImage
4117600 bytes read in 263 ms (14.9 MiB/s)
U-Boot# fatload mmc 0 0x81a00000 base.ubi
reading base.ubi
32768000 bytes read in 2030 ms (15.4 MiB/s)
U-Boot# nand write 0x81000000 0x0 0x2950000
NAND write: device 0 offset 0x0, size 0x2950000
43319296 bytes written: OK
U-Boot#
U-Boot#
U-Boot# reset
resetting ...
U-Boot SPL 2013.10-00189-g78d8ebd-dirty (May 23 2014 - 16:42:16)
The Expected Linux image was not found. Please check your NAND configuration.
Trying to start u-boot now...
U-Boot 2013.10-00189-g78d8ebd (May 23 2014 - 16:33:52)
I2C: ready
DRAM: 512 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc0 is current device
Scanning mmc 0...
** File not found /boot/zImage **
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
** Unable to read file uEnv.txt **
** File not found /boot/zImage **
Card did not respond to voltage select!
mmc1(part 0) is current device
Card did not respond to voltage select!
Booting from nand ...
NAND read: device 0 offset 0x80000, size 0x40000
262144 bytes read: OK
NAND read: device 0 offset 0x200000, size 0x800000
8388608 bytes read: OK
Kernel image @ 0x80200000 [ 0x000000 - 0x3ed460 ]
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Loading Device Tree to 9f31f000, end 9f32c25b ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.10-ti2013.12.01 (stesalit@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Mon May 12 04:19:32 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: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM
[ 0.000000] cma: CMA: reserved 24 MiB at 9d800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129280
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
[ 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: 483332K/521216K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 37884K 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc074a04c (7433 kB)
[ 0.000000] .init : 0xc074b000 - 0xc07a15f0 ( 346 kB)
[ 0.000000] .data : 0xc07a2000 - 0xc082ddd8 ( 560 kB)
[ 0.000000] .bss : 0xc082ddd8 - 0xc0866400 ( 226 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 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: timer2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000322] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[ 0.119714] pid_max: default: 32768 minimum: 301
[ 0.119826] Security Framework initialized
[ 0.119878] Mount-cache hash table entries: 512
[ 0.129085] CPU: Testing write buffer coherency: ok
[ 0.129511] Setting up static identity map for 0xc0572e68 - 0xc0572ed8
[ 0.130501] devtmpfs: initialized
[ 0.132252] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.194635] omap_hwmod: debugss: _wait_target_disable failed
[ 0.195368] pinctrl core: initialized pinctrl subsystem
[ 0.196249] regulator-dummy: no parameters
[ 0.198733] NET: Registered protocol family 16
[ 0.201133] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.203822] cpuidle: using governor ladder
[ 0.203839] cpuidle: using governor menu
[ 0.212631] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.213753] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.215018] OMAP GPIO hardware version 0.1
[ 0.224502] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
[ 0.224537] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[ 0.224927] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.228970] DSS not supported on this SoC
[ 0.228990] No ATAGs?
[ 0.229001] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.253378] bio: create slab <bio-0> at 0
[ 0.268254] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.269153] vbat: 5000 mV
[ 0.269554] lis3_reg: no parameters
[ 0.270068] wlan-en-regulator: 1800 mV
[ 0.273340] vgaarb: loaded
[ 0.274631] SCSI subsystem initialized
[ 0.275988] usbcore: registered new interface driver usbfs
[ 0.276170] usbcore: registered new interface driver hub
[ 0.276379] usbcore: registered new device driver usb
[ 0.277386] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[ 0.277415] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[ 0.277443] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
[ 0.277459] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
[ 0.277708] media: Linux media interface: v0.10
[ 0.277891] Linux video capture interface: v2.00
[ 0.278167] pps_core: LinuxPPS API ver. 1 registered
[ 0.278178] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.278311] PTP clock support registered
[ 0.281014] Switched to clocksource timer1
[ 0.299958] NET: Registered protocol family 2
[ 0.300629] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.300722] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.300774] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.300855] TCP: reno registered
[ 0.300869] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300890] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.301180] NET: Registered protocol family 1
[ 0.301588] RPC: Registered named UNIX socket transport module.
[ 0.301600] RPC: Registered udp transport module.
[ 0.301607] RPC: Registered tcp transport module.
[ 0.301614] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.302622] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.303326] PM: Loading am335x-pm-firmware.bin
[ 0.459806] VFS: Disk quotas dquot_6.5.2
[ 0.459882] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.460519] NFS: Registering the id_resolver key type
[ 0.460606] Key type id_resolver registered
[ 0.460616] Key type id_legacy registered
[ 0.460666] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.460844] msgmni has been set to 992
[ 0.462555] NET: Registered protocol family 38
[ 0.462599] io scheduler noop registered
[ 0.462608] io scheduler deadline registered
[ 0.462653] io scheduler cfq registered (default)
[ 0.464869] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.518707] Console: switching to colour frame buffer device 100x30
[ 0.526219] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.529181] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.179420] console [ttyO0] enabled
[ 1.184063] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[ 1.195277] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.212640] brd: module loaded
[ 1.221153] loop: module loaded
[ 1.224853] (stk) :sysfs entries created
[ 1.229029] (stk) : debugfs entries created
[ 1.238234] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.249295] usbcore: registered new interface driver asix
[ 1.255281] usbcore: registered new interface driver ax88179_178a
[ 1.261917] usbcore: registered new interface driver cdc_ether
[ 1.268263] usbcore: registered new interface driver r815x
[ 1.274238] usbcore: registered new interface driver smsc95xx
[ 1.280488] usbcore: registered new interface driver net1080
[ 1.286628] usbcore: registered new interface driver cdc_subset
[ 1.293070] usbcore: registered new interface driver zaurus
[ 1.299218] usbcore: registered new interface driver cdc_ncm
[ 1.305737] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.312680] ehci-pci: EHCI PCI platform driver
[ 1.317585] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.324127] usbcore: registered new interface driver cdc_wdm
[ 1.330335] usbcore: registered new interface driver usb-storage
[ 1.337848] mousedev: PS/2 mouse device common for all mice
[ 1.345031] input: matrix_keypad.7 as /devices/matrix_keypad.7/input/input0
[ 1.354553] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input1
[ 1.365105] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 1.373504] i2c /dev entries driver
[ 1.377786] Driver for 1-wire Dallas network protocol.
[ 1.385616] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.394918] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.402272] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.409507] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[ 1.416464] edma-dma-engine edma-dma-engine.0: freeing channel for 24
[ 1.423296] edma-dma-engine edma-dma-engine.0: freeing channel for 25
[ 1.430223] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[ 1.437970] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
[ 1.445196] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
[ 1.526204] omap_hwmod: gpio1: _wait_target_disable failed
[ 1.562027] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.571898] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[ 1.579202] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.585318] mmc0: card claims to support voltages below the defined range. These will be ignored.
[ 1.596068] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.602288] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[ 1.609411] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[ 1.618130] usbcore: registered new interface driver usbhid
[ 1.624064] usbhid: USB HID core driver
[ 1.630777] oprofile: no performance counters
[ 1.635924] oprofile: using timer interrupt.
[ 1.640836] TCP: cubic registered
[ 1.644382] Initializing XFRM netlink socket
[ 1.648927] NET: Registered protocol family 17
[ 1.653708] NET: Registered protocol family 15
[ 1.658479] 8021q: 802.1Q VLAN Support v1.8
[ 1.663032] Key type dns_resolver registered
[ 1.668266] cpu cpu0: cpu0 regulator not ready, retry
[ 1.673759] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[ 1.682237] ThumbEE CPU extension supported.
[ 1.689264] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.694779] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.701987] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[ 1.708699] ONFI param page 0 valid
[ 1.712451] ONFI flash detected
[ 1.715781] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP), 256MiB, page size: 2048, OOB size: 64
[ 1.727838] omap2-nand: detected x8 NAND flash
[ 1.732543] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.738186] omap2-nand: using custom ecc layout
[ 1.743277] 10 ofpart partitions found on MTD device omap2-nand.0
[ 1.749715] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.755472] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.762646] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.769723] mmc0: new high speed SDIO card at address 0001
[ 1.777258] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.786369] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.794071] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.802069] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.809877] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.817358] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.825597] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.839270] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 2.052866] tps65910 0-002d: No interrupt support, no core IRQ
[ 2.061211] vrtc: 1800 mV
[ 2.064363] vrtc: supplied by vbat
[ 2.069223] vio: at 1800 mV
[ 2.072383] vio: supplied by vbat
[ 2.077260] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[ 2.082327] vdd_mpu: supplied by vbat
[ 2.087546] vdd_core: 912 <--> 1150 mV at 1137 mV
[ 2.092695] vdd_core: supplied by vbat
[ 2.097812] vdd3: 5000 mV
[ 2.101801] vdig1: at 1800 mV
[ 2.105101] vdig1: supplied by vbat
[ 2.109897] vdig2: at 1800 mV
[ 2.113284] vdig2: supplied by vbat
[ 2.118181] vpll: at 1800 mV
[ 2.121412] vpll: supplied by vbat
[ 2.126168] vdac: at 1800 mV
[ 2.129374] vdac: supplied by vbat
[ 2.134153] vaux1: at 1800 mV
[ 2.137456] vaux1: supplied by vbat
[ 2.142335] vaux2: at 3300 mV
[ 2.145634] vaux2: supplied by vbat
[ 2.150485] vaux33: at 3300 mV
[ 2.153893] vaux33: supplied by vbat
[ 2.158858] vmmc: 1800 <--> 3300 mV at 3300 mV
[ 2.163740] vmmc: supplied by vbat
[ 2.168173] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.177169] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 2.184110] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 2.191368] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 2.232546] UBI: attaching mtd9 to ubi0
[ 2.294304] mmc1: new high speed SDHC card at address 1234
[ 2.311389] mmcblk0: mmc1:1234 SA04G 3.63 GiB
[ 2.318392] mmcblk0: p1 p2 p3
[ 3.031813] UBI: scanning is finished
[ 3.057130] UBI: volume 0 ("rootfs") re-sized from 248 to 1924 LEBs
[ 3.064999] UBI: attached mtd9 (name "NAND.file-system", size 246 MiB) to ubi0
[ 3.072694] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 3.079866] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 3.086870] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.094145] UBI: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
[ 3.100494] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 3.108046] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 145352975
[ 3.117542] UBI: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
[ 3.127346] UBI: background thread "ubi_bgt0d" started, PID 843
[ 3.221044] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 3.227510] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 3.251863] libphy: 4a101000.mdio: probed
[ 3.256112] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 3.281903] Detected MACID = 00:18:31:8f:57:fe
[ 3.301254] input: volume_keys.8 as /devices/volume_keys.8/input/input2
[ 3.309050] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:02 UTC (946684802)
[ 3.341113] UBIFS: background thread "ubifs_bgt0_0" started, PID 857
[ 3.421913] UBIFS: start fixing up free space
[ 3.469630] UBI: fixable bit-flip detected at PEB 13
[ 3.474893] UBI: schedule PEB 13 for scrubbing
[ 3.538082] UBI: fixable bit-flip detected at PEB 17
[ 3.543355] UBI: schedule PEB 17 for scrubbing
[ 3.610979] UBI: fixable bit-flip detected at PEB 26
[ 3.616254] UBI: schedule PEB 26 for scrubbing
[ 3.679174] UBI: fixable bit-flip detected at PEB 27
[ 3.684440] UBI: schedule PEB 27 for scrubbing
[ 3.749151] UBI: fixable bit-flip detected at PEB 29
[ 3.754412] UBI: schedule PEB 29 for scrubbing
[ 3.815516] UBI: fixable bit-flip detected at PEB 58
[ 3.820763] UBI: schedule PEB 58 for scrubbing
[ 3.882550] UBI: fixable bit-flip detected at PEB 64
[ 3.887802] UBI: schedule PEB 64 for scrubbing
[ 3.954940] UBI: fixable bit-flip detected at PEB 68
[ 3.960188] UBI: schedule PEB 68 for scrubbing
[ 4.027627] UBI: fixable bit-flip detected at PEB 87
[ 4.032889] UBI: schedule PEB 87 for scrubbing
[ 4.167140] UBI: fixable bit-flip detected at PEB 89
[ 4.172413] UBI: schedule PEB 89 for scrubbing
[ 4.238089] UBI: fixable bit-flip detected at PEB 90
[ 4.243359] UBI: schedule PEB 90 for scrubbing
[ 4.376071] UBI: fixable bit-flip detected at PEB 92
[ 4.381336] UBI: schedule PEB 92 for scrubbing
[ 4.518128] UBI: fixable bit-flip detected at PEB 94
[ 4.523396] UBI: schedule PEB 94 for scrubbing
[ 4.589263] UBI: fixable bit-flip detected at PEB 95
[ 4.594526] UBI: schedule PEB 95 for scrubbing
[ 4.728153] UBI: fixable bit-flip detected at PEB 97
[ 4.733417] UBI: schedule PEB 97 for scrubbing
[ 4.938759] UBI: fixable bit-flip detected at PEB 100
[ 4.944116] UBI: schedule PEB 100 for scrubbing
[ 5.008482] UBI: fixable bit-flip detected at PEB 101
[ 5.013838] UBI: schedule PEB 101 for scrubbing
[ 5.077582] UBI: fixable bit-flip detected at PEB 102
[ 5.082938] UBI: schedule PEB 102 for scrubbing
[ 5.148801] UBI: fixable bit-flip detected at PEB 103
[ 5.154157] UBI: schedule PEB 103 for scrubbing
[ 5.219488] UBI: fixable bit-flip detected at PEB 104
[ 5.224842] UBI: schedule PEB 104 for scrubbing
[ 5.358120] UBI: fixable bit-flip detected at PEB 106
[ 5.363475] UBI: schedule PEB 106 for scrubbing
[ 5.778468] UBI: fixable bit-flip detected at PEB 112
[ 5.783829] UBI: schedule PEB 112 for scrubbing
[ 5.849153] UBI: fixable bit-flip detected at PEB 113
[ 5.854508] UBI: schedule PEB 113 for scrubbing
[ 5.919355] UBI: fixable bit-flip detected at PEB 114
[ 5.924714] UBI: schedule PEB 114 for scrubbing
[ 5.990009] UBI: fixable bit-flip detected at PEB 115
[ 5.995363] UBI: schedule PEB 115 for scrubbing
[ 6.059058] UBI: fixable bit-flip detected at PEB 116
[ 6.064427] UBI: schedule PEB 116 for scrubbing
[ 6.128183] UBI: fixable bit-flip detected at PEB 117
[ 6.133540] UBI: schedule PEB 117 for scrubbing
[ 6.197761] UBI: fixable bit-flip detected at PEB 118
[ 6.203121] UBI: schedule PEB 118 for scrubbing
[ 6.269555] UBI: fixable bit-flip detected at PEB 119
[ 6.274909] UBI: schedule PEB 119 for scrubbing
[ 6.343832] UBI: fixable bit-flip detected at PEB 130
[ 6.349171] UBI: schedule PEB 130 for scrubbing
[ 6.421124] UBI: fixable bit-flip detected at PEB 131
[ 6.426468] UBI: schedule PEB 131 for scrubbing
[ 6.502966] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 132:4096, read only 124928 bytes, retry
[ 6.551996] UBI: fixable bit-flip detected at PEB 132
[ 6.557337] UBI: schedule PEB 132 for scrubbing
[ 6.634724] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 133:4096, read only 124928 bytes, retry
[ 6.683710] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 133:4096, read only 124928 bytes, retry
[ 6.734064] UBI warning: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 133:4096, read only 124928 bytes, retry
[ 6.783657] UBI error: ubi_io_read: error -74 (ECC error) while reading 124928 bytes from PEB 133:4096, read 124928 bytes
[ 6.795257] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.10-ti2013.12.01 #1
[ 6.802625] Backtrace:
[ 6.805244] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 6.814178] r6:dd309000 r5:0001e800 r4:ffffffb6 r3:00000000
[ 6.820189] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 6.828674] [<c056b590>] (dump_stack+0x0/0x28) from [<c03ab7ac>] (ubi_io_read+0x128/0x2ec)
[ 6.837424] [<c03ab684>] (ubi_io_read+0x0/0x2ec) from [<c03a9010>] (ubi_eba_read_leb+0x174/0x428)
[ 6.846831] [<c03a8e9c>] (ubi_eba_read_leb+0x0/0x428) from [<c03a8590>] (ubi_leb_read+0xb0/0x124)
[ 6.856232] [<c03a84e0>] (ubi_leb_read+0x0/0x124) from [<c01fde50>] (ubifs_leb_read+0x2c/0x90)
[ 6.865342] r8:dd2bd008 r7:00000083 r6:00000000 r5:0001e800 r4:0001e800
[ 6.872462] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c01fc1d8>] (fixup_leb+0x68/0x134)
[ 6.881296] r7:dd2bd834 r6:00000083 r5:dd2bd000 r4:0001e800
[ 6.887297] [<c01fc170>] (fixup_leb+0x0/0x134) from [<c01fdb88>] (ubifs_fixup_free_space+0x2a0/0x38c)
[ 6.897050] r6:00000000 r5:dd2bd000 r4:00000084
[ 6.901959] [<c01fd8e8>] (ubifs_fixup_free_space+0x0/0x38c) from [<c01fbbb8>] (ubifs_mount+0x1160/0x1674)
[ 6.912086] r7:00000000 r6:dd387200 r5:dd2bd000 r4:00000000
[ 6.918094] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 6.926761] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 6.935516] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 6.944351] r8:c07f5f04 r7:dd3a7c40 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 6.952669] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 6.960965] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c074bf6c>] (mount_block_root+0x108/0x240)
[ 6.970074] r7:c0787294 r6:dd394000 r5:00008000 r4:dd394000
[ 6.976093] [<c074be64>] (mount_block_root+0x0/0x240) from [<c074c354>] (prepare_namespace+0x94/0x1cc)
[ 6.985945] [<c074c2c0>] (prepare_namespace+0x0/0x1cc) from [<c074bc1c>] (kernel_init_freeable+0x178/0x1bc)
[ 6.996246] r5:00000007 r4:c07a13c4
[ 7.000053] [<c074baa4>] (kernel_init_freeable+0x0/0x1bc) from [<c0566268>] (kernel_init+0x10/0xec)
[ 7.009654] [<c0566258>] (kernel_init+0x0/0xec) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[ 7.018490] r4:00000000 r3:00000000
[ 7.022294] UBIFS error (pid 1): ubifs_leb_read: reading 124928 bytes from LEB 131:0 failed, error -74
[ 7.032140] CPU: 0 PID: 1 Comm: swapper Not tainted 3.12.10-ti2013.12.01 #1
[ 7.039494] Backtrace:
[ 7.042098] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 7.051021] r6:00000000 r5:0001e800 r4:ffffffb6 r3:00000000
[ 7.057026] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 7.065501] [<c056b590>] (dump_stack+0x0/0x28) from [<c01fdea8>] (ubifs_leb_read+0x84/0x90)
[ 7.074345] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c01fc1d8>] (fixup_leb+0x68/0x134)
[ 7.083176] r7:dd2bd834 r6:00000083 r5:dd2bd000 r4:0001e800
[ 7.089181] [<c01fc170>] (fixup_leb+0x0/0x134) from [<c01fdb88>] (ubifs_fixup_free_space+0x2a0/0x38c)
[ 7.098930] r6:00000000 r5:dd2bd000 r4:00000084
[ 7.103841] [<c01fd8e8>] (ubifs_fixup_free_space+0x0/0x38c) from [<c01fbbb8>] (ubifs_mount+0x1160/0x1674)
[ 7.113958] r7:00000000 r6:dd387200 r5:dd2bd000 r4:00000000
[ 7.119964] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 7.128622] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 7.137375] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 7.146206] r8:c07f5f04 r7:dd3a7c40 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 7.154527] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 7.162820] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c074bf6c>] (mount_block_root+0x108/0x240)
[ 7.171930] r7:c0787294 r6:dd394000 r5:00008000 r4:dd394000
[ 7.177933] [<c074be64>] (mount_block_root+0x0/0x240) from [<c074c354>] (prepare_namespace+0x94/0x1cc)
[ 7.187788] [<c074c2c0>] (prepare_namespace+0x0/0x1cc) from [<c074bc1c>] (kernel_init_freeable+0x178/0x1bc)
[ 7.198087] r5:00000007 r4:c07a13c4
[ 7.201897] [<c074baa4>] (kernel_init_freeable+0x0/0x1bc) from [<c0566268>] (kernel_init+0x10/0xec)
[ 7.211475] [<c0566258>] (kernel_init+0x0/0xec) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[ 7.220300] r4:00000000 r3:00000000
[ 7.231066] UBIFS: background thread "ubifs_bgt0_0" stops
[ 7.237533] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -74
[ 7.246039] Please append a correct "root=" boot option; here are the available partitions:
[ 7.254923] 1f00 128 mtdblock0 (driver?)
[ 7.260269] 1f01 128 mtdblock1 (driver?)
[ 7.265632] 1f02 128 mtdblock2 (driver?)
[ 7.270972] 1f03 128 mtdblock3 (driver?)
[ 7.276326] 1f04 256 mtdblock4 (driver?)
[ 7.281684] 1f05 1024 mtdblock5 (driver?)
[ 7.287025] 1f06 128 mtdblock6 (driver?)
[ 7.292378] 1f07 128 mtdblock7 (driver?)
[ 7.297722] 1f08 8192 mtdblock8 (driver?)
[ 7.303075] 1f09 251904 mtdblock9 (driver?)
[ 7.308415] b300 3813376 mmcblk0 driver: mmcblk
[ 7.314062] b301 72261 mmcblk0p1 00000000-01
[ 7.319677] b302 923737 mmcblk0p2 00000000-02
[ 7.325307] b303 2795310 mmcblk0p3 00000000-03
[ 7.330926] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Hi,
Request you to attach the logs and not plain paste.
[ 1.749715] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.755472] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.762646] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.769723] mmc0: new high speed SDIO card at address 0001
[ 1.777258] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.786369] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.794071] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.802069] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.809877] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.817358] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.825597] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.839270] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 2.052866] tps65910 0-002d: No interrupt support, no core IRQ
Sorry, I don't about the "ti-sdk 7.0" of TI,
Did you modify the locations of NAND for filesystem ?
If yes, You have to create new ubifs filesystem with new calculations of PEB.
If you maintain the NAND partition layout as like TI then you can boot your custom/EVM board with TI's uibfs filesystem.
If this board is AM335x EVM, Check your NAND layout in board file with default.
Hi,
The NAND partition layout is correct. Using the UBIFS that comes with the SDK should be no problem.
Sreenivas, you are not using the pre-built binaries that come with the SDK. Please use the binaries from <SDK7_dir>/board-support/prebuilt-images/.
Sreenivas Kowtharapu said:U-Boot# fatload mmc 0 0x81000000 MLO
reading MLO
107936 bytes read in 11 ms (9.4 MiB/s)
U-Boot# cp.b 0x81000000 0x81020000 20000; cp.b 0x81000000 0x81040000 20000; cp.b 0x81000000 0x81060000 20000
U-Boot# fatload mmc 0 0x81080000 am335x-evm.dtb
reading am335x-evm.dtb
41564 bytes read in 7 ms (5.7 MiB/s)
U-Boot# fatload mmc 0 0x810c0000 u-boot.img
reading u-boot.img
389776 bytes read in 30 ms (12.4 MiB/s)
U-Boot# fatload mmc 0 0x81200000 zImage
reading zImage
4117600 bytes read in 263 ms (14.9 MiB/s)
Here are the real sizes of the pre-built binaries:
→ ll prebuilt-images/
total 4792
drwxr-sr-x 2 mkiradzhiyski root 4096 Mar 31 05:37 ./
drwxr-sr-x 6 mkiradzhiyski root 4096 Mar 31 05:37 ../
-rw-r--r-- 1 mkiradzhiyski root 34352 Mar 31 05:37 am335x-boneblack.dtb
-rw-r--r-- 1 mkiradzhiyski root 33206 Mar 31 05:37 am335x-bone.dtb
-rw-r--r-- 1 mkiradzhiyski root 41564 Mar 31 05:37 am335x-evm.dtb
-rw-r--r-- 1 mkiradzhiyski root 38048 Mar 31 05:37 am335x-evmsk.dtb
-rwxr-xr-x 1 mkiradzhiyski root 107920 Mar 31 05:37 MLO-am335x-evm*
-rw-r--r-- 1 mkiradzhiyski root 1164 Mar 31 04:46 README
-rwxr-xr-x 1 mkiradzhiyski root 389768 Mar 31 05:37 u-boot-am335x-evm.img*
-rwxr-xr-x 1 mkiradzhiyski root 107400 Mar 31 05:37 u-boot-spl.bin-am335x-evm*
-rw-r--r-- 1 mkiradzhiyski root 4117616 Mar 31 05:37 zImage-am335x-evm.bin
Best regards,
Miroslav
Hi Kiradzhiyski XID,
I have flashed the pre-built binaries and it got booted but with the following errors, and i have also attached the total boot log, can you please tell me how to rectify these errors,
fixable bit-flip detected at PEB 337
[ 8.769199] UBI: schedule PEB 337 for scrubbing
[ 8.994306] UBI: fixable bit-flip detected at PEB 124
[ 8.999663] UBI: schedule PEB 124 for scrubbing
[ 9.047683] UBI: fixable bit-flip detected at PEB 25
[ 10.844618] UBI: PEB 283 passed torture test, do not mark it as bad
[ 10.942516] UBI: fixable bit-flip detected at PEB 283
[ 10.948167] UBI: run torture test for PEB 283
[ 11.137817] UBI: PEB 283 passed torture test, do not mark it as bad
[ 11.235779] UBI: fixable bit-flip detected at PEB 283
[ 11.241440] UBI: run torture test for PEB 283
[ 11.439928] UBI: PEB 283 passed torture test, do not mark it as bad
[ 11.536746] UBI: fixable bit-flip detected at PEB 283
[ 13.811168] UBIFS error (pid 6): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
[ 13.820568] UBIFS error (pid 6): ubifs_write_inode: can't write inode 4327, error -30
[ 292.610048] UBI: fixable bit-flip detected at PEB 1964
[ 292.660505] UBI: fixable bit-flip detected at PEB 1961
[ 292.666238] UBI: run torture test for PEB 1961
[ 292.851578] UBI: PEB 1961 passed torture test, do not mark it as bad
[ 292.879351] UBI: fixable bit-flip detected at PEB 1964
[ 292.930012] UBI: fixable bit-flip detected at PEB 1961
[ 292.936376] UBI: run torture test for PEB 1961
Hi Titus S,
I dint modify the Nand filesystem location and i am using the same NAND partition that TI has provided.
Also i will avoid plain pasting log information.
Hi Sreeni,
I dint modify the Nand filesystem location and i am using the same NAND partition that TI has provided.
Correct, Kiradzhiyski also confirmed this info.
Also i will avoid plain pasting log information.
Thanks for your understanding,
Try the below patch.
BTW, Kiradzhiyski will answer your questions who is more specific to AM335x.
1) Use all the pre-built binaries from TI SDK (AM335x EVM) except kernel.
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 92311a5..28500a1 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -824,7 +824,7 @@ int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, return ret_code; if (mtd->ecc_strength == 0) return 0; /* device lacks ecc */ - return ret_code >= mtd->bitflip_threshold ? -EUCLEAN : 0; + return ret_code > mtd->bitflip_threshold ? -EUCLEAN : 0; } EXPORT_SYMBOL_GPL(mtd_read);
Hi Kiradzhiyski XID,
I have tried formatting nand flash through Linux kernel instead of u-boot, i have booted using SD-Card and followed the steps, every thing fine but while mounting the file system it shows error, same thing happening when booting through NAND flash, i have followed the document, "http://processors.wiki.ti.com/index.php/UBIFS_Support#Creating_UBIFS_file_system"
Can you please tell me where its going wrong,
1) #mtdinfo
root@am335x-evm:~# mtdinfo
Count of MTD devices: 10
Present MTD devices: mtd0, mtd1, mtd2, mtd3, mtd4, mtd5, mtd6, mtd7, mtd8, mtd9
Sysfs interface supported: yes
root@am335x-evm:~#
2) #ubiformat /dev/mtd9 -s 2048 -O 2048
root@am335x-evm:~# ubiformat /dev/mtd9 -s 2048 -O 2048
ubiformat: mtd9 (nand), size 257949696 bytes (246.0 MiB), 1968 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 1967 -- 100 % complete
ubiformat: 1968 eraseblocks have valid erase counter, mean value is 0
ubiformat: formatting eraseblock 1716 -- 87 % complformat: formatting eraseblockubiformat: formatting eraseblock 1967 -- 100 % complete
3) #ubiattach /dev/ubi_ctrl -m 9 -O 2048
root@am335x-evm:~# ubiattach /dev/ubi_ctrl -m 9 -O 2048
[ 391.537402] UBI: attaching mtd9 to ubi0
[ 392.752089] UBI: scanning is finished
[ 392.769405] UBI: attached mtd9 (name "NAND.file-system", size 246 MiB) to ubi0
[ 392.777158] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 392.784347] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 392.791344] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 392.798609] UBI: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
[ 392.804980] UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 392.812535] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1352350133
[ 392.822103] UBI: available PEBs: 1924, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
[ 392.832423] UBI: background thread "ubi_bgt0d" started, PID 1609
UBI device number 0, total 1968 LEBs (249888768 bytes, 238.3 MiB), available 1924 LEBs (244301824 bytes, 233.0 MiB), LEB size 126976 bytes (124.0 KiB)
4) #ubimkvol /dev/ubi0 -N rootfs -m
root@am335x-evm:~# ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 244301824
Volume ID 0, size 1924 LEBs (244301824 bytes, 233.0 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
5) mount -t ubifs ubi0:rootfs /media/card/
root@am335x-evm:~# mount -t ubifs ubi0:rootfs /media/card/
[ 554.339222] UBIFS: default file-system created
[ 554.361561] UBIFS: background thread "ubifs_bgt0_0" started, PID 1613
[ 554.386943] UBI warning: ubi_io_read: error -74 (ECC error) while reading 11 bytes from PEB 515:14154, read only 11 bytes, retry
[ 554.400414] UBI: fixable bit-flip detected at PEB 515
[ 554.405850] UBI: schedule PEB 515 for scrubbing
[ 554.427466] UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 515:4096, read only 126976 bytes, retry
[ 554.457275] UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 515:4096, read only 126976 bytes, retry
[ 554.486528] UBI warning: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 515:4096, read only 126976 bytes, retry
[ 554.515620] UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 515:4096, read 126976 bytes
[ 554.527233] CPU: 0 PID: 1609 Comm: ubi_bgt0d Tainted: G O 3.12.10-ti2013.12.01 #1
[ 554.536072] Backtrace:
[ 554.538694] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 554.547629] r6:dd56e000 r5:0001f000 r4:ffffffb6 r3:00000000
[ 554.553659] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 554.562144] [<c056b590>] (dump_stack+0x0/0x28) from [<c03ab7ac>] (ubi_io_read+0x128/0x2ec)
[ 554.570888] [<c03ab684>] (ubi_io_read+0x0/0x2ec) from [<c03aa5b4>] (ubi_eba_copy_leb+0x1e8/0x544)
[ 554.580285] [<c03aa3cc>] (ubi_eba_copy_leb+0x0/0x544) from [<c03ae308>] (wear_leveling_worker+0x2b0/0x6b4)
[ 554.590509] [<c03ae058>] (wear_leveling_worker+0x0/0x6b4) from [<c03ad564>] (do_work+0x78/0xf4)
[ 554.599719] [<c03ad4ec>] (do_work+0x0/0xf4) from [<c03aeec4>] (ubi_thread+0xc8/0x178)
[ 554.608007] r6:00000000 r5:dc326000 r4:dd56e000 r3:00000000
[ 554.614024] [<c03aedfc>] (ubi_thread+0x0/0x178) from [<c005fbdc>] (kthread+0xac/0xb8)
[ 554.622331] [<c005fb30>] (kthread+0x0/0xb8) from [<c00146f8>] (ret_from_fork+0x14/0x3c)
[ 554.630787] r7:00000000 r6:00000000 r5:c005fb30 r4:dd2d1e24
[ 554.636803] UBI warning: ubi_eba_copy_leb: error -74 while reading data from PEB 515
[ 554.646646] UBI warning: ubi_io_read: error -74 (ECC error) while reading 12 bytes from PEB 515:14142, read only 12 bytes, retry
[ 554.661578] UBI warning: ubi_io_read: error -74 (ECC error) while reading 12 bytes from PEB 515:14142, read only 12 bytes, retry
[ 554.674511] UBI warning: ubi_io_read: error -74 (ECC error) while reading 12 bytes from PEB 515:14142, read only 12 bytes, retry
[ 554.687519] UBI error: ubi_io_read: error -74 (ECC error) while reading 12 bytes from PEB 515:14142, read 12 bytes
[ 554.698489] CPU: 0 PID: 1612 Comm: mount Tainted: G O 3.12.10-ti2013.12.01 #1
[ 554.706972] Backtrace:
[ 554.709572] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 554.718503] r6:dd56e000 r5:0000000c r4:ffffffb6 r3:00000000
[ 554.724522] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 554.733004] [<c056b590>] (dump_stack+0x0/0x28) from [<c03ab7ac>] (ubi_io_read+0x128/0x2ec)
[ 554.741754] [<c03ab684>] (ubi_io_read+0x0/0x2ec) from [<c03a9010>] (ubi_eba_read_leb+0x174/0x428)
[ 554.751164] [<c03a8e9c>] (ubi_eba_read_leb+0x0/0x428) from [<c03a8590>] (ubi_leb_read+0xb0/0x124)
[ 554.760555] [<c03a84e0>] (ubi_leb_read+0x0/0x124) from [<c01fde50>] (ubifs_leb_read+0x2c/0x90)
[ 554.769669] r8:00000000 r7:00000009 r6:0000273e r5:0000000c r4:00000000
[ 554.776800] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c0212bbc>] (ubifs_read_nnode+0x14c/0x1e0)
[ 554.786375] r7:00000000 r6:dd387000 r5:dc0106c0 r4:00000000
[ 554.792391] [<c0212a70>] (ubifs_read_nnode+0x0/0x1e0) from [<c0213240>] (ubifs_lpt_lookup_dirty+0x224/0x2b0)
[ 554.802800] [<c021301c>] (ubifs_lpt_lookup_dirty+0x0/0x2b0) from [<c0206530>] (ubifs_replay_journal+0x34/0x15f4)
[ 554.813577] [<c02064fc>] (ubifs_replay_journal+0x0/0x15f4) from [<c01fb8c8>] (ubifs_mount+0xe70/0x1674)
[ 554.823526] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 554.832192] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 554.840932] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 554.849768] r8:c07f5f04 r7:dd4c0340 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 554.858087] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 554.866387] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c0014660>] (ret_fast_syscall+0x0/0x30)
[ 554.875221] r7:00000015 r6:b6f47830 r5:00008000 r4:00000000
[ 554.881238] UBIFS error (pid 1612): ubifs_leb_read: reading 12 bytes from LEB 9:10046 failed, error -74
[ 554.891178] CPU: 0 PID: 1612 Comm: mount Tainted: G O 3.12.10-ti2013.12.01 #1
[ 554.899636] Backtrace:
[ 554.902240] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 554.911169] r6:0000273e r5:0000000c r4:ffffffb6 r3:00000000
[ 554.917172] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 554.925652] [<c056b590>] (dump_stack+0x0/0x28) from [<c01fdea8>] (ubifs_leb_read+0x84/0x90)
[ 554.934496] [<c01fde24>] (ubifs_leb_read+0x0/0x90) from [<c0212bbc>] (ubifs_read_nnode+0x14c/0x1e0)
[ 554.944068] r7:00000000 r6:dd387000 r5:dc0106c0 r4:00000000
[ 554.950073] [<c0212a70>] (ubifs_read_nnode+0x0/0x1e0) from [<c0213240>] (ubifs_lpt_lookup_dirty+0x224/0x2b0)
[ 554.960481] [<c021301c>] (ubifs_lpt_lookup_dirty+0x0/0x2b0) from [<c0206530>] (ubifs_replay_journal+0x34/0x15f4)
[ 554.971255] [<c02064fc>] (ubifs_replay_journal+0x0/0x15f4) from [<c01fb8c8>] (ubifs_mount+0xe70/0x1674)
[ 554.981203] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 554.989854] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 554.998605] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 555.007445] r8:c07f5f04 r7:dd4c0340 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 555.015762] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 555.024059] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c0014660>] (ret_fast_syscall+0x0/0x30)
[ 555.032891] r7:00000015 r6:b6f47830 r5:00008000 r4:00000000
[ 555.038894] UBIFS error (pid 1612): ubifs_read_nnode: error -74 reading nnode at 9:10046
[ 555.047458] CPU: 0 PID: 1612 Comm: mount Tainted: G O 3.12.10-ti2013.12.01 #1
[ 555.055927] Backtrace:
[ 555.058520] [<c0017880>] (dump_backtrace+0x0/0x10c) from [<c0017a1c>] (show_stack+0x18/0x1c)
[ 555.067446] r6:dd387000 r5:dc0106c0 r4:00000000 r3:00000000
[ 555.073463] [<c0017a04>] (show_stack+0x0/0x1c) from [<c056b5b0>] (dump_stack+0x20/0x28)
[ 555.081942] [<c056b590>] (dump_stack+0x0/0x28) from [<c0212c14>] (ubifs_read_nnode+0x1a4/0x1e0)
[ 555.091158] [<c0212a70>] (ubifs_read_nnode+0x0/0x1e0) from [<c0213240>] (ubifs_lpt_lookup_dirty+0x224/0x2b0)
[ 555.101563] [<c021301c>] (ubifs_lpt_lookup_dirty+0x0/0x2b0) from [<c0206530>] (ubifs_replay_journal+0x34/0x15f4)
[ 555.112335] [<c02064fc>] (ubifs_replay_journal+0x0/0x15f4) from [<c01fb8c8>] (ubifs_mount+0xe70/0x1674)
[ 555.122281] [<c01faa58>] (ubifs_mount+0x0/0x1674) from [<c00d473c>] (mount_fs+0x4c/0x18c)
[ 555.130926] [<c00d46f0>] (mount_fs+0x0/0x18c) from [<c00eb6b0>] (vfs_kern_mount+0x54/0xc8)
[ 555.139679] [<c00eb65c>] (vfs_kern_mount+0x0/0xc8) from [<c00ed53c>] (do_mount+0x1c8/0x8c8)
[ 555.148511] r8:c07f5f04 r7:dd4c0340 r6:00000000 r5:00008000 r4:c07fcd9c
r3:00000000
[ 555.156833] [<c00ed374>] (do_mount+0x0/0x8c8) from [<c00edcc8>] (SyS_mount+0x8c/0xc0)
[ 555.165128] [<c00edc3c>] (SyS_mount+0x0/0xc0) from [<c0014660>] (ret_fast_syscall+0x0/0x30)
[ 555.173963] r7:00000015 r6:b6f47830 r5:00008000 r4:00000000
[ 555.180744] UBIFS: background thread "ubifs_bgt0_0" stops
mount: mounting ubi0:rootfs on /media/card/ failed: Bad message
Hi,
Finally i was able to boot using Nand Flash, i have used SDK 5 instead of SDK 7 and while flashing through u-boot i have changed nand ecc to "BCH8" as
#nandecc hw 2
Miroslav,
I'm unfamiliar to ezsdk 7.0 but just know ezsdk 6.0.
For the kernel customization of 6.0, I modified board-am335xevm.c, where I changed pin-mux settings or gpio control.
Also board-am335xevm has the description for NAND paritition(offeset & length for MLO/U-boot/kernel/fs).
But ezsdk 7.0 doesn't have board-am335xevm.c. Generally how do we perform kernel optimization?
Thanks,
Devin
Hi Devin,
But ezsdk 7.0 doesn't have board-am335xevm.c. Generally how do we perform kernel optimization?
Kernel optimization means what kind of optimizations,
booting ?
http://processors.wiki.ti.com/index.php/Optimize_Linux_Boot_Time
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Boot_Time_Reduction
http://processors.wiki.ti.com/index.php/Boot_Time_Optimization#Linux_Boot_Sequence
Please elaborate your questions.
Create new thread if you have any further follow up required.
Devin,
The new SDK (v7) uses device trees instead of board config files. The corresponding device tree file is <linux_dir>/arch/arm/boot/dts/am335x-evm.dts
Best regards,
Miroslav
Hi, Miroslav,
Thanks for your reply.
Sorry to make my question in this E2E query.
I'll check the .dts file. By the way, does TI have any provide any training material for custominzing the file?
hmm.... I took a look at the file roughly. The structure of the dts file is really new to me.
Thanks,
Devin
The Documentation inside the kernel is pretty much sufficient. Please check the <linux_dir>/Documentation/devicetree/ folder and subfolders for anything that might be of interest / prove useful to you.
Also check the Sitara Linux SDK (v7) wiki page, which is still under development, but you can find some useful information regarding the AM335x peripherals usage with device trees.
And here is how to compile the device tree binaries: http://processors.wiki.ti.com/index.php/Linux_Kernel_Users_Guide#Compiling_the_Device_Tree_Binaries
Best regards,
Miroslav