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.

dm8127 ipnc unstable ubifs.

Expert 1060 points

 

Hi, experts.

I have a dm8127 IPNC evm from Appro. 

When I power down and up few times, the filesystem is broken.

I attached the full error log.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.10.29 14:36:24 =~=~=~=~=~=~=~=~=~=~=~=


U-Boot 2010.06 (Jun 19 2012 - 00:05:44) DM8127_IPNC_3.00.00

TI8148-GP rev 2.1

ARM clk: 600MHz
DDR clk: 400MHz
L3 clk: 200MHz
IVA clk: 450MHz
ISS clk: 400MHz
DSP Default OFF
DSS Default OFF

DRAM:  512 MiB
NAND:  HW ECC BCH8 Selected
256 MiB
Using default environment

The 2nd stage U-Boot will now be auto-loaded
Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
Hit any key to stop autoboot:  2  1  0 

NAND read: device 0 offset 0x20000, size 0x40000
 262144 bytes read: OK
## Starting application at 0x81000000 ...


U-Boot 2010.06 (Jun 19 2012 - 00:06:25) DM8127_IPNC_3.00.00

TI8148-GP rev 2.1

ARM clk: 600MHz
DDR clk: 400MHz
L3 clk: 200MHz
IVA clk: 450MHz
ISS clk: 400MHz
DSP Default OFF
DSS Default OFF

I2C:   ready
DRAM:  512 MiB
NAND:  HW ECC BCH8 Selected
256 MiB
MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
                          .:;rrr;;.                   
                    ,5#@@@@#####@@@@@@#2,             
                 ,A@@@hi;;;r5;;;;r;rrSG@@@A,          
               r@@#i;:;s222hG;rrsrrrrrr;ri#@@r        
             :@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:      
            B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B     
           @@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@    
          @@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@   
         @@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@  
        G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G 
        @9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@ 
       X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X
       @#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@
       @A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@
       @&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@
       @#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@
       M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#
       :@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,
        @@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@ 
         @A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@  
         ;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;  
          r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r   
           ,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,    
             B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H      
              .@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@.       
                .A@@#5r;;;r;;;rrr;r:r#AsM@@H.         
                   ;&@@@@MhXS5i5SX9B@@@@G;            
                       :ihM#@@@@@##hs,                

Date: 2011-03-17 (Thursday)    Time: 14:41:01
Net:   Detected MACID:0:18:32:38:df:57
cpsw
Hit any key to stop autoboot:  2  1  0 

Loading from nand0, offset 0x280000
   Image Name:   Linux-2.6.37_DM8127_IPNC_3.00.00
   Created:      2012-06-18  18:42:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2338808 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
ECC: uncorrectable.
NAND read from offset 4a0000 failed -74
** Read error
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-2.6.37_DM8127_IPNC_3.00.00
   Created:      2012-06-18  18:42:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2338808 Bytes = 2.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Trying to install type control for IRQ375

Trying to set irq flags for IRQ375

omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!

_omap_mux_init_gpio: Could not set gpio79

_omap_mux_init_gpio: Could not set gpio80

omap_voltage_late_init: Voltage driver support not added
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 293:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 294:4096, read 126976 bytes

CPSW phy found : id is : 0x4dd074
PHY 0:01 not found
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 550:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 1479:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 551:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 2048 bytes from PEB 514:32768, read 2048 bytes
UBIFS error (pid 1): ubifs_leb_read: reading 2048 bytes from LEB 1461:28672 failed, error -74
UBI error: ubi_io_read: error -74 (ECC error) while reading 2048 bytes from PEB 515:49152, read 2048 bytes
UBIFS error (pid 1): ubifs_leb_read: reading 2048 bytes from LEB 8:45056 failed, error -74
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 46:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 24576 bytes from PEB 516:106496, read 24576 bytes
UBI error: ubi_io_read: error -74 (ECC error) while reading 69632 bytes from PEB 517:61440, read 69632 bytes

INIT: version 2.86 booting

