Quantcast
Channel: Processors forum - Recent Threads
Viewing all 17527 articles
Browse latest View live

Linux/DM3730: 18-bit LCD Incorrect Data Line Mapping

$
0
0

Part Number: DM3730

Tool/software: Linux

Hi,

We have a legacy system that uses the DM3730 to drive an LCD (640x480) via a parallel connected,18-bit LVDS encoder (DS90C365).  The encoder is connected to the lower 18 bits of the LCD data bus (BLUE=D0-D5,GREEN=D6-D11,RED=D12-D17).  The Linux kernel is 5.0.3 built with Yocto.

The LCD displays clearly and at the correct size, but color is not correct.

If, in the device tree, dss/port/endpoint/data-lines is 18, then only red and green are displayed; blue is missing completely.  This is true regardless of the /sys/devices/omapfb/graphics/fb0/bits_per_pixel value (16, 24, or 32).

If, in the device tree, dss/port/endpoint/data-lines is 24, then red, green, and blue can be displayed, but it appears that the data bus is shifted (as expected).

As I understand it, the DSS should be translating the framebuffer format (RGB24) to the lower 18 data bits when data-lines is 18; is this true?

Thanks,

Erik


Linux/AM3352: How to read the value of analog line?

$
0
0

Part Number: AM3352

Tool/software: Linux

Hi, 

I am using am3352 with linux 4.14.  I need to check the voltage on analog line, e.g. the voltage usb0 and some others. Is there a convenient way of getting the value by software?

Thanks.

AM5728: Adding a timer to IPU1 is unsuccessful, ends in crash.

$
0
0

Part Number: AM5728

Environment
- AM5728 MPU is running Linux
- IPU1 is running bios and MessageQ server
- communication is based on ipc_3_47_02_00/examples/DRA7XX_linux_elf/ex02_messageq/ipu1

My goal is to run a timer in IPU1.

At first I added a piece of code to IPU1 Server.c to tell me which timers are available
nTimers = Timer_getNumTimers();
for (i=0, u32temp=0; i<nTimers; i++)
{
if (Timer_getStatus(i) != 0)
u32temp |= 1 << i;
}
// At this point u32temp=0x010C so GP Timers 3, 4 and 9 are available

My timer function in IPU1 is this

Void MyTimerTick(UArg arg0)
{
nTimerTicks++;
}

I tried two approaches to implement the timer. Each approach was unsuccessful.

Approach 1:
===========
Declare the timer in Ipu1.cfg as follows

Xbar.connectIRQMeta(53, 31);
/* var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer'); already done for bios Timer above */
var MyTimerParams = new Timer.Params();
MyTimerParams.instance.name = "MyTimerName";
MyTimerParams.period = 1000000;
MyTimerParams.periodType = xdc.module("ti.sysbios.interfaces.ITimer").PeriodType_MICROSECS;
MyTimerParams.extFreq.lo = 19200000;
Timer.create(3, "&MyTimerTick", MyTimerParams);

The IPU1 server gets built and loaded to Linux /lib/firmware/.
After rebooting the system I get this log and IPU1 is unresponsive.

