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.

DM368IPNC:Error -3 while decompressing! on booting

 

Hello all,

 

I am working on Appro DM368IPNC reference design.My directory structure is displayed in the attached file.

I made by own uImage by make sysall command and also my own cramfs using the procedure described in user guide.

But when i am booting up i am getting the following output:

## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.18_pro500-davinci_IPNC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1865336 Bytes =  1.8 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (mayank@mayank-laptop) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Sat1
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM368 IPNC
Memory policy: ECC disabled, Data cache writeback
DaVinci DM0365 variant 0x8
PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428
PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists.  Total pages: 12288
Kernel command line: mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off e’
TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:��’
PID hash table entries: 256 (order: 8, 1024 bytes)
Clock event device timer0_0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 28196KB available (3193K code, 654K data, 184K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 16384K
NET: Registered protocol family 16
DaVinci: 104 gpio irqs
MUX: initialized GPIO20
MUX: initialized I2C_SCL
Generic PHY: Registered new driver
ch0 default output "COMPOSITE", mode "NTSC"
VPBE Encoder Initialized
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered

 ***davinci_spi_board_init()!<6>
 ***davinci_spi_board_init_End(0)!<5>VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.1 (2006/08/19) Phillip Lougher
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Aug 20 2011 15:03:17 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Davinci EMAC MII Bus: probed
MAC address is 00:0C:0C:��’
TI DaVinci EMAC Linux version updated 4.0
netconsole: not configured, aborting
Linux video capture interface: v2.00
Trying to register davinci display video device.
layer=c2f08000,layer->video_dev=c2f08160
Trying to register davinci display video device.
layer=c2f1be00,layer->video_dev=c2f1bf60
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
i2c /dev entries driver
nand_davinci nand_davinci.0: Using 4-bit hardware ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Creating 7 MTD partitions on "nand_davinci.0":
0x00000000-0x00300000 : "bootloader"
0x00300000-0x00500000 : "params"
0x00500000-0x00700000 : "kernel"
0x00700000-0x02700000 : "filesystem"
0x02700000-0x02900000 : "data1"
0x02900000-0x02d00000 : "Calibration"
0x02d00000-0x08000000 : "data2"
nand_davinci nand_davinci.0: hardware revision: 2.3
musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Peripheral mode controller at c3866000 using DMA, IRQ 12
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 as rtc0
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
CQ0093 Voice Codec 0.1
asoc: cq93vc <-> davinci-vcif mapping ok
ALSA device list:
  #0: On-chip voice codec (cq93vc)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 00:25:26 (946686326)
Time: timer0_1 clocksource has been installed.
Clock event device timer0_0 configured with caps set: 08
Switched to high resolution mode on CPU 0
IP-Config: Complete:
      device=eth0, addr=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.101, domain=, nis-domain=(none),
     bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 13996KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 184K
Warning: unable to open an initial console.
CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Aug 20 2011 15:08:43
I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Aug 20 2011 15:08:45
DRV: EDMACC.QUEPRI  = 00000777
DRV: SYSTEM.MSTPRI0 = 00440022
DRV: SYSTEM.MSTPRI1 = 00000244
DRV: ISP.BCR        = 00000002
DRV: SYSTEM.MISC    = 00000391
CMEMK module: built on Aug 20 2011 at 15:08:16
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
EDMAK module: built on Aug 20 2011 at 15:08:18
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Aug 20 2011 at 15:08:19
  Reference Linux version 2.6.18
  File /home/mayank/DM36x/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
io scheduler deadline registered
io scheduler cfq registered
 sbulla: unknown partition table
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
loop: loaded (max 8 devices)
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
Loading iSCSI transport class v1.1-646.<5>iscsi: registered transport (tcp)
Error -3 while decompressing!
c03de78c(-2652440)->c0d8f000(4096)
Error -3 while decompressing!
c03dde74(-8370275)->c0d96000(4096)
Error -3 while decompressing!
c03da611(10332143)->c140a000(4096)
Error -3 while decompressing!
c03d9e00(-2104260)->c140b000(4096)
Error -3 while decompressing!
c03de23c(45143)->c0d42000(4096)
Error -3 while decompressing!
c03de293(-7853201)->c0d43000(4096)
Error -3 while decompressing!
c03d9e02(7798816)->c0dc2000(4096)
Error -3 while decompressing!
c03d9e22(2098254)->c0dc3000(4096)
Error -3 while decompressing!
c03de270(-1503520)->c10e4000(4096)
Error -3 while decompressing!
c03de150(1704164)->c10e5000(4096)
Error -3 while decompressing!
c03da234(-1568708)->c0de4000(4096)
Error -3 while decompressing!
c03da270(1899914)->c0de5000(4096)
Error -3 while decompressing!
c03ddffa(-10291717)->c0dd2000(4096)
Error -3 while decompressing!
c03de5f5(9827835)->c0dd3000(4096)
Error -3 while decompressing!
c03dabf0(-1952240)->c0daa000(4096)
Error -3 while decompressing!
c03da200(-8469392)->c0dab000(4096)
Error -3 while decompressing!
c03de670(2492807)->c108c000(4096)
Error -3 while decompressing!
c03ddff7(-327479)->c108d000(4096)
Error -3 while decompressing!
c03da0c0(6311224)->c108e000(4096)
Error -3 while decompressing!
c03d9df8(395266)->c108f000(4096)
Error -3 while decompressing!
c03de5fa(2021394)->c0db8000(4096)
Error -3 while decompressing!
c03dde0c(-2424043)->c0db9000(4096)
Error -3 while decompressing!
c03da121(-8389425)->c0dba000(4096)
Error -3 while decompressing!
c03d9df0(10879073)->c0dbb000(4096)
Error -3 while decompressing!
c03dde51(-10928189)->c0de0000(4096)
Error -3 while decompressing!
c03dde14(2457564)->c0de1000(4096)
Error -3 while decompressing!
c03d9df0(-1998780)->c0de2000(4096)
Error -3 while decompressing!
c03d9e34(-97920)->c0de3000(4096)
Error -3 while decompressing!
c03de254(-2132963)->c106c000(4096)
Error -3 while decompressing!
c03da671(2070467)->c0dcd000(4096)
Error -3 while decompressing!
c03dde34(-2750770)->c10f2000(4096)
Error -3 while decompressing!
c03de502(2099702)->c10f3000(4096)
Error -3 while decompressing!
c03d9ef8(-7678214)->c0ddc000(4096)
Error -3 while decompressing!
c03da5f2(-2802684)->c0ddd000(4096)
Error -3 while decompressing!
c03de1f6(10632230)->c0dde000(4096)
Error -3 while decompressing!
c03dde1c(-2173476)->c0ddf000(4096)
Error -3 while decompressing!
c03da3f8(-8418760)->c0dd4000(4096)
Error -3 while decompressing!
c03d9e30(516060)->c0dd5000(4096)
Error -3 while decompressing!
c03dde0c(8446966)->c0dd6000(4096)
Error -3 while decompressing!
c03de202(-6882322)->c0dd7000(4096)
Error -3 while decompressing!
c03d9df0(-1419264)->c0dc8000(4096)
Error -3 while decompressing!
c03da5f0(1870880)->c0dc9000(4096)
Error -3 while decompressing!
c03de210(6290657)->c0dca000(4096)
Error -3 while decompressing!
c03ddef1(1574435)->c0dcb000(4096)
Error -3 while decompressing!
c03da514(792980)->c0de8000(4096)
Error -3 while decompressing!
c03d9ea8(-2891640)->c0de9000(4096)
Error -3 while decompressing!
c03ddf30(-7598295)->c0dea000(4096)
Error -3 while decompressing!
c03dde59(9709472)->c0deb000(4096)
Error -3 while decompressing!
c03da5f9(-1838344)->c0dec000(4096)
Error -3 while decompressing!
c03da8f1(-7858097)->c0ded000(4096)
Error -3 while decompressing!
c03de140(7602954)->c0dee000(4096)
Error -3 while decompressing!
c03de44a(-13575)->c0def000(4096)
Error -3 while decompressing!
c03d9f43(-5754175)->c0df0000(4096)
Error -3 while decompressing!
c03da204(7846957)->c0df1000(4096)
Error -3 while decompressing!
c03dde31(-9683006)->c0df2000(4096)
Error -3 while decompressing!
c03dddf3(-794546)->c0df3000(4096)
Error -3 while decompressing!
c03d9e41(10752322)->c0df4000(4096)
Error -3 while decompressing!
c03d9f83(-10221897)->c0df5000(4096)
Error -3 while decompressing!
c03de63a(2101129)->c0df6000(4096)
Error -3 while decompressing!
c03de5c3(6274109)->c0df7000(4096)
Error -3 while decompressing!
c03da200(32756)->c0df8000(4096)
Error -3 while decompressing!
c03da1f4(-6026066)->c0df9000(4096)
Error -3 while decompressing!
c03ddea2(6254562)->c0dfa000(4096)
Error -3 while decompressing!
c03da2c4(-8651540)->c2f0c000(4096)
Error -3 while decompressing!
c03ddfb0(258816)->c0918000(4096)
Error -3 while decompressing!
c03da2b0(-2391056)->c0919000(4096)
Error -3 while decompressing!
c03da6a0(7898974)->c0912000(4096)
Error -3 while decompressing!
c03dddfe(-7605250)->c0913000(4096)
Error -3 while decompressi

 

The contents of ls -l command at following directory is:

/home/mayank/DM36x/Utils/bin

rwxrwxrwx 1 mayank mayank 13254656 2011-08-03 14:20 cramfs_DM368_IPNC_IMX036_NewGUI
-rwxrwxrwx 1 mayank mayank 14331904 2011-08-20 15:24 cramfsImage_ipnc_DM368_IMX036
-rwxrwxrwx 1 mayank mayank 14475264 2011-06-30 13:21 cramfsImage_ipnc_dm368_IMX036_2.60.01
-rwxrwxrwx 1 mayank mayank   150880 2011-04-21 10:57 diagnostic_ipnc_dm368_1.0.0.bin
-rwxrwxrwx 1 mayank mayank    20480 2011-04-20 12:17 ubl_432arm_340ddr_ipnc_dm368_1.1.0.bin
-rwxrwxrwx 1 mayank mayank   151648 2011-04-20 12:17 u-boot-1.3.4-dm368_ipnc_1.0.1.bin
-rwxrwxrwx 1 mayank mayank  1865420 2011-08-19 14:30 uImage
-rwxr-xr-x 1 mayank mayank  1865400 2011-08-20 16:15 uImage_ipnc_DM368_IMX036
-rwxrwxrwx 1 mayank mayank  1818472 2011-06-30 13:21 uImage_ipnc_dm368_IMX036_2.60.01

and i am writing the following command to load uimage and cramfsimage.

tftp 0x80700000 uImage_ipnc_DM368_IMX036_2.60.01
tftp 0x80700000 uImage_ipnc_DM368_IMX036
tftp 0x82000000 cramfsImage_ipnc_dm368_IMX036_2.60.01
tftp 0x82000000 cramfsImage_ipnc_DM368_IMX036
nand erase 0x200000 0xF00000
nand write 0x80700000 0x500000 0x200000
nand write 0x82000000 0x700000 0xD00000
setenv bootcmd 'nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000'
setenv bootargs 'mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:’

saveenv

and after i boot the board i get the error decompressing.

Also my printenv is as follows:

bootdelay=4
baudrate=115200
bootfile="uImage"
ethaddr=00:22:19:fa:1a:b4
setboot=setenv bootargs $(bootargs)
filesize=1C76B8
fileaddr=80700000
ipaddr=10.17.8.131
serverip=10.17.8.125
bootcmd=nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000
bootargs=mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:’
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.3.4 (Dec  9 2010 - 17:44:14) DM368-IPNC-1.0.1

Environment size: 534/131068 bytes

I know i am missing something in tftpwrite probably address or size problem.

or thw whole cramfsimage is corrupt:

Please guide me how can i get rid of this error.

Thanks and Regards,

Mayank

 

  • I think these are the numbers you are working with.

    TYPE    RAMADDR  ROMADDR  MEMSIZE  FILESIZE
    kernel  80700000 00500000 00200000 001C76CC
    filesys 82000000 00700000 00D00000 00DCE000

    Note that 00D00000 is less than 00DCE000. Increase to 00E00000.

    For TFTP'ing and programming kernel
    tftp 0x80700000 uImage
    nand erase 0x500000 0x200000
    nand write 0x80700000 0x500000 0x200000

    For TFTP'ing and programming filesystem
    tftp 0x82000000 cramfsImage
    nand erase 0x700000 0xE00000
    nand write 0x82000000 0x700000 0xE00000

    Note the order of the erase arguments. Size is the last argument.

    Change the "nand read" in "bootcmd" to match the new size.

    bootcmd=nand read 0x82000000 0x700000 0xE00000;nboot 0x80700000 0 0x500000;bootm 0x80700000
    bootargs=mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:’

    Your bootcmd seems to have a bad ending with "eth=00:0C:0C:’".