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.

dm8148 boot stop at ti81xx_pcie_setup



Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (enson@ubuntu) (gcc version 4.4.3 (ctng-1.6.1) ) #0 Thu Feb 28 14:06:28 CST 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8148evm
bootconsole [earlycon0] enabled
reserved size = 52428800 at 0x0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8148 2.1
SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 19712
Kernel command line: console=ttyO0,115200n8 notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.1.9:/home/enson/targetfs/,nolock rw mem=128M ip=dhcp pcie=x1 earlyprintk
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 78MB = 78MB total
Memory: 72824k/72824k available, 58248k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.init : 0xc0008000 - 0xc0042000 ( 232 kB)
.text : 0xc0042000 - 0xc0534000 (5064 kB)
.data : 0xc0534000 - 0xc0580f40 ( 308 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:407
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
GPMC revision 6.0
Trying to install interrupt handler for IRQ400
Trying to install interrupt handler for IRQ401
Trying to install interrupt handler for IRQ402
Trying to install interrupt handler for IRQ403
Trying to install interrupt handler for IRQ404
Trying to install interrupt handler for IRQ405
Trying to install interrupt handler for IRQ406
Trying to install type control for IRQ407
Trying to set irq flags for IRQ407
OMAP clockevent source: GPTIMER1 at 20000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 599.65 BogoMIPS (lpj=2998272)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
omap_barriers_init: failed to reserve ddr
omap_voltage_early_init: voltage driver support not added
regulator: core version 0.5
regulator: dummy:
0xc0028cbc
0xc0029790
NET: Registered protocol family 16
0xc00115dc
omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
omap_voltage_add_dev: VDD specified does not exist!
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
OMAP GPIO hardware version 0.1
omap_mux_init: Add partition: #1: core, flags: 4
_omap_mux_init_gpio: Could not set gpio38
NOR: Can't request GPMC CS
Cannot clk_get ck_32
Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now
registered ti81xx_vpss device
registered ti81xx_vidout device
registered ti81xx on-chip HDMI device
registered ti81xx_fb device
registered ti81xx_vin device
ti81xx_pcie: Invoking PCI BIOS...
ti81xx_pcie: Setting up Host Controller...
ti81xx_pcie: Register base mapped @0xc8820000

I find it stop at  

/*
* TI81xx devices do not support h/w autonomous link up-training to GEN2
* form GEN1 in either EP/RC modes. The software needs to initiate speed
* change.
*/
writel(DIR_SPD | readl(
reg_virt + SPACE0_LOCAL_CFG_OFFSET + PL_GEN2),
reg_virt + SPACE0_LOCAL_CFG_OFFSET + PL_GEN2);

  • Hello,

    Could you provide more details for your setup?

    Also, what is the size of your DDR memory? Are you using DDR2 or DDR3?

    The linux kernel memory (128M) is not enough in some cases. Could you try to change it?

    Best Regards,

    Margarita

  • Hi Margarita,

    Thank you for your reply.

    The follow is the print messages.

    U-Boot 2010.06 (Oct 10 2012 - 14:08:25)

    TI8148-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    DRAM: 2 GiB
    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: 0

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


    U-Boot 2010.06 (Jan 21 2013 - 15:18:51)

    TI8148-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    I2C: ready
    DRAM: 2 GiB
    NAND: HW ECC BCH8 Selected
    256 MiB
    MMC: OMAP SD/MMC: 0
    .:;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,

    Net: Detected MACID:d4:94:a1:88:7a:e8
    cpsw
    Hit any key to stop autoboot: 0
    TI8148_EVM#tftp
    Configuring LSI Phy

    failed to read bmcr
    link up on port 0, speed 1000, full duplex
    Using cpsw device
    TFTP from server 192.168.1.108; our IP address is 192.168.1.123
    Filename 'uImage'.
    Load address: 0x81000000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ###################
    done
    Bytes transferred = 2754808 (2a08f8 hex)
    TI8148_EVM#bootm 0x81000000
    ## Booting kernel from Legacy Image at 81000000 ...
    Image Name: Linux-2.6.37
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2754744 Bytes = 2.6 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 (enson@ubuntu) (gcc version 4.4.3 (ctng-1.6.1) ) #0 Tue Mar 5 10:33:07 CST 2013
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8148evm
    bootconsole [earlycon0] enabled
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8148 2.1
    SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
    On node 0 totalpages: 52736
    free_area_init_node: node 0, pgdat c05817a8, node_mem_map c05c0000
    Normal zone: 512 pages used for memmap
    Normal zone: 0 pages reserved
    Normal zone: 52224 pages, LIFO batch:15
    pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    pcpu-alloc: [0] 0
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 52224
    Kernel command line: console=ttyO0,115200n8 notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.1.9:/home/enson/targetfs/,nolock rw mem=256M ip=dhcp earlyprintk debug
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 206MB = 206MB total
    Memory: 202764k/202764k available, 59380k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
    vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
    lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    .init : 0xc0008000 - 0xc0042000 ( 232 kB)
    .text : 0xc0042000 - 0xc0535000 (5068 kB)
    .data : 0xc0536000 - 0xc0582f40 ( 308 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 20000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 599.65 BogoMIPS (lpj=2998272)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    PM: Adding info for No Bus:platform
    omap_barriers_init: failed to reserve ddr
    omap_voltage_early_init: voltage driver support not added
    PM: Adding info for No Bus:omap
    regulator: core version 0.5
    PM: Adding info for platform:reg-dummy
    PM: Adding info for No Bus:regulator.0
    regulator: dummy:
    NET: Registered protocol family 16
    PM: Adding info for platform:mpu.0
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    PM: Adding info for platform:l3_slow.0
    PM: Adding info for platform:omap_gpio.0
    PM: Adding info for platform:omap_gpio.1
    PM: Adding info for platform:omap_gpio.2
    PM: Adding info for platform:omap_gpio.3
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    PM: Adding info for No Bus:vtcon0
    omap_mux_init: Add partition: #1: core, flags: 4
    PM: Adding info for platform:omap_uart.0
    PM: Adding info for platform:omap_uart.1
    PM: Adding info for platform:omap_uart.2
    PM: Adding info for platform:omap_uart.3
    PM: Adding info for platform:omap_uart.4
    PM: Adding info for platform:omap_uart.5
    PM: Adding info for platform:omap_i2c.1
    PM: Adding info for platform:omap_i2c.3
    PM: Adding info for platform:davinci-mcasp.2
    _omap_mux_init_gpio: Could not set gpio38
    PM: Adding info for platform:mmci-omap-hs.0
    PM: Adding info for platform:omap2-nand.0
    PM: Adding info for platform:ti81xx-usbss
    NOR: Can't request GPMC CS
    PM: Adding info for platform:omap-mailbox
    PM: Adding info for platform:omap2_mcspi.1
    PM: Adding info for platform:omap2_mcspi.2
    PM: Adding info for platform:omap2_mcspi.3
    PM: Adding info for platform:omap2_mcspi.4
    PM: Adding info for platform:omap2_elm.1
    PM: Adding info for platform:arm-pmu.0
    PM: Adding info for platform:davinci_mdio.0
    PM: Adding info for platform:cpsw.0
    PM: Adding info for platform:ti81xx_pcie.0
    PM: Adding info for platform:edma
    PM: Adding info for platform:davinci-pcm-audio
    PM: Adding info for platform:d_can
    PM: Adding info for platform:ahci.0
    PM: Adding info for platform:omap_rtc
    Cannot clk_get ck_32
    Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now
    PM: Adding info for platform:vpss
    registered ti81xx_vpss device
    PM: Adding info for platform:t81xx_vidout
    registered ti81xx_vidout device
    PM: Adding info for platform:TI81XX_HDMI
    registered ti81xx on-chip HDMI device
    PM: Adding info for platform:ti81xxfb
    registered ti81xx_fb device
    PM: Adding info for platform:ti81xxvin
    registered ti81xx_vin device
    PM: Adding info for platform:omap_wdt
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd0820000

    The bootargs is  

    'console=ttyO0,115200n8 notifyk.vpssm3_sva=0xBF900000

    root=/dev/nfs nfsroot=192.168.1.9:/home/enson/targetfs/,nolock rw mem=256M ip=dhcp earlyprintk debug'

    the nfs file is the EZSDK filesystem.

    I change 'mem=128M' to 'mem=256M' it doesn't work. when do make meuconfig,don't choose the pci support

    this will be ok


  • Hello Magy,

    I have read the two files.I still have no idea about it .

    Do you have other suggest?

    thank you very much!

    enson

  • Hello,

    When pcie=x1 is not present in the bootargs, are the board booting normal?

    Best Regards,

    Margarita

  • hello,

    I just have nothing contact to the pcie,you mean I should contact th ep on it ?

    I remove the 

    ti81xx_init_pcie();

    it boot up ,but then mount the nfs 

    it come to 

    IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.7
    IP-Config: Complete:
    device=eth0, addr=192.168.1.7, mask=255.255.255.0, gw=192.168.1.1,
    host=192.168.1.7, domain=, nis-domain=(none),
    bootserver=0.0.0.0, rootserver=192.168.1.213, rootpath=
    VFS: Mounted root (nfs filesystem) on device 0:15.
    devtmpfs: mounted
    Freeing init memory: 232K
    INIT: version 2.86 booting
    Please wait: booting...
    Starting udev
    udevd (67): /proc/67/oom_adj is deprecated, please use /proc/67/oom_score_adj instead.
    Root filesystem already rw, not remounting
    Caching udev devnodes
    ALSA: Restoring mixer settings...
    NOT configuring network interfaces: / is an NFS mount
    Mon Dec 31 10:37:00 UTC 2012
    INIT: Entering runlevel: 5
    Loading HDVICP2 Firmware
    DM814X prcm_config_app version: 2.0.0.1
    Doing PRCM settings...
    PRCM for IVHD0 is in Progress, Please wait.....
    BW Phy Addr : 0x48180600 Data : 0x00000001
    AW Phy Addr : 0x48180600 Data : 0x00000002
    Phy Addr : 0x48180c04 Data : 0x00000037
    BW Phy Addr : 0x48180620 Data : 0x00070000
    AW Phy Addr : 0x48180620 Data : 0x00050002
    BW Phy Addr : 0x48180624 Data : 0x00030000
    AW Phy Addr : 0x48180624 Data : 0x00010002
    Phy Addr : 0x48180600 Data : 0x00000102
    BW Phy Addr : 0x48180c10 Data : 0x00000007
    AW Phy Addr : 0x48180c10 Data : 0x00000003
    Phy Addr : 0x48180c14 Data : 0x00000004
    BW Phy Addr : 0x58088000 Data : 0x2d8b6676
    AW Phy Addr : 0x58088000 Data : 0xeafffffe
    BW Phy Addr : 0x58098000 Data : 0x019af45e
    AW Phy Addr : 0x58098000 Data : 0xeafffffe
    BW Phy Addr : 0x48180c10 Data : 0x00000003
    AW Phy Addr : 0x48180c10 Data : 0x00000000
    Phy Addr : 0x48180c14 Data : 0x00000007
    PRCM for IVHD0 is Done Successfully
    PRCM Initialization completed
    syslink: disagrees about version of symbol module_layout
    FATAL: Error inserting syslink (/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko): Invalid module format

    it stop at here,

    what is syslink.ko,when built the kernel I didn't let syslink is a module.

    I see your time is "Mar 05 2013 03:16 AM",you are crazy,don't you sleep?

  • Hello,

    enson Steven said:
    syslink: disagrees about version of symbol module_layout
    FATAL: Error inserting syslink (/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko): Invalid module format

    If you have rebuilt kernel, you have to build all dependent modules like syslink.ko, vpss.ko etc. You can refer to syslink install guide and video driver user guide on how to build syslink.ko and vpss.ko.

    Best Regards,

    Magy

  • Hello,

    would you gei me a interlinking about how to bulid the syslink.ko?

    thank you 

    enson

  • Hello,

    After:

    host $ make all

    host $ make install

    You'll need manually copy kernel modules:

    host $ sudo cp -R  ${HOME}/install/dm814x-evm/lib/modules/lib  ${HOME}/targetfs/lib

    Best Regards,

    Magy

  • Hello,

    In TI81XX_VPSS_Video_Driver_User_Guide

    sys_link is choosed ,so I think where was no modules that named syslink.ko

    but in the filesystem /etc/init.d/load-hd-firmware.sh have the following sentences:

    "modprobe syslink
    until [[ -e /dev/syslinkipc_ProcMgr && -e /dev/syslinkipc_ClientNotifyMgr ]]"

    Best Regards,

    enson

  • Hi,

    Syslink is divided into two parts. One is kernel level syslink and other is Userlever syslink. Kernel level syslink is handled by above flag. While for userlevel syslink you need to have syslink package.  Kernel level syslink contains only notify which is used by Linux video drivers. But userlevel syslink support many other features

  • Hi,

    I have rebuilt the kernel and the question then insmod the prebulit syslink.ko 

    It have error:

    syslink: disagrees about version of symbol module_layout
    FATAL: Error inserting syslink (/lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko): Invalid module format

    What should I do,rebuilt the syslink.ko?But I don't know how to built it,please tell me the steps.

    thank you

    enson