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.

Am335x EVM UART2 not working in SDK7

Other Parts Discussed in Thread: TPS65910, TMP275

Hi ,

I'm facing the communication issue in the UART 2. Below is the my environment setup,

   Board : Am335x EVM

   SDK   : Version 7

   Profile : 4

   UART Port : J12

     It seems SDK6 has the all UART devices( 0 to 6) created in the /dev folder by default whereas SDK7 has only uart0 and uart1. 

Hence I have made some changes in the dts file.
uart2_pins: pinmux_uart2_pins {
pinctrl-single,pins = <
0x150 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
0x154 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
>;
};
uart2: serial@48024000 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
status = "okay";
};
 
after the above changes got the ttyO2 created in the /dev directory and try to execute with microcom like below
am335x-evm# microcom -s 115200 /dev/ttyO2 
 I'm not getting any response from uart2 but it works well with SDK6. 
Am I missing something? 

Please help on this. 

Thanks 

-Durai

  • Hi Durai,

    Please attach your kernel boot log.

    Best regards,
    Miroslav

  • Hi Mirislav,

    Please find the below log 

    U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)

    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment

    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    mmc0 is current device
    Scanning mmc 0...
    4117616 bytes read in 325 ms (12.1 MiB/s)
    41804 bytes read in 49 ms (833 KiB/s)
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    4117616 bytes read in 324 ms (12.1 MiB/s)
    41804 bytes read in 49 ms (833 KiB/s)
    Kernel image @ 0x80200000 [ 0x000000 - 0x3ed470 ]
    ## Flattened Device Tree blob at 80f80000
       Booting using the fdt blob at 0x80f80000
       Loading Device Tree to 9f31f000, end 9f32c34b ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.10-ti2013.12.01 (jenkins@sdit-build02) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linar4
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM
    [    0.000000] cma: CMA: reserved 24 MiB at 9d800000
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129280
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 483332K/521216K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 37884K reserved,)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc074a04c   (7433 kB)
    [    0.000000]       .init : 0xc074b000 - 0xc07a15f0   ( 346 kB)
    [    0.000000]       .data : 0xc07a2000 - 0xc082ddd8   ( 560 kB)
    [    0.000000]        .bss : 0xc082ddd8 - 0xc0866400   ( 226 kB)
    [    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] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000321] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
    [    0.119717] pid_max: default: 32768 minimum: 301
    [    0.119827] Security Framework initialized
    [    0.119881] Mount-cache hash table entries: 512
    [    0.129143] CPU: Testing write buffer coherency: ok
    [    0.129567] Setting up static identity map for 0xc0572e68 - 0xc0572ed8
    [    0.130553] devtmpfs: initialized
    [    0.132297] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.194712] omap_hwmod: debugss: _wait_target_disable failed
    [    0.195447] pinctrl core: initialized pinctrl subsystem
    [    0.196318] regulator-dummy: no parameters
    [    0.198783] NET: Registered protocol family 16
    [    0.201152] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.203877] cpuidle: using governor ladder
    [    0.203893] cpuidle: using governor menu
    [    0.212674] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.213780] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.215035] OMAP GPIO hardware version 0.1
    [    0.225045] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
    [    0.225081] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.225485] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.229549] DSS not supported on this SoC
    [    0.229569] No ATAGs?
    [    0.229580] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.254044] bio: create slab <bio-0> at 0
    [    0.268936] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.269926] vbat: 5000 mV 
    [    0.270327] lis3_reg: no parameters
    [    0.270774] wlan-en-regulator: 1800 mV 
    [    0.274114] vgaarb: loaded
    [    0.275410] SCSI subsystem initialized
    [    0.276777] usbcore: registered new interface driver usbfs
    [    0.276960] usbcore: registered new interface driver hub
    [    0.277155] usbcore: registered new device driver usb
    [    0.278151] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.278180] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.278209] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [    0.278225] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [    0.278471] media: Linux media interface: v0.10
    [    0.278655] Linux video capture interface: v2.00
    [    0.278928] pps_core: LinuxPPS API ver. 1 registered
    [    0.278939] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.279072] PTP clock support registered
    [    0.281775] Switched to clocksource timer1
    [    0.300802] NET: Registered protocol family 2
    [    0.301470] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.301563] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.301615] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.301689] TCP: reno registered
    [    0.301703] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.301725] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.302016] NET: Registered protocol family 1
    [    0.302428] RPC: Registered named UNIX socket transport module.
    [    0.302440] RPC: Registered udp transport module.
    [    0.302447] RPC: Registered tcp transport module.
    [    0.302454] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.303420] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.304105] PM: Loading am335x-pm-firmware.bin
    [    0.460587] VFS: Disk quotas dquot_6.5.2
    [    0.460659] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.461299] NFS: Registering the id_resolver key type
    [    0.461386] Key type id_resolver registered
    [    0.461397] Key type id_legacy registered
    [    0.461440] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
    [    0.461628] msgmni has been set to 992
    [    0.463343] NET: Registered protocol family 38
    [    0.463391] io scheduler noop registered
    [    0.463400] io scheduler deadline registered
    [    0.463424] io scheduler cfq registered (default)
    [    0.465633] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.519461] Console: switching to colour frame buffer device 100x30
    [    0.526996] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.529980] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.177887] console [ttyO0] enabled
    [    1.182485] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    1.192758] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 44e10800.pinmux; cannot claim for 48024000.serial
    [    1.205118] pinctrl-single 44e10800.pinmux: pin-84 (48024000.serial) status -22
    [    1.212871] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_uart2_pins  on device pinctrl-e
    [    1.225850] omap_uart 48024000.serial: Error applying setting, reverse things back
    [    1.234143] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.244651] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 3000000) is a OMAP UART4
    [    1.255880] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.273241] brd: module loaded
    [    1.281872] loop: module loaded
    [    1.285575] (stk) :sysfs entries created
    [    1.289767] (stk) : debugfs entries created 
    [    1.298988] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.310121] usbcore: registered new interface driver asix
    [    1.316123] usbcore: registered new interface driver ax88179_178a
    [    1.322775] usbcore: registered new interface driver cdc_ether
    [    1.329123] usbcore: registered new interface driver r815x
    [    1.335100] usbcore: registered new interface driver smsc95xx
    [    1.341364] usbcore: registered new interface driver net1080
    [    1.347514] usbcore: registered new interface driver cdc_subset
    [    1.353953] usbcore: registered new interface driver zaurus
    [    1.360112] usbcore: registered new interface driver cdc_ncm
    [    1.366628] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.373566] ehci-pci: EHCI PCI platform driver
    [    1.378473] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.384983] usbcore: registered new interface driver cdc_wdm
    [    1.391184] usbcore: registered new interface driver usb-storage
    [    1.398661] mousedev: PS/2 mouse device common for all mice
    [    1.405823] input: matrix_keypad.7 as /devices/matrix_keypad.7/input/input0
    [    1.415333] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input1
    [    1.425918] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.434346] i2c /dev entries driver
    [    1.438622] Driver for 1-wire Dallas network protocol.
    [    1.446429] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.455807] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.463153] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.470393] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
    [    1.477346] edma-dma-engine edma-dma-engine.0: freeing channel for 24
    [    1.484182] edma-dma-engine edma-dma-engine.0: freeing channel for 25
    [    1.491112] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
    [    1.498862] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
    [    1.506086] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
    [    1.587093] omap_hwmod: gpio1: _wait_target_disable failed
    [    1.622791] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.632668] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.639963] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.646088] mmc0: card claims to support voltages below the defined range. These will be ignored.
    [    1.656861] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.663096] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.670221] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.678904] usbcore: registered new interface driver usbhid
    [    1.684842] usbhid: USB HID core driver
    [    1.691545] oprofile: no performance counters
    [    1.696676] oprofile: using timer interrupt.
    [    1.701591] TCP: cubic registered
    [    1.705134] Initializing XFRM netlink socket
    [    1.709681] NET: Registered protocol family 17
    [    1.714510] NET: Registered protocol family 15
    [    1.719295] 8021q: 802.1Q VLAN Support v1.8
    [    1.723853] Key type dns_resolver registered
    [    1.729084] cpu cpu0: cpu0 regulator not ready, retry
    [    1.734589] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.743572] ThumbEE CPU extension supported.
    [    1.750308] pinctrl-single 44e10800.pinmux: pin 44e10870.0 already requested by 481a8000.serial; cannot claim for 50000000.gpmc
    [    1.762521] pinctrl-single 44e10800.pinmux: pin-28 (50000000.gpmc) status -22
    [    1.770066] pinctrl-single 44e10800.pinmux: could not request pin 28 (44e10870.0) from group nandflash_pins_default  on device pine
    [    1.783501] omap-gpmc 50000000.gpmc: Error applying setting, reverse things back
    [    1.791381] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.797544] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.803002] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.810486] No NAND device found
    [    1.816359] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.822940] mmc0: new SDIO card at address 0001
    [    1.831505] vrtc: 1800 mV 
    [    1.834689] vrtc: supplied by vbat
    [    1.839551] vio: at 1800 mV 
    [    1.842700] vio: supplied by vbat
    [    1.847600] vdd_mpu: 912 <--> 1375 mV at 1137 mV 
    [    1.852663] vdd_mpu: supplied by vbat
    [    1.857909] vdd_core: 912 <--> 1150 mV at 1137 mV 
    [    1.863058] vdd_core: supplied by vbat
    [    1.868155] vdd3: 5000 mV 
    [    1.872188] vdig1: at 1800 mV 
    [    1.875487] vdig1: supplied by vbat
    [    1.880333] vdig2: at 1800 mV 
    [    1.883646] vdig2: supplied by vbat
    [    1.888524] vpll: at 1800 mV 
    [    1.891733] vpll: supplied by vbat
    [    1.896532] vdac: at 1800 mV 
    [    1.899730] vdac: supplied by vbat
    [    1.904467] vaux1: at 1800 mV 
    [    1.907758] vaux1: supplied by vbat
    [    1.912694] vaux2: at 3300 mV 
    [    1.915996] vaux2: supplied by vbat
    [    1.920841] vaux33: at 3300 mV 
    [    1.924317] vaux33: supplied by vbat
    [    1.929285] vmmc: 1800 <--> 3300 mV at 3300 mV 
    [    1.934181] vmmc: supplied by vbat
    [    1.938628] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.947667] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    1.954615] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.961866] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    2.053356] mmc1: new high speed SD card at address 0002
    [    2.059675] mmcblk0: mmc1:0002 00000 1.86 GiB 
    [    2.064463] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    2.070905] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    2.079142] libphy: 4a101000.mdio: probed
    [    2.083473] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [    2.093346]  mmcblk0: p1 p2
    [    2.097948] Detected MACID = 00:18:31:e2:58:6c
    [    2.105745] input: volume_keys.8 as /devices/volume_keys.8/input/input2
    [    2.113735] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [    2.130955] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [    2.138767] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [    4.461024] EXT4-fs (mmcblk0p2): recovery complete
    [    4.479059] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    4.487768] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    4.503908] devtmpfs: mounted
    [    4.507745] Freeing unused kernel memory: 344K (c074b000 - c07a1000)
    INIT: version 2.88 booting
    Starting udev
    [    5.418499] udevd[849]: starting version 182
    [    5.760080] Bluetooth: Core ver 2.16
    [    5.829260] NET: Registered protocol family 31
    [    5.834062] Bluetooth: HCI device and connection manager initialized
    [    5.971334] PM: CM3 Firmware Version = 0x186
    [    6.005656] Bluetooth: HCI socket layer initialized
    [    6.082076] Bluetooth: L2CAP socket layer initialized
    [    6.087523] Bluetooth: SCO socket layer initialized
    [    6.172472] lis3lv02d: 16 bits lis331dlh sensor found
    [    6.207601] (stc):  chnl_id list empty :4 
    [    6.211758] (stk) : st_kim_start(stk) :ldisc_install = 1[    6.392306] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3
    [    6.458665] tsl2550 1-0039: standard operating mode
    [    6.577288] tsl2550 1-0039: support ver. 1.2 enabled
    [    6.664484] lm75 1-0048: hwmon0: sensor 'tmp275'
    [    7.303492] davinci_evm sound.3:  tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok

    [    7.321968] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [    8.321960] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1[    9.395952] musb-hdrc musb-hdrc.1.autl

    [    9.431885] (stk) :ldisc installation timeout(stk) :ldisc_install = 0[    9.490607] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host drir
    [    9.523507] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
    [    9.533017] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    9.574290] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    9.581511] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    9.589191] usb usb1: Product: MUSB HDRC host driver
    [    9.594472] usb usb1: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
    [    9.601464] usb usb1: SerialNumber: musb-hdrc.1.auto
    [    9.815962] cfg80211: Calling CRDA to update world regulatory domain
    [    9.832391] hub 1-0:1.0: USB hub found
    [    9.873378] hub 1-0:1.0: 1 port detected
    [    9.917333] musb-hdrc musb-hdrc.2.auto: Enabled SW babble control
    [    9.938564] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
    [    9.960336] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 2
    [    9.982326] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    9.989586] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    9.997293] usb usb2: Product: MUSB HDRC host driver
    [   10.002600] usb usb2: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
    [   10.009592] usb usb2: SerialNumber: musb-hdrc.2.auto
    [   10.052134] hub 2-0:1.0: USB hub found
    [   10.058438] hub 2-0:1.0: 1 port detected
    [   10.350095] cfg80211: World regulatory domain updated:
    [   10.355647] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [   10.364356] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   10.372561] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   10.380744] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [   10.388942] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [   10.397136] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

    [   10.431916] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1[   10.560777] wlcore: loaded
    [   10.579575] wlcore: driver version: ti2013.12.01-dirty
    [   10.585138] wlcore: compilation time: Sun Mar 30 20:56:08 2014
    [   10.652160] cryptodev: driver 1.6 loaded.
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [   10.768551] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    ALSA: Restoring mixer settings...
    No state is present for card AM335xEVM
    Found hardware: "AM335x-EVM" "" "" "" ""
    Hardware is initialized using a generic method
    No state is present for card AM335xEVM
    Configuring network interfaces... 
    [   11.541921] (stk) :ldisc installation timeout(stk) :ldisc_install = 0[   11.624053] net eth0: initializing cpsw version 1.12 (0)
    [   11.632021] net eth0: phy found : id is : 0x4dd074
    [   11.645775] 8021q: adding VLAN 0 to HW filter on device eth0
    udhcpc (v1.20.2) started
    Sending discover...

    [   12.541961] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
    [   13.651963] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   14.651928] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1Sending discover...

    [   15.831969] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   16.831965] (stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1Sending discover...

    [   17.941975] (stk) :ldisc installation timeout(stk) :ldisc_install = 0
    [   18.941976] (stk) : timed out waiting for ldisc to be un-installed[   18.950566] Bluetooth: st_register failed -22
    No lease, failing
    done.
    Mon Mar 31 02:34:00 UTC 2014
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    UIM SYSFS Node Found at /sys/./devices/kim.12/install
    Starting uim-sysfs daemon.
    uim:@ main
    uim:install = /sys/./devices/kim.12/install
    uim:dev_name = /sys/./devices/kim.12/dev_name
    uim:baud_rate = /sys/./devices/kim.12/baud_rate
    uim:flow_cntrl = /sys/./devices/kim.12/flow_cntrl
    uim:begin polling...
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    Starting Lighttpd Web Server: 2014-03-31 02:34:01: (log.c.166) server started 
    lighttpd.
    /
    Starting Matrix GUI application.
    [   25.130430] Number of LUNs=8
    [   25.134086] Mass Storage Function, version: 2009/09/11
    [   25.139986] LUN: removable file: (no medium)
    [   25.145703] Number of LUNs=1
    [   25.148957] LUN: file: /dev/mmcblk0p1
    [   25.152893] Number of LUNs=1
    [   25.157253] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [   25.164754] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [   25.172250] g_mass_storage gadget: g_mass_storage ready
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
            binutils-symlinks
            binutils
            gdbserver

    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
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.

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

    Arago Project http://arago-project.org am335x-evm ttyO0

    Arago 2013.12 am335x-evm ttyO0

    am335x-evm login: root
    root@am335x-evm:~# cd //
    root@am335x-evm://# ls
    Settings  dev       lib       opt       sbin      tmp       www
    bin       etc       media     proc      srv       usr
    boot      home      mnt       run       sys       var
    root@am335x-evm://#

    Thanks

    Durai

  • durai samy said:
    [    1.192758] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 44e10800.pinmux; cannot claim for 48024000.serial
    [    1.205118] pinctrl-single 44e10800.pinmux: pin-84 (48024000.serial) status -22
    [    1.212871] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_uart2_pins  on device pinctrl-e

    Take a look at your device tree files for this pinmux conflict and try to fix it.

    Best regards,
    Miroslav

  • Hi Miroslav,

    Thanks for your support, After disabled the volume_keys pin map in dts file and change in MUX_MODE then it started working. 

            /*volume_keys_s0: volume_keys_s0 {
                pinctrl-single,pins = <
                    0x150 (PIN_INPUT_PULLDOWN | MUX_MODE7)    /* spi0_sclk.gpio0_2 */
                    /*0x154 (PIN_INPUT_PULLDOWN | MUX_MODE7)    /* spi0_d0.gpio0_3 */
                /*>;
            };*/

    Please confirm my understanding

    1). SDK6 :  We need to modify the am335xboard.c file for PIN mux and PIN assignment automatically change based on what profile selected.

    2). SDK7 :  We need to modify the dts file only for pin mux and SDK supports dts for profile 0 by default. if we are choosing different profile, dts file has to be modified manually.

    Please correct me if I'm wrong.

    Regards

    Durai 

     

  • Hi Durai,

    Yes, you are correct.

    1. For SDK v6, the pinmux modifications are to be done inside the board-am335xevm.c board configuration file.

    2. For SDK v7, the pinmux modifications are to be done inside device tree files. Device tree files don't have any logic inside them, they just describe the configuration, thus the profile selection logic has to be implemented somewhere else. This is done inside the <u-boot>/board/ti/am335x/board.c file, board_late_init() function:

    setenv("board_name", safe_string);

    After this, the boot command calls the "findfdt" command from the U-Boot environment, which scans for the board name and loads the corresponding .dtb file.

    This all means that you will have to have different device tree file for each profile and implement the logic inside the board.c file I mentioned and inside the "findfdt" U-Boot environment command.

    Best regards,
    Miroslav