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.

AM5728: About UAR Setting Issue

Part Number: AM5728

Hi Sir 

We used AM5728 with latest SDK. 

1. We would like to enable 10 UARTs at the same time 

2. We found there are some issues

       in below table, it would have some problems if we open second UART port (ex: Uart1 and UART5) in the same block.

        if we change the second uart in different block, it can work.at the same time. And it can open max 4 uarts at the same time in below table.

if we want to open ten uart ports at the same time. 

please advise how to do ? 

if it cannot meet, what is the limitation ?  

what is the suggestion how to use ten uart ports at the same time.

BR

Yimin

  • Hi Yimin,

    There is no limitation on how many UART ports to use simultaneously.

    Can you please provide details or logs for the error when you open the second port in the same block?

  • Hi Sir 

    1. We set below code in am57xx-beagle-x15.dts

    &uart1{
    status = "okay";
    };
    &uart2{
    status = "okay";
    };
    &uart4{
    status = "okay";
    };
    &uart5{
    status = "okay";
    };
    &uart6{
    status = "okay";
    };
    &uart7{
    status = "okay";
    };
    &uart8{
    status = "okay";
    };
    &uart9{
    status = "okay";
    };
    &uart10{
    status = "okay";
    };

    And set below code in am57xx-beagle-x15-common.dtsi

    &uart1{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3e0>;
    };

    &uart2{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3f0>;
    };

    &uart3 {
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3f8>;
    };

    &uart4{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x33c>;
    };

    &uart5{

    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3c8>;
    };

    &uart6{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x2B8>;
    };

    &uart7{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x0E4>;
    };

    &uart8{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x334>;
    };

    &uart9{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x344>;
    };

    &uart10{
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x394>;
    };

    2. attachment is the sample code 

    3051.main.cppuart.cpp

        Test Method:

              1. if we enable UART1 and UART5 , it may has something wrong. And they cannot open to work together.

                  it also has the same issue if we enable UART1 and UART2.

                  

              2.if we only enable uart1 or uart5, everything works well.

    please advise.

    BR

    Yimin

  • Hi SIr 

    refer to above Figure 24-57. We did some experiment and found some phenomenons.

    We can enable second uart in the same block ( ex: uart1 and uart5). But we have to closed first uart and open the another uart.

    It seems we cannot enable them at the same time.

    BTW, error message is attached

    ==>>> UART 1, 5, 7, 10 open at the same time: NG
    ==>>> UART 1, 7, 9, 10 open at the same time: OK
    
    
    root@am57xx-evm:/nfs/arm_uart_tx_tray# ���
    U-Boot SPL 2018.01 (Jun 09 2019 - 18:45:33)
    DRA752-GP ES2.0
    [YH] boot_from_devices
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    *** Warning - bad CRC, using default environment
    
    
    
    U-Boot 2018.01 (Jun 09 2019 - 18:45:33 +0800)
    
    CPU  : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15-MBBU
    Board: AM572x EVM REV A.3A
    [YH] announce_dram_init()
    DRAM:  2 GiB
    [YH] board_init(void)
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    board claims am57xx_evm_reva3 in eeprom header
    fastboot.board_rev: A.3A board revision
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    [YH] board_late_init(void)
    SCSI:  SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
    scanning bus for devices...
    Found 0 device(s).
    Net:   
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    4006400 bytes read in 195 ms (19.6 MiB/s)
    145821 bytes read in 27 ms (5.1 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffd9000, end 8ffff99c ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (yh64@M81) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #139 SMP PREEMPT Wed Aug 7 14:24:45 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 AM5728 EVM
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 24 MiB at 0x00000000fe400000
    [    0.000000] OMAP4: Map 0x00000000ffd00000 to fe600000 for dram barrier
    [    0.000000] DRA752 ES2.0
    [    0.000000] percpu: Embedded 15 pages/cpu @eed2b000 s31308 r8192 d21940 u61440
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 472640
    [    0.000000] Kernel command line: console=ttyO2,115200n8 root=PARTUUID=a0a0b768-02 rw rootfstype=ext4 rootwait
    [    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: 1675576K/1897472K available (8192K kernel code, 337K rwdata, 2552K rodata, 2048K init, 299K bss, 33480K reserved, 188416K cma-reserved, 1283072K 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 - 0xc1054428   ( 338 kB)
    [    0.000000]        .bss : 0xc1056000 - 0xc10a0cfc   ( 300 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 32786 Hz
    [    0.000000] arch_timer: 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.000017] Switching to timer-based delay loop, resolution 162ns
    [    0.000341] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000350] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000841] Console: colour dummy device 80x30
    [    0.000858] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
    [    0.000866] This ensures that you still see kernel messages. Please
    [    0.000872] update your kernel commandline.
    [    0.000893] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000908] pid_max: default: 32768 minimum: 301
    [    0.001028] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001042] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001566] CPU: Testing write buffer coherency: ok
    [    0.001789] /cpus/cpu@0 missing clock-frequency property
    [    0.001809] /cpus/cpu@1 missing clock-frequency property
    [    0.001821] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.039850] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.059860] Hierarchical SRCU implementation.
    [    0.080053] EFI services will not be available.
    [    0.099927] smp: Bringing up secondary CPUs ...
    [    0.170250] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.170343] smp: Brought up 1 node, 2 CPUs
    [    0.170358] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.170366] CPU: All CPU(s) started in HYP mode.
    [    0.170373] CPU: Virtualization extensions available.
    [    0.170900] devtmpfs: initialized
    [    0.191062] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
    [    0.191306] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.191503] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.191519] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.195331] pinctrl core: initialized pinctrl subsystem
    [    0.195787] DMI not present or invalid.
    [    0.196036] NET: Registered protocol family 16
    [    0.197073] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.198005] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.308104] omap_hwmod: dcan1: _wait_target_disable failed
    [    0.407073] cpuidle: using governor ladder
    [    0.407106] cpuidle: using governor menu
    [    0.415242] OMAP GPIO hardware version 0.1
    [    0.446208] No ATAGs?
    [    0.446281] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.446295] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.446670] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.446681] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.447201] OMAP DMA hardware revision 0.0
    [    0.456953] edma 43300000.edma: memcpy is disabled
    [    0.460236] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.467256] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.468595] evm_5v0: supplied by main_12v0
    [    0.469021] com_3v6: supplied by evm_5v0
    [    0.472103] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.472300] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.472538] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.472784] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.473135] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.473336] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.473580] iommu: Adding device 58820000.ipu to group 1
    [    0.473667] iommu: Adding device 55020000.ipu to group 2
    [    0.473816] iommu: Adding device 40800000.dsp to group 0
    [    0.474070] iommu: Adding device 41000000.dsp to group 3
    [    0.476246] palmas 0-0058: Irq flag is 0x00000008
    [    0.502771] palmas 0-0058: Muxing GPIO 2b, PWM 0, LED 0
    [    0.504304] SMPS12: supplied by regulator-dummy
    [    0.506028] SMPS3: supplied by regulator-dummy
    [    0.507729] SMPS45: supplied by regulator-dummy
    [    0.509572] SMPS6: supplied by regulator-dummy
    [    0.511081] SMPS7: supplied by regulator-dummy
    [    0.512511] SMPS8: supplied by regulator-dummy
    [    0.513800] SMPS9: supplied by regulator-dummy
    [    0.514510] LDO1: supplied by regulator-dummy
    [    0.521088] random: fast init done
    [    0.521307] LDO2: supplied by regulator-dummy
    [    0.531152] LDO3: supplied by regulator-dummy
    [    0.541169] LDO4: supplied by regulator-dummy
    [    0.551187] LDO5: supplied by regulator-dummy
    [    0.551919] LDO6: supplied by regulator-dummy
    [    0.552638] LDO7: supplied by regulator-dummy
    [    0.553361] LDO8: supplied by regulator-dummy
    [    0.554096] LDO9: supplied by regulator-dummy
    [    0.561215] LDOLN: supplied by regulator-dummy
    [    0.571237] LDOUSB: supplied by regulator-dummy
    [    0.583838] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.584402] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.584919] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz
    [    0.585097] media: Linux media interface: v0.10
    [    0.585134] Linux video capture interface: v2.00
    [    0.585216] pps_core: LinuxPPS API ver. 1 registered
    [    0.585224] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.585244] PTP clock support registered
    [    0.585270] EDAC MC: Ver: 3.0.0
    [    0.590684] dmi: Firmware registration failed.
    [    0.591095] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.591386] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.591723] Advanced Linux Sound Architecture Driver Initialized.
    [    0.600744] clocksource: Switched to clocksource arch_sys_counter
    [    0.608602] NET: Registered protocol family 2
    [    0.609127] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.609191] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.609317] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.609385] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.609418] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.609540] NET: Registered protocol family 1
    [    0.609826] RPC: Registered named UNIX socket transport module.
    [    0.609835] RPC: Registered udp transport module.
    [    0.609843] RPC: Registered tcp transport module.
    [    0.609850] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.610861] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.611034] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.612034] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.616156] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.616641] NFS: Registering the id_resolver key type
    [    0.616662] Key type id_resolver registered
    [    0.616670] Key type id_legacy registered
    [    0.616708] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.618021] bounce: pool size: 64 pages
    [    0.618065] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.618076] io scheduler noop registered
    [    0.618085] io scheduler deadline registered
    [    0.618236] io scheduler cfq registered (default)
    [    0.618246] io scheduler mq-deadline registered
    [    0.618254] io scheduler kyber registered
    [    0.623687] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.631211] vdd_3v3: supplied by regen1
    [    0.631468] aic_dvdd_fixed: supplied by vdd_3v3
    [    0.631551] vtt_fixed: supplied by smps3
    [    0.670752] NOHZ: local_softirq_pending 80
    [    0.673774] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.676355] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 43, base_baud = 3000000) is a 8250
    [    0.677126] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 44, base_baud = 3000000) is a 8250
    [    0.677850] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
    [    1.695965] console [ttyS2] enabled
    [    1.700229] 4806e000.serial: ttyS3 at MMIO 0x4806e000 (irq = 46, base_baud = 3000000) is a 8250
    [    1.709729] 48066000.serial: ttyS4 at MMIO 0x48066000 (irq = 47, base_baud = 3000000) is a 8250
    [    1.719225] 48068000.serial: ttyS5 at MMIO 0x48068000 (irq = 48, base_baud = 3000000) is a 8250
    [    1.728709] 48420000.serial: ttyS6 at MMIO 0x48420000 (irq = 49, base_baud = 3000000) is a 8250
    [    1.738200] 48422000.serial: ttyS7 at MMIO 0x48422000 (irq = 50, base_baud = 3000000) is a 8250
    [    1.747679] 48424000.serial: ttyS8 at MMIO 0x48424000 (irq = 51, base_baud = 3000000) is a 8250
    [    1.757174] 4ae2b000.serial: ttyS9 at MMIO 0x4ae2b000 (irq = 52, base_baud = 3000000) is a 8250
    [    1.767926] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    1.775091] DSS: OMAP DSS rev 6.1
    [    1.779561] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    1.789503] panel-dpi display: display supply vcc not found, using dummy regulator
    [    1.807761] brd: module loaded
    [    1.816358] loop: module loaded
    [    1.823411] libphy: Fixed MDIO Bus: probed
    [    1.880775] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.888469] libphy: 48485000.mdio: probed
    [    1.892973] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver TI DP83822 10/100 Mbps PHY
    [    1.903205] cpsw 48484000.ethernet: Detected MACID = 88:3f:4a:ba:23:e6
    [    1.909815] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    1.916222] cpsw 48484000.ethernet: ALE Table size 1024
    [    1.921499] cpsw 48484000.ethernet: device node lookup for pps timer failed
    [    1.928534] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.936957] sis_ts_init ver. 3.01.03
    [    1.940851] sis_ts_probe
    [    1.943482] sis_i2c_ts 3-005c: get reset pin ok
    [    1.948031] sis_reset: reset 
    [    1.980762] sis_reset: reset low 
    [    2.100764] sis_reset: reset high 
    [    2.104304] input: sis_touch as /devices/virtual/input/input0
    [    2.110252] sis_gpio_irq=36
    [    2.113132] sis_ts_probe: Start touchscreen sis_touch in interrupt mode
    [    2.119776] sis_setup_chardev.
    [    2.122865] sis_hydra_touch_device driver(major 244) installed.
    [    2.128917] sis SIS_SLAVE_ADDR: 5c
    [    2.132431] i2c /dev entries driver
    [    2.136870] IR NEC protocol handler initialized
    [    2.141443] IR RC5(x/sz) protocol handler initialized
    [    2.146517] IR RC6 protocol handler initialized
    [    2.151083] IR JVC protocol handler initialized
    [    2.155633] IR Sony protocol handler initialized
    [    2.160269] IR SANYO protocol handler initialized
    [    2.165008] IR Sharp protocol handler initialized
    [    2.169730] IR MCE Keyboard/mouse protocol handler initialized
    [    2.175601] IR XMP protocol handler initialized
    [    2.182530] gpio-fan gpio_fan: GPIO fan initialized
    [    2.188075] tmp102 0-0048: error reading config register
    [    2.193561] tmp102: probe of 0-0048 failed with error -121
    [    2.203268] sdhci: Secure Digital Host Controller Interface driver
    [    2.209476] sdhci: Copyright(c) Pierre Ossman
    [    2.214781] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.221302] sdhci-omap 4809c000.mmc: Got CD GPIO
    [    2.226662] sdhci-omap 4809c000.mmc: no pinctrl state for sdr104 mode
    [    2.233159] sdhci-omap 4809c000.mmc: no pinctrl state for ddr50 mode
    [    2.239538] sdhci-omap 4809c000.mmc: no pinctrl state for sdr50 mode
    [    2.245957] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
    [    2.252612] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
    [    2.311078] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    2.380792] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    2.390110] sdhci-omap 480ad000.mmc: no pinctrl state for sdr104 mode
    [    2.397805] sdhci-omap 480ad000.mmc: no pinctrl state for ddr50 mode
    [    2.406293] sdhci-omap 480ad000.mmc: no pinctrl state for hs200_1_8v mode
    [    2.419931] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.429649] mmc0: new ultra high speed SDR25 SDHC card at address 59b4
    [    2.436426] mmcblk0: mmc0:59b4 AF UD 7.49 GiB 
    [    2.442362]  mmcblk0: p1 p2 p3
    [    2.470419] mmc1: new DDR MMC card at address 0001
    [    2.475275] mmc2: SDHCI controller on 480ad000.mmc [480ad000.mmc] using PIO
    [    2.482893] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.488988] mmcblk1: mmc1:0001 P1XXXX 3.60 GiB 
    [    2.493968] mmcblk1boot0: mmc1:0001 P1XXXX partition 1 2.00 MiB
    [    2.495791] NET: Registered protocol family 10
    [    2.504745] mmcblk1boot1: mmc1:0001 P1XXXX partition 2 2.00 MiB
    [    2.506499] Segment Routing with IPv6
    [    2.506545] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.506945] NET: Registered protocol family 17
    [    2.507117] Key type dns_resolver registered
    [    2.507217] omap_voltage_late_init: Voltage driver support not added
    [    2.507220] Power Management for TI OMAP4+ devices.
    [    2.507432] Registering SWP/SWPB emulation handler
    [    2.547050] mmcblk1rpmb: mmc1:0001 P1XXXX partition 3 128 KiB
    [    2.547086] dmm 4e000000.dmm: workaround for errata i878 in use
    [    2.558902] dmm 4e000000.dmm: initialized all PAT entries
    [    2.581186] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    2.587828] [drm] No driver support for vblank timestamp query.
    [    2.597273] [drm] Enabling DMM ywrap scrolling
    [    2.673792] Console: switching to colour frame buffer device 128x37
    [    2.683972] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    2.690585] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    2.699149] input: gpio_keys as /devices/platform/gpio_keys/input/input1
    [    2.706199] hctosys: unable to open rtc device (rtc0)
    [    2.711769] aic_dvdd_fixed: disabling
    [    2.715617] ldousb: disabling
    [    2.719013] ALSA device list:
    [    2.722006]   No soundcards found.
    [    2.727743] NOHZ: local_softirq_pending 40
    [    2.734832] NOHZ: local_softirq_pending 40
    [    4.432768] EXT4-fs (mmcblk0p2): recovery complete
    [    4.473319] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    4.481514] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    4.488748] devtmpfs: mounted
    [    4.493009] Freeing unused kernel memory: 2048K
    [    4.731852] systemd[1]: System time before build time, advancing clock.
    [    4.771707] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID)
    [    4.793173] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.08!
    
    [    4.831467] systemd[1]: Set hostname to <am57xx-evm>.
    [    5.158909] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.165869] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    5.200938] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.207768] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    5.251892] random: systemd: uninitialized urandom read (16 bytes read)
    [    5.258613] systemd[1]: Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Network Service Netlink Socket.
    [    5.300878] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    5.332340] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    5.361273] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    5.425478] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on Journal Socket.
    [  OK  ] Created slice System Slice.
             Mounting Temporary Directory (/tmp)...
             Starting Journal Service...
             Starting Remount Root and Kernel File Systems...
    [    5.750955] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
             Mounting Kernel Debug File System...
             Starting Load Kernel Modules...
    [    5.810138] cmemk: loading out-of-tree module taints kernel.
    [    5.816532] CMEMK module: reference Linux version 4.14.67
             [    5.825870] allocated heap buffer 0x40500000 of size 0x100000
    Mounting POSIX Message Queue File System...
    [    5.831920] cmemk initialized
    [    5.845562] cryptodev: driver 1.9 loaded.
    [  OK  ] Reached target Slices.
    [    5.880778] usbcore: registered new interface driver usbfs
    [    5.886334] usbcore: registered new interface driver hub
    [    5.892240] usbcore: registered new device driver usb
    [  OK  ] Listening on udev Kernel Socket.
    [    5.901716] usbcore: registered new interface driver usbserial
    [    5.916876] usbcore: registered new interface driver ftdi_sio
    [    5.922713] usbserial: USB Serial support registered for FTDI USB Serial Device
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Journal Service.
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Started Load Kernel Modules.
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
             Starting udev Coldplug all Devices...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [    6.394203] systemd-journald[86]: Received request to flush runtime journal from PID 1
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Flush Journal to Persistent Storage.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started udev Coldplug all Devices.
    [    6.894124] omap-rproc 58820000.ipu: assigned reserved memory node ipu1-memory@9d000000
    [    6.950970] remoteproc remoteproc0: 58820000.ipu is available
    [    6.977821] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
    [    6.989193] remoteproc remoteproc1: 55020000.ipu is available
    [    6.998722] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
    [    7.008453] remoteproc remoteproc2: 40800000.dsp is available
    [    7.016536] omap-rproc 41000000.dsp: assigned reserved memory node dsp2-memory@9f000000
    [    7.026214] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
    [    7.026220] remoteproc remoteproc2: powering up 40800000.dsp
    [    7.026238] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
    [    7.026243] remoteproc remoteproc2: request_firmware failed: -2
    [  OK  ] Found device /dev/ttyS2.
    [    7.077919] remoteproc remoteproc3: 41000000.dsp is available
    [    7.098584] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
    [    7.130778] remoteproc remoteproc3: powering up 41000000.dsp
    [    7.137943] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
    [    7.163917] remoteproc remoteproc3: request_firmware failed: -2
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Initialization.
    [    7.381893] remoteproc remoteproc0: powering up 58820000.ipu
    [    7.387587] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 6665500
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activati[    7.409263] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
    on Socket.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [    7.459667] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    7.468786] remoteproc remoteproc0: registered virtio0 (type 7)
    [[    7.486778] remoteproc remoteproc0: remote processor 58820000.ipu is now up
      OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [    7.569507] remoteproc remoteproc1: powering up 55020000.ipu
    [    7.575309] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3747220
    [    7.580723] virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x3d
    [  OK  ] Reached target Basic System.
    [    7.593888] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [  OK  ] Reached target Containers.
    [    7.608631] omap_rtc 48838000.rtc: registered as rtc2
    [    7.628171] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659038@58:tps659038_rtc as rtc1
             Starting TI IPC Daemon...
    [    7.668008] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
    [    7.668193] rtc-ds1307: probe of 2-006f failed with error -121
             Starting uim-sysfs.service...
    [    7.707371] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [    7.723236] omap-des 480a5000.des: will run requests pump with realtime priority
    [  OK  ] Started System Logging Service.
    [    7.787494] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
             Starting Avahi mDNS/DNS-SD Stack...
    [    7.826727] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    7.830105] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x65
    [    7.831188] virtio_rpmsg_bus virtio1: creating channel rpmsg-rpc addr 0x66
    [    7.861383] vpe 489d0000.vpe: Device registered as /dev/video0
    [[    7.888327] remoteproc remoteproc1: registered virtio1 (type 7)
      OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [    7.906222] remoteproc remoteproc1: remote processor 55020000.ipu is now up
             Starting TI MultiCore Tools Daemon...
    [    7.940863] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    7.988500] random: crng init done
    [    7.992507] random: 7 urandom warning(s) missed due to ratelimiting
    [    8.046149] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [  OK  ] Started Periodic Command Scheduler.
             Starting RPC Bind Service...
    [  OK  ] Started D-Bus System Message Bus.
    [    8.177762] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
    [    8.188246] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    8.201419] omap-aes 4b500000.aes: will run requests pump with realtime priority
    [    8.281471] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [    8.303041] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [    8.415343] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [    8.456110] asoc-simple-card sound0: ASoC: no DMI vendor name!
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Job spooling tools.
             Starting Login Service...
             Starting Network Service...
    [  OK  ] Started Kernel Logging Service.
             Starting Save/Restore Sound Card State...
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Started TI IPC Daemon.
    [    8.782880] net eth0: initializing cpsw version 1.15 (0)
    [  OK  ] Started TI MultiCore Tools Daemon.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Started Save/Restore Sound Card State.
    [  OK  ] Started Network Service.
    [    8.931321] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.949874] TI DP83822 10/100 Mbps PHY 48485000.mdio:01: attached PHY driver [TI DP83822 10/100 Mbps PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
    [    8.968002] cpts ptp bc clkid 0
    [    8.973424] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    9.016044] EXT4-fs (mmcblk0p3): recovery complete
    [    9.016056] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
    [  OK  ] Started uim-sysfs.service.
    [    9.674457] NET: Registered protocol family 44
    [    9.680106] pruss 4b200000.pruss: creating PRU cores and other child platform devices
    [    9.692477] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: probing service dce-callback with src 1024 dst 101
    [    9.692679] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: probing service rpmsg-dce with src 1025 dst 102
    [    9.693950] rpmsg_rpc virtio1.rpmsg-rpc.-1.101: published functions = 4
    [    9.693973] rpmsg_rpc virtio1.rpmsg-rpc.-1.102: published functions = 9
    [    9.744356] pruss 4b280000.pruss: creating PRU cores and other child platform devices
    [    9.760011] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    9.773437] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    9.794593] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [    9.804550] xhci-hcd xhci-hcd.0.auto: irq 196, io mem 0x48890000
    [    9.816689] hub 1-0:1.0: USB hub found
    [    9.822789] hub 1-0:1.0: 1 port detected
    [    9.828332] remoteproc remoteproc4: 4b234000.pru is available
    [    9.828378] pru-rproc 4b234000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@34000 probed successfully
    [    9.828653] remoteproc remoteproc5: 4b238000.pru is available
    [    9.828697] pru-rproc 4b238000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@38000 probed successfully
    [    9.828938] remoteproc remoteproc6: 4b2b4000.pru is available
    [    9.828973] pru-rproc 4b2b4000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@34000 probed successfully
    [    9.829197] remoteproc remoteproc7: 4b2b8000.pru is available
    [    9.829229] pru-rproc 4b2b8000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@38000 probed successfully
    [    9.911409] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    9.917005] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [    9.924896] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
    [    9.931673] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    9.941063] hub 2-0:1.0: USB hub found
    [    9.944898] hub 2-0:1.0: 1 port detected
    [   10.280775] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [  OK  ] Reached target Sound Card.
             Starting rc.pvr.service...
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [   10.428012] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    [  OK  ] Reached target Network.
             Starting Network Name Resolution...
    [   10.475806] hub 1-1:1.0: USB hub found
    [   10.479864] hub 1-1:1.0: 2 ports detected
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Permit User Sessions...
             Starting Wait for Network to be Configured...
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Login Service.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
             Starting telnetd.service...
    [  OK  ] Started Network Name Resolution.
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    [  OK  ] Started telnetd.service.
             Starting rng-tools.service...
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [   11.036929] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   11.045085] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [  OK  ] Started rng-tools.service.
    [   11.110794] NOHZ: local_softirq_pending 08
    [   11.160769] NOHZ: local_softirq_pending 08
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [   12.070787] NOHZ: local_softirq_pending 08
    [   12.790771] NOHZ: local_softirq_pending 08
    [   14.291025] NOHZ: local_softirq_pending 08
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am57xx-evm ttyS2
    
    Arago 2018.08 am57xx-evm ttyS2
    
    am57xx-evm login: [   24.670756] NOHZ: local_softirq_pending 40
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [   29.146784] NOHZ: local_softirq_pending 08
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am57xx-evm ttyS2
    
    Arago 2018.08 am57xx-evm ttyS2
    
    am57xx-evm login: root
    root@am57xx-evm:~# mbbuhbp01
    -sh: mbbuhbp01: command not found
    root@am57xx-evm:~# bash yh.sh 
    root@am57xx-evm:~# cd /nfs/arm_uart_tx_tray/
    root@am57xx-evm:/nfs/arm_uart_tx_tray# ./arm_uart_tx_tray 
    
      openUart(): /dev/ttyS0 
      /dev/ttyS0 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS9 
      /dev/ttyS9 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS4 
      /dev/ttyS4 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS6 
      /dev/ttyS6 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
       written to /dev/ttyS0
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS0
     +----------------------------------+  
    
     
       written to /dev/ttyS4
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS4
     +----------------------------------+  
    
     
       written to /dev/ttyS6
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS6
     +----------------------------------+  
    
     
       written to /dev/ttyS9
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS9
     +----------------------------------+  
    
     
       written to /dev/ttyS0
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS0
     +----------------------------------+
    
    
       written to /dev/ttyS4
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS4
     +----------------------------------+
    
    
       written to /dev/ttyS6
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS6
     +----------------------------------+
    
    
       written to /dev/ttyS9
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS9
     +----------------------------------+
    
    [  126.154080] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [  126.162236] pgd = ed308a80
    [  126.164955] [00000000] *pgd=ac331003, *pmd=fc307003
    [  126.169866] Internal error: Oops: 207 [#1] PREEMPT SMP ARM
    [  126.175374] Modules linked in: bc_example(O) pru_rproc pruss_intc xhci_plat_hcd xhci_hcd rpmsg_rpc dwc3 pruss rpmsg_proto udc_core snd_soc_simple_card snd_soc_simple_card_utils oma)
    [  126.224943] CPU: 1 PID: 758 Comm: arm_uart_tx_tra Tainted: G           O    4.14.67-gd315a9bb00 #139
    [  126.234114] Hardware name: Generic DRA74X (Flattened Device Tree)
    [  126.240232] task: dfd906c0 task.stack: dfdbc000
    [  126.244790] PC is at serial8250_release_dma+0x20/0x1dc
    [  126.249953] LR is at omap_8250_shutdown+0x9c/0x108
    [  126.254764] pc : [<c05c76e4>]    lr : [<c05cc0f8>]    psr: a0070013
    [  126.261057] sp : dfdbddf8  ip : dfdbde28  fp : dfdbde24
    [  126.266303] r10: ee261070  r9 : 00000004  r8 : 00000000
    [  126.271549] r7 : ed08b800  r6 : ee85d474  r5 : 00000000  r4 : c10300f8
    [  126.278102] r3 : c10300f8  r2 : 00000000  r1 : 00000001  r0 : c108f6b8
    [  126.284657] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [  126.291823] Control: 30c5387d  Table: ad308a80  DAC: 55555555
    [  126.297592] Process arm_uart_tx_tra (pid: 758, stack limit = 0xdfdbc210)
    [  126.304322] Stack: (0xdfdbddf8 to 0xdfdbe000)
    [  126.308697] dde0:                                                       dfdbde24 dfdbde08
    [  126.316911] de00: c108f6b8 ee0f6910 ee85d474 ed08b800 00000000 00000004 dfdbde3c dfdbde28
    [  126.325125] de20: c05cc0f8 c05c76d0 c108f6b8 c108f6b8 dfdbde4c dfdbde40 c05c47e4 c05cc068
    [  126.333338] de40: dfdbde64 dfdbde50 c05bee94 c05c47d4 ee85d3e0 c108f6b8 dfdbde7c dfdbde68
    [  126.341551] de60: c05beee4 c05bee64 00000000 ee85d3e0 dfdbde9c dfdbde80 c05aa764 c05beeac
    [  126.349763] de80: ee85d3e0 ed08b800 00000000 dfd40300 dfdbdebc dfdbdea0 c05aaed0 c05aa6d8
    [  126.357977] dea0: ed08b800 00000000 ee46e5d8 dfd40300 dfdbded4 dfdbdec0 c05c0eb8 c05aae98
    [  126.366190] dec0: ed08b800 00000000 dfdbdf14 dfdbded8 c05a1a48 c05c0e9c dfdbdf04 dfdbdee8
    [  126.374404] dee0: c035cf04 c0289190 dfd3bf00 dfd40300 ee261070 ee46e5d8 edd31110 00000000
    [  126.382616] df00: 00000008 ee261070 dfdbdf54 dfdbdf18 c033cffc c05a195c 00000000 00000000
    [  126.390828] df20: c0246d30 dfd40308 dfd40300 00000000 dfd90bf4 dfd906c0 c1057544 dfd90c10
    [  126.399041] df40: dfd40300 00000000 dfdbdf64 dfdbdf58 c033d1ac c033cf7c dfdbdf8c dfdbdf68
    [  126.407254] df60: c0246e74 c033d1a8 ffffe000 c0207e64 dfdbdfb0 00000006 c0207e64 dfdbc000
    [  126.415467] df80: dfdbdfac dfdbdf90 c020afb8 c0246de8 be95ea30 be95ea48 be95ea74 00000006
    [  126.423680] dfa0: 00000000 dfdbdfb0 c0207ce4 c020af04 00000000 be95ea10 00000003 0000002c
    [  126.431892] dfc0: be95ea30 be95ea48 be95ea74 00000006 be95eacc be95ea38 b6f1f000 00000000
    [  126.440106] dfe0: 00000000 be95ea24 00011637 b645ca38 40070030 00000005 00000000 00000000
    [  126.448316] Backtrace: 
    [  126.450782] [<c05c76c4>] (serial8250_release_dma) from [<c05cc0f8>] (omap_8250_shutdown+0x9c/0x108)
    [  126.459871]  r9:00000004 r8:00000000 r7:ed08b800 r6:ee85d474 r5:ee0f6910 r4:c108f6b8
    [  126.467652] [<c05cc05c>] (omap_8250_shutdown) from [<c05c47e4>] (serial8250_shutdown+0x1c/0x28)
    [  126.476389]  r5:c108f6b8 r4:c108f6b8
    [  126.479984] [<c05c47c8>] (serial8250_shutdown) from [<c05bee94>] (uart_port_shutdown+0x3c/0x48)
    [  126.488722] [<c05bee58>] (uart_port_shutdown) from [<c05beee4>] (uart_tty_port_shutdown+0x44/0xa8)
    [  126.497719]  r5:c108f6b8 r4:ee85d3e0
    [  126.501315] [<c05beea0>] (uart_tty_port_shutdown) from [<c05aa764>] (tty_port_shutdown+0x98/0x9c)
    [  126.510225]  r5:ee85d3e0 r4:00000000
    [  126.513821] [<c05aa6cc>] (tty_port_shutdown) from [<c05aaed0>] (tty_port_close+0x44/0x6c)
    [  126.522034]  r7:dfd40300 r6:00000000 r5:ed08b800 r4:ee85d3e0
    [  126.527720] [<c05aae8c>] (tty_port_close) from [<c05c0eb8>] (uart_close+0x28/0x68)
    [  126.535323]  r7:dfd40300 r6:ee46e5d8 r5:00000000 r4:ed08b800
    [  126.541008] [<c05c0e90>] (uart_close) from [<c05a1a48>] (tty_release+0xf8/0x460)
    [  126.548434]  r5:00000000 r4:ed08b800
    [  126.552029] [<c05a1950>] (tty_release) from [<c033cffc>] (__fput+0x8c/0x1dc)
    [  126.559110]  r10:ee261070 r9:00000008 r8:00000000 r7:edd31110 r6:ee46e5d8 r5:ee261070
    [  126.566972]  r4:dfd40300
    [  126.569518] [<c033cf70>] (__fput) from [<c033d1ac>] (____fput+0x10/0x14)
    [  126.576249]  r10:00000000 r9:dfd40300 r8:dfd90c10 r7:c1057544 r6:dfd906c0 r5:dfd90bf4
    [  126.584111]  r4:00000000
    [  126.586658] [<c033d19c>] (____fput) from [<c0246e74>] (task_work_run+0x98/0xb8)
    [  126.594006] [<c0246ddc>] (task_work_run) from [<c020afb8>] (do_work_pending+0xc0/0xc4)
    [  126.601957]  r9:dfdbc000 r8:c0207e64 r7:00000006 r6:dfdbdfb0 r5:c0207e64 r4:ffffe000
    [  126.609738] [<c020aef8>] (do_work_pending) from [<c0207ce4>] (slow_work_pending+0xc/0x20)
    [  126.617950]  r7:00000006 r6:be95ea74 r5:be95ea48 r4:be95ea30
    [  126.623635] Code: e5904144 e3540000 0a000044 e5945088 (e5953000) 
    [  126.631230] ---[ end trace 74c96683d2ac3cfe ]---
    Segmentation fault
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.169866] Internal error: Oops: 207 [#1] PREEMPT SMP ARM
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.297592] Process arm_uart_tx_tra (pid: 758, stack limit = 0xdfdbc210)
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.304322] Stack: (0xdfdbddf8 to 0xdfdbe000)
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.308697] dde0:                                                       dfdbde24 dfdbde08
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.316911] de00: c108f6b8 ee0f6910 ee85d474 ed08b800 00000000 00000004 dfdbde3c dfdbde28
    
    root@am57xx-evm:/nfs/arm_uart_tx_tray# 
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.325125] de20: c05cc0f8 c05c76d0 c108f6b8 c108f6b8 dfdbde4c dfdbde40 c05c47e4 c05cc068
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.333338] de40: dfdbde64 dfdbde50 c05bee94 c05c47d4 ee85d3e0 c108f6b8 dfdbde7c dfdbde68
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.341551] de60: c05beee4 c05bee64 00000000 ee85d3e0 dfdbde9c dfdbde80 c05aa764 c05beeac
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.349763] de80: ee85d3e0 ed08b800 00000000 dfd40300 dfdbdebc dfdbdea0 c05aaed0 c05aa6d8
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.357977] dea0: ed08b800 00000000 ee46e5d8 dfd40300 dfdbded4 dfdbdec0 c05c0eb8 c05aae98
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.366190] dec0: ed08b800 00000000 dfdbdf14 dfdbded8 c05a1a48 c05c0e9c dfdbdf04 dfdbdee8
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.374404] dee0: c035cf04 c0289190 dfd3bf00 dfd40300 ee261070 ee46e5d8 edd31110 00000000
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.382616] df00: 00000008 ee261070 dfdbdf54 dfdbdf18 c033cffc c05a195c 00000000 00000000
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.390828] df20: c0246d30 dfd40308 dfd40300 00000000 dfd90bf4 dfd906c0 c1057544 dfd90c10
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.399041] df40: dfd40300 00000000 dfdbdf64 dfdbdf58 c033d1ac c033cf7c dfdbdf8c dfdbdf68
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.407254] df60: c0246e74 c033d1a8 ffffe000 c0207e64 dfdbdfb0 00000006 c0207e64 dfdbc000
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.415467] df80: dfdbdfac dfdbdf90 c020afb8 c0246de8 be95ea30 be95ea48 be95ea74 00000006
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.423680] dfa0: 00000000 dfdbdfb0 c0207ce4 c020af04 00000000 be95ea10 00000003 0000002c
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.431892] dfc0: be95ea30 be95ea48 be95ea74 00000006 be95eacc be95ea38 b6f1f000 00000000
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.440106] dfe0: 00000000 be95ea24 00011637 b645ca38 40070030 00000005 00000000 00000000
    
    
    Broadcast message from systemd-journald@am57xx-evm (Mon 2019-09-09 03:11:40 UTC):
    
    kernel[470]: [  126.623635] Code: e5904144 e3540000 0a000044 e5945088 (e5953000)
    
    ^C
    root@am57xx-evm:/nfs/arm_uart_tx_tray# 
    root@am57xx-evm:/nfs/arm_uart_tx_tray# 
    root@am57xx-evm:/nfs/arm_uart_tx_tray# ./arm_uart_tx_tray 
    
      openUart(): /dev/ttyS0 
      /dev/ttyS0 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS9 
      /dev/ttyS9 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS8 
      /dev/ttyS8 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
      openUart(): /dev/ttyS6 
      /dev/ttyS6 Opened Successfully 
      BaudRate = 115200 
      StopBits = 1 
      Parity   = none 
    
       written to /dev/ttyS0
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS0
     +----------------------------------+  
    
     
       written to /dev/ttyS8
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS8
     +----------------------------------+  
    
     
       written to /dev/ttyS6
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS6
     +----------------------------------+  
    
     
       written to /dev/ttyS9
      ff  03  11  00  14
      32 Bytes written to /dev/ttyS9
     +----------------------------------+  
    
    
     
       written to /dev/ttyS0
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS0
     +----------------------------------+
    
    
       written to /dev/ttyS8
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS8
     +----------------------------------+
    
    
       written to /dev/ttyS6
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS6
     +----------------------------------+
    
    
       written to /dev/ttyS9
      ff  03  21  00  24
      32 Bytes written to /dev/ttyS9
     +----------------------------------+
    
    root@am57xx-evm:/nfs/arm_uart_tx_tray# 
    root@am57xx-evm:/nfs/arm_uart_tx_tray# 
    
    
    

    BR

    Yimin

  • Hi Yimin,

    Can you please confirm you use the latest Processor SDK linux v6.0.0.7?

  • Hi Sir

    We used TI Processor SDK 5.01

  • Hi Yimin,

    Please use the latest Processor SDK v6.0. There is a DMA bug in SDK v5.x which causes issues when multiple UART ports are used simultaneously.

  • Hi SIr 

    Could you share the patch or history to us 

    thanks

  • Yimin,

    The fix involves multiple patches, and the patches cannot be easily back ported to v4.14 kernel (which is used in SDK v5.x). So please either move to SDK v6.0, or disable DMA in UART.

  • Hi Sir 

    Do you know how to disable DMA setting of UART 

    please advise

  • Hi,

    Remove the dt properly "dmas" and "dma-names" from the node uart1 ~ uart6 in the dts file dra7.dtsi,