[ 6.249448] remoteproc remoteproc0: 58820000.ipu is available
[ OK ] Started udev Coldplug all Devices.
[ 6.270838] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ OK ] Reached target System Initialization.
[ 6.309207] remoteproc remoteproc1: 55020000.ipu is available
[ 6.340174] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 6.354618] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 6.354687] remoteproc remoteproc2: 40800000.dsp is available
[ 6.381302] remoteproc remoteproc0: powering up 58820000.ipu
[ 6.381315] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 3799716
[ 6.381428] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 6.517774] remoteproc remoteproc1: powering up 55020000.ipu
[ 6.517804] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 6.517810] remoteproc remoteproc1: request_firmware failed: -2
[ 6.558662] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[ 6.559012] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 6.559091] remoteproc remoteproc0: registered virtio0 (type 7)
[ 6.559100] remoteproc remoteproc0: remote processor 58820000.ipu is now up
[ 6.561122] ------------[ cut here ]------------
[ 6.561138] WARNING: CPU: 0 PID: 205 at /kernel-source//drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x378
[ 6.561145] 44000000.ocp:L3 Custom Error: MASTER IPU1 TARGET L4_PER1_P3 (Idle): Data Access in Supervisor mode during Functional access
[ 6.561147] Modules linked in: omap_des(+) des_generic crypto_engine omap_crypto omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel cryptodev(O) cmemk(O)
[ 6.561185] CPU: 0 PID: 205 Comm: systemd-udevd Tainted: G W O 4.14.54-ge0103eeb5d #2
[ 6.561188] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 6.561192] Backtrace:
[ 6.561203] [<c020b808>] (dump_backtrace) from [<c020baec>] (show_stack+0x18/0x1c)
[ 6.561210] r7:00000009 r6:60030193 r5:00000000 r4:c10568dc
[ 6.561219] [<c020bad4>] (show_stack) from [<c095d444>] (dump_stack+0x90/0xa4)
[ 6.561232] [<c095d3b4>] (dump_stack) from [<c022b9ec>] (__warn+0xec/0x104)
[ 6.561238] r7:00000009 r6:c0bdc924 r5:00000000 r4:eccbbaa0
[ 6.561246] [<c022b900>] (__warn) from [<c022ba44>] (warn_slowpath_fmt+0x40/0x48)
[ 6.561250] r9:00000006 r8:ee9f0090 r7:c0bdccc0 r6:00000000 r5:c0bdc850 r4:c0bdc8f4
[ 6.561256] [<c022ba08>] (warn_slowpath_fmt) from [<c054489c>] (l3_interrupt_handler+0x25c/0x378)
[ 6.561259] r3:eea01ec0 r2:c0bdc8f4
[ 6.561261] r4:80080003
[ 6.561270] [<c0544640>] (l3_interrupt_handler) from [<c027ed64>] (__handle_irq_event_percpu+0x6c/0x134)
[ 6.561283] r10:c105830d r9:eea0c400 r8:00000017 r7:eccbbbc4 r6:00000000 r5:eea0c400
[ 6.561285] r4:ee9f0400
[ 6.561291] [<c027ecf8>] (__handle_irq_event_percpu) from [<c027ee50>] (handle_irq_event_percpu+0x24/0x60)
[ 6.561304] r10:eccbbdc8 r9:eccba000 r8:ee808000 r7:00000001 r6:c10092ec r5:eea0c400
[ 6.561307] r4:eea0c400
[ 6.561316] [<c027ee2c>] (handle_irq_event_percpu) from [<c027eecc>] (handle_irq_event+0x40/0x64)
[ 6.561322] r5:eea0c464 r4:eea0c400
[ 6.561329] [<c027ee8c>] (handle_irq_event) from [<c02827a0>] (handle_fasteoi_irq+0xac/0x160)
[ 6.561332] r7:00000001 r6:c10092ec r5:eea0c464 r4:eea0c400
[ 6.561338] [<c02826f4>] (handle_fasteoi_irq) from [<c027dfb0>] (generic_handle_irq+0x2c/0x3c)
[ 6.561342] r7:00000001 r6:00000000 r5:00000000 r4:c0e64afc
[ 6.561348] [<c027df84>] (generic_handle_irq) from [<c027e538>] (__handle_domain_irq+0x64/0xbc)
[ 6.561353] [<c027e4d4>] (__handle_domain_irq) from [<c020146c>] (gic_handle_irq+0x44/0x80)
[ 6.561358] r9:eccba000 r8:fa213000 r7:fa212000 r6:eccbbc80 r5:fa21200c r4:c1004000
[ 6.561363] [<c0201428>] (gic_handle_irq) from [<c020c6b8>] (__irq_svc+0x58/0x8c)
[ 6.561367] Exception stack(0xeccbbc80 to 0xeccbbcc8)
[ 6.561372] bc80: eff16ca4 00000000 ffffffb0 eccbbd44 0051c000 ffefe8e0 eff16ca4 c0c3f000
[ 6.561376] bca0: fa221f5f 00e00000 eccbbdc8 eccbbd6c ece3f750 eccbbcd0 c030b050 c0317b54
[ 6.561379] bcc0: 20030013 ffffffff
[ 6.561383] r9:eccba000 r8:fa221f5f r7:eccbbcb4 r6:ffffffff r5:20030013 r4:c0317b54
[ 6.561391] [<c030ac10>] (unmap_page_range) from [<c030b3f0>] (unmap_single_vma+0x50/0x58)
[ 6.561395] r10:00000009 r9:ed6dc380 r8:00000000 r7:00000000 r6:eccbbdc8 r5:ffffffff
[ 6.561397] r4:ece3f750
[ 6.561402] [<c030b3a0>] (unmap_single_vma) from [<c030b6ac>] (unmap_vmas+0x5c/0x70)
[ 6.561404] r4:ece3f750
[ 6.561411] [<c030b650>] (unmap_vmas) from [<c0312d44>] (exit_mmap+0xb8/0x170)
[ 6.561415] r8:ece2564c r7:ecf48a80 r6:ecd6ef00 r5:00000000 r4:ece3fe38
[ 6.561421] [<c0312c8c>] (exit_mmap) from [<c0229020>] (mmput+0x48/0xe4)
[ 6.561423] r5:00000000 r4:ed6dc380
[ 6.561430] [<c0228fd8>] (mmput) from [<c03419cc>] (flush_old_exec+0x4b4/0x6f0)
[ 6.561433] r5:ed6dc380 r4:ece25100
[ 6.561439] [<c0341518>] (flush_old_exec) from [<c038bb24>] (load_elf_binary+0x2b8/0x1224)
[ 6.561443] r10:00000009 r9:00000000 r8:ece02600 r7:eccbbe80 r6:00000034 r5:ecd6ef00
[ 6.561446] r4:ed767d80
[ 6.561451] [<c038b86c>] (load_elf_binary) from [<c0341c74>] (search_binary_handler.part.3+0x6c/0x234)
[ 6.561455] r10:ecf48a80 r9:00000000 r8:fffffff8 r7:c108b634 r6:c101d3a0 r5:ecd6ef00
[ 6.561457] r4:c101d890
[ 6.561462] [<c0341c08>] (search_binary_handler.part.3) from [<c0342680>] (do_execveat_common+0x590/0x678)
[ 6.561465] r9:00000000 r8:ecd6ef00 r7:000000cd r6:ffffe000 r5:ece25100 r4:ed7b2000
[ 6.561470] [<c03420f0>] (do_execveat_common) from [<c03429bc>] (SyS_execve+0x38/0x40)
[ 6.561474] r10:00000000 r9:eccba000 r8:c02080c4 r7:0000000b r6:be87e970 r5:004dca60
[ 6.561476] r4:be87e9f0
[ 6.561483] [<c0342984>] (SyS_execve) from [<c0207ee0>] (ret_fast_syscall+0x0/0x4c)
[ 6.561485] r5:b6f8edbc r4:be87eff8
[ 6.561489] ---[ end trace 893351ee8228e39a ]---
[ 6.566076] omap-des 480a5000.des: will run requests pump with realtime priority
[ 6.566194] omap-rproc 58820000.ipu: omap rproc 58820000.ipu crashed
[ 6.566200] remoteproc remoteproc0: crash detected in 58820000.ipu: type fatal error
[ 6.566208] remoteproc remoteproc0: handling crash #1 in 58820000.ipu
[ 6.566213] remoteproc remoteproc0: recovering 58820000.ipu
[ 6.569545] remoteproc remoteproc0: stopped remote processor 58820000.ipu
[ 6.569550] remoteproc remoteproc0: powering up 58820000.ipu
[ 6.598701] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 3799716
[ 6.598816] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
[ 6.640654] ------------[ cut here ]------------
[ 6.640669] WARNING: CPU: 0 PID: 220 at /kernel-source//drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x378
[ 6.640674] 44000000.ocp:L3 Custom Error: MASTER IPU1 TARGET L4_PER1_P3 (Idle): Data Access in Supervisor mode during Functional access
[ 6.640677] Modules linked in: omap_des(+) des_generic crypto_engine omap_crypto omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel cryptodev(O) cmemk(O)
[ 6.640720] CPU: 0 PID: 220 Comm: modprobe Tainted: G W O 4.14.54-ge0103eeb5d #2
[ 6.640722] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 6.640726] Backtrace:
[ 6.640737] [<c020b808>] (dump_backtrace) from [<c020baec>] (show_stack+0x18/0x1c)
[ 6.640743] r7:00000009 r6:600d0193 r5:00000000 r4:c10568dc
[ 6.640753] [<c020bad4>] (show_stack) from [<c095d444>] (dump_stack+0x90/0xa4)
[ 6.640770] [<c095d3b4>] (dump_stack) from [<c022b9ec>] (__warn+0xec/0x104)
[ 6.640776] r7:00000009 r6:c0bdc924 r5:00000000 r4:ece39b70
[ 6.640783] [<c022b900>] (__warn) from [<c022ba44>] (warn_slowpath_fmt+0x40/0x48)
[ 6.640788] r9:00000006 r8:ee9f0090 r7:c0bdccc0 r6:00000000 r5:c0bdc850 r4:c0bdc8f4
[ 6.640796] [<c022ba08>] (warn_slowpath_fmt) from [<c054489c>] (l3_interrupt_handler+0x25c/0x378)
[ 6.640800] r3:eea01ec0 r2:c0bdc8f4
[ 6.640803] r4:80080003
[ 6.640815] [<c0544640>] (l3_interrupt_handler) from [<c027ed64>] (__handle_irq_event_percpu+0x6c/0x134)
[ 6.640820] r10:c105830d r9:eea0c400 r8:00000017 r7:ece39c94 r6:00000000 r5:eea0c400
[ 6.640824] r4:ee9f0400
[ 6.640830] [<c027ecf8>] (__handle_irq_event_percpu) from [<c027ee50>] (handle_irq_event_percpu+0x24/0x60)
[ 6.640834] r10:ee803240 r9:ece38000 r8:ee808000 r7:00000001 r6:c10092ec r5:eea0c400
[ 6.640838] r4:eea0c400
[ 6.640843] [<c027ee2c>] (handle_irq_event_percpu) from [<c027eecc>] (handle_irq_event+0x40/0x64)
[ 6.640848] r5:eea0c464 r4:eea0c400
[ 6.640855] [<c027ee8c>] (handle_irq_event) from [<c02827a0>] (handle_fasteoi_irq+0xac/0x160)
[ 6.640860] r7:00000001 r6:c10092ec r5:eea0c464 r4:eea0c400
[ 6.640867] [<c02826f4>] (handle_fasteoi_irq) from [<c027dfb0>] (generic_handle_irq+0x2c/0x3c)
[ 6.640870] r7:00000001 r6:00000000 r5:00000000 r4:c0e64afc
[ 6.640877] [<c027df84>] (generic_handle_irq) from [<c027e538>] (__handle_domain_irq+0x64/0xbc)
[ 6.640883] [<c027e4d4>] (__handle_domain_irq) from [<c020146c>] (gic_handle_irq+0x44/0x80)
[ 6.640887] r9:ece38000 r8:fa213000 r7:fa212000 r6:ece39d50 r5:fa21200c r4:c1004000
[ 6.640893] [<c0201428>] (gic_handle_irq) from [<c020c6b8>] (__irq_svc+0x58/0x8c)
[ 6.640896] Exception stack(0xece39d50 to 0xece39d98)
[ 6.640901] 9d40: 00000000 00000000 00000100 600d0013
[ 6.640906] 9d60: 00000000 ef44d348 ffffe000 00000001 8080007e ed6c2de0 ee803240 ece39e2c
[ 6.640912] 9d80: 00000000 ece39da0 c0328d28 c0328d5c 600d0013 ffffffff
[ 6.640918] r9:ece38000 r8:8080007e r7:ece39d84 r6:ffffffff r5:600d0013 r4:c0328d5c
[ 6.640926] [<c0328b98>] (__slab_free.constprop.5) from [<c03295b0>] (kmem_cache_free+0x1e8/0x1ec)
[ 6.640931] r10:ecdf0038 r9:ece33edc r8:00003f52 r7:ffffe000 r6:ed6c2ac0 r5:ef44d348
[ 6.640934] r4:ee803240
[ 6.640940] [<c03293c8>] (kmem_cache_free) from [<c031868c>] (unlink_anon_vmas+0x160/0x20c)
[ 6.640944] r8:ece33edc r7:ece33ee4 r6:00000100 r5:00000200 r4:c10894e0
[ 6.640953] [<c031852c>] (unlink_anon_vmas) from [<c030a8c0>] (free_pgtables+0x80/0xd4)
[ 6.640957] r10:00000000 r9:bf000000 r8:00002000 r7:ece39ed8 r6:00010000 r5:ece33f70
[ 6.640960] r4:ece33ea0
[ 6.640967] [<c030a840>] (free_pgtables) from [<c0312d58>] (exit_mmap+0xcc/0x170)
[ 6.640972] r9:ecf49a7c r8:00000000 r7:0000054c r6:ffffe000 r5:00000000 r4:ecdf2b60
[ 6.640979] [<c0312c8c>] (exit_mmap) from [<c0229020>] (mmput+0x48/0xe4)
[ 6.640982] r5:00000000 r4:ecf49a40
[ 6.640989] [<c0228fd8>] (mmput) from [<c022fac0>] (do_exit+0x774/0xa7c)
[ 6.640992] r5:ecf49a40 r4:ece25100
[ 6.640997] [<c022f34c>] (do_exit) from [<c022fe4c>] (do_group_exit+0x48/0xc4)
[ 6.640999] r7:000000f8
[ 6.641004] [<c022fe04>] (do_group_exit) from [<c022fee0>] (__wake_up_parent+0x0/0x28)
[ 6.641007] r7:000000f8 r6:b6f6778c r5:00000001 r4:b6f6778c
[ 6.641014] [<c022fec8>] (SyS_exit_group) from [<c0207ee0>] (ret_fast_syscall+0x0/0x4c)
[ 6.641018] ---[ end trace 893351ee8228e39b ]---
[ 6.641329] omap-rproc 58820000.ipu: omap rproc 58820000.ipu crashed
[ 6.641335] remoteproc remoteproc0: crash detected in 58820000.ipu: type fatal error

Approach 2:
===========
Don't modify Ipu1.cfg. Add the following to Server.c and execute it when triggered to do so.
  Timer_Params_init(&TimerParams);
  TimerParams.arg = 1;
  TimerParams.period = 1000000;
  TimerParams.periodType = Timer_PeriodType_MICROSECS;
  TimerParams.runMode = Timer_RunMode_CONTINUOUS;
  //TimerParams.startMode = Timer_StartMode_AUTO;
  TimerParams.startMode = Timer_StartMode_USER;
  Timer_create(Timer_ANY, MyTimerTick, &TimerParams, &eb);
  //Timer_create(3, MyTimerTick, &TimerParams, &eb); // Try GP Timer 4

The commented out lines show alternate code I tried.
I use a MessageQ message to trigger the above code execution. Immediately I get the dump shown below.

Is something needed to be configured on MPU side to fix the problem or what else am I missing?

Please help,
John

