Hi,
I have an issue booting the Davinci 8127 device. i m not able to figure out the mistake i m making. I have flashed the kernel image 'uImage' provided in IPNC RDK v3.0.0. Following commands were used:
TI8148_IPNC# tftp 0x81000000 uImage;
TI8148_IPNC# nand erase 0x00280000 0x00300000;
TI8148_IPNC# nand write.i 0x81000000 0x00280000 0x300000;
To flash the filesystem 'ubifs_ipnc_full_feature.bin' provided in the IPNC RDK v3.0.0, i used following commands:
TI8148_IPNC# nand scrub 0x006C0000 0xB940000
TI8148_IPNC# mw.b 0x81000000 0xFF 0x3400000
TI8148_IPNC# tftp 0x81000000 ubifs_ipnc.bin
TI8148_IPNC# nand erase 0x006C0000 0xB940000
TI8148_IPNC# nand write 0x81000000 0x006C0000 0x33A0000
Following bootargs were used:
bootargs=console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=134.202.84.79::134.202.84.245:255.255.255.0 eth=00.0C.0C.02.38.56 cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk
Following bootcmd was used:
bootcmd=ipnc_ff_init 1;nboot 0x81000000 0 0x280000; bootm
Now when i boot the device for first time after flashing kernel and filesystem i get following 'Empty flash at 0x02367324 ends at 0x02367328' errors inifinitly. A snippet of bootlog is provided here:
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )
Creating 7 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000020000 : "U-Boot-min"
0x000000020000-0x000000260000 : "U-Boot"
0x000000260000-0x000000280000 : "U-Boot Env"
0x000000280000-0x0000006c0000 : "Kernel"
0x0000006c0000-0x00000c000000 : "File System"
0x00000c000000-0x00000cc00000 : "Data"
0x00000cc00000-0x000010000000 : "Reserved"
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: max. sequence number: 0
UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 10, need 14
UBI: volume 0 ("rootfs") re-sized from 1462 to 1462 LEBs
UBI: attached mtd4 to ubi0
UBI: MTD device name: "File System"
UBI: MTD device size: 185 MiB
UBI: number of good PEBs: 1476
UBI: number of bad PEBs: 6
UBI: number of corrupted PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 1476
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 1/0
UBI: image sequence number: 137175596
UBI: background thread "ubi_bgt0d" started, PID 39
davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux video capture interface: v2.00
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
notify_init : notify drivercreated for remote proc id 2 at physical Address 0xbfd00000
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
ALSA device list:
#0: TI8148 IPNC
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
Detected MACID=0:c:c:2:38:56
tps65911-rtc tps65911-rtc: setting system clock to 2011-03-17 15:48:14 UTC (1300376894)
CPSW phy found : id is : 0x4dd074
PHY 0:01 not found
IP-Config: Complete:
device=eth0, addr=134.202.84.79, mask=255.255.255.0, gw=134.202.84.245,
host=134.202.84.79, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
UBIFS: start fixing up free space
UBI: run torture test for PEB 1474
PHY: 0:00 - Link is Up - 100/Full
UBIFS: free space fixup complete
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size: 184242176 bytes (179924 KiB, 175 MiB, 1451 LEBs)
UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
devtmpfs: mounted
Freeing init memory: 192K
Failed to execute /init. Attempting defaults...
UBI error: ubi_io_read: error -74 (ECC error) while reading 131072 bytes from PEB 1474:0, read 131072 bytes
UBI error: torture_peb: read problems on freshly erased PEB 1474, must be bad
UBI error: erase_worker: failed to erase PEB 1474, error -5
UBI: mark PEB 1474 as bad
UBI: 9 PEBs left in the reserve
INIT: version 2.86 booting
Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
udevd (75): /proc/75/oom_adj is deprecated, please use /proc/75/oom_score_adj instead.
Root filesystem already rw, not remounting
Caching udev devnodes
Populating dev cache
Configuring network interfaces... done.
Setting up IP spoofing protection: rp_filter.
rm: cannot remove '/tmp': Device or resource busy
inside finish.sh
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x4255 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x3ea8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000003c: 0xf422 instead
Empty flash at 0x00000200 ends at 0x00000208
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000208: 0xfff7 instead
Empty flash at 0x0000020c ends at 0x00000238
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000238: 0xfff7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000023c: 0xffff instead
Empty flash at 0x00000240 ends at 0x00000248
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000248: 0xffff instead
Empty flash at 0x0000024c ends at 0x00000250
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000250: 0xffff instead
Empty flash at 0x00000254 ends at 0x00000264
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000264: 0xffff instead
Further such events for this erase block will not be printed
Empty flash at 0x00000268 ends at 0x00000270
Empty flash at 0x00000274 ends at 0x00000288
Empty flash at 0x0000028c ends at 0x00000290
Empty flash at 0x00000294 ends at 0x0000029c
Empty flash at 0x000002a0 ends at 0x000002a8
Empty flash at 0x000002ac ends at 0x000002b0
Empty flash at 0x000002b4 ends at 0x000002c8
Empty flash at 0x000002cc ends at 0x000002d0
Empty flash at 0x000002d4 ends at 0x000002dc
Empty flash at 0x000002e0 ends at 0x000002e4
Empty flash at 0x000002ec ends at 0x00000304
Empty flash at 0x0000030c ends at 0x00000350
Empty flash at 0x00000354 ends at 0x0000035c
Empty flash at 0x00000360 ends at 0x00000368
Empty flash at 0x0000036c ends at 0x00000398
Empty flash at 0x0000039c ends at 0x000003a4
Empty flash at 0x000003ac ends at 0x000003b0
Empty flash at 0x000003b4 ends at 0x000003bc
Empty flash at 0x000003c0 ends at 0x000003c8
Empty flash at 0x000003d0 ends at 0x000003dc
Empty flash at 0x000003e0 ends at 0x000003ec
Empty flash at 0x000003f4 ends at 0x00000428
Empty flash at 0x0000042c ends at 0x00000450
Empty flash at 0x00000454 ends at 0x00000470
Empty flash at 0x00000474 ends at 0x000004bc
Empty flash at 0x000004c0 ends at 0x000004f8
Empty flash at 0x000004fc ends at 0x0000051c
Empty flash at 0x00000524 ends at 0x000005ac
Empty flash at 0x000005b4 ends at 0x000005e0
Empty flash at 0x000005e4 ends at 0x000005e8
Empty flash at 0x000005ec ends at 0x0000060c
Empty flash at 0x00000610 ends at 0x00000620
Empty flash at 0x00000624 ends at 0x0000062c
Empty flash at 0x00000630 ends at 0x00000668
Empty flash at 0x0000066c ends at 0x00000688
If i reboot the device, i get 'Kernel Panic' message on this boot.
Sorry for such a long post but i tried to post the necessary info only. Thanks