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: TDA2 PROCESSOR_SDK_VISION_03_07_00_00 tidl_openvx

Other Parts Discussed in Thread: TDA2, SYSBIOS, DRA742, DRA752

Tool/software: Linux

Hello,

I would like to use tidl on linux, and I found that "SDK_VISION_03_07" contained tidl_openvx in hlos.

after compiling, I could run linux on TDA2, but I got a mistake:

[HOST] [HOST ] ====================
[HOST] [HOST ] Vision SDK Usecases
[HOST] [HOST ] ====================
[HOST] [HOST ] 1: Single Camera Usecases
[HOST] [HOST ] 2: Multi-Camera LVDS Usecases
[HOST] [HOST ] 3: Open-Compute Usecases
[HOST] [HOST ] 6: Radar Usecases
[HOST] [HOST ]
[HOST] [HOST ] 7: PCIe SSD card Write Test
[HOST] [HOST ] p: CPU Status
[HOST] [HOST ] i: Show IP Addr (IPU + NDK + AVB)
[HOST] [HOST ]
[HOST] [HOST ] s: System Settings
[HOST] [HOST ]
[HOST] [HOST ] x: Exit
[HOST] [HOST ] z: Exit - AND SHUTDOWN Remote CPUs
[HOST] [HOST ]
[HOST] [HOST ] Enter Choice:
[HOST] [HOST ]
3
[HOST] [HOST ] 61.475050 s:
[HOST] [HOST ]
[HOST] [HOST ] OpenCompute Usecases
[HOST] [HOST ] ----------------------------
[HOST] [HOST ]
[HOST] [HOST ] x: Exit
[HOST] [HOST ]
[HOST] [HOST ] Enter Choice:
[HOST] [HOST ]
[HOST] [HOST ] 61.475080 s:
[HOST] [HOST ] 61.475080 s: Unsupported option '
[HOST] [HOST ] '. Please try again
[HOST] [HOST ] 61.475080 s:
[HOST] [HOST ]
[HOST] [HOST ] OpenCompute Usecases
[HOST] [HOST ] ----------------------------
[HOST] [HOST ]
[HOST] [HOST ] x: Exit

Option 3 could't run .

=============================================

Before run app.out,

I did something:

1. source load_ocl_kos.sh

2. ./vision_sdk_load.sh 

root@dra7xx-evm:/opt/vision_sdk# source load_ocl_kos.sh

Opened log file: lad.txt

numProcessors = 5 id = 0 baseId = 0

Spawned daemon: /usr/bin/lad_dra7xx

[ 1591.076692] CMEMK module: reference Linux version 4.4.84
[ 1591.082943] CMEMK Error: Failed to request_mem_region(0xa9000000, 0x4000000)
insmod: ERROR: could not insert module /opt/vision_sdk/cmemk.ko: Bad address
insmod: ERROR: could not load module /opt/vision_sdk/debugss_kmodule.ko: No such file or directory

root@dra7xx-evm:/opt/vision_sdk# ./vision_sdk_load.sh
insmod: ERROR: could not insert module ./bin/memcache.ko: File exists
insmod: ERROR: could not load module ./bin/cmemk.ko: No such file or directory
mknod: /dev/memcache: File exists
./disableDssInterruptsOnA15.sh: line 11: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 12: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 13: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 14: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 15: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 16: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 17: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 18: COMMANDS: command not found
./disableDssInterruptsOnA15.sh: line 19: COMMANDS: command not found
updated value is


COMMANDS