--> main:
main: Send command = 2 to IPU1
--> Main_main:
--> App_create: remoteProcId = 2
MessageQ_create returned 0x27708
App_create: msgqName = IPU1:MsgQ:01
[ 57.744640] c_can_platform 4ae3c000.can can0: setting BTR=1c04 BRPE=0000
[ 57.762754] can: controller area network core (rev 20170425 abi 9)
[ 57.769224] NET: Registered protocol family 29
[ 57.779698] can: raw protocol (rev 20170425)
[ 57.786548] c_can_platform 4ae3c000.can can0: setting BTR=1c04 BRPE=0000
[ 57.955289] c_can_platform 4ae3c000.can can0: bus-off
App_create: MessageQ_open returns 0x0[ 58.101530] ------------[ cut here ]------------
[ 58.109078] WARNING: CPU: 0 PID: 2899 at /kernel-source//drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x378
[ 58.119907] 44000000.ocp:L3 Custom Error: MASTER IPU1 TARGET L4_PER1_P3 (Idle): Data Access in Supervisor mode during Functional access
[ 58.132126] Modules linked in: can_raw can bnep sha512_generic sha512_arm sha256_generic sha1_generic sha1_arm_neon sha1_arm md5 cbc aes_arm_bs crypto_simd cryptd bc_example(O) xhci_plat_hcd xhci_hcd pru_rproc usbcore pruss_intc unified_kbd(O) pruss rpmsg_proto dwc3 udc_core usb_common bluetooth ecdh_generic pvrsrvkm(O) omap_aes_driver c_can_platform omap_sham c_can pruss_soc_bus can_dev omap_wdt ti_vpe ti_sc ti_csc ti_vpdma dwc3_omap omap_des des_generic crypto_engine omap_crypto omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel cryptodev(O) cmemk(O)
[ 58.182876] CPU: 0 PID: 2899 Comm: appLaunch.sh Tainted: G W O 4.14.54-ge0103eeb5d #2
[ 58.191695] Hardware name: Generic DRA74X (Flattened Device Tree)
[ 58.197809] Backtrace:
[ 58.200271] [<c020b808>] (dump_backtrace) from [<c020baec>] (show_stack+0x18/0x1c)
[ 58.207871] r7:00000009 r6:600d0193 r5:00000000 r4:c10568dc
[ 58.213558] [<c020bad4>] (show_stack) from [<c095d444>] (dump_stack+0x90/0xa4)
[ 58.220815] [<c095d3b4>] (dump_stack) from [<c022b9ec>] (__warn+0xec/0x104)
[ 58.227803] r7:00000009 r6:c0bdc924 r5:00000000 r4:e37fbc70
[ 58.233486] [<c022b900>] (__warn) from [<c022ba44>] (warn_slowpath_fmt+0x40/0x48)
[ 58.241000] r9:00000006 r8:ee9f0090 r7:c0bdccc0 r6:00000000 r5:c0bdc850 r4:c0bdc8f4
[ 58.248775] [<c022ba08>] (warn_slowpath_fmt) from [<c054489c>] (l3_interrupt_handler+0x25c/0x378)
[ 58.257681] r3:eea01ec0 r2:c0bdc8f4
[ 58.261266] r4:80080003
[ 58.263810] [<c0544640>] (l3_interrupt_handler) from [<c027ed64>] (__handle_irq_event_percpu+0x6c/0x134)
[ 58.273327] r10:c105830d r9:eea0c400 r8:00000017 r7:e37fbd94 r6:00000000 r5:eea0c400
[ 58.281185] r4:ee9f0400
[ 58.283727] [<c027ecf8>] (__handle_irq_event_percpu) from [<c027ee50>] (handle_irq_event_percpu+0x24/0x60)
[ 58.293419] r10:0026f538 r9:e37fa000 r8:ee808000 r7:00000001 r6:c10092ec r5:eea0c400
[ 58.301277] r4:eea0c400
[ 58.303818] [<c027ee2c>] (handle_irq_event_percpu) from [<c027eecc>] (handle_irq_event+0x40/0x64)
[ 58.312724] r5:eea0c464 r4:eea0c400
[ 58.316313] [<c027ee8c>] (handle_irq_event) from [<c02827a0>] (handle_fasteoi_irq+0xac/0x160)
[ 58.324869] r7:00000001 r6:c10092ec r5:eea0c464 r4:eea0c400
[ 58.330552] [<c02826f4>] (handle_fasteoi_irq) from [<c027dfb0>] (generic_handle_irq+0x2c/0x3c)
[ 58.339196] r7:00000001 r6:00000000 r5:00000000 r4:c0e64afc
[ 58.344876] [<c027df84>] (generic_handle_irq) from [<c027e538>] (__handle_domain_irq+0x64/0xbc)
[ 58.353610] [<c027e4d4>] (__handle_domain_irq) from [<c020146c>] (gic_handle_irq+0x44/0x80)
[ 58.361995] r9:e37fa000 r8:fa213000 r7:fa212000 r6:e37fbe50 r5:fa21200c r4:c1004000
[ 58.369769] [<c0201428>] (gic_handle_irq) from [<c020c6b8>] (__irq_svc+0x58/0x8c)
[ 58.377280] Exception stack(0xe37fbe50 to 0xe37fbe98)
[ 58.382350] be40: 00000000 00020000 0026f538 00000000
[ 58.390561] be60: 0026f538 00000018 00000000 00000000 befff000 e2eb1600 0026f538 e37fbec4
[ 58.398770] be80: e37fbec8 e37fbea4 00020000 c0540ab8 a00d0013 ffffffff
[ 58.405410] r9:e37fa000 r8:befff000 r7:e37fbe84 r6:ffffffff r5:a00d0013 r4:c0540ab8
[ 58.413189] [<c0540a64>] (strnlen_user) from [<c0340574>] (copy_strings+0x80/0x3a8)
[ 58.420876] r8:befff000 r7:00000000 r6:befffb41 r5:00000018 r4:ef86f880
[ 58.427603] [<c03404f4>] (copy_strings) from [<c0342608>] (do_execveat_common+0x518/0x678)
[ 58.435901] r10:e3569180 r9:00000000 r8:e2eb1600 r7:00256b38 r6:0024e038 r5:00000000
[ 58.443760] r4:e3877000
[ 58.446301] [<c03420f0>] (do_execveat_common) from [<c03429bc>] (SyS_execve+0x38/0x40)
[ 58.454249] r10:00000000 r9:e37fa000 r8:c02080c4 r7:0000000b r6:00247a98 r5:00256b38
[ 58.462107] r4:0024e038
[ 58.464650] [<c0342984>] (SyS_execve) from [<c0207ee0>] (ret_fast_syscall+0x0/0x4c)
[ 58.472333] r5:000f5094 r4:0023f778
[ 58.475920] ---[ end trace e9e6ed313a471000 ]---

App_create: MessageQ for IPU1:MsgQ:01 = 131200
App_create: Ho[ 58.483690] omap-rproc 58820000.ipu: omap rproc 58820000.ipu crashed
st is ready
<-- App_create:
--> Ipu1Xchg:
sizeof(MULTI_TX3) =[ 58.493176] remoteproc remoteproc0: crash detected in 58820000.ipu: type fatal error
141
[ 58.511171] remoteproc remoteproc0: handling crash #1 in 58820000.ipu
[ 58.517744] remoteproc remoteproc0: recovering 58820000.ipu
[ 58.526881] remoteproc remoteproc0: stopped remote processor 58820000.ipu
[ 58.533949] remoteproc remoteproc0: powering up 58820000.ipu
recvfrom failed: Link has been severed (67)
rpmsgThreadFxn: transportGet failed on fd 10, returned -20
ERROR: MessageQ_get returned = -20
<-- Ipu1Xchg:
<-- Main_main:

TMS320C6657: LM10011 or UCD92xx??

Linux/PHYTC-3P-PHYCORE-AM57X: Communicating with IPC Daemon from C# Dotnet Core Program

$
0
0

Part Number: PHYTC-3P-PHYCORE-AM57X

Tool/software: Linux

Hello,

We are running Linux on an AM57x board.

We need to communicate with the DSP running RTOS.

We would like to use IPC for communication of audio data between DSP and ARM/Linux.

Our program running on the ARM Cortex A15 is developed in C# and runs Dotnet Core.

How can we communicate with the IPC Daemon?

Other ways to use IPC from C#?

Other mechanism to communicate between DSP and our C# program?

Thank you.

Best regards,

Jorge

[FAQ] RTOS: How do I install TI-RTOS (SYS/BIOS)?

$
0
0

Tool/software: TI-RTOS

I see TI-RTOS and SYS/BIOS used interchangeably and available in multiple places across Texas Instrument's websites. How should I go about installing TI-RTOS?

Linux/PROCESSOR-SDK-AM57X: Are there documented cases of Jailhouse Hypervisor interrupts?

$
0
0

Part Number: PROCESSOR-SDK-AM57X

Tool/software: Linux

I want to test the real-time performance of Jailhouse Sitara AM5728 was setup to run Linux on one of the ARM Cortex A15 cores, and a bare metal inmate on the other A15 core.Are there any relevant cases and technical documents?

Linux/DRA756: dra756 custom board, c_can_platform 4ae3c000.can can0: bitrate error 1.0%

$
0
0

Part Number: DRA756

Tool/software: Linux

Hi,

I encounter a new problem with my dra756 custom board, the DCAN modules don't work. 

i set the bitrate is 500000, and the board return "c_can_platform 4ae3c000.can can0: bitrate error 1.0%"

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

default configurations of DCAN in connecttivity.cfg:

#CAN
CONFIG_CAN=y
CONFIG_CAN_C_CAN=y
CONFIG_CAN_C_CAN_PLATFORM=y
CONFIG_CAN_M_CAN=y

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

root@dra7xx-evm:~# ip link set can0 up type can bitrate 500000
[ 170.901476] c_can_platform 4ae3c000.can can0: bitrate error 1.0%
[ 170.907753] c_can_platform 4ae3c000.can can0: setting BTR=2e01 BRPE=0000
[ 170.914552] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@dra7xx-evm:~# ip -details link show can0
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0 
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 
bitrate 505263 sample-point 0.842 
tq 104 prop-seg 7 phase-seg1 8 phase-seg2 3 sjw 1
c_can: tseg1 2..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
clock 19200000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
root@dra7xx-evm:~#

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

 dra756-evm.dts:

dcan1_pins_default: dcan1_pins_default {

pinctrl-single,pins = <
		DRA7XX_CORE_IOPAD(0x37d4,	PIN_INPUT | MUX_MODE15) /* dcan1_rx.dcan1.rx */
		DRA7XX_CORE_IOPAD(0x37d0,	PIN_OUTPUT | MUX_MODE0) /* dcan1_tx.dcan1_tx */
	>;
};

dcan2_pins_default: dcan2_pins_default {
	pinctrl-single,pins = <
		DRA7XX_CORE_IOPAD(0x37bc,	PIN_INPUT | MUX_MODE15) /* dcan2_rx.dcan2_rx */
		DRA7XX_CORE_IOPAD(0x37b8,	PIN_OUTPUT | MUX_MODE4) /* dcan2_rx.dcan2_tx */
	>;
};


&dcan1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dcan1_pins_default>;
};

&dcan2 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&dcan2_pins_default>;
};



dra7.dtsi:
dcan1: can@4ae3c000 {
compatible = "ti,dra7-d_can";
ti,hwmods = "dcan1";
reg = <0x4ae3c000 0x2000>;
syscon-raminit = <&scm_conf 0x558 0>;
interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&dcan1_sys_clk_mux>;
status = "disabled";
};

dcan2: can@48480000 {
compatible = "ti,dra7-d_can";
ti,hwmods = "dcan2";
reg = <0x48480000 0x2000>;
syscon-raminit = <&scm_conf 0x558 1>;
interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sys_clkin1>;
status = "disabled";
};
========================================================================

start log
U-Boot SPL 2019.04-rc1-00239-gb89074f-dirty (Jul 16 2019 - 09:19:51 +0800)
DRA752-GP ES2.0
Trying to boot from MMC1
no pinctrl state for default mode
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment



