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/TDA2EXEVM: Tranfer sample bin file using ethernet to TDA2xx board

Part Number: TDA2EXEVM

Tool/software: Linux

Hi,

How to transfer executable  bin file to TDA2XX board through ethernet using NOR flash..

consider the below scenario

1.creating one sample application which should be flashed in to the TDA2xx board without vision SDK image and starterware images  .

2. Flashing  to TDA2xx board using Nor flash through ethernet.

Thanks,

Swati

  • Hi Swati,

    Are you running the network stack on Linux or TI-RTOS? Are you using Vision-SDK? I assume you're running Linux on A15.

    Regards
    Shravan
  • Hi Shravan,

    yes I am trying to run linux on A15.

    could you please let me know the procedure to transfer sample bin file using ethernet to TDA2xx board.

    Thanks,

    Swati

  • Hi Swati,

    You can transfer your binaries to the target using scp. Once the binaries are transferred you can copy it to QSPI using the link below.

    Regards

    Shravan

  • Hi Shravan,

    using above link you have provided ,i tried to boot from QSPI from u-boot,but its says following :

    U-Boot SPL 2016.05-00097-g5492abf (Dec 19 2016 - 16:44:35)
    DRA752-GP ES2.0
    Trying to boot from SPI

    if i reset the board it displays the same above;



    Please find the below steps which i have tried:
    1.Took files MLO,u-boot.img,dra7-evm-infoadas.dtb,uImage ,from following path ->
    VISION_SDK_02_12_00_00/ti_components/os_tools/linux/kernel/linux-kernel-addon/bin

    2. copied MLO,u-boot.img,dra7-evm-infoadas.dtb,uImage files to SD Card boot partion,
    3 rootfs partion has tisdk­rootfs­image­dra7xx­evm

    4.Booting from SD-card:

    U-Boot SPL 2016.05-00097-g5492abf (Dec 19 2016 - 16:44:35)
    DRA752-GP ES2.0
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment

    Trying to boot from MMC1
    MMC Device 1 not found
    *** Warning - No MMC card found, using default environment

    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img


    U-Boot 2016.05-00097-g5492abf (Dec 19 2016 - 16:44:35 +0530)

    CPU : DRA752-GP ES2.0
    Model: TI DRA742
    Board: DRA74x EVM REV H.0
    DRAM: 4 GiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    ERROR: cannot find partition: 'userdata'

    at arch/arm/cpu/armv7/omap-common/utils.c:195/mmc_get_part_size()
    Warning: fastboot.userdata_size: unable to calc
    SCSI: SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
    scanning bus for devices...
    Found 0 device(s).
    Net: eth0: ethernet@48484000
    Hit any key to stop autoboot: 0
    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device
    => mmc0 is current device
    Unknown command 'mmc0' - try 'help'
    => mmc dev 0
    => sf probe 0
    SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 30
    => fatload mmc 0 0x82000000 MLO
    reading MLO
    109420 bytes read in 8 ms (13 MiB/s)
    => sf erase 0 +109420
    SF: 1114112 bytes @ 0x0 Erased: OK
    => sf write 0x82000000 0x0 ${filesize}
    device 0 offset 0x0, size 0x1ab6c
    SF: 109420 bytes @ 0x0 Written: OK
    => sf write 0x82000000 0x0 109420
    device 0 offset 0x0, size 0x109420
    SF: 1086496 bytes @ 0x0 Written: OK
    => fatload mmc 0 0x83000000 u-boot.img
    reading u-boot.img
    742368 bytes read in 36 ms (19.7 MiB/s)
    => sf erase 40000 60000
    SF: 393216 bytes @ 0x40000 Erased: OK
    => sf write 0x83000000 0x40000 0x60000
    device 0 offset 0x40000, size 0x60000
    SF: 393216 bytes @ 0x40000 Written: OK
    => fatload mmc 0 0x82000000 uImage#
    reading uImage#
    ** Unable to read file uImage# **
    => fatload mmc 0 0x82000000 uImage
    reading uImage
    3674216 bytes read in 169 ms (20.7 MiB/s)
    => sf erase 1e0000 500000
    SF: 5242880 bytes @ 0x1e0000 Erased: OK
    => sf write 82000000 1e0000 500000
    device 0 offset 0x1e0000, size 0x500000
    SF: 5242880 bytes @ 0x1e0000 Written: OK
    => fatload mmc 0 0x83000000 dra7-evm-infoadas.dtb
    reading dra7-evm-infoadas.dtb
    109277 bytes read in 9 ms (11.6 MiB/s)
    => sf erase 140000 20000
    SF: 131072 bytes @ 0x140000 Erased: OK
    => sf write 0x83000000 0x140000 0x20000
    device 0 offset 0x140000, size 0x20000
    SF: 131072 bytes @ 0x140000 Written: OK
    =>

    switch settings changed to QSPI boot:

    SW2[5:0] = 100110 for development (jump to u-boot)
    SW5.4 = 0 (OFF)

    ERROR:
    U-Boot SPL 2016.05-00097-g5492abf (Dec 19 2016 - 16:44:35)
    DRA752-GP ES2.0
    Trying to boot from SPI



    => printenv
    arch=arm
    args_fit=setenv bootargs console=${console}
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUU}
    baudrate=115200
    board=dra7xx
    board_name=dra7xx
    board_rev=H.0
    boot_fdt=try
    boot_fit=0
    boot_os=0
    boot_part=9
    bootargs=androidboot.serialno=1701400621e800a2 console=ttyS0,115200 androidbootd
    bootcmd=if test ${dofastboot} -eq 1; then echo Boot fastboot requested, resetti
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootfile=zImage
    bootm_size=0x10000000
    bootpart=0:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyO0,115200n8
    cpu=armv7
    devtype=mmc
    dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 11
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x1
    dfu_alt_info_qspi=MLO raw 0x0 0x040000;u-boot.img raw 0x040000 0x0100000;u-boot0
    dfu_alt_info_ram=kernel ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ram0
    dfu_bufsiz=0x10000
    dofastboot=0
    emmc_android_boot=setenv eval_bootargs setenv bootargs $bootargs; run eval_boot;
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mm;
    ethaddr=fc:0f:4b:b0:2f:32
    eval_bootargs=setenv bootargs androidboot.serialno=${serial#} console=ttyS0,115d
    fastboot.board_rev=H.0
    fastboot.cpu=J6
    fastboot.secure=GP
    fastboot.userdata_size=unknown
    fdt_addr_r=0x88000000
    fdt_part=3
    fdtaddr=0x88000000
    fdtcontroladdr=fdf0e318
    fdtfile== dra7-evm-infoadas.dtb
    findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; f
    finduuid=part uuid mmc ${bootpart} uuid
    fit_bootfile=fitImage.itb
    fit_loadaddr=0x88000000
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t $}
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadfit=run args_fit; bootm ${loadaddr}#${fdtfile};
    loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    machid=fe6
    mmcboot=if mmc dev ${mmcdev}; then setenv devtype mmc; if mmc rescan; then echo;
    mmcdev=1
    mmcloados=run args_mmc; if test ${boot_fdt} = yes || test ${boot_fdt} = try; th;
    mmcrootfstype=ext4 rootwait
    netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${sp
    netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadima}
    netloadfdt=tftp ${fdtaddr} ${fdtfile}
    netloadimage=tftp ${loadaddr} ${bootfile}
    nfsopts=nolock
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid}
    partitions_android=uuid_disk=${uuid_gpt_disk};name=xloader,start=128K,size=128K}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rdaddr=0x88080000
    reboot_image=boot
    rootpath=/export/rootfs
    scriptaddr=0x80000000
    scsidevs=0
    serial#=1701400621e800a2
    soc=omap5
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=serial@4806a000
    stdin=serial@4806a000
    stdout=serial@4806a000
    update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}
    usbtty=cdc_acm
    vendor=ti
    ver=U-Boot 2016.05-00097-g5492abf (Dec 19 2016 - 16:44:35 +0530)
    vram=16M

    Environment size: 7514/131067 bytes
    =>



    Kindly let me know what needs to be changed in the procedure followed to boot from QSPI from uboot
  • Hi Swati,

    Can you run the below command from u-boot after flashing contents to SPI.

    => env default -fa

    => saveenv

    Also please set you switch settings to (SYSBOOT[0:5])

    (QSPI-1): 011011

    (QSPI-4): 111011

    Also ensure CONFIG_TI_QSPI=y in the u-boot configuration.

    Regards

    Shravan

  • Hi Shravan,

    I have used the below command to create the DTB file and place in the boot partion of the SD card.

    fdtput -v -t s <DTB-FILE-PATH> "/chosen" bootargs "elevator=noop console=ttyO0,115200n8 root=<rootfs> rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=64M rootfstype=ext4"
    where <rootfs> can be /dev/mmcblk0p2 for eMMC or /dev/mmcblk1p2 for mmc/sd.
    where root=/dev/mmcblk1p2

    Please find the below log:
    Model: TI DRA742
    Board: DRA74x EVM REV H.0
    DRAM: 4 GiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    ERROR: cannot find partition: 'userdata'

    at arch/arm/cpu/armv7/omap-common/utils.c:195/mmc_get_part_size()
    Warning: fastboot.userdata_size: unable to calc
    SCSI: SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
    scanning bus for devices...
    Found 0 device(s).
    Net: eth0: ethernet@48484000
    Hit any key to stop autoboot: 0
    => mmc dev 0
    switch to partitions #0, OK
    mmc0 is current device
    => sf probe 0
    SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 30
    => fatload mmc 0 0x82000000 MLO.qspi
    reading MLO.qspi
    141000 bytes read in 9 ms (14.9 MiB/s)
    => sf erase 0 +141000
    SF: 1376256 bytes @ 0x0 Erased: OK
    => sf write 0x82000000 0x0 141000
    device 0 offset 0x0, size 0x141000
    SF: 1314816 bytes @ 0x0 Written: OK
    => fatload mmc 0 0x83000000 u-boot.qspi.img
    reading u-boot.qspi.img
    837700 bytes read in 44 ms (18.2 MiB/s)
    => sf erase 40000 60000;
    SF: 393216 bytes @ 0x40000 Erased: OK
    => sf write 0x83000000 0x40000 0x60000
    device 0 offset 0x40000, size 0x60000
    SF: 393216 bytes @ 0x40000 Written: OK
    => fatload mmc 0 0x82000000 uImage
    reading uImage
    3553376 bytes read in 176 ms (19.3 MiB/s)
    => sf erase 1e0000 500000;
    SF: 5242880 bytes @ 0x1e0000 Erased: OK
    => sf write 82000000 1e0000 500000;
    device 0 offset 0x1e0000, size 0x500000
    SF: 5242880 bytes @ 0x1e0000 Written: OK
    => fatload mmc 0 0x83000000 dra7-evm-infoadas24nov1.dtb
    reading dra7-evm-infoadas24nov1.dtb
    109446 bytes read in 11 ms (9.5 MiB/s)
    => sf erase 140000 20000;
    SF: 131072 bytes @ 0x140000 Erased: OK
    => sf write 0x83000000 0x140000 0x20000
    device 0 offset 0x140000, size 0x20000
    SF: 131072 bytes @ 0x140000 Written: OK
    =>
    U-Boot SPL 2016.05-00010-g9551b3d-dirty (Nov 05 2018 - 16:18:07)
    DRA752-GP ES2.0
    Trying to boot from SPI
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.84-g742f84423d (a0393906@swubn03) (gcc version8
    [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine model: TI DRA742
    [ 0.000000] bootconsole [earlycon0] enabled
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000094000000, B
    [ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible l
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, B
    [ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible l
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, B
    [ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible l
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, B
    [ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible l
    [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, B
    [ 0.000000] Reserved memory: initialized node cmem@A8000000, compatible id sl
    [ 0.000000] cma: Reserved 64 MiB at 0x00000000fb000000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] OMAP4: Map 0x000000027fd00000 to fe600000 for dram barrier
    [ 0.000000] DRA752 ES2.0
    [ 0.000000] PERCPU: Embedded 11 pages/cpu @eb714000 s14912 r8192 d21952 u4506
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa2
    [ 0.000000] Kernel command line: elevator=noop console=ttyO0,115200n8 root=/4
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 3475212K/4142080K available (6615K kernel code, 319K rwd)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc08e302c (9069 kB)
    [ 0.000000] .init : 0xc08e4000 - 0xc0938000 ( 336 kB)
    [ 0.000000] .data : 0xc0938000 - 0xc0987ee0 ( 320 kB)
    [ 0.000000] .bss : 0xc0989000 - 0xc09d1800 ( 290 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_refv
    [ 0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [ 0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycless
    [ 0.000004] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398s
    [ 0.008307] Switching to timer-based delay loop, resolution 162ns
    [ 0.014957] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xfffffffs
    [ 0.025215] OMAP clocksource: 32k_counter at 32768 Hz
    [ 0.030955] Console: colour dummy device 80x30
    [ 0.035608] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.042402] This ensures that you still see kernel messages. Please
    [ 0.048918] update your kernel commandline.
    [ 0.053311] Calibrating delay loop (skipped), value calculated using timer f)
    [ 0.063945] pid_max: default: 32768 minimum: 301
    [ 0.068863] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.075750] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.083601] Initializing cgroup subsys io
    [ 0.087825] Initializing cgroup subsys memory
    [ 0.092397] Initializing cgroup subsys devices
    [ 0.097046] Initializing cgroup subsys freezer
    [ 0.101705] Initializing cgroup subsys perf_event
    [ 0.106623] Initializing cgroup subsys pids
    [ 0.111019] CPU: Testing write buffer coherency: ok
    [ 0.116318] /cpus/cpu@0 missing clock-frequency property
    [ 0.121864] /cpus/cpu@1 missing clock-frequency property
    [ 0.127419] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.133338] Setting up static identity map for 0x80008380 - 0x800083e0
    [ 0.220431] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.220499] Brought up 2 CPUs
    [ 0.229518] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [ 0.235959] CPU: All CPU(s) started in HYP mode.
    [ 0.240780] CPU: Virtualization extensions available.
    [ 0.246434] devtmpfs: initialized
    [ 0.279554] VFP support v0.3: implementor 41 architecture 4 part 30 variant 0
    [ 0.288462] omap_hwmod: l3_main_2 using broken dt data from ocp
    [ 0.390181] omap_hwmod: vpe: no dt node
    [ 0.394203] ------------[ cut here ]------------
    [ 0.399047] WARNING: CPU: 0 PID: 1 at /work/karthik/psdkla-krogoth-vision-3.)
    [ 0.420456] omap_hwmod: vpe: doesn't have mpu register target base
    [ 0.426882] Modules linked in:
    [ 0.430108] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.84-g742f84423d #1
    [ 0.437336] Hardware name: Generic DRA74X (Flattened Device Tree)
    [ 0.443673] Backtrace:
    [ 0.446285] [<c00131d4>] (dump_backtrace) from [<c00133d0>] (show_stack+0x18)
    [ 0.454136] r7:c08f1034 r6:60000013 r5:00000000 r4:c0957810
    [ 0.460054] [<c00133b8>] (show_stack) from [<c02b21a8>] (dump_stack+0x8c/0xa)
    [ 0.467557] [<c02b211c>] (dump_stack) from [<c0035340>] (warn_slowpath_commo)
    [ 0.475942] r7:c08f1034 r6:000009db r5:00000009 r4:ee863e58
    [ 0.481849] [<c00352b8>] (warn_slowpath_common) from [<c00353a8>] (warn_slow)
    [ 0.490859] r8:000000aa r7:ee9ed380 r6:00000000 r5:00000000 r4:c0812528
    [ 0.497838] [<c0035374>] (warn_slowpath_fmt) from [<c08f1034>] (_init.constp)
    [ 0.506845] r3:c0814ef4 r2:c0812528
    [ 0.510601] r4:c0949160
    [ 0.513290] [<c08f0e34>] (_init.constprop.23) from [<c08f138c>] (__omap_hwmo)
    [ 0.522565] r10:00000000 r9:c08e4600 r8:000000aa r7:ee9ed380 r6:c093d6f0 r58
    [ 0.530699] r4:c0949160
    [ 0.533391] [<c08f1344>] (__omap_hwmod_setup_all) from [<c000982c>] (do_one_)
    [ 0.542488] r5:c08f1344 r4:c093d6f0
    [ 0.546251] [<c0009794>] (do_one_initcall) from [<c08e4f68>] (kernel_init_fr)
    [ 0.555259] r10:00000002 r9:c08e4600 r8:000000aa r7:c0925820 r6:c0933280 r50
    [ 0.563393] r4:c0989000
    [ 0.566091] [<c08e4d94>] (kernel_init_freeable) from [<c0677560>] (kernel_in)
    [ 0.574563] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r58
    [ 0.582697] r4:c0989000
    [ 0.585389] [<c0677548>] (kernel_init) from [<c000fb88>] (ret_from_fork+0x14)
    [ 0.593238] r5:c0677548 r4:00000000
    [ 0.597019] ---[ end trace 818dd916d3a74626 ]---
    [ 0.603936] omap_hwmod: wd_timer2: no dt node
    [ 0.608504] ------------[ cut here ]------------
    [ 0.613332] WARNING: CPU: 0 PID: 1 at /work/karthik/psdkla-krogoth-vision-3.)
    [ 0.634738] omap_hwmod: wd_timer2: doesn't have mpu register target base
    [ 0.641696] Modules linked in:
    [ 0.644932] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.4.84-g1
    [ 0.653408] Hardware name: Generic DRA74X (Flattened Device Tree)
    [ 0.659740] Backtrace:
    [ 0.662344] [<c00131d4>] (dump_backtrace) from [<c00133d0>] (show_stack+0x18)
    [ 0.670195] r7:c08f1034 r6:60000013 r5:00000000 r4:c0957810
    [ 0.676109] [<c00133b8>] (show_stack) from [<c02b21a8>] (dump_stack+0x8c/0xa)
    [ 0.683608] [<c02b211c>] (dump_stack) from [<c0035340>] (warn_slowpath_commo)
    [ 0.691992] r7:c08f1034 r6:000009db r5:00000009 r4:ee863e58
    [ 0.697897] [<c00352b8>] (warn_slowpath_common) from [<c00353a8>] (warn_slow)
    [ 0.706905] r8:000000aa r7:ee9ed380 r6:00000000 r5:00000000 r4:c0812528
    [ 0.713884] [<c0035374>] (warn_slowpath_fmt) from [<c08f1034>] (_init.constp)
    [ 0.722893] r3:c0811654 r2:c0812528
    [ 0.726647] r4:c09441b0
    [ 0.729335] [<c08f0e34>] (_init.constprop.23) from [<c08f138c>] (__omap_hwmo)
    [ 0.738609] r10:00000000 r9:c08e4600 r8:000000aa r7:ee9ed380 r6:c093d6f0 r58
    [ 0.746741] r4:c09441b0
    [ 0.749430] [<c08f1344>] (__omap_hwmod_setup_all) from [<c000982c>] (do_one_)
    [ 0.758526] r5:c08f1344 r4:c093d6f0
    [ 0.762289] [<c0009794>] (do_one_initcall) from [<c08e4f68>] (kernel_init_fr)
    [ 0.771297] r10:00000002 r9:c08e4600 r8:000000aa r7:c0925820 r6:c0933280 r50
    [ 0.779430] r4:c0989000
    [ 0.782120] [<c08e4d94>] (kernel_init_freeable) from [<c0677560>] (kernel_in)
    [ 0.790593] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r58
    [ 0.798727] r4:c0989000
    [ 0.801416] [<c0677548>] (kernel_init) from [<c000fb88>] (ret_from_fork+0x14)
    [ 0.809265] r5:c0677548 r4:00000000
    [ 0.813034] ---[ end trace 818dd916d3a74627 ]---
    [ 0.928540] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
    [ 0.938744] futex hash table entries: 512 (order: 3, 32768 bytes)
    [ 0.950584] pinctrl core: initialized pinctrl subsystem
    [ 0.956899] NET: Registered protocol family 16
    [ 0.962522] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.991631] cpuidle: using governor ladder
    [ 1.021656] cpuidle: using governor menu
    [ 1.034655] OMAP GPIO hardware version 0.1
    [ 1.045542] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@14!
    [ 1.070424] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.075805] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.091899] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint.
    [ 1.100220] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 1.106765] omap4_sram_init:Unable to allocate sram needed to handle errata 8
    [ 1.114459] omap4_sram_init:Unable to get sram pool needed to handle errata 8
    [ 1.122710] OMAP DMA hardware revision 0.0
    [ 1.168218] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver )
    [ 1.179117] edma 43300000.edma: memcpy is disabled
    [ 1.188788] edma 43300000.edma: TI EDMA DMA engine driver
    [ 1.198712] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [ 1.204787] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [ 1.210859] omap-iommu 58882000.mmu: 58882000.mmu registered
    [ 1.216904] omap-iommu 55082000.mmu: 55082000.mmu registered
    [ 1.223097] omap-iommu 41501000.mmu: 41501000.mmu registered
    [ 1.229183] omap-iommu 41502000.mmu: 41502000.mmu registered
    [ 1.238377] palmas 0-0058: IRQ missing: skipping irq request
    [ 1.255453] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
    [ 1.327787] pcf857x 0-0020: probed
    [ 1.331923] pcf857x 0-0021: probed
    [ 1.335662] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [ 1.355758] pcf857x 1-0026: probed
    [ 1.359856] mcp230xx: probe of 1-0027 failed with error -121
    [ 1.365985] mcp230xx: probe of 1-0021 failed with error -121
    [ 1.372092] mcp230xx: probe of 1-0025 failed with error -121
    [ 1.378713] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz
    [ 1.384893] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [ 1.390907] media: Linux media interface: v0.10
    [ 1.395685] Linux video capture interface: v2.00
    [ 1.400540] pps_core: LinuxPPS API ver. 1 registered
    [ 1.405736] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
    [ 1.415209] PTP clock support registered
    [ 1.419371] EDAC MC: Ver: 3.0.0
    [ 1.423453] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [ 1.430107] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [ 1.436792] Advanced Linux Sound Architecture Driver Initialized.
    [ 1.444015] clocksource: Switched to clocksource arch_sys_counter
    [ 1.460779] NET: Registered protocol family 2
    [ 1.465850] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [ 1.473223] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 1.480055] TCP: Hash tables configured (established 8192 bind 8192)
    [ 1.486715] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 1.492899] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 1.499718] NET: Registered protocol family 1
    [ 1.504559] RPC: Registered named UNIX socket transport module.
    [ 1.510722] RPC: Registered udp transport module.
    [ 1.515649] RPC: Registered tcp transport module.
    [ 1.520561] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 1.528288] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counte
    [ 1.546860] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 1.553579] NFS: Registering the id_resolver key type
    [ 1.558931] Key type id_resolver registered
    [ 1.563311] Key type id_legacy registered
    [ 1.567590] ntfs: driver 2.1.32 [Flags: R/O].
    [ 1.573500] bounce: pool size: 64 pages
    [ 1.577702] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
    [ 1.585420] io scheduler noop registered (default)
    [ 1.590424] io scheduler deadline registered
    [ 1.594950] io scheduler cfq registered
    [ 1.603778] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [ 1.614430] PCI host bridge /ocp/axi@0/pcie_rc@51000000 ranges:
    [ 1.620594] No bus range found for /ocp/axi@0/pcie_rc@51000000, using [bus]
    [ 1.628597] IO 0x20003000..0x20012fff -> 0x00000000
    [ 1.633967] MEM 0x20013000..0x2fffffff -> 0x20013000
    [ 1.671880] dra7-pcie 51000000.pcie_rc: link is not up
    [ 1.677415] dra7-pcie 51000000.pcie_rc: PCI host bridge to bus 0000:00
    [ 1.684222] pci_bus 0000:00: root bus resource [bus 00-ff]
    [ 1.689940] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    [ 1.696384] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [ 1.703922] PCI: bus0: Fast back to back transfers disabled
    [ 1.709862] PCI: bus1: Fast back to back transfers enabled
    [ 1.715669] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
    [ 1.722727] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
    [ 1.729801] pci 0000:00:00.0: PCI bridge to [bus 01]
    [ 1.735209] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
    [ 1.766224] fpd3_serdes 1-001b: Unable to sync with remote slave
    [ 1.772486] fpd3_serdes: probe of 7-002c failed with error -5
    [ 1.778510] fpd3_serdes 1-001b: Serializer fpd3_24b_ser ready
    [ 1.786419] fpd3_serdes 7-002c: Deserializer fpd3_24b_des ready
    [ 1.852622] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 1.862677] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 301, base_baud 0
    [ 1.871897] console [ttyS0] enabled
    [ 1.871897] console [ttyS0] enabled
    [ 1.879099] bootconsole [earlycon0] disabled
    [ 1.879099] bootconsole [earlycon0] disabled
    [ 1.888776] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 302, base_baud 0
    [ 1.898478] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 303, base_baud 0
    [ 1.908526] [drm] Initialized drm 1.1.0 20060810
    [ 1.915161] OMAP DSS rev 6.1
    [ 1.918920] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_compon)
    [ 1.927363] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_comp)
    [ 1.937272] connector-hdmi connector@1: failed to find video source
    [ 1.949895] loop: module loaded
    [ 1.954130] nand: No NAND device found
    [ 1.957902] omap2-nand 8000000.nand: scan failed, may be bus-width mismatch
    [ 1.967772] m25p80 spi32766.0: s25fl256s1 (32768 Kbytes)
    [ 1.973167] 7 ofpart partitions found on MTD device spi32766.0
    [ 1.979050] Creating 7 MTD partitions on "spi32766.0":
    [ 1.984227] 0x000000000000-0x000000040000 : "QSPI.SPL"
    [ 1.990281] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [ 1.996599] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [ 2.003514] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [ 2.010181] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [ 2.017546] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [ 2.023843] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [ 2.031541] libphy: Fixed MDIO Bus: probed
    [ 2.084049] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 2.090173] davinci_mdio 48485000.mdio: detected phy mask fffffff3
    [ 2.100710] libphy: 48485000.mdio: probed
    [ 2.104760] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, drin
    [ 2.112800] davinci_mdio 48485000.mdio: phy[3]: device 48485000.mdio:03, drin
    [ 2.121519] cpsw 48484000.ethernet: Detected MACID = fc:0f:4b:b0:2f:32
    [ 2.128180] cpsw 48484000.ethernet: cpts: overflow check period 800
    [ 2.135167] cpsw 48484000.ethernet: cpsw: Detected MACID = fc:0f:4b:b0:2f:33
    [ 2.143774] mousedev: PS/2 mouse device common for all mice
    [ 2.150149] i2c /dev entries driver
    [ 2.154612] ov1063x 1-0037: Failed writing register 0x0103!
    [ 2.160223] ov1063x: probe of 1-0037 failed with error -121
    [ 2.166155] ov1063x 1-0030: Failed writing register 0x0103!
    [ 2.171763] ov1063x: probe of 1-0030 failed with error -121
    [ 2.182372] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 2.188003] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [ 2.194639] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [ 2.201157] evm_3v3_sw: supplied by sysen1
    [ 2.357389] mmc0: MAN_BKOPS_EN bit is not set
    [ 2.369136] mmc0: new HS200 MMC card at address 0001
    [ 2.375950] ledtrig-cpu: registered to indicate activity on CPUs
    [ 2.383671] mmcblk0: mmc0:0001 MMC08G 7.25 GiB
    [ 2.389178] aic_dvdd: supplied by evm_3v3_sw
    [ 2.395157] davinci-mcasp 4847c000.mcasp: invalid tdm slots: 0
    [ 2.402174] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58k
    [ 2.404331] mmcblk0boot0: mmc0:0001 MMC08G partition 1 8.00 MiB
    [ 2.414681] mmcblk0boot1: mmc0:0001 MMC08G partition 2 8.00 MiB
    [ 2.417482] mmcblk0: p1
    [ 2.428454] NET: Registered protocol family 10
    [ 2.433923] sit: IPv6 over IPv4 tunneling driver
    [ 2.439201] NET: Registered protocol family 17
    [ 2.443936] Key type dns_resolver registered
    [ 2.448419] omap_voltage_late_init: Voltage driver support not added
    [ 2.455422] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.461669] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.468386] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.474625] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.482822] Power Management for TI OMAP4+ devices.
    [ 2.487951] Registering SWP/SWPB emulation handler
    [ 2.494914] dmm 4e000000.dmm: initialized all PAT entries
    [ 2.502953] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 2.508995] pbias_mmc_omap5: unsupportable voltage range: 3300000-1800000uV
    [ 2.516041] omap_hsmmc 4809c000.mmc: pbias set voltage failed
    [ 2.523038] pbias_mmc_omap5: unsupportable voltage range: 3000000-1800000uV
    [ 2.530055] omap_hsmmc 4809c000.mmc: pbias set voltage failed
    [ 2.535967] omap_hsmmc 4809c000.mmc: failed to switch to 3.0V
    [ 2.575216] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48468000.mcasp mak
    [ 2.605628] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 2.612270] [drm] No driver support for vblank timestamp query.
    [ 2.618308] omapdrm omapdrm.0: No connectors reported connected with modes
    [ 2.625254] [drm] Cannot find any crtc or sizes - going 1024x768
    [ 2.633980] [drm] Enabling DMM ywrap scrolling
    [ 2.642825] Console: switching to colour frame buffer device 128x48
    [ 2.652860] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [ 2.694966] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
    [ 2.702703] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [ 2.709670] hctosys: unable to open rtc device (rtc0)
    [ 2.724865] aic_dvdd: disabling
    [ 2.728025] vmmcwl_fixed: disabling
    [ 2.731715] ldousb: disabling
    [ 2.735216] ALSA device list:
    [ 2.738203] #0: DRA7xx-EVM
    [ 2.741102] #1: HDMI 58040000.encoder
    [ 2.745920] Waiting for root device /dev/mmcblk1p2...
    [ 2.751401] mmc2: error -110 whilst initialising SD card


    From the SD card booting I could see :

    root@dra7xx-evm:/dev# ls -l mmc*
    brw-rw---- 1 root disk 179, 0 Sep 17 09:22 mmcblk0
    brw-rw---- 1 root disk 179, 16 Sep 17 09:22 mmcblk0boot0
    brw-rw---- 1 root disk 179, 32 Sep 17 09:22 mmcblk0boot1
    brw-rw---- 1 root disk 179, 1 Sep 17 09:22 mmcblk0p1
    brw-rw---- 1 root disk 179, 48 Sep 17 09:22 mmcblk1
    brw-rw---- 1 root disk 179, 49 Sep 17 09:22 mmcblk1p1
    brw-rw---- 1 root disk 179, 50 Sep 17 09:22 mmcblk1p2


    root@dra7xx-evm:/media/ram# mount
    /dev/mmcblk1p2 on / type ext4 (rw,relatime,data=ordered)
    devtmpfs on /dev type devtmpfs (rw,relatime,size=1966412k,nr_inodes=142503,mode=755)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    tmpfs on /tmp type tmpfs (rw)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    tmpfs on /var/volatile type tmpfs (rw,relatime,size=51200k)
    tmpfs on /media/ram type tmpfs (rw,relatime,size=16384k)
    /dev/mmcblk0p1 on / type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    /dev/mmcblk1p1 on /run/media/mmcblk1p1 type vfat (rw,relatime,gid=6,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


    Please let me know what i needs to be changed.
  • Hi Swati,

    The issue seems to be with the initialization of the SD card. Are you using single-stage boot? Please try jumping to u-boot.img and then to kernel and this should work.

    Regards
    Shravan