Error opening /dev/fb0: No such file or directory
Please wait: booting...
Starting udev
Root filesystem already rw, not remounting
Caching udev devnodes
Populating dev cachetar: dev/.udev/queue: No such file or directory
tar: error exit delayed from previous errors

Configuring network interfaces... done.
Setting up IP spoofing protection: rp_filter.
rm: cannot remove '/tmp': Device or resource busy
 inside finish.sh 
numid=1,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
  : values=127,127
  | dBscale-min=-63.50dB,step=0.50dB,mute=0
UBI error: ubi_io_read: error -74 (ECC error) while reading 131072 bytes from PEB 513:0, read 131072 bytes
UBI error: torture_peb: read problems on freshly erased PEB 513, must be bad
UBI error: erase_worker: failed to erase PEB 513, error -5
UBI error: erase_worker: no reserved physical eraseblocks
UBI error: do_work: work failed with error code -5
UBI error: ubi_thread: ubi_bgt0d: work failed with error code -5
SysLink version : 2.10.06.28
SysLink module created on Date:Jun 19 2012 Time:00:12:59
Trace enabled
Trace SetFailureReason enabled
Could not open the mem file 
/dev/mem opened.
Could not open the mem file 
data 2
Segmentation fault


 [host]  ERROR: /dev/mem open failed !!!


 [host]  Setting DMM priority for [HDVICP0 ] to [1] ( 0x00000000 = 0x00000009 )


 [host]  ERROR: /dev/mem open failed !!!


 [host]  Setting L3 bandwidth regulator for [HDVICP0 ] to [press=[0,0] BW=900, WM Cycles=2500]
Creat queue id:0
queue id:0


 [host]  ERROR: /dev/mem open failed !!!


 [host]  Setting DMM priority for [ISS     ] to [0] ( 0x00000000 = 0x00800000 )