U-Boot 2019.04-rc1-00239-gb89074f-dirty (Jul 16 2019 - 09:19:51 +0800)

CPU : DRA752-GP ES2.0
Model: TI DRA742
Board: DRA74x EVM REV 
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment

Warning: fastboot.board_rev: unknown board revision
Net: No ethernet found.
Hit any key to stop autoboot: 0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
234 bytes read in 2 ms (114.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3965440 bytes read in 337 ms (11.2 MiB/s)
97828 bytes read in 11 ms (8.5 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffe5000, end 8ffffe23 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.133-01666-gaea8526-dirty (jeehong@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #63 SMP PREEMPT Tue Jul 16 08:19:34 CST 2019
[ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: TI DRA742
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 128 MiB at 0x00000000b0000000
[ 0.000000] OMAP4: Map 0x00000000fed00000 to fe600000 for dram barrier
[ 0.000000] DRA752 ES2.0
[ 0.000000] percpu: Embedded 15 pages/cpu s31372 r8192 d21876 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 517696
[ 0.000000] Kernel command line: console=ttyS0,115200n8 elevator=noop root=PARTUUID=631796c1-02 rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=128M@0xB0000000 rootfstype=ext4 snd.slots_reserved=1,1
[ 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: 1911988K/2077696K available (8192K kernel code, 341K rwdata, 2508K rodata, 2048K init, 277K bss, 34636K reserved, 131072K cma-reserved, 1160192K 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 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc1000000 (2048 kB)
[ 0.000000] .data : 0xc1000000 - 0xc1055730 ( 342 kB)
[ 0.000000] .bss : 0xc1057000 - 0xc109c4f0 ( 278 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] OMAP clockevent source: timer1 at 31475 Hz
[ 0.000000] arch_timer: cp15 timer(s) running at 5.90MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x15c70fb29, max_idle_ns: 440795202138 ns
[ 0.000005] sched_clock: 56 bits at 5MHz, resolution 169ns, wraps every 4398046511093ns
[ 0.000018] Switching to timer-based delay loop, resolution 169ns
[ 0.000357] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000366] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000752] Console: colour dummy device 80x30
[ 0.000784] Calibrating delay loop (skipped), value calculated using timer frequency.. 11.80 BogoMIPS (lpj=59016)
[ 0.000801] pid_max: default: 32768 minimum: 301
[ 0.000913] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000927] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001459] CPU: Testing write buffer coherency: ok
[ 0.001498] CPU0: Spectre v2: using ICIALLU workaround
[ 0.001692] /cpus/cpu@0 missing clock-frequency property
[ 0.001711] /cpus/cpu@1 missing clock-frequency property
[ 0.001723] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.039893] Setting up static identity map for 0x80200000 - 0x80200060
[ 0.059902] Hierarchical SRCU implementation.
[ 0.080096] EFI services will not be available.
[ 0.099961] smp: Bringing up secondary CPUs ...
[ 0.170299] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.170305] CPU1: Spectre v2: using ICIALLU workaround
[ 0.170419] smp: Brought up 1 node, 2 CPUs
[ 0.170430] SMP: Total of 2 processors activated (23.60 BogoMIPS).
[ 0.170438] CPU: All CPU(s) started in HYP mode.
[ 0.170446] CPU: Virtualization extensions available.
[ 0.171038] devtmpfs: initialized
[ 0.187888] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
[ 0.188239] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[ 0.188441] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.188458] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.191084] pinctrl core: initialized pinctrl subsystem
[ 0.191539] DMI not present or invalid.
[ 0.191787] NET: Registered protocol family 16
[ 0.192931] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.193889] omap_hwmod: l3_main_2 using broken dt data from ocp
[ 0.370383] cpuidle: using governor ladder
[ 0.370418] cpuidle: using governor menu
[ 0.377908] OMAP GPIO hardware version 0.1
[ 0.394860] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/nand_flash_x16, deferring probe
[ 0.399434] No ATAGs?
[ 0.399504] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.399518] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.399861] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.399872] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.400421] OMAP DMA hardware revision 0.0
[ 0.415215] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 0.416437] edma 43300000.edma: memcpy is disabled
[ 0.419632] edma 43300000.edma: TI EDMA DMA engine driver
[ 0.420235] reg-fixed-voltage fixedregulator-sd: Fixed regulator specified with variable voltages
[ 0.420259] reg-fixed-voltage: probe of fixedregulator-sd failed with error -22
[ 0.424755] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferring probe
[ 0.424797] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferring probe
[ 0.424834] omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c5_pins, deferring probe
[ 0.424938] media: Linux media interface: v0.10
[ 0.424972] Linux video capture interface: v2.00
[ 0.425018] pps_core: LinuxPPS API ver. 1 registered
[ 0.425027] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.425046] PTP clock support registered
[ 0.425074] EDAC MC: Ver: 3.0.0
[ 0.425343] dmi: Firmware registration failed.
[ 0.425672] Advanced Linux Sound Architecture Driver Initialized.
[ 0.426447] clocksource: Switched to clocksource arch_sys_counter
[ 0.433861] NET: Registered protocol family 2
[ 0.434376] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.434440] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.434566] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.434639] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.434672] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.434793] NET: Registered protocol family 1
[ 0.435080] RPC: Registered named UNIX socket transport module.
[ 0.435090] RPC: Registered udp transport module.
[ 0.435098] RPC: Registered tcp transport module.
[ 0.435106] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.436237] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 0.436414] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 0.438891] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 0.442929] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.443424] NFS: Registering the id_resolver key type
[ 0.443447] Key type id_resolver registered
[ 0.443456] Key type id_legacy registered
[ 0.443494] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.444794] bounce: pool size: 64 pages
[ 0.444834] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.444844] io scheduler noop registered (default)
[ 0.444853] io scheduler deadline registered
[ 0.444946] io scheduler cfq registered
[ 0.444957] io scheduler mq-deadline registered
[ 0.444966] io scheduler kyber registered
[ 0.448951] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[ 0.449487] ti-iodelay 4844a000.padconf: Invalid Coarse delay count (0) (reg=0x00000000)
[ 0.495042] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.497730] console [ttyS0] disabled
[ 0.497780] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 43, base_baud = 3000000) is a 8250
[ 1.303872] console [ttyS0] enabled
[ 1.308256] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 44, base_baud = 3000000) is a 8250
[ 1.318721] omap_rng 48090000.rng: Random Number Generator ver. 20
[ 1.319048] random: fast init done
[ 1.326907] Error: Driver 'tfp410' is already registered, aborting...
[ 1.328431] random: crng init done
[ 1.343555] brd: module loaded
[ 1.352048] loop: module loaded
[ 1.358950] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 1.365687] libphy: Fixed MDIO Bus: probed
[ 1.370600] CAN device driver interface
[ 1.375239] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=76)
[ 1.384710] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=77)
[ 1.394903] i2c /dev entries driver
[ 1.398884] IR NEC protocol handler initialized
[ 1.403437] IR RC5(x/sz) protocol handler initialized
[ 1.408527] IR RC6 protocol handler initialized
[ 1.413078] IR JVC protocol handler initialized
[ 1.417642] IR Sony protocol handler initialized
[ 1.422280] IR SANYO protocol handler initialized
[ 1.427018] IR Sharp protocol handler initialized
[ 1.431743] IR MCE Keyboard/mouse protocol handler initialized
[ 1.437613] IR XMP protocol handler initialized
[ 1.446073] sdhci: Secure Digital Host Controller Interface driver
[ 1.452309] sdhci: Copyright(c) Pierre Ossman
[ 1.458630] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.464887] leds-gpio: probe of leds failed with error -2
[ 1.470640] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.478458] NET: Registered protocol family 10
[ 1.483601] Segment Routing with IPv6
[ 1.487383] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.493754] NET: Registered protocol family 17
[ 1.498251] can: controller area network core (rev 20170425 abi 9)
[ 1.504507] NET: Registered protocol family 29
[ 1.509027] can: raw protocol (rev 20170425)
[ 1.513319] can: broadcast manager protocol (rev 20170425 t)
[ 1.519027] can: netlink gateway (rev 20170425) max_hops=1
[ 1.524765] Key type dns_resolver registered
[ 1.529255] omap_voltage_late_init: Voltage driver support not added
[ 1.535637] Power Management for TI OMAP4+ devices.
[ 1.540815] Registering SWP/SWPB emulation handler
[ 1.558790] dmm 4e000000.dmm: initialized all PAT entries
[ 1.564776] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.569985] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.577301] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[ 1.583686] nand: Macronix MX30LF2G18AC
[ 1.587560] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.595211] nand: using OMAP_ECC_BCH4_CODE_HW ECC scheme
[ 1.600652] 10 ofpart partitions found on MTD device omap2-nand.0
[ 1.606789] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.612217] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.618123] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.624617] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.631133] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.637634] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.644353] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.650817] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.657240] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.664344] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.673998] 0x000000a00000-0x000010000000 : "NAND.file-system"
[ 1.793281] palmas 0-0058: IRQ missing: skipping irq request
[ 1.826808] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
[ 1.833806] SMPS123: supplied by regulator-dummy
[ 1.840528] SMPS45: supplied by regulator-dummy
[ 1.847095] SMPS6: supplied by regulator-dummy
[ 1.853412] SMPS7: supplied by regulator-dummy
[ 1.859920] SMPS8: supplied by regulator-dummy
[ 1.866254] SMPS9: supplied by regulator-dummy
[ 1.871849] LDO1: supplied by regulator-dummy
[ 1.878294] LDO2: supplied by regulator-dummy
[ 1.884560] LDO3: supplied by regulator-dummy
[ 1.890828] LDO4: supplied by regulator-dummy
[ 1.896009] LDO5: supplied by regulator-dummy
[ 1.901208] LDO6: supplied by regulator-dummy
[ 1.906407] LDO7: supplied by regulator-dummy
[ 1.911623] LDO8: supplied by regulator-dummy
[ 1.916830] LDO9: supplied by regulator-dummy
[ 1.923273] LDOLN: supplied by regulator-dummy
[ 1.929660] LDOUSB: supplied by regulator-dummy
[ 1.938968] pcf857x 0-0020: probed
[ 1.942965] pcf857x 0-0023: probed
[ 1.946643] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[ 1.953051] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
[ 1.971304] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[ 1.979875] evm_3v3_sw: supplied by sysen1
[ 2.037275] evm_1v8: supplied by smps9
[ 2.081837] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.089963] mmc0: new SDHC card at address 0001
[ 2.094790] mmcblk0: mmc0:0001 00000 7.44 GiB 
[ 2.099965] hctosys: unable to open rtc device (rtc0)
[ 2.101713] mmcblk0: p1 p2
[ 2.105735] aic_dvdd: supplied by evm_3v3_sw
[ 2.112391] vtt_fixed: supplied by sysen2
[ 2.116932] aic_dvdd: disabling
[ 2.120516] ldousb: disabling
[ 2.123764] ALSA device list:
[ 2.126757] No soundcards found.
[ 2.148517] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[ 2.160020] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.164512] mmc1: new high speed MMC card at address 0001
[ 2.168205] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.179723] mmcblk1: mmc1:0001 DG4064 59.2 GiB 
[ 2.184544] mmcblk1boot0: mmc1:0001 DG4064 partition 1 4.00 MiB
[ 2.190865] mmcblk1boot1: mmc1:0001 DG4064 partition 2 4.00 MiB
[ 2.197232] mmcblk1rpmb: mmc1:0001 DG4064 partition 3 4.00 MiB
[ 2.214644] devtmpfs: mounted
[ 2.218732] Freeing unused kernel memory: 2048K
[ 2.797304] systemd[1]: System time before build time, advancing clock.
[ 2.845840] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
[ 2.867549] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[ 2.927845] systemd[1]: Set hostname to <dra7xx-evm>.
[ 3.402954] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 3.454314] systemd[1]: Listening on Process Core Dump Socket.
[ OK ] Listening on Process Core Dump Socket.
[ 3.486673] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 3.516678] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 3.546692] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 3.576590] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 3.608261] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
Mounting Kernel Debug File System...
Starting Load Kernel Modules...
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-getty.slice.
Starting Create list of required st…ce nodes for the current kernel...
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
Starting Remount Root and Kernel File Systems...
[ 3.912928] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on udev Control Socket.
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
Starting Journal Service...
Mounting POSIX Message Queue File System...
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Journal Service.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
[ OK ] Started Remount Root and Kernel File Systems.
Starting Create System Users...
Starting Rebuild Hardware Database...
Starting Apply Kernel Variables...
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Create System Users.
[ OK ] Started Apply Kernel Variables.
[ 4.685671] systemd-journald[89]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Mounting /media/ram...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Rebuild Dynamic Linker Cache...
Starting Rebuild Journal Catalog...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Rebuild Journal Catalog.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Rebuild Hardware Database.
Starting udev Coldplug all Devices...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update is Completed.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
Starting Network Service...
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Listening on dropbear.socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting TI IPC Daemon...
Starting Print notice about GPLv3 packages...
[ OK ] Reached target Containers.
[ OK ] Started Periodic Command Scheduler.
Starting uim-sysfs.service...
[ OK ] Started D-Bus System Message Bus.
[ 8.559745] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[ 8.578970] omap-des 480a5000.des: will run requests pump with realtime priority
[ 8.730113] omap_rtc 48838000.rtc: already running
[ 8.738372] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc0
[ 8.981019] SCSI subsystem initialized
[ OK ] Started System Logging Service.
Starting Login Service...
[ OK ] Started Hardware RNG Entropy Gatherer Daemon.[ 9.056052] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3