### WARNING ###: use the following [read | write | set bit | clear bit | dump] commands at your own risk!
No address check done, may generate:
- bus error (invalid or not accessible <physical address>,
- platform crash/hang (bad <value>).

Read any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

Write <value> at any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

Set bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

Clear bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

Dump a range of OMAP memory addresses, from <start address> to <end address>.
Note all addresses within given range must be valid and accessible.

### WARNING ###: use the following I2C [read | write] commands at your own risk!
No address check done, may generate:
- I2C bus error (invalid or not accessible <physical address>,
- platform crash/hang (bad <value>).

Read I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.

Write <value> in I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.

=============================================

I have no idea, 

how could I do to run tidl usecase ?

Thanks,

Ting

  • Hi Ting,

    can you modify PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\apps\configs\tda2xx_evm_linux_all\cfg.mk and change:

    OPENVX_INCLUDE=no

    to

    OPENVX_INCLUDE=yes

    and give a try (you will need to run also 'make depend' command when rebuilding).

    Regards,

    Yordan

  • Hi Yordan

    Thanks for your reply.


    1. 

    I follow your setting.

    OPENVX_INCLUDE=no => OPENVX_INCLUDE=yes

    When making depend, I got error, like this

    ================================================

    #######################################################################
    TARGET_COMBO=TDAX:LINUX:A15:1:release:GCC_LINUX_ARM
    HOST_ROOT=/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00
    HOST_COMPILER=GCC_LINUX_ARM
    HOST_PLATFORM=PC
    HOST_OS=LINUX
    HOST_CPU=x86_64
    HOST_ARCH=64
    HOST_FAMILY=x86_64
    HOST_NUM_CORES=2
    TARGET_OS=LINUX
    TARGET_CPU=A15
    TARGET_ARCH=32
    TARGET_FAMILY=ARM
    TARGET_NUM_CORES=1
    TARGET_PLATFORM=TDAX
    TARGET_BUILD=release
    TARGET_OUT=/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00/out/TDAX/A15/LINUX/release
    TARGET_DOC=/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00/out/TDAX/A15/LINUX/release/docs
    BUILD_DEFS = BUILD_IVISION_KERNELS CUSTOM_APPLICATION_PATH BUILD_TUTORIAL BUILD_CONFORMANCE_TEST
    TDAX_LINUX_A15_1_release_GCC_LINUX_ARM_DEFS = LINUX TDAX A15="A15" TARGET_NUM_CORES=1 TARGET_ARCH=32 ARCH_32 ARM TARGET_BUILD=1
    TDAX_LINUX_A15_1_release_GCC_LINUX_ARM_LDIRS =
    SCM_ROOT=
    SCM_VERSION=
    [GCC] Compiling C99 tivx_dms_node_api.c
    /bin/sh: 1: /opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/cg_tools/linux/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: not found
    concerto/finale.mak:304: recipe for target '/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00/out/TDAX/A15/SYSBIOS/release/module/.opt.PROCESSOR_SDK_VISION_03_07_00_00.vision_sdk.apps.src.rtos.alg_plugins.openvx.dms_kernel.kernels.dms.host/tivx_dms_node_api.o' failed
    make[3]: *** [/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00/out/TDAX/A15/SYSBIOS/release/module/.opt.PROCESSOR_SDK_VISION_03_07_00_00.vision_sdk.apps.src.rtos.alg_plugins.openvx.dms_kernel.kernels.dms.host/tivx_dms_node_api.o] Error 127
    make[3]: Leaving directory '/opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/open_compute/tiovx_01_05_01_00'
    build_tiovx.mk:18: recipe for target 'tiovx' failed
    make[2]: *** [tiovx] Error 2
    make[2]: Leaving directory '/opt/PROCESSOR_SDK_VISION_03_07_00_00/vision_sdk/build/rtos/makerules'
    Makefile:359: recipe for target 'tiovx' failed
    make[1]: *** [tiovx] Error 2
    make[1]: Leaving directory '/opt/PROCESSOR_SDK_VISION_03_07_00_00/vision_sdk/build'
    Makefile:274: recipe for target 'depend' failed
    make: *** [depend] Error 2
    root@ubuntu:/opt/PROCESSOR_SDK_VISION_03_07_00_00/vision_sdk/build#

    ================================================

    I do the steps from "PROCESSOR_SDK_VISION_03_07_00_00\vision_sdk\docs\Linux\VisionSDK_Linux_UserGuide.pdf

    2. About cmemk.ko before apps.out

    I got error, like this

    ================================================

    root@dra7xx-evm:~# cd /opt/vision_sdk/
    root@dra7xx-evm:/opt/vision_sdk# ./load_ocl_kos.sh

    Opened log file: lad.txt

    numProcessors = 5 id = 0 baseId = 0

    Spawned daemon: /usr/bin/lad_dra7xx

    [ 150.845312] CMEMK module: reference Linux version 4.4.84
    [ 150.853594] CMEMK Error: Failed to request_mem_region(0xa9000000, 0x4000000)
    insmod: ERROR: could not insert module /opt/vision_sdk/cmemk.ko: Bad address
    root@dra7xx-evm:/opt/vision_sdk# source vision_sdk_load.sh
    [ 156.575122] DMA: Module install successful, device major num = 241
    [ 156.581528] DRV: Module install successful
    insmod: ERROR: could not load module ./bin/cmemk.ko: No such file or directory
    ./disableDssInterruptsOnA15.sh: line 11: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 12: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 13: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 14: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 15: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 16: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 17: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 18: COMMANDS: command not found
    ./disableDssInterruptsOnA15.sh: line 19: COMMANDS: command not found
    updated value is


    COMMANDS

    ### WARNING ###: use the following [read | write | set bit | clear bit | dump] commands at your own risk!
    No address check done, may generate:
    - bus error (invalid or not accessible <physical address>,
    - platform crash/hang (bad <value>).

    Read any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

    Write <value> at any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

    Set bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

    Clear bit at <position> into any OMAP memory address (register), given its <physical address> or <name> as listed in TRM.

    Dump a range of OMAP memory addresses, from <start address> to <end address>.
    Note all addresses within given range must be valid and accessible.

    ### WARNING ###: use the following I2C [read | write] commands at your own risk!
    No address check done, may generate:
    - I2C bus error (invalid or not accessible <physical address>,
    - platform crash/hang (bad <value>).

    Read I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.

    Write <value> in I2C register at address <addr> from I2C chip at <chip-addr> on I2C <bus>.
    root@dra7xx-evm:/opt/vision_sdk#

    ================================================

    Is the error would  cause tidl can't run ?

    Thanks,

    Ting

  • Hi Ting,

    from this:

    /bin/sh: 1: /opt/PROCESSOR_SDK_VISION_03_07_00_00/ti_components/cg_tools/linux/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc: not found

    it seems that you do not have A15 compiler installed. Can you look at chapter "2.2.2 Software Requirements" in VisionSDK_UserGuide_TDA2xx.pdf.

    Regards,

    Yordan

  • Hi Yordan

    Thanks for your reply.



    I have successfully compiled.

    When I switch on TDA2, I got error

    Starting kernel ...

    [ 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-00038-g0af2ab562143-dirty (root@ubuntu) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 SMP PREEMPT Wed Jul 3 20:08:39 PDT 2019
    [ 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] Reserved memory: created DMA memory pool at 0x0000000040300000, size 3 MiB
    [ 0.000000] Reserved memory: initialized node cmem@40300000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: regions without no-map are not yet supported
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 80 MiB
    [ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009e000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: regions without no-map are not yet supported
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a1000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x00000000a3000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: regions without no-map are not yet supported
    [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node cmem@A9000000, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 64 MiB at 0x00000000bbc00000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] OMAP4: Map 0x00000000bfd00000 to fe600000 for dram barrier
    [ 0.000000] DRA752 ES2.0
    [ 0.000000] PERCPU: Embedded 11 pages/cpu @ef62a000 s14912 r8192 d21952 u45056
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 251456
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 vram=16M root=PARTUUID=bf668612-02 rw rootwait ip=none mem=1024M cma=64M
    [ 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: 353148K/1012736K available (6671K kernel code, 320K rwdata, 2396K rodata, 336K init, 290K bss, 413828K reserved, 245760K cma-reserved, 193536K highmem)
    [ 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 - 0xc0988220 ( 321 kB)
    [ 0.000000] .bss : 0xc098a000 - 0xc09d2880 ( 291 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_ref_clk_div
    [ 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_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [ 0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [ 0.000015] Switching to timer-based delay loop, resolution 162ns
    [ 0.000332] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [ 0.000340] OMAP clocksource: 32k_counter at 32768 Hz
    [ 0.000786] Console: colour dummy device 80x30
    [ 0.000801] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.000807] This ensures that you still see kernel messages. Please
    [ 0.000813] update your kernel commandline.
    [ 0.000827] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [ 0.000840] pid_max: default: 32768 minimum: 301
    [ 0.000939] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000948] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.001491] Initializing cgroup subsys io
    [ 0.001508] Initializing cgroup subsys memory
    [ 0.001533] Initializing cgroup subsys devices
    [ 0.001545] Initializing cgroup subsys freezer
    [ 0.001556] Initializing cgroup subsys perf_event
    [ 0.001567] Initializing cgroup subsys pids
    [ 0.001594] CPU: Testing write buffer coherency: ok
    [ 0.001794] /cpus/cpu@0 missing clock-frequency property
    [ 0.001810] /cpus/cpu@1 missing clock-frequency property
    [ 0.001820] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.001855] Setting up static identity map for 0x80008380 - 0x800083e0
    [ 0.080060] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.080130] Brought up 2 CPUs
    [ 0.080143] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [ 0.080150] CPU: All CPU(s) started in HYP mode.
    [ 0.080155] CPU: Virtualization extensions available.
    [ 0.080531] devtmpfs: initialized
    [ 0.109366] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 0.110344] omap_hwmod: l3_main_2 using broken dt data from ocp
    [ 0.316056] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.316077] futex hash table entries: 512 (order: 3, 32768 bytes)
    [ 0.321217] pinctrl core: initialized pinctrl subsystem
    [ 0.322083] NET: Registered protocol family 16
    [ 0.323023] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.350223] cpuidle: using governor ladder
    [ 0.380245] cpuidle: using governor menu
    [ 0.388769] OMAP GPIO hardware version 0.1
    [ 0.395241] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [ 0.411802] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 0.411814] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 0.420399] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.420410] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.420891] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [ 0.420901] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [ 0.421489] OMAP DMA hardware revision 0.0
    [ 0.461708] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [ 0.462857] edma 43300000.edma: memcpy is disabled
    [ 0.467639] edma 43300000.edma: TI EDMA DMA engine driver
    [ 0.472075] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [ 0.472253] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [ 0.472416] omap-iommu 58882000.mmu: 58882000.mmu registered
    [ 0.472573] omap-iommu 55082000.mmu: 55082000.mmu registered
    [ 0.472870] omap-iommu 41501000.mmu: 41501000.mmu registered
    [ 0.473054] omap-iommu 41502000.mmu: 41502000.mmu registered
    [ 0.476055] palmas 0-0058: IRQ missing: skipping irq request
    [ 0.490798] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
    [ 0.563102] pcf857x 0-0020: probed
    [ 0.563663] pcf857x 0-0021: probed
    [ 0.563818] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [ 0.564216] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [ 0.564419] media: Linux media interface: v0.10
    [ 0.564472] Linux video capture interface: v2.00
    [ 0.564516] pps_core: LinuxPPS API ver. 1 registered
    [ 0.564524] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.564549] PTP clock support registered
    [ 0.564598] EDAC MC: Ver: 3.0.0
    [ 0.565352] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [ 0.565647] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [ 0.565982] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.566851] clocksource: Switched to clocksource arch_sys_counter
    [ 0.577403] NET: Registered protocol family 2
    [ 0.577896] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.577960] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.578084] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.578131] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.578162] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.578370] NET: Registered protocol family 1
    [ 0.578639] RPC: Registered named UNIX socket transport module.
    [ 0.578647] RPC: Registered udp transport module.
    [ 0.578654] RPC: Registered tcp transport module.
    [ 0.578660] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.579677] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [ 0.589698] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.590350] NFS: Registering the id_resolver key type
    [ 0.590375] Key type id_resolver registered
    [ 0.590382] Key type id_legacy registered
    [ 0.590439] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.591715] bounce: pool size: 64 pages
    [ 0.591867] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.591882] io scheduler noop registered
    [ 0.591895] io scheduler deadline registered
    [ 0.591928] io scheduler cfq registered (default)
    [ 0.596805] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [ 0.600036] PCI host bridge /ocp/axi@0/pcie_rc@51000000 ranges:
    [ 0.600049] No bus range found for /ocp/axi@0/pcie_rc@51000000, using [bus 00-ff]
    [ 0.600082] IO 0x20003000..0x20012fff -> 0x00000000
    [ 0.600102] MEM 0x20013000..0x2fffffff -> 0x20013000
    [ 0.629819] dra7-pcie 51000000.pcie_rc: link is not up
    [ 0.629990] dra7-pcie 51000000.pcie_rc: PCI host bridge to bus 0000:00
    [ 0.630003] pci_bus 0000:00: root bus resource [bus 00-ff]
    [ 0.630013] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
    [ 0.630023] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [ 0.630417] PCI: bus0: Fast back to back transfers disabled
    [ 0.630546] PCI: bus1: Fast back to back transfers enabled
    [ 0.630629] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
    [ 0.630643] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
    [ 0.630655] pci 0000:00:00.0: PCI bridge to [bus 01]
    [ 0.630873] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
    [ 0.690431] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.693832] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 301, base_baud = 3000000) is a 8250
    [ 1.703905] console [ttyS0] enabled
    [ 1.708320] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 302, base_baud = 3000000) is a 8250
    [ 1.718031] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 303, base_baud = 3000000) is a 8250
    [ 1.728068] [drm] Initialized drm 1.1.0 20060810
    [ 1.733579] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 1.740267] [drm] No driver support for vblank timestamp query.
    [ 1.746393] [drm] Initialized vdrm 1.0.0 20110917 on minor 0
    [ 1.759358] loop: module loaded
    [ 1.762883] vmemexp device MAJOR num = 245
    [ 1.767028] vmemexp class registered
    [ 1.770745] /dev/vmemexp device registered
    [ 1.774859] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
    [ 1.780748] nand: No NAND device found
    [ 1.784518] omap2-nand 8000000.nand: scan failed, may be bus-width mismatch
    [ 1.794429] m25p80 spi32766.0: s25fl256s1 (32768 Kbytes)
    [ 1.799844] 7 ofpart partitions found on MTD device spi32766.0
    [ 1.805703] Creating 7 MTD partitions on "spi32766.0":
    [ 1.810881] 0x000000000000-0x000000040000 : "QSPI.SPL"
    [ 1.817003] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [ 1.823328] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [ 1.830286] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [ 1.836989] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [ 1.844368] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [ 1.850726] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [ 1.858541] libphy: Fixed MDIO Bus: probed
    [ 1.906886] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 1.913010] davinci_mdio 48485000.mdio: detected phy mask fffffff3
    [ 1.923424] libphy: 48485000.mdio: probed
    [ 1.927473] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver unknown
    [ 1.935513] davinci_mdio 48485000.mdio: phy[3]: device 48485000.mdio:03, driver unknown
    [ 1.944205] cpsw 48484000.ethernet: Detected MACID = f0:b5:d1:10:0c:b8
    [ 1.950875] cpsw 48484000.ethernet: cpts: overflow check period 800
    [ 1.957840] cpsw 48484000.ethernet: cpsw: Detected MACID = f0:b5:d1:10:0c:b9
    [ 1.966472] mousedev: PS/2 mouse device common for all mice
    [ 1.972677] i2c /dev entries driver
    [ 1.981430] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 1.987072] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [ 1.993458] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [ 2.000019] evm_3v3_sw: supplied by sysen1
    [ 2.080650] mmc0: MAN_BKOPS_EN bit is not set
    [ 2.117784] mmc0: new HS200 MMC card at address 0001
    [ 2.123212] mmcblk0: mmc0:0001 MMC08G 7.25 GiB
    [ 2.127975] mmcblk0boot0: mmc0:0001 MMC08G partition 1 8.00 MiB
    [ 2.134129] mmcblk0boot1: mmc0:0001 MMC08G partition 2 8.00 MiB
    [ 2.168695] ledtrig-cpu: registered to indicate activity on CPUs
    [ 2.177205] aic_dvdd: supplied by evm_3v3_sw
    [ 2.183108] davinci-mcasp 4847c000.mcasp: invalid tdm slots: 0
    [ 2.190620] NET: Registered protocol family 10
    [ 2.195875] sit: IPv6 over IPv4 tunneling driver
    [ 2.201101] NET: Registered protocol family 17
    [ 2.205786] Key type dns_resolver registered
    [ 2.210220] omap_voltage_late_init: Voltage driver support not added
    [ 2.217112] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.223321] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.230033] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.236240] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.244512] Power Management for TI OMAP4+ devices.
    [ 2.249614] Registering SWP/SWPB emulation handler
    [ 2.255339] dmm 4e000000.dmm: workaround for errata i878 in use
    [ 2.262624] dmm 4e000000.dmm: initialized all PAT entries
    [ 2.268783] [drm] Initialized omapdrm 1.0.0 20110917 on minor 1
    [ 2.285611] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 2.328178] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [ 2.347424] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [ 2.354321] hctosys: unable to open rtc device (rtc0)
    [ 2.372739] evm_1v8: disabling
    [ 2.375812] aic_dvdd: disabling
    [ 2.378985] vmmcwl_fixed: disabling
    [ 2.382671] ldousb: disabling
    [ 2.386055] ALSA device list:
    [ 2.389052] #0: DRA7xx-EVM
    [ 2.392600] Waiting for root device PARTUUID=bf668612-02...
    [ 2.454195] mmc2: host does not support reading read-only switch, assuming write-enable
    [ 2.464152] mmc2: new high speed SD card at address b368
    [ 2.469834] mmcblk1: mmc2:b368 NCard 1.83 GiB
    [ 2.475867] mmcblk1: p1 p2
    [ 2.507961] EXT4-fs (mmcblk1p2): mounting ext3 file system using the ext4 subsystem
    [ 2.534638] EXT4-fs (mmcblk1p2): recovery complete
    [ 2.539467] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 2.547620] VFS: Mounted root (ext3 filesystem) on device 179:50.
    [ 2.556921] devtmpfs: mounted
    [ 2.560048] Freeing unused kernel memory: 336K
    [ 2.564510] This architecture does not have kernel memory protection.
    [ 2.596037] Starting init: /sbin/init exists but couldn't execute it (error -80)
    [ 2.625376] Starting init: /bin/sh exists but couldn't execute it (error -80)
    [ 2.632581] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
    [ 2.645764] CPU1: stopping
    [ 2.648485] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.84-00038-g0af2ab562143-dirty #1
    [ 2.656696] Hardware name: Generic DRA74X (Flattened Device Tree)
    [ 2.662812] Backtrace:
    [ 2.665288] [<c00131d4>] (dump_backtrace) from [<c00133d0>] (show_stack+0x18/0x1c)
    [ 2.672888] r7:ef0a9f40 r6:20000193 r5:00000000 r4:c0957810
    [ 2.678610] [<c00133b8>] (show_stack) from [<c02b21a8>] (dump_stack+0x8c/0xa0)
    [ 2.685867] [<c02b211c>] (dump_stack) from [<c0016520>] (handle_IPI+0x184/0x198)
    [ 2.693289] r7:ef0a9f40 r6:00000000 r5:00000001 r4:c0935424
    [ 2.699007] [<c001639c>] (handle_IPI) from [<c00094c4>] (gic_handle_irq+0x78/0x7c)
    [ 2.706605] r7:fa212000 r6:ef0a9f40 r5:fa21200c r4:c093a8ec
    [ 2.712320] [<c000944c>] (gic_handle_irq) from [<c0013ec0>] (__irq_svc+0x40/0x74)
    [ 2.719833] Exception stack(0xef0a9f40 to 0xef0a9f88)
    [ 2.724906] 9f40: 00000001 00000000 fe600000 00000000 ef0a8000 c093a4ac 00000000 00000000
    [ 2.733118] 9f60: ef0a9fb0 c068e274 c093a50c ef0a9f9c ef0a9f7c ef0a9f90 c0027fec c0010600
    [ 2.741328] 9f80: 60000113 ffffffff
    [ 2.744827] r9:c068e274 r8:ef0a9fb0 r7:ef0a9f74 r6:ffffffff r5:60000113 r4:c0010600
    [ 2.752648] [<c00105d8>] (arch_cpu_idle) from [<c0071468>] (default_idle_call+0x28/0x34)
    [ 2.760775] [<c0071440>] (default_idle_call) from [<c00716c8>] (cpu_startup_entry+0x200/0x260)
    [ 2.769426] [<c00714c8>] (cpu_startup_entry) from [<c0016108>] (secondary_start_kernel+0x16c/0x178)
    [ 2.778505] r7:c098a2a8
    [ 2.781057] [<c0015f9c>] (secondary_start_kernel) from [<8000956c>] (0x8000956c)
    [ 2.788479] r7:c098a2a8 r6:30c0387d r5:00000000 r4:af05f280
    [ 2.794198] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

    ========================================

    I think it is because I try from 2.2.2 Software Requirements,

    then got error

    root@ubuntu:/home/user# sudo apt-get install ia32-libs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package ia32-libs is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
    lib32ncurses5 lib32z1

    E: Package 'ia32-libs' has no installation candidate

    I have do " apt-get update", but it is nothing change

    Thanks,

    Ting

  • Hi Ting,

    if the original issue of the thread is resolved, can you create a new thread for the kernel crash.

    It is good to have separate threads for future purposes as search results are indexed based on keywords.

    Regards,

    Yordan

  • user6065453 said:

    [ 2.596037] Starting init: /sbin/init exists but couldn't execute it (error -80)
    [ 2.625376] Starting init: /bin/sh exists but couldn't execute it (error -80)
    [ 2.632581] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

    I do not understand how the above linux boot failure is related to: 

    user6065453 said:
    root@ubuntu:/home/user# sudo apt-get install ia32-libs

    Your target platform is A15, not ia32.

    You need to look for help on Linux kernel building and booting forums.