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.

Linux/TMS320DM8148: Linux Kernel - "uncompression error -- System halted"

Part Number: TMS320DM8148

Tool/software: Linux

Hi all,

1. custom board with DM8148 running at 1Ghz, DSP at 700Mhz, DDR3 1GB at 666Mhz connected to DDR0.

2. at uboot we are able to fetch uImage via eth to DDR3 at 0x81000000.

3. The problem is when performing bootm the kernel starts the uncompression but hangs immediately with the following message "uncompression error -- System halted" also see below.

- the uImage is uncompressed well on our EVM board.

- what can be the cause for that issue ?

- maybe something should be done with cache ?

Please advice.

Filename 'uImage'.

Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##########################
done
Bytes transferred = 2794564 (0x2aa444)
## Booting kernel from Legacy Image at 81000000 ...
Image Name: Linux-2.6.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2794500 Bytes = 2.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux...

uncompression error

-- System halted

  • Hi Ybrk,

    Do you use DM814x EZSDK 5.05.02.00 or else?

    Please provide the exact commands you are using to create your uImage.

    See also below e2e threads:

    e2e.ti.com/.../40950
    e2e.ti.com/.../1306362
    e2e.ti.com/.../335258

    Regards,
    Pavel
  • Hi Pavel,

    1. I'm using DVRRDK_04.01.00.02

    2. The uImage is been created by DVRRDK's script using 'make dvr_rdk_linux' command
    but I also tried with this:
    mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux-2.6.37+" -d Image.gz uImage
    and
    mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008040 -n "Linux-2.6.37+" -d Image.gz uImage

    3.I followed these threads without success.

    4. NEW:
    The uImage is uncompressed when I comment out the 'bl cache_on' at the kernel head.S file. but it takes lots of time.
    when the uncompression done, there is a few lines printed out from the kernel but it also hangs. see below.

    Filename 'uImage'.
    Load address: 0x81000000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #######################################################
    done
    Bytes transferred = 1942532 (0x1da404)
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-2.6.37+
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 1942468 Bytes = 1.9 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37+
    Mv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8148evm
    bootconsole [earlycon0] enabled
    vram size = 20971520 at 0x0
    ti81xx_reserve: ### Reserved DDR region @87f00000
    reserved size = 20971520 at 0x0
    FB: Reserving 20971520 bytes SDRAM for VRAM


    Please advice
  • Ybrk,

    Please try to create your uImage following the below guidelines.

    processors.wiki.ti.com/.../TI81XX_PSP_User_Guide

    Regards,
    Pavel
  • Hi Pavel,

    I tried with this without success.
    mkimage -A arm -O linux -T kernel -C none -a 0x90008000 -e 0x90008000 -n 'Linux-2.6.37' -d arch/arm/boot/zImage uImage

    why do you think this is uImage problem ? I was able to boot this uImage on our evb.

    Please advice.
  • This issue seems specific for RDK. Refer to the below e2e post:

    e2e.ti.com/.../660422