[ OK ] Started Kernel Logging Service.
[ OK ] Started Job spooling tools.
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Timers.
[ OK ] Started strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[ 9.228644] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 9.256880] ahci 4a140000.sata: forcing port_map 0x0 -> 0x1
[ 9.262529] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
Starting RPC Bind Service...
[ OK ] Started Network Service.
[ OK ] Started TI IPC Daemon.
[ 9.317345] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio slum part ccc apst 
[ OK ] Found device /dev/ttyS0.
[ 9.425295] scsi host0: ahci
[ 9.428681] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 70
[ OK ] Started RPC Bind Service.
[ 9.486648] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[ 9.506545] omap-aes 4b500000.aes: will run requests pump with realtime priority
[ 9.625970] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[ 9.653429] omap-aes 4b700000.aes: will run requests pump with realtime priority
[ 9.795799] NET: Registered protocol family 15
[ 9.811200] ata1: SATA link down (SStatus 0 SControl 300)
[ 10.134374] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 10.264424] Initializing XFRM netlink socket
[ 11.371789] dwc3 48890000.usb: changing max_speed on rev 5533202a
[ OK ] Started uim-sysfs.service.
Starting rc.pvr.service...
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[ OK ] Reached target Network.
Starting Permit User Sessions...
Starting Lightning Fast Webserver With Light System Requirements...
Starting Enable and configure wl18xx bluetooth stack...
Starting Network Name Resolution...
[ OK ] Started Permit User Sessions.
[ OK ] Started Login Service.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
Starting Synchronize System and HW clocks...
[ OK ] Started Enable and configure wl18xx bluetooth stack.
[ OK ] Started Synchronize System and HW clocks.
[ 12.237518] pvrsrvkm: loading out-of-tree module taints kernel.
[ OK ] Started Lightning Fast Webserver With Light System Requirements.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started NFS status monitor for NFSv2/3 locking..
[ OK ] Started rc.pvr.service.
Starting weston.service...
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
autoconf
bash-dev
bash
binutils-dev
binutils
bison-dev
bison
cifs-utils
cpio
cpp-symlinks
cpp
dosfstools
elfutils-dev
elfutils
g++-symlinks
g++
gawk
gcc-symlinks
gcc
gdb
gdbc6x
gdbserver
gettext
glmark2
gstreamer1.0-libav
gzip
libasm1
libcairo-perf-utils
libdw1
libelf1
libgdbm-compat4
libgdbm-dev
libgdbm4
libgettextlib
libgettextsrc
libgmp10
libidn11
libmpc3
libmpfr4
libreadline-dev
libreadline7
libunistring2
m4-dev
m4
make
nettle
parted
python3-pycairo
swig-dev
swig
which

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
[ OK ] Started Print notice about GPLv3 packages.
[ OK ] Started weston.service.
Starting telnetd.service...
[ OK ] Started telnetd.service.
Starting thttpd.service...
[ OK ] Started thttpd.service.
Starting rng-tools.service...
[ OK ] Started rng-tools.service.
Starting userled.service...
[ OK ] Started userled.service.
Starting gdbserverproxy.service...
[ OK ] Started gdbserverproxy.service.
Starting matrix-gui-2.0.service...
[ OK ] Started matrix-gui-2.0.service.
Starting thermal-zone-init.service...
[ OK ] Started thermal-zone-init.service.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

_____ _____ _ _ 
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ 
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| 
|___| |___|

Arago Project http://arago-project.org dra7xx-evm ttyS0

Arago 2018.10 dra7xx-evm ttyS0

dra7xx-evm login:


TDA2EXEVM: I can't train CNN for semantic segmentation on the Caffe-jacinto-models-0.17?

$
0
0

Part Number: TDA2EXEVM

I use the ./train_cityscapes_segmentation.sh in Caffe-jacinto-models-0.17,The command remains as above and cannot continue。when I change to Caffe-jacinto-models-0.16,is OK.  why?

Linux/TDA2PXEVM: early boot will occur kernel panic

$
0
0

Part Number: TDA2PXEVM

Tool/software: Linux

Hello,