FileMngThread created
Creat queue id:32769
queue id:32769
queue id:32769
AlramThread created
Share memory init success
Creat queue id:65538
queue id:65538
Creat queue id:98307
queue id:98307
IPNC_3.00.00 (a0875405@bangvideoapps01) (gcc version 4.3.3 (Sourcery G+ 


 [host] Attached to slave procId 1.
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
queue id:65538

CPU is TI812x
Error: SemWait: Invalid Semaphore handler
Error: SemRelease: Invalid Semaphore handler

*****************************************************************

    IPNC BUILD VERSION: DM8127 IPNC RDK VERSION 03.00.00.05	

*****************************************************************

./bin/ipnc_rdk_mcfw.out   SINGLESTREAM SINGLE_H264 NONE2A AWB 1080P_D1 H264 HIGH_SPEED1 &
Error: SemWait: Invalid Semaphore handler
Error: SemRelease: Invalid Semaphore handler
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
Segmentation fault
Could not open the mem file 
/dev/mem opened.
Could not open the mem file 
Segmentation fault


 [host] Application Start Completed


 [host] Attached to slave procId 2.


 [host] Loaded file ./firmware/ipnc_rdk_fw_m3video.xem3 on slave procId 1.


 [host] Vsys_allocBuf - addr = 0x40bec000,size = 65011712


 [host] MCFW_IPCBITS:App_streamSysInit:virt addr of 85000000 cir buffer  is 40bec000
##########pInfo->totalsize 61865984


 [host] MemMng_memcpy_open:OSA_dmaOpen passed with ch id = 4


 [host] CacheMng_MemCpy_open:OSA_dmaOpen passed with ch id = 9
Creat queue id:131076
queue id:131076
queue id:65538


 [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:Entered...

 [host] MCFW_IPCFRAMES:App_ipcFramesSendRecvFxn:Entered...

 [host]  0: SYSTEM: System Common Init in progress !!!


 [host]  1: SYSTEM: IPC init in progress !!!


 [host]  56: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...


 [host] Started slave procId 1.


 [host] After Ipc_loadcallback status [0x00000000]


 [host] Loaded file ./firmware/ipnc_rdk_fw_m3vpss.xem3 on slave procId 2.


 [host] Started slave procId 2.


 [host] After Ipc_loadcallback status [0x00000000]
UBIFS error (pid 44): ubifs_leb_write: writing 2048 bytes to LEB 282:102400 failed, error -30
UBIFS error (pid 44): ubifs_bg_wbufs_sync: cannot sync write-buffer, error -30


 [host]  1105: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...


 [host] After Ipc_startcallback status [0x097d2000]


 [host] After Ipc_startcallback status [0x097d2000]


 [host]  2315: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...


 [host]  3316: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...


 [host]  3318: SYSTEM: Creating MsgQ [HOST_MSGQ] ...


 [host]  3320: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...


 [host]  3321: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...


 [host]  4322: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...


 [host]  4322: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...


 [host]  4323: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 


 [host]  4324: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 


 [host]  4325: SYSTEM: IPC init DONE !!!


 [host]  4330: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ...


 [host]  4332: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ...


 [host]  4333: SYSTEM: ListElem Shared Addr = 0x00083e00


 [host]  4334: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...


 [host]  4336: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...


 [host]  4337: SYSTEM: ListElem Shared Addr = 0x0009d680


 [host]  4339: SYSTEM: Creating ListMP [HOST_IPC_OUT_23] in region 0 ...


 [host]  4341: SYSTEM: Creating ListMP [HOST_IPC_IN_23] in region 0 ...


 [host]  4342: SYSTEM: ListElem Shared Addr = 0x000b6f00


 [host]  4343: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...


 [host]  4345: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...


 [host]  4346: SYSTEM: ListElem Shared Addr = 0x000d6500


 [host]  4347: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...


 [host]  4349: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...


 [host]  4351: SYSTEM: ListElem Shared Addr = 0x000f5b00


 [host]  4351: SYSTEM: System Common Init Done !!!


 [host] 
********** LOW POWER USECASE ********


 [host] ********* Entered Tri Streaming usecase - H264 1080p @60fps + H264 D1 @30fps + MJPEG 1080p @5fps ********

 inside autorun 
mkdosfs 2.11 (12 Mar 2005)
unable to get drive geometry, using default 255/63/dev/sbulla has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1024 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 1 sector, and provides 247 clusters.
Root directory contains 512 slots.
Volume ID is 4d821d96, no volume label.
Simple mixer control 'PGA',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 119
  Front Left: Capture 80 [67%] [40.00dB] [on]
  Front Right: Capture 80 [67%] [40.00dB] [on]
queue id:0
cp: cannot create '/usr/share/zoneinfo/localtime': Read-only file system
cp: cannot create '/usr/share/zoneinfo/posixrules': Read-only file system
ln: /etc/localtime: File exists
ln: /etc/localtime: File exists
ApproDrvInit: 7
queue id:131076
main 188
ApproDrvInit: 3
queue id:131076
main 192
queue id:0
TimeOut occure in boot_proc.
Program exit.
TimeOut occure in boot_proc.
Program exit.
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 830, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 6581, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 6582, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 6583, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 119, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 544, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 513, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 497, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 480, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 538, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 505, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 509, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 503, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 504, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 508, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 506, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 507, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 502, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 495, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 493, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 489, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 494, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 492, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 491, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 490, error -30
UBIFS error (pid 914): make_reservation: cannot reserve 160 bytes in jhead 1, error -30
UBIFS error (pid 914): ubifs_write_inode: can't write inode 496, error -30

The log shows the error after initialize kernel but usually this error comes during kernel initialization.

When I get this error, I rewrite ubifs and board works fine until I meet this error again -_-a.

strange thing is SDboot doesn't occur this kind of error.

please let me know how to solve it

Best regards.

Jay.

  • Jay,

    Can you send the following files to renjith.thomas@pathpartnertech.com?

    arch/arm/mach-omap2/board-ti8127-ipnc.c or your corresponding board file
    arch/arm/mach-omap2/board-flash.c
    arch/arm/mach-omap2/gpmc.c
    drivers/mtd/nand/nand_base.c
    drivers/mtd/nand/omap2.c