This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2: change log output uart 1 to uart3

Part Number: TDA2
Other Parts Discussed in Thread: DRA742, PCF8575, PMP, DRA752

Tool/software: Linux

in u-boot modified board/ti/dra7xx/mux_data.h and u-boot/arch/arm/dts/dra7-evm-common.dtsi
1 in file board/ti/dra7xx/mux_data.h
change /*{UART2_CTSN, (M3 | PIN_INPUT_PULLUP)},    /*uart2_ctsn.mmc4_dat2*/
    /*{UART2_RTSN, (M3 | PIN_INPUT_PULLUP)},    /*uart2_rtsn.mmc4_dat3*/
     to
  {UART2_CTSN, (M2 | PIN_INPUT_PULLUP| SLEWCONTROL)
        {UART2_RTSN, (M1 | PIN_INPUT_PULLUP| SLEWCONTROL)

2 u-boot/arch/arm/dts/dra7-evm-common.dtsi:14:             
change stdout-path = &uart1;
to
 stdout-path = &uart3;

uart3 already has log output  but kernel stopped
 

In addtition£¬I modified /kernel/omap/arch/arm/boot/dts dra72-evm-common.dtsi
stdout-path = &uart1;
 {
    aliases {
        display0 = &hdmi0;
        sound0 = &sound0;
        sound1 = &hdmi;
    };

    chosen {
        stdout-path = &uart3;
    };
Block some code in dra72-evm.dts about MMC4's part.



 

what is the reason of the question?

I found  that  board-support/linux/arch/arm/configs/ti_sdk_dra7x_release_defconfig   changed CONFIG_DEBUG_OMAP2UART1=y  1modfied to 3.
make linux£¬CONFIG_DEBUG_OMAP2UART3=y can auto reback CONFIG_DEBUG_OMAP2UART1=y

How to fixed it?

in u-boot modified board/ti/dra7xx/mux_data.h and u-boot/arch/arm/dts/dra7-evm-common.dtsi£¬
1¡¢file board/ti/dra7xx/mux_data.h
change /*{UART2_CTSN, (M3 | PIN_INPUT_PULLUP)},    /*uart2_ctsn.mmc4_dat2*/
    /*{UART2_RTSN, (M3 | PIN_INPUT_PULLUP)},    /*uart2_rtsn.mmc4_dat3*/
     to
  {UART2_CTSN, (M2 | PIN_INPUT_PULLUP| SLEWCONTROL)
        {UART2_RTSN, (M1 | PIN_INPUT_PULLUP| SLEWCONTROL)

2¡¢u-boot/arch/arm/dts/dra7-evm-common.dtsi:14:              
change stdout-path = &uart1;
to
 stdout-path = &uart3;

uart3 already has log output £¬but £¬kernel stopped £º
 

In addtition£¬I modified /kernel/omap/arch/arm/boot/dts dra72-evm-common.dtsi£º
stdout-path = &uart1;
 {
    aliases {
        display0 = &hdmi0;
        sound0 = &sound0;
        sound1 = &hdmi;
    };

    chosen {
        stdout-path = &uart3;
    };
Block some code £¨dra72-evm.dts£© about MMC4's part£º

 

what is the reason of the question£¿

I found  that  board-support/linux/arch/arm/configs/ti_sdk_dra7x_release_defconfig   changed CONFIG_DEBUG_OMAP2UART1=y  1modfied to 3.
make linux£¬CONFIG_DEBUG_OMAP2UART3=y can auto reback CONFIG_DEBUG_OMAP2UART1=y£¡£¡

How to fixed it£¿

  • Part Number: TDA2

    Tool/software: Linux

    Linux : how to change kernel log output port?

    how to change the .config uart1 to uart3 ?

  • Hi Widic,

    I merged your threads into one.

    Can you clarify what exactly is your problem - if I understand correctly you have successfully enabled uart3 logs for both u-boot and kernel, but the kernel stops for some other reason (mmc)? Can you also attach full boot log?

    Regards,
    Yordan
  • Hi,Yordan,

    We has the same problem for TDA2x, and I can offer you the full boot log as follows:

    U-Boot SPL 2016.05-00009-gac1d50feef-dirty (Jun 14 2018 - 16:56:55)
    DRA752-GP ES1.1
    no pinctrl for ddr_1_8v
    Card did not respond to voltage select!
    *** Warning - MMC init failed, using default environment
    Trying to boot from MMC1
    reading dra7-ipu2-fw.lzop
    spl_load_file_fat: error reading file dra7-ipu2-fw.lzop, err - -1
    spl: error reading image dra7-ipu2-fw.lzop, err - -1
    Error loading remotecore IPU2!,Continuing with boot ...
    reading dra7-dsp1-fw.lzop
    spl_load_file_fat: error reading file dra7-dsp1-fw.lzop, err - -1
    spl: error reading image dra7-dsp1-fw.lzop, err - -1
    Error loading remotecore DSP1!,Continuing with boot ...
    reading dra7-dsp2-fw.lzop
    spl_load_file_fat: error reading file dra7-dsp2-fw.lzop, err - -1
    spl: error reading image dra7-dsp2-fw.lzop, err - -1
    Error loading remotecore DSP2!,Continuing with boot ...
    reading dra7-ipu1-fw.lzop
    spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1
    spl: error reading image dra7-ipu1-fw.lzop, err - -1
    Error loading remotecore IPU1!,Continuing with boot ...
    Card did not respond to voltage select!
    *** Warning - MMC init failed, using default environment
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    U-Boot 2016.05-00009-gac1d50feef-dirty (Jun 14 2018 - 16:56:55 +0800)
    CPU  : DRA752-GP ES1.1
    Model: TI DRA742
    Board: DRA74x EVM REV G.0
    DRAM:  1.5 GiB
    MMC:   i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    mmc@4809c000: fail to find hs-rev11 mode FDT_ERR_NOTFOUND
    mmc@4809c000: fail to find sdr25-rev11 mode FDT_ERR_NOTFOUND
    mmc@4809c000: fail to find sdr12-rev11 mode FDT_ERR_NOTFOUND
    mmc@480b4000: fail to find hs-rev11 mode FDT_ERR_NOTFOUND
    OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Card did not respond to voltage select!
    *** Warning - MMC init failed, using default environment
    Card did not respond to voltage select!
    ERROR: invalid mmc device
    at arch/arm/cpu/armv7/omap-common/utils.c:193/mmc_get_part_size()
    Warning: fastboot.userdata_size: unable to calc
    SCSI:  SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
    scanning bus for devices...
    Found 0 device(s).
    Net:   
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot:  0 
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    switch to partitions #0, OK
    mmc0 is current device
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    165 bytes read in 2 ms (80.1 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    switch to partitions #0, OK
    mmc0 is current device
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    i2c_write: error waiting for data ACK (status=0x116)
    pcf8575_i2c_write_le16 i2c write failed to addr 21
    SD/MMC found on device 0
    3553888 bytes read in 174 ms (19.5 MiB/s)
    106677 bytes read in 22 ms (4.6 MiB/s)
    Booting from mmc0 ...
    Kernel image @ 0x82000000 [ 0x000000 - 0x363a60 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffe2000, end 8ffff0b4 ... OK
    Starting kernel ...
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.4.84-00105-gc66ba60e1092-dirty (root@G2) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #7 SMP PREEMPT Mon Jun 11 14:56:09 HKT 2018
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] Machine model: TI DRA742
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000040300000, size 3 MiB
    [    0.000000] Reserved memory: initialized node cmem@40300000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 80 MiB
    [    0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009e000000, size 32 MiB
    [    0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] Reserved memory: created CMA memory pool at 0x00000000a1000000, size 32 MiB
    [    0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x00000000a3000000, size 32 MiB
    [    0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: regions without no-map are not yet supported
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 64 MiB
    [    0.000000] Reserved memory: initialized node cmem@A9000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 24 MiB at 0x00000000be400000
    [    0.000000] Forcing write-allocate cache policy for SMP
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] OMAP4: Map 0x00000000bfd00000 to fe600000 for dram barrier
    [    0.000000] DRA752 ES1.1
    [    0.000000] PERCPU: Embedded 11 pages/cpu @ef62b000 s14912 r8192 d21952 u45056
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 243264
    [    0.000000] Kernel command line: console=ttyS2,115200n8 vram=16M root=PARTUUID=80a878a6-02 rw rootwait ip=none mem=1024M
    [    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: 410844K/979968K available (6623K kernel code, 319K rwdata, 2388K rodata, 336K init, 290K bss, 364324K reserved, 204800K cma-reserved, 234496K 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 - 0xc08d502c   (9013 kB)
    [    0.000000]       .init : 0xc08d6000 - 0xc092a000   ( 336 kB)
    [    0.000000]       .data : 0xc092a000 - 0xc0979f60   ( 320 kB)
    [    0.000000]        .bss : 0xc097b000 - 0xc09c3800   ( 290 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Build-time adjustment of leaf fanout to 32.
    [    0.000000] NR_IRQS:16 nr_irqs:16 16
    [    0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] Architected cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000015] Switching to timer-based delay loop, resolution 162ns
    [    0.000332] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000339] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000793] Console: colour dummy device 80x30
    [    0.000815] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000828] pid_max: default: 32768 minimum: 301
    [    0.000927] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000938] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001481] Initializing cgroup subsys io
    [    0.001498] Initializing cgroup subsys memory
    [    0.001523] Initializing cgroup subsys devices
    [    0.001536] Initializing cgroup subsys freezer
    [    0.001547] Initializing cgroup subsys perf_event
    [    0.001559] Initializing cgroup subsys pids
    [    0.001585] CPU: Testing write buffer coherency: ok
    [    0.001783] /cpus/cpu@0 missing clock-frequency property
    [    0.001799] /cpus/cpu@1 missing clock-frequency property
    [    0.001809] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001841] Setting up static identity map for 0x80008380 - 0x800083e0
    [    0.080060] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.080128] Brought up 2 CPUs
    [    0.080141] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.080148] CPU: All CPU(s) started in HYP mode.
    [    0.080153] CPU: Virtualization extensions available.
    [    0.080527] devtmpfs: initialized
    [    0.109176] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.110167] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.313881] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.313902] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.318183] pinctrl core: initialized pinctrl subsystem
    [    0.319039] NET: Registered protocol family 16
    [    0.319964] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.350231] cpuidle: using governor ladder
    [    0.380257] cpuidle: using governor menu
    [    0.388781] OMAP GPIO hardware version 0.1
    [    0.395297] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [    0.411675] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    0.411688] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    0.421023] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.421033] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.421496] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.421506] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.422084] OMAP DMA hardware revision 0.0
    [    0.461535] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.462687] edma 43300000.edma: memcpy is disabled
    [    0.467356] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.471729] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.471905] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.472065] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.472222] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.472511] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.472694] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.475728] palmas 0-0058: IRQ missing: skipping irq request
    [    0.491153] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
    [    0.563494] pcf857x 0-0020: probed
    [    0.563740] pcf857x: probe of 0-0021 failed with error -121
    [    0.563898] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.564287] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.564492] media: Linux media interface: v0.10
    [    0.564547] Linux video capture interface: v2.00
    [    0.564587] pps_core: LinuxPPS API ver. 1 registered
    [    0.564595] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.564621] PTP clock support registered
    [    0.564669] EDAC MC: Ver: 3.0.0
    [    0.565421] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.565713] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.566045] Advanced Linux Sound Architecture Driver Initialized.
    [    0.566881] clocksource: Switched to clocksource arch_sys_counter
    [    0.577518] NET: Registered protocol family 2
    [    0.578010] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.578075] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.578200] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.578248] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.578279] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.578490] NET: Registered protocol family 1
    [    0.578753] RPC: Registered named UNIX socket transport module.
    [    0.578762] RPC: Registered udp transport module.
    [    0.578769] RPC: Registered tcp transport module.
    [    0.578776] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.579769] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.589784] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.590425] NFS: Registering the id_resolver key type
    [    0.590461] Key type id_resolver registered
    [    0.590469] Key type id_legacy registered
    [    0.590523] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.591797] bounce: pool size: 64 pages
    [    0.591948] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    0.591962] io scheduler noop registered
    [    0.591974] io scheduler deadline registered
    [    0.592007] io scheduler cfq registered (default)
    [    0.596948] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.600101] PCI host bridge /ocp/axi@0/pcie_rc@51000000 ranges:
    [    0.600113]   No bus range found for /ocp/axi@0/pcie_rc@51000000, using [bus 00-ff]
    [    0.600146]    IO 0x20003000..0x20012fff -> 0x00000000
    [    0.600168]   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    0.630322] dra7-pcie 51000000.pcie_rc: link is not up
    [    0.630497] dra7-pcie 51000000.pcie_rc: PCI host bridge to bus 0000:00
    [    0.630510] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    0.630520] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    0.630529] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    0.630932] PCI: bus0: Fast back to back transfers disabled
    [    0.631048] PCI: bus1: Fast back to back transfers enabled
    [    0.631131] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
    [    0.631145] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
    [    0.631158] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    0.631385] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
    [    0.691683] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.695070] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 301, base_baud = 3000000) is a 8250
    [    0.695935] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 302, base_baud = 3000000) is a 8250
    [    0.696768] console [ttyS2] disabled
    [    0.696815] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 303, base_baud = 3000000) is a 8250
    [    1.712309] console [ttyS2] enabled
    [    1.717021] [drm] Initialized drm 1.1.0 20060810
    [    1.723048] OMAP DSS rev 6.1
    [    1.726798] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    1.742468] loop: module loaded
    [    1.745979] vmemexp device MAJOR num = 246
    [    1.750134] vmemexp class registered
    [    1.753847] /dev/vmemexp device registered
    [    1.757981] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
    [    1.763662] nand: No NAND device found
    [    1.767450] omap2-nand 8000000.nand: scan failed, may be bus-width mismatch
    [    1.777372] m25p80 spi32766.0: s25fl256s1 (32768 Kbytes)
    [    1.782768] 7 ofpart partitions found on MTD device spi32766.0
    [    1.788649] Creating 7 MTD partitions on "spi32766.0":
    [    1.793812] 0x000000000000-0x000000040000 : "QSPI.SPL"
    [    1.799939] 0x000000040000-0x000000140000 : "QSPI.u-boot"
    [    1.806267] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
    [    1.813219] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
    [    1.819921] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
    [    1.827315] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
    [    1.833663] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
    [    1.841456] libphy: Fixed MDIO Bus: probed
    [    1.896916] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [    1.903040] davinci_mdio 48485000.mdio: detected phy mask fffffff3
    [    1.913382] libphy: 48485000.mdio: probed
    [    1.917456] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver unknown
    [    1.925497] davinci_mdio 48485000.mdio: phy[3]: device 48485000.mdio:03, driver unknown
    [    1.934216] cpsw 48484000.ethernet: Detected MACID = 20:c3:8f:4a:59:14
    [    1.940918] cpsw 48484000.ethernet: cpts: overflow check period 800
    [    1.947912] cpsw 48484000.ethernet: cpsw: Detected MACID = 20:c3:8f:4a:59:15
    [    1.956520] mousedev: PS/2 mouse device common for all mice
    [    1.962732] i2c /dev entries driver
    [    1.971529] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [    1.977182] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [    1.983567] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [    1.990126] evm_3v3_sw: supplied by sysen1
    The kernel has stopped at red place when running!
    I'm looking forward for your replay!
     
    Regards,
    Yuting
  • Hi Yuting,

    I have pinged mmc experts.

    Regards,
    Yordan
  • Hi Yuting,

    UART is not the issue as you are able to see both u-boot and kernel logs on console.

    What board is this? your own board or TI EVM?
    Which SDK and release are you using?

    According to the u-boot log this is a different part number.
    dra72-evm-common.dtsi file is not the right one, you have to look at dra7-evm.dts and dra7-evm-common.dtsi file for this board.

    U-Boot SPL 2016.05-00009-gac1d50feef-dirty (Jun 14 2018 - 16:56:55)
    DRA752-GP ES1.1


    Regards,
    Vishal

  • Hi Vishal,
    1.This board is TI TDA2X EVM ,and CPU is DRA752.
    2.We are using PROCESSOR_SDK_VISION_03_03_00_00 at linux.
    In order to change log output uart 1 to uart3, we changed the u-boot and kernel which caused this problem. And log output is normal using uart1, but uart3 has caugth the problem above. Then I will tell you what I have done.
    First, we modified the u-boot:menuconfig:uart3 used for console , and modified files of board/ti/dra7xx/mux_data.h and u-boot/arch/arm/dts/dra7-evm-common.dtsi,
    1、board/ti/dra7xx/mux_data.h
    modified
    {UART2_CTSN, (M3 | PIN_INPUT_PULLUP)}, /*uart2_ctsn.mmc4_dat2*/
    {UART2_RTSN, (M3 | PIN_INPUT_PULLUP)}, /*uart2_rtsn.mmc4_dat3*/
    as
    {UART2_CTSN, (M2 | PIN_INPUT_PULLUP| SLEWCONTROL)
    {UART2_RTSN, (M1 | PIN_INPUT_PULLUP| SLEWCONTROL)

    2、u-boot/arch/arm/dts/dra7-evm-common.dtsi:
    modified
    stdout-path = &uart1;
    as
    stdout-path = &uart3;

    Then we modified the kernel: menuconfig:uart3 used for console ,and modified the files of
    /arch/arm/configs/ti_sdk_dra7x_release_defconfig, dra7-evm-common.dtsi and dra7-evm.dts.
    1、ti_sdk_dra7x_release_defconfig
    modified CONFIG_DEBUG_OMAP2UART1=y as CONFIG_DEBUG_OMAP2UART3=y
    2、dra7-evm-common.dtsi
    modified
    stdout-path = &uart1;
    as
    stdout-path = &uart3;
    3、dra7-evm.dts
    modified
    0x3f8 (PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE3) /*uart2_ctsn.mmc4_dat2 */
    0x3fC (PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE3) /* uart2_rtsn.mmc4_dat3 */
    as
    0x3f8 (PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE2)
    0x3fc (PIN_INPUT_PULLUP | MANUAL_MODE | MUX_MODE1)

    Finally,we modified the uenv.txt
    args_mmc=part uuid mmc 0:2 uuid; setenv bootargs "console=ttyO0,115200n8 elevator=noop root=PARTUUID=${uuid} rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=128M@0xB0000000 rootfstype=ext4 snd.slots_reserved=1,1"

    modified
    console=ttyO0
    as
    console=ttyS2

    After that,the problem is showing out.
  • Hi, 


    If this is a TI EVM why are you changing the console from UART1 to UART3?

    Also, since you are changing pinmux of mmc4 to be used as uart3 pins, try disabling mmc4 from dra7-evm.dts
    Change status of mmc4 to disabled and test.

    &mmc4 {
    status = "okay";

    &mmc4 {
    status = "disabled";


    Regards,

    Vishal

  • Hi,Vishal,
    we want to use UART1 as another function,so we have done some changes for the TI EVM.

    And I have tried disabling mmc4 from dra7-evm.dts, also, Change status of mmc4 to disabled .But the problem is the same.

    Regards,
    Yuting
  • Hi Yuting,

    -1-

    Do the below changes to Kernel and share the logs,
    -- Enable CONFIG_MMC_DEBUG option in Kernel config
    -- Append "loglevel=9" to args_mmc of uenv.txt

    -2-
    Check the H/W modifications and make sure you have not done any unwanted changes to board other than UART.


    Regards,
    Vishal
  • Hi Yuting,

    We haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Yordan