We are using early boot & late attach. According to VisionSDK_Linux_UserGuide.pdf from TI visionSDK, after applying the patches from linux/kernel/linux-kernel-addon/earlyboot-kernel-patches/*, and prepare SD card, at last, run early-boot-update.sh to replace the boot partiton. Now, it will occur kernel panic. Please find the boot log in the attchment.Could you help to have a look?

Thanks 

Terence

(Please visit the site to view this file)

AM5749: AM574x Technical Reference manual is missing

$
0
0

Part Number: AM5749

Please re-upload below file. AM574x Technical Reference manual is missing , spruih8a.pdf

Linux/AM3352: Linux/AM3352: SDK how to use in Ubuntu.

$
0
0

Part Number: AM3352

Tool/software: Linux

Hi Sir I want to konw how to use SKD In Ubuntu. Do have  The tutorial?

TDA2PXEVM: Output of semseg pixels values at the tidl_postproclink_algplugin.c

$
0
0

Part Number: TDA2PXEVM

Hi TI team,

I have successfully deployed my trained model on tda2. Now I want to apply image processing further which could help me generating the required output. I have two questions about it and detailed answers will be highly appreciated.

1. How can I see the pixel values of each classes at the tidl_postproclink, I added some part of the code but I can't understand the output it is generating. What I need is the pixel value of each classes of my segmented objects. So far, I have only two objects. Here is the picture below of my code:

2. Adding this for loop and print function also disturbs my output on the display and make it completely black. How to deal with issue also, do I need to allocate any memory before doing any such thing, if yes, can you give me some hint on it? 

Kindly respond me asap. Thank you.

With best regards,

H.M. Owais

RTOS/PROCESSOR-SDK-OMAPL138: How to compile Syslink for DSP

$
0
0

Part Number: PROCESSOR-SDK-OMAPL138

Tool/software: TI-RTOS

I am trying to compile syslink for use on linux(GPP), and DSP(sysbios)

By issuing the following commands

make syslink-driver

make syslink-hlos

I am able to get the ko for driver and library for hlso

When calling make syslink-rtos, it can compile, but I am curious which compiler it is using ?

DSP cods should be compiled by cgt_c6000, cl6x
There is this path :-

CGT_C674_ELF_INSTALL_DIR = /home/ti-cgt-c6000_8.3.4/

which looks like is only used for loader, but not the other part of the codes(only my observations), just wish to clarify if my compilation is on track for DSP rtos ?

Below the settings for products.mak

DEPOT                    = /home/syslink_dependent
DEVICE                   = OMAPL1XX
GPPOS                    = Linux
SDK                      = NONE
TI81XXDSP_DMTIMER_FREQ   =
SYSLINK_BUILD_DEBUG      = 1
SYSLINK_BUILD_OPTIMIZE   = 0
SYSLINK_TRACE_ENABLE     = 1
LOADER                   = ELF
SYSLINK_INSTALL_DIR      = /home/syslink/syslink_2_21_03_11
IPC_INSTALL_DIR          = /home/tiIPC/ipc_1_25_03_15
BIOS_INSTALL_DIR         = /home/bios_6_34_04_22
XDC_INSTALL_DIR          = /home/xdctools_3_24_05_48
LINUXKERNEL              = /home/tikernel
QNX_INSTALL_DIR          =
CGT_ARM_PREFIX           = /home/ctng/arm-unknown-linux-uclibcgnueabi/bin/arm-unknown-linux-uclibcgnueabi-
CGT_C64P_INSTALL_DIR     =
CGT_C64P_ELF_INSTALL_DIR =
CGT_C674_INSTALL_DIR     =
CGT_C674_ELF_INSTALL_DIR = /home/ti-cgt-c6000_8.3.4/
CGT_M3_ELF_INSTALL_DIR   =
CGT_A8_ELF_INSTALL_DIR   =
EXEC_DIR                 = /home/syslink_build

Thanks.

TDA2PXEVM: Questions regarding image processing tools and optimization of semseg on EVE's

$
0
0

Part Number: TDA2PXEVM

Hi Dear TI,

I have some thought provoking questions regarding tda2 and tidl. I have successfully implemented semseg with 2EVEs on tda2px. Now I have these following questions for which I need detailed answers.

1. As far as I understood, I cannot use opencv due to performance issue for image processing. Therefore, the only option I am left with is either vlib or eve_sw. I wanna ask, among them, which one is more suitable and closer to opencv. This arises another question

2. If I use eve_sw, my computational requirement is already occupied by the semseg, so I believe that I can only use vlib as it is for dsp. Please put some light on it.

3. Now, the third question is: How can I optimize the semseg so that I can use only one EVE to make it run on more than 10fps. What are the possible way which can contribute to fulfill this purpose.

4. Finally, I wanna ask, how can I check the memory consumed by tda2 while running the network or any usecase. I can calculate the theoretical value by converting it from the PC memory usage while inference and converting it for the tda2. However, I actually wanna see the practical value printed by the tda2 on the fly. 

Thank you once again, will be waiting for your detailed answers.

With best regards,

H. M. Owais


Linux/AM5718: Device tree changes for ADv7611 support

$
0
0

Part Number: AM5718

Tool/software: Linux

Hiii All,

We have a custom board of AM5718 where the HDMI (from DSP) output goes to ADv7611.The reset of  ADv7611 is connected to the RESET OUT (F23) of DSP. How can we add the reset details of ADv7611 to the dts node ?

Linux Version : linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00

SDK Version : ti-processor-sdk-linux-am57xx-evm-05.01.00.11

Thanks and Regards

Arpita Jena

Linux/AM3352: AM3352 Nand Flash Driver

$
0
0

Part Number: AM3352

Tool/software: Linux

We use AM3352 chip to make a core board. When the system starts and runs, the NAND flash driver appears abnormal from time to time. The appendix provides the starting LOG, and  the DTS configuration file and the related circuit diagram of the NAND flash part.

Using Nand flash, 1G-bit, Page-size 2112 bytes (2048+64 bytes) and Block Size (128K+4K bytes) of Winbond W29N01 series,

Using am335x-evm-linux-sdk-src-04.03.00.05 Kernel: Linux version 4.9version, the default configuration in DTS is used for the timing configuration of GPMC, HW Hamming is used for Ecc verification, Cramfs is used for root file system and application file system, and yaffs2 format is used for data storage, . The storage of data, using bch8 check, will lead to the lack of OOB space, so Hamming check is used.

I had the same problem when I switched to another model of Nand flash (Micron MT29F2G08ABAEAWP).

Please help to provide information, any information can be. Thank you!

DTS Config

/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;

#include "am33xx.dtsi"
#include <dt-bindings/interrupt-controller/irq.h>

/ {
model = "TI AM335x EVM";
compatible = "ti,am335x-evm", "ti,am33xx";

cpus {
cpu@0 {
cpu0-supply = <&vdd1_reg>;
};
};

memory@80000000 {
device_type = "memory";
reg = <0x80000000 0x8000000>; /* 128 MB */
};

leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&gpio_led_pins>;
led0 {
label = "am335x:workled1";
gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; /* gpio1_30 */
linux,default-trigger = "heartbeat";
};
led1 {
label = "am335x:workled1";
gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_16 */
linux,default-trigger = "heartbeat";
};
};
chosen {
stdout-path = &uart0;
};

vbat: fixedregulator0 {
compatible = "regulator-fixed";
regulator-name = "vbat";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
};

panel {
compatible = "ti,tilcdc,panel";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&lcd_pins_s0>;
panel-info {
ac-bias = <255>;
ac-bias-intrpt = <0>;
dma-burst-sz = <16>;
bpp = <16>;
fdd = <0x80>;
sync-edge = <0>;
sync-ctrl = <1>;
raster-order = <0>;
fifo-th = <0>;
};

display-timings {
/*1280x800p51 {
clock-frequency = <60000000>;*/
1280x800p25 {
clock-frequency = <30000000>;
hactive = <1280>;
vactive = <800>;
hfront-porch = <70>;
hback-porch = <80>;
hsync-len = <10>;
vback-porch = <10>;
vfront-porch = <10>;
vsync-len = <3>;
hsync-active = <1>;
vsync-active = <1>;
};
};

/*display-timings {
1280x800p60 {
clock-frequency = <71100000>;
hactive = <1280>;
vactive = <800>;
hfront-porch = <70>;
hback-porch = <80>;
hsync-len = <10>;
vback-porch = <10>;
vfront-porch = <10>;
vsync-len = <3>;
hsync-active = <1>;
vsync-active = <1>;
};
};*/
};

sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AM335x-EVM";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&sound_master>;
simple-audio-card,frame-master = <&sound_master>;

simple-audio-card,cpu {
sound-dai = <&mcasp0>;
};

sound_master: simple-audio-card,codec {
sound-dai = <&nau8822>;
system-clock-frequency = <24000000>;
system-clock-direction = "out";
};
};
};

&am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&clkout2_pin>;

gpio_led_pins: pinmux_gpio_led_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x880, PIN_OUTPUT | MUX_MODE7) /* gpmc_csn1.gpio1_30 gpio_led*/
AM33XX_IOPAD(0x998, PIN_OUTPUT | MUX_MODE7) /* mcasp0_axr0.gpio3_16 pdk led*/
>;
};

gt9271_ts_pins: pinmux_gt9271_ts_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x88c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_clk.gpio2_1 */
AM33XX_IOPAD(0x920, PIN_INPUT_PULLUP | MUX_MODE7) /* mii1_txd2.gpio0_17 */
>;
};

i2c0_pins: pinmux_i2c0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
>;
};

i2c2_pins: pinmux_i2c2_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3) /* uart1_ctsn.i2c2_sda */
AM33XX_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE3) /* uart1_rtsn.i2c2_scl */
>;
};

uart0_pins: pinmux_uart0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
>;
};

uart1_pins: pinmux_uart1_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
>;
};

uart2_pins_default: uart2_pins_default {
pinctrl-single,pins = <
AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE1 ) /* (K18) gmii1_txclk.uart2_rxd */
AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLUP | MUX_MODE1 ) /* (L18) gmii1_rxclk.uart2_txd */
>;
};

uart3_pins_default: uart3_pins_default {
pinctrl-single,pins = <
AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE1 ) /* (C15) spi0_cs1.uart3_rxd */
AM33XX_IOPAD(0x964, PIN_OUTPUT_PULLUP | MUX_MODE1 ) /* (C18) ecap0_in_pwm0_out.uart3_txd */
>;
};

uart4_pins_default: uart4_pins_default {
pinctrl-single,pins = <
AM33XX_IOPAD(0x968, PIN_INPUT_PULLUP | MUX_MODE1 ) /* (E18) uart0_ctsn.uart4_rxd */
AM33XX_IOPAD(0x96c, PIN_OUTPUT_PULLUP | MUX_MODE1 ) /* (E17) uart0_rtsn.uart4_txd */
>;
};

uart5_pins_default: uart5_pins_default {
pinctrl-single,pins = <
AM33XX_IOPAD(0x908, PIN_INPUT | MUX_MODE3 ) /* (H16) gmii1_col.uart5_rxd */
AM33XX_IOPAD(0x918, PIN_OUTPUT | MUX_MODE3 ) /* (J17) gmii1_rxdv.uart5_txd */
>;
};


clkout2_pin: pinmux_clkout2_pin {
pinctrl-single,pins = <
AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
>;
};

nandflash_pins_s0: nandflash_pins_s0 {
pinctrl-single,pins = <
AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_30 */
AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
>;
};

cpsw_default: cpsw_default {
pinctrl-single,pins = <
/* Slave 1 */
AM33XX_IOPAD(0x910, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* mii1_rx_er.rmii1_rxerr */
AM33XX_IOPAD(0x914, PIN_OUTPUT | MUX_MODE1) /* mii1_tx_en.rmii1_tx_en */
AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_crs.rmii1_crs_dv */
AM33XX_IOPAD(0x924, PIN_OUTPUT | MUX_MODE1) /* mii1_txd1.rmii1_td1 */
AM33XX_IOPAD(0x928, PIN_OUTPUT | MUX_MODE1) /* mii1_txd0.rmii1_td0 */
AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd1.rmii1_rd1 */
AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE1) /* mii1_rxd0.rmii1_rd0 */
AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mii1_ref_clk.rmii1_ref_clk */
>;
};

cpsw_sleep: cpsw_sleep {
pinctrl-single,pins = <
AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_rxer.rmii1_rxerr */
AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_txen.rmii1_tx_en */
AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_rxdv.rmii1_rx_dv */
AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_txd1.rmii1_td1 */
AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_txd0.rmii1_td0 */
AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_rxd1.rmii1_rd1 */
AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_rxd0.rmii1_rd0 */
AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mii1_rxd0.rmii1_ref_clk */
>;
};

davinci_mdio_default: davinci_mdio_default {
pinctrl-single,pins = <
/* MDIO */
AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
>;
};

davinci_mdio_sleep: davinci_mdio_sleep {
pinctrl-single,pins = <
/* MDIO reset value */
AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
>;
};

mmc1_pins: pinmux_mmc1_pins {
pinctrl-single,pins = <
/* AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) */
AM33XX_IOPAD(0x9a4, PIN_INPUT | MUX_MODE7)
AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0)
AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0)
AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0)
AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0)
AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0)
AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0)
>;
};

lcd_pins_s0: lcd_pins_s0 {
pinctrl-single,pins = <
AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
>;
};

mcasp0_pins: mcasp0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mcasp0.mcasp0_ahclkx*/
AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0.mcasp0_fsx */
/*AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0)*/ /* mcasp0.mcasp0_aclkx */
AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE0) /* gpmc_a8.mcasp0_aclkx */
AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0.mcasp0_axr1 */
AM33XX_IOPAD(0x9b0, PIN_OUTPUT_PULLDOWN | MUX_MODE3)/* xdma_event_intr0.clkout1 */
>;
};

};

&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;

status = "okay";
};

&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;

status = "okay";
};

&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins_default>;

status = "okay";
};

&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins_default>;

status = "okay";
};

&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&uart4_pins_default>;

status = "okay";
};

&uart5 {
pinctrl-names = "default";
pinctrl-0 = <&uart5_pins_default>;

status = "okay";
};


&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;

status = "okay";
clock-frequency = <400000>;

tps: tps@2d {
reg = <0x2d>;
};

pcf8563: pcf8563@51 {
compatible = "nxp,pcf8563";
reg = <0x51>;
#clock-cells = <0>;
};

nau8822: nau8822@1a {
#sound-dai-cells = <0>;
compatible = "nuvoton,nau8822";
reg = <0x1a>;
status = "okay";
};
};

&usb {
status = "okay";
};

&usb_ctrl_mod {
status = "okay";
};

&usb0_phy {
status = "okay";
};

&usb1_phy {
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
};

&usb1 {
status = "okay";
dr_mode = "host";
};

&cppi41dma {
status = "okay";
};

&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;

status = "okay";
clock-frequency = <100000>;

gt9271@5d {
compatible = "goodix,gt9271";
pinctrl-names = "default";
pinctrl-0 = <&gt9271_ts_pins>;
reg = <0x5d>;
interrupt-parent = <&gpio0>;
interrupts = <17 2>;

/*gpios = <&gpio2 1 0>;*/
irq-gpios = <&gpio0 17 0>;
reset-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;

touchscreen-size-x = <1280>;
touchscreen-size-y = <800>;

touchscreen-swap = <1>;
touchscreen-revert-x = <1>;
touchscreen-revert-y = <1>;
};
};

&lcdc {
status = "okay";

blue-and-red-wiring = "crossed";
};

&elm {
status = "okay";
};

&gpmc {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&nandflash_pins_s0>;
ranges = <0 0 0x08000000 0x1000000>; /* CS0: 16MB for NAND */
nand@0,0 {
compatible = "ti,omap2-nand";
reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
interrupt-parent = <&gpmc>;
interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
<1 IRQ_TYPE_NONE>; /* termcount */
rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
ti,nand-xfer-type = "prefetch-dma";
/*ti,nand-xfer-type = "polled";*/
ti,nand-ecc-opt = "hw";
ti,elm-id = <&elm>;
nand-bus-width = <8>;
gpmc,device-width = <1>;
gpmc,sync-clk-ps = <0>;
gpmc,cs-on-ns = <0>;
gpmc,cs-rd-off-ns = <44>;
gpmc,cs-wr-off-ns = <44>;
gpmc,adv-on-ns = <6>;
gpmc,adv-rd-off-ns = <34>;
gpmc,adv-wr-off-ns = <44>;
gpmc,we-on-ns = <0>;
gpmc,we-off-ns = <40>;
gpmc,oe-on-ns = <0>;
gpmc,oe-off-ns = <54>;
gpmc,access-ns = <64>;
gpmc,rd-cycle-ns = <82>;
gpmc,wr-cycle-ns = <82>;
/*gpmc,wait-on-read = "true";
gpmc,wait-on-write = "true";*/
gpmc,bus-turnaround-ns = <0>;
gpmc,cycle2cycle-delay-ns = <0>;
gpmc,clk-activation-ns = <0>;
gpmc,wr-access-ns = <40>;
gpmc,wr-data-mux-bus-ns = <0>;

/* MTD partition table */
/* All SPL-* partitions are sized to minimal length
* which can be independently programmable. For
* NAND flash this is equal to size of erase-block */
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "NAND.SPL";
reg = <0x00000000 0x000020000>;
};
partition@1 {
label = "NAND.SPL.backup1";
reg = <0x00020000 0x00020000>;
};
partition@2 {
label = "NAND.SPL.backup2";
reg = <0x00040000 0x00020000>;
};
partition@3 {
label = "NAND.SPL.backup3";
reg = <0x00060000 0x00020000>;
};
partition@4 {
label = "NAND.u-boot-spl-os";
reg = <0x00080000 0x00040000>;
};
partition@5 {
label = "NAND.u-boot";
reg = <0x000C0000 0x00100000>;
};
partition@6 {
label = "NAND.u-boot-env";
reg = <0x001C0000 0x00020000>;
};
partition@7 {
label = "NAND.u-boot-env.backup1";
reg = <0x001E0000 0x00020000>;
};
partition@8 {
label = "NAND.kernel";
reg = <0x00200000 0x00800000>;
};
partition@9 {
label = "NAND.file-system";
reg = <0x00A00000 0x02800000>;
};
partition@10 {
label = "NAND.appl-system";
reg = <0x03200000 0x01400000>;
};
partition@11 {
label = "NAND.data";
reg = <0x04600000 0x00200000>;
};
partition@12 {
label = "NAND.history_data";
reg = <0x04800000 0x03800000>;
};
};
};

#include "tps65910.dtsi"

&mcasp0 {
#sound-dai-cells = <0>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&mcasp0_pins>;

status = "okay";

op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
/* 4 serializers */
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
0 1 0 2
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};

&tps {
vcc1-supply = <&vbat>;
vcc2-supply = <&vbat>;
vcc3-supply = <&vbat>;
vcc4-supply = <&vbat>;
vcc5-supply = <&vbat>;
vcc6-supply = <&vbat>;
vcc7-supply = <&vbat>;
vccio-supply = <&vbat>;

regulators {
vrtc_reg: regulator@0 {
regulator-always-on;
};

vio_reg: regulator@1 {
regulator-always-on;
};

vdd1_reg: regulator@2 {
/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
regulator-name = "vdd_mpu";
regulator-min-microvolt = <912500>;
regulator-max-microvolt = <1351500>;
regulator-boot-on;
regulator-always-on;
};

vdd2_reg: regulator@3 {
/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
regulator-name = "vdd_core";
regulator-min-microvolt = <912500>;
regulator-max-microvolt = <1150000>;
regulator-boot-on;
regulator-always-on;
};

vdd3_reg: regulator@4 {
regulator-always-on;
};

vdig1_reg: regulator@5 {
regulator-always-on;
};

vdig2_reg: regulator@6 {
regulator-always-on;
};

vpll_reg: regulator@7 {
regulator-always-on;
};

vdac_reg: regulator@8 {
regulator-always-on;
};

vaux1_reg: regulator@9 {
regulator-always-on;
};

vaux2_reg: regulator@10 {
regulator-always-on;
};

vaux33_reg: regulator@11 {
regulator-always-on;
};

vmmc_reg: regulator@12 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
};
};

&mac {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
status = "okay";
};

&davinci_mdio {
pinctrl-names = "default";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";

ethernetphy0: ethernet-phy@0 {
reg = <0>;
smsc,disable-energy-detect;
};
};

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rmii";
};

&mmc1 {
status = "okay";
vmmc-supply = <&vmmc_reg>;
bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins>;
cd-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
};

&sham {
status = "okay";
};

&aes {
status = "okay";
};

&rtc {
clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
clock-names = "ext-clk", "int-clk";
};

&wkup_m3_ipc {
ti,scale-data-fw = "am335x-evm-scale-data.bin";
};

&pruss_soc_bus {
status = "okay";

pruss: pruss@4a300000 {
status = "okay";

pru0: pru@4a334000 {
status = "okay";
};

pru1: pru@4a338000 {
status = "okay";
};
};
};

&sgx {
status = "okay";
};

Startup Log

U-Boot SPL 2017.01 (Jul 03 2019 - 18:27:20)
Trying to boot from NAND


U-Boot 2017.01 (Jul 03 2019 - 18:27:20 +0800)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 128 MiB
ETH0, CPSW
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net: ti cpsw
board_eth_init
usb_eth_initialize
cpsw
Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x200000, size 0x500000
5242880 bytes read: OK

NAND read: device 0 offset 0x80000, size 0x40000
262144 bytes read: OK
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-4.9.69-g9ce43c71ae
Created: 2019-07-09 13:47:01 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4334968 Bytes = 4.1 MiB
Load Address: 82000000
Entry Point: 82000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 80f80000
Booting using the fdt blob at 0x80f80000
Loading Kernel Image ... OK
of_start=0x85f07000 getenv_bootm_mapsize()=0x08000000,getenv_bootm_low()=0x80000000
mike!!!!!!!!!!!!!
Loading Device Tree to 85f07000, end 85f13d27 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.69-g9ce43c71ae (root@localhost.localdomain) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.03 - Linaro GCC 2014.03) ) #109 PREEMPT Tue Jul 9 21:46:43 CST 2019
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: TI AM335x EVM
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x84800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200n81 root=/dev/mtdblock9 rootfstype=cramfs init=/sbin/init mem=128M
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 66368K/131072K available (9216K kernel code, 319K rwdata, 2720K rodata, 1024K init, 327K bss, 15552K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0d00000 - 0xc0e00000 (1024 kB)
[ 0.000000] .data : 0xc0e00000 - 0xc0e4ff38 ( 320 kB)
[ 0.000000] .bss : 0xc0e4ff38 - 0xc0ea1c64 ( 328 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000044] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000057] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000292] clocksource_probe: no matching clocksources found
[ 0.000510] Console: colour dummy device 80x30
[ 0.000555] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.118770] pid_max: default: 32768 minimum: 301
[ 0.118916] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.118930] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119915] CPU: Testing write buffer coherency: ok
[ 0.120337] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.121415] EFI services will not be available.
[ 0.123167] devtmpfs: initialized
[ 0.140434] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.140873] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.140908] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.145096] pinctrl core: initialized pinctrl subsystem
[ 0.146608] NET: Registered protocol family 16
[ 0.149272] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.168939] omap_hwmod: debugss: _wait_target_disable failed
[ 0.248779] cpuidle: using governor ladder
[ 0.278767] cpuidle: using governor menu
[ 0.287226] OMAP GPIO hardware version 0.1
[ 0.306893] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.310644] No ATAGs?
[ 0.310669] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.360207] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.364676] SCSI subsystem initialized
[ 0.365083] usbcore: registered new interface driver usbfs
[ 0.365181] usbcore: registered new interface driver hub
[ 0.365344] usbcore: registered new device driver usb
[ 0.365718] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.365790] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[ 0.365963] media: Linux media interface: v0.10
[ 0.366033] Linux video capture interface: v2.00
[ 0.366090] pps_core: LinuxPPS API ver. 1 registered
[ 0.366101] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.366133] PTP clock support registered
[ 0.366184] EDAC MC: Ver: 3.0.0
[ 0.367557] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.367990] Advanced Linux Sound Architecture Driver Initialized.
[ 0.370327] clocksource: Switched to clocksource timer1
[ 0.384508] NET: Registered protocol family 2
[ 0.385461] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.385494] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.385519] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.385607] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.385631] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.385798] NET: Registered protocol family 1
[ 0.386311] RPC: Registered named UNIX socket transport module.
[ 0.386327] RPC: Registered udp transport module.
[ 0.386336] RPC: Registered tcp transport module.
[ 0.386344] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.387485] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.390698] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.401765] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.403045] NFS: Registering the id_resolver key type
[ 0.403101] Key type id_resolver registered
[ 0.403112] Key type id_legacy registered
[ 0.403173] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.403547] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[ 0.404818] JFS: nTxBlock = 902, nTxLock = 7220
[ 0.411733] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.411761] io scheduler noop registered
[ 0.411770] io scheduler deadline registered
[ 0.411968] io scheduler cfq registered (default)
[ 0.413824] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.500182] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.505359] console [ttyS0] disabled
[ 0.505466] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[ 1.135017] console [ttyS0] enabled
[ 1.139893] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
[ 1.150057] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 160, base_baud = 3000000) is a 8250
[ 1.160133] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 161, base_baud = 3000000) is a 8250
[ 1.170198] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 162, base_baud = 3000000) is a 8250
[ 1.180262] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 163, base_baud = 3000000) is a 8250
[ 1.191527] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.198327] [drm] Initialized
[ 1.203952] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.210687] [drm] No driver support for vblank timestamp query.
[ 1.288380] Console: switching to colour frame buffer device 160x50
[ 1.312677] tilcdc 4830e000.lcdc: fb0: frame buffer device
[ 1.357944] brd: module loaded
[ 1.369616] loop: module loaded
[ 1.376324] libphy: Fixed MDIO Bus: probed
[ 1.450364] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.456512] libphy: 4a101000.mdio: probed
[ 1.461720] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.471927] cpsw 4a100000.ethernet: Detected MACID = 40:bd:32:db:fc:07
[ 1.478634] cpsw 4a100000.ethernet: device node lookup for pps timer failed
[ 1.485803] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.495388] usbcore: registered new interface driver cdc_wdm
[ 1.501472] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[ 1.510972] mousedev: PS/2 mouse device common for all mice
[ 1.517108] i2c /dev entries driver
[ 1.523051] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.531305] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.537783] leds-gpio leds: Led am335x:workled1 renamed to am335x:workled1_1 due to name collision
[ 1.547448] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.557324] NET: Registered protocol family 10
[ 1.563687] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.570838] NET: Registered protocol family 17
[ 1.575401] lib80211: common routines for IEEE802.11 drivers
[ 1.581456] Key type dns_resolver registered
[ 1.586129] omap_voltage_late_init: Voltage driver support not added
[ 1.599355] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.604728] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.612899] ecc mode=(null)
[ 1.615928] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 1.622474] nand: Micron MT29F2G08ABAEAWP
[ 1.626539] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.634239] ********************1111111111111111111111
[ 1.639402] nand: using OMAP_ECC_HAM1_CODE_HW
[ 1.643832] nand: WARNING: omap2-nand.0: the ECC used on your system is too weak compared to the one required by the NAND chip
[ 1.655418] 13 ofpart partitions found on MTD device omap2-nand.0
[ 1.661562] Creating 13 MTD partitions on "omap2-nand.0":
[ 1.667008] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.674053] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.681642] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.689069] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.696596] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
[ 1.704346] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
[ 1.711758] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
[ 1.718984] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
[ 1.726997] 0x000000200000-0x000000a00000 : "NAND.kernel"
[ 1.736737] 0x000000a00000-0x000003200000 : "NAND.file-system"
[ 1.758288] 0x000003200000-0x000004600000 : "NAND.appl-system"
[ 1.772792] 0x000004600000-0x000004800000 : "NAND.data"
[ 1.780267] 0x000004800000-0x000008000000 : "NAND.history_data"
[ 1.830607] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.838959] vrtc: supplied by vbat
[ 1.846291] vio: supplied by vbat
[ 1.851319] vdd1: supplied by vbat
[ 1.855204] random: fast init done
[ 1.860200] vdd2: supplied by vbat
[ 1.867167] vdig1: supplied by vbat
[ 1.872306] vdig2: supplied by vbat
[ 1.877367] vpll: supplied by vbat
[ 1.882357] vdac: supplied by vbat
[ 1.887348] vaux1: supplied by vbat
[ 1.892449] vaux2: supplied by vbat
[ 1.897505] vaux33: supplied by vbat
[ 1.902704] vmmc: supplied by vbat
[ 1.907692] vbb: supplied by vbat
[ 1.913531] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 1.921397] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 1.928938] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.081922] mike!
[ 2.083885] Goodix-TS 2-005d: mike ID=0x39 0x32 0x37 0x31 0x40 0x10
[ 2.090188] Goodix-TS 2-005d: ID 9271, version: 1040
[ 2.095280] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 2.103101] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 2.108870] Goodix-TS 2-005d: Direct firmware load for goodix_9271_cfg.bin failed with error -2
[ 2.135319] input: Goodix Capacitive TouchScreen as /devices/platform/ocp/4819c000.i2c/i2c-2/2-005d/input/input0
[ 2.161642] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 2.169138] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[ 2.180080] ALSA device list:
[ 2.183162] No soundcards found.
[ 2.194104] VFS: Mounted root (cramfs filesystem) readonly on device 31:9.
[ 2.201294] devtmpfs: mounted
[ 2.205784] Freeing unused kernel memory: 1024K
[ 2.408183] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.418427] mmc0: new high speed SDHC card at address 0001
[ 2.425457] mmcblk0: mmc0:0001 SD 7.44 GiB
[ 2.432490] mmcblk0: p1 p2
init started: BusyBox v1.11.2 (2014-08-13 03:58:01 PDT)
starting pid 106, tty '': '/etc/init.d/rcS'
mount: mounting devpts on /dev/pts failed: No such file or directory
mount: mounting usbfs on /mnt failed: No such device
Starting udevd...
[ 2.838305] udevd (112): /proc/112/oom_adj is deprecated, please use /proc/112/oom_score_adj instead.
[ 3.892351] yaffs: dev is 32505867 name is "mtdblock11" rw
[ 3.897884] yaffs: passed flags ""
[ 3.913507] yaffs: dev is 32505868 name is "mtdblock12" rw
[ 3.919081] yaffs: passed flags ""
[ 4.060649] net eth0: initializing cpsw version 1.12 (0)
[ 4.066014] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 4.096571] cpsw 4a100000.ethernet: ALE Table size 1024
[ 4.200859] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
[ 4.213973] net/eth/ti/cpsw-phy-sel gmii_sel=0x000000c5
[ 4.223174] cpts ptp bc clkid 0
[ 4.232299] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.278882] net eth0: initializing cpsw version 1.12 (0)
[ 4.284626] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 4.291194] cpsw 4a100000.ethernet: ALE Table size 1024
[ 4.390855] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=-1)
[ 4.404041] net/eth/ti/cpsw-phy-sel gmii_sel=0x000000c5
[ 4.413912] cpts ptp bc clkid 0
[ 4.420082] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Please press Enter to activate this console. /var/app/arm_monitor: line 14: /var/app/dog: not found
m_EcgScale=0.058594 0.0625*30/32=0.058594
[ 5.888987] random: crng init done
Could not read calibration: "/etc/pointercal"
g_MachineConfig.Model=0x00
fq> g_MachineConfig.ScreenResolution=4 MACHINE_MODEL=0
SCRN_X=800 SCRN_Y=1280
init trenddata success!
[ 7.243169] blk_update_request: I/O error, dev mtdblock10, sector 5520
[ 7.249763] Buffer I/O error on dev mtdblock10, logical block 690, async page read
[ 7.258400] blk_update_request: I/O error, dev mtdblock10, sector 5528
[ 7.264974] Buffer I/O error on dev mtdblock10, logical block 691, async page read
[ 7.273174] blk_update_request: I/O error, dev mtdblock10, sector 5536
[ 7.279741] Buffer I/O error on dev mtdblock10, logical block 692, async page read
[ 7.287893] blk_update_request: I/O error, dev mtdblock10, sector 5544
[ 7.294457] Buffer I/O error on dev mtdblock10, logical block 693, async page read
[ 7.302147] cramfs: Error -3 while decompressing!
[ 7.306876] cramfs: c0e82cf7(2364)->c1c3c000(4096)
[ 7.311749] cramfs: Error -3 while decompressing!
[ 7.316485] cramfs: c0e83633(2313)->c1c3b000(4096)
[ 7.321324] cramfs: Error -3 while decompressing!
[ 7.326050] cramfs: c0e83f3c(2378)->c1c3d000(4096)
[ 7.330885] cramfs: Error -3 while decompressing!
[ 7.335611] cramfs: c0e84886(2314)->c1c3e000(4096)
[ 7.340443] cramfs: Error -3 while decompressing!
[ 7.345168] cramfs: c0e85190(2291)->c1c3f000(4096)
[ 7.349983] cramfs: Error -3 while decompressing!
[ 7.354730] cramfs: c0e85a83(2485)->c1c40000(4096)
[ 7.363078] cramfs: Error -3 while decompressing!
[ 7.367814] cramfs: c0e87438(2284)->c1c41000(4096)
init control board /dev/ttyS2 success!
Save system config!

TMS320C6455: Reed Solomon code

AM5749: AM5749 Pin Mux Tool excel sheet (offline tool) missing.

$
0
0

Part Number: AM5749

Please provide link for AM5749 Pin Mux Tool excel sheet (offline tool).

RTOS/AM3358: Build MyExampleProjects

$
0
0

Part Number: AM3358

Tool/software: TI-RTOS

Hi,

CCS: CCS V7

SDK:ti-processor-sdk-rtos-am335x-evm-03.03.00.04

I import project into ccs and build these project. But failed and below is the error message.

There are no i2c_arm_icev2am335x_pa8fg.h and i2c_arm_icev2am335x_pa8fg.c in MyExampleProjects\I2C_Example_icev2AM335x_armExampleProject\Debug\configPkg\package\cfg

Viewing all 17527 articles
Browse latest View live