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 missing UART1-UART5 using SDK7

Other Parts Discussed in Thread: TPS65910, TLV320AIC3106

I have a custom board based on the AM335x EVM-SK board which has the devices on UART1 and UART4 removed and replaced with other components. However, I am unable to gain access to these interfaces with the u-boot image and kernel that I re-compile using SDK7. Here are what I've tried so far:

1. Booting from the SD card that came with it (ti-sd-card) , the EVM-SK board shows /dev/ttyO0-O5 available.

2. Booting from an SD card that I load with the pre-built images (pre-built-sd-card), the EVM-SK board only shows /dev/ttyO0.

3. I cannot boot my custom board with either the ti-sd-card or pre-built-sd-card because it freezes when checking the EEPROM. So, I recompiled the MLO and u-boot.img files to skip that check the EEPROM**. I also recompiled the Linux kernel to fix the Ethernet bug, following instructions from here processors.wiki.ti.com/.../Linux_Kernel_Users_Guide. Using creat-sdcard.sh, I created my new-sd-card using the new kernel and u-boot files.

** My changes to skip EEPROM check: in ti-sdk/board-support/u-boot.../board/ti/am335x/board.c

/*
 * Read header information from EEPROM into global structure.
 */
static int read_eeprom(struct am335x_baseboard_id *header)
{
  // NCD - DEBUG
  strncpy(header->name,"A335X_SK",8);
  strncpy(header->version,"1.2B",4);

  return 0;
}

4. Booting from my new-sd-card, I still can only see /dev/ttyO0 on both the EVM-SK board and the custom board.

So the question is, am I just missing a configuration somewhere? I looked into the am335x-evmsk.dts file, but I'm not sure if I should modify it. My boot log is below.

Thank you for any help! I've read through tons of threads, but I can't seem to find a topic that fits my problem...

-- boot log --

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.12.10-ti2013.12.01 (sysadmin@sitara) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #3 Wed May 20 20:28:16 PDT 2015
[ 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-SK
[ 0.000000] cma: CMA: reserved 24 MiB at 8d800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 64768
[ 0.000000] free_area_init_node: node 0, pgdat c082c570, node_mem_map c0867000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 64768 pages, LIFO batch:15
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64256
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 223444K/259072K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 35628K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 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.000316] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[ 0.119733] pid_max: default: 32768 minimum: 301
[ 0.119834] Security Framework initialized
[ 0.119885] Mount-cache hash table entries: 512
[ 0.128295] CPU: Testing write buffer coherency: ok
[ 0.128706] Setting up static identity map for 0xc0572e28 - 0xc0572e98
[ 0.129593] devtmpfs: initialized
[ 0.131385] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.193431] omap_hwmod: debugss: _wait_target_disable failed
[ 0.194162] pinctrl core: initialized pinctrl subsystem
[ 0.195036] regulator-dummy: no parameters
[ 0.197490] NET: Registered protocol family 16
[ 0.199793] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.202442] cpuidle: using governor ladder
[ 0.202460] cpuidle: using governor menu
[ 0.211199] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.212274] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.213208] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.213521] OMAP GPIO hardware version 0.1
[ 0.214390] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.215376] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.216386] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.221872] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.224888] DSS not supported on this SoC
[ 0.224908] No ATAGs?
[ 0.224919] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.249029] bio: create slab <bio-0> at 0
[ 0.263887] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.264438] of_get_named_gpio_flags: can't parse gpios property of node '/fixedregulator@0[0]'
[ 0.264722] vbat: 5000 mV
[ 0.264863] of_get_named_gpio_flags: can't parse gpios property of node '/fixedregulator@1[0]'
[ 0.265117] lis3_reg: no parameters
[ 0.268005] vgaarb: loaded
[ 0.269289] SCSI subsystem initialized
[ 0.269904] libata version 3.00 loaded.
[ 0.270718] usbcore: registered new interface driver usbfs
[ 0.270905] usbcore: registered new interface driver hub
[ 0.271108] usbcore: registered new device driver usb
[ 0.272070] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[ 0.272098] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[ 0.272329] media: Linux media interface: v0.10
[ 0.272508] Linux video capture interface: v2.00
[ 0.272772] pps_core: LinuxPPS API ver. 1 registered
[ 0.272783] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.272932] PTP clock support registered
[ 0.275510] Switched to clocksource timer1
[ 0.294366] NET: Registered protocol family 2
[ 0.295032] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.295087] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.295118] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.295189] TCP: reno registered
[ 0.295204] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.295225] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.295426] NET: Registered protocol family 1
[ 0.295896] RPC: Registered named UNIX socket transport module.
[ 0.295911] RPC: Registered udp transport module.
[ 0.295918] RPC: Registered tcp transport module.
[ 0.295925] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.295942] PCI: CLS 0 bytes, default 64
[ 0.296853] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.297486] PM: Loading am335x-pm-firmware.bin
[ 0.453139] VFS: Disk quotas dquot_6.5.2
[ 0.453219] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.453832] NFS: Registering the id_resolver key type
[ 0.453920] Key type id_resolver registered
[ 0.453930] Key type id_legacy registered
[ 0.453974] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.454170] msgmni has been set to 484
[ 0.455883] NET: Registered protocol family 38
[ 0.455927] io scheduler noop registered
[ 0.455937] io scheduler deadline registered
[ 0.455961] io scheduler cfq registered (default)
[ 0.457993] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.497123] Console: switching to colour frame buffer device 60x34
[ 0.500823] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.503352] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/serial@44e09000[0]'
[ 0.503661] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.109101] console [ttyO0] enabled
[ 1.114247] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.131468] brd: module loaded
[ 1.139941] loop: module loaded
[ 1.147707] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.158185] usbcore: registered new interface driver asix
[ 1.164117] usbcore: registered new interface driver ax88179_178a
[ 1.170737] usbcore: registered new interface driver cdc_ether
[ 1.177097] usbcore: registered new interface driver r815x
[ 1.183101] usbcore: registered new interface driver smsc95xx
[ 1.189333] usbcore: registered new interface driver net1080
[ 1.195492] usbcore: registered new interface driver cdc_subset
[ 1.201900] usbcore: registered new interface driver zaurus
[ 1.208040] usbcore: registered new interface driver cdc_ncm
[ 1.214550] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.221483] ehci-pci: EHCI PCI platform driver
[ 1.226400] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.232812] usbcore: registered new interface driver cdc_wdm
[ 1.239030] usbcore: registered new interface driver usb-storage
[ 1.246477] mousedev: PS/2 mouse device common for all mice
[ 1.254236] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input0
[ 1.264827] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 1.273172] i2c /dev entries driver
[ 1.277476] Driver for 1-wire Dallas network protocol.
[ 1.285263] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.294085] of_get_named_gpio_flags exited with status 6
[ 1.294102] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
[ 1.294524] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.301859] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.309116] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[ 1.316060] edma-dma-engine edma-dma-engine.0: freeing channel for 24
[ 1.322878] edma-dma-engine edma-dma-engine.0: freeing channel for 25
[ 1.329811] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[ 1.337823] of_get_named_gpio_flags exited with status 36
[ 1.337839] of_get_named_gpio_flags exited with status 37
[ 1.337850] of_get_named_gpio_flags exited with status 38
[ 1.337860] of_get_named_gpio_flags exited with status 39
[ 1.337871] of_get_named_gpio_flags exited with status 36
[ 1.338266] of_get_named_gpio_flags exited with status 37
[ 1.338528] of_get_named_gpio_flags exited with status 38
[ 1.338764] of_get_named_gpio_flags exited with status 39
[ 1.339309] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.346085] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[ 1.353311] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.360670] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.366874] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[ 1.373978] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[ 1.382427] usbcore: registered new interface driver usbhid
[ 1.388362] usbhid: USB HID core driver
[ 1.394629] oprofile: no performance counters
[ 1.399709] oprofile: using timer interrupt.
[ 1.404518] TCP: cubic registered
[ 1.408068] Initializing XFRM netlink socket
[ 1.412656] NET: Registered protocol family 17
[ 1.417421] NET: Registered protocol family 15
[ 1.422178] 8021q: 802.1Q VLAN Support v1.8
[ 1.426708] Key type dns_resolver registered
[ 1.434735] omap_hwmod: gpio1: _wait_target_disable failed
[ 1.440914] cpu cpu0: cpu0 regulator not ready, retry
[ 1.446323] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[ 1.454689] ThumbEE CPU extension supported.
[ 1.462818] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.471139] vrtc: 1800 mV
[ 1.474269] vrtc: supplied by vbat
[ 1.479116] vio: at 1500 mV
[ 1.482235] vio: supplied by vbat
[ 1.487192] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[ 1.492240] vdd_mpu: supplied by vbat
[ 1.497481] vdd_core: 912 <--> 1150 mV at 1137 mV
[ 1.502606] vdd_core: supplied by vbat
[ 1.507749] vdd3: 5000 mV
[ 1.511727] vdig1: at 1800 mV
[ 1.515027] vdig1: supplied by vbat
[ 1.519902] vdig2: at 1800 mV
[ 1.523192] vdig2: supplied by vbat
[ 1.528046] vpll: at 1800 mV
[ 1.531245] vpll: supplied by vbat
[ 1.535997] vdac: at 1800 mV
[ 1.539192] vdac: supplied by vbat
[ 1.543937] vaux1: at 1800 mV
[ 1.547250] vaux1: supplied by vbat
[ 1.552093] vaux2: at 3300 mV
[ 1.555380] vaux2: supplied by vbat
[ 1.560247] vaux33: at 3300 mV
[ 1.563628] vaux33: supplied by vbat
[ 1.568594] vmmc: 1800 <--> 3300 mV at 3300 mV
[ 1.573450] vmmc: supplied by vbat
[ 1.578847] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.585343] of_get_named_gpio_flags exited with status 6
[ 1.585360] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
[ 1.585783] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.592976] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.695541] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.701997] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.709394] libphy: 4a101000.mdio: probed
[ 1.713644] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 1.724192] Missing dual_emac_res_vlan in DT.
[ 1.728848] Using 1 as Reserved VLAN for 0 slave
[ 1.733754] Missing dual_emac_res_vlan in DT.
[ 1.738371] Using 2 as Reserved VLAN for 1 slave
[ 1.743252] Detected MACID = 6c:ec:eb:b8:e3:e6
[ 1.749194] cpsw: Detected MACID = 6c:ec:eb:b8:e3:e7
[ 1.755888] of_get_named_gpio_flags exited with status 67
[ 1.755911] of_get_named_gpio_flags exited with status 66
[ 1.755924] of_get_named_gpio_flags exited with status 30
[ 1.755936] of_get_named_gpio_flags exited with status 69
[ 1.756769] input: gpio_buttons.7 as /devices/gpio_buttons.7/input/input1
[ 1.764785] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.777785] Waiting for root device /dev/mmcblk0p2...
[ 1.790429] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 1.802032] mmc0: new high speed SDHC card at address e624
[ 1.808649] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[ 1.815114] mmcblk0: p1 p2
[ 1.901213] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.909903] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.919927] devtmpfs: mounted
[ 1.923691] Freeing unused kernel memory: 344K (c074b000 - c07a1000)
>[ 2.509321] udevd[820]: starting version 182
[ 3.028758] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[ 3.029760] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[ 3.351393] PM: CM3 Firmware Version = 0x186
[ 3.515768] lis3lv02d: unknown sensor type 0x87
[ 3.583326] lis3lv02d_i2c: probe of 0-0018 failed with error -22
[ 3.797193] of_get_named_gpio_flags: can't parse gpios property of node '/ocp/i2c@44e0b000/tlv320aic3106@1b[0]'
[ 3.813172] davinci_evm sound.3: ASoC: CPU DAI (null) not registered
[ 3.870150] davinci_evm sound.3: snd_soc_register_card failed (-517)
[ 3.914649] platform sound.3: Driver davinci_evm requests probe deferral
[ 3.963245] davinci_evm sound.3: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
[ 5.798146] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
[ 5.876297] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 5.876324] musb-hdrc: MHDRC RTL version 2.0
[ 5.876334] musb-hdrc: setup fifo_mode 4
[ 5.876354] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 5.876486] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 5.930964] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 6.008652] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 6.015935] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.023579] usb usb1: Product: MUSB HDRC host driver
[ 6.028843] usb usb1: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
[ 6.035849] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 6.098348] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 6.252946] hub 1-0:1.0: USB hub found
[ 6.268998] hub 1-0:1.0: 1 port detected
[ 6.292567] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
[ 6.310720] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 6.310747] musb-hdrc: MHDRC RTL version 2.0
[ 6.310757] musb-hdrc: setup fifo_mode 4
[ 6.310778] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 6.310931] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 6.327488] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[ 6.357310] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 6.364507] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.372214] usb usb2: Product: MUSB HDRC host driver
[ 6.377490] usb usb2: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
[ 6.384485] usb usb2: SerialNumber: musb-hdrc.1.auto
[ 6.432591] hub 2-0:1.0: USB hub found
[ 6.450199] hub 2-0:1.0: 1 port detected
[ 6.614361] cryptodev: driver 1.6 loaded.
[ 6.618741] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #1, port1 00000104
[ 6.707535] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 6.770803] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #2, port1 00000104
[ 6.923231] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #3, port1 00000104
[ 7.075644] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (88, <AValid), retry #3, port1 0008010c
[ 7.532396] net eth0: initializing cpsw version 1.12 (0)
[ 7.541213] net eth0: phy found : id is : 0x4dd074
[ 7.554238] 8021q: adding VLAN 0 to HW filter on device eth0
[ 9.536483] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 13.913282] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
[ 13.913360] Number of LUNs=8
[ 13.917285] Mass Storage Function, version: 2009/09/11
[ 13.922733] LUN: removable file: (no medium)
[ 13.928282] Number of LUNs=1
[ 13.931639] lun0: open backing file: /dev/mmcblk0p1
[ 13.931658] LUN: file: /dev/mmcblk0p1
[ 13.935576] Number of LUNs=1
[ 13.938636] g_mass_storage gadget: adding config #1 'Linux File-Backed Storage'/bf1bd3ac
[ 13.939425] g_mass_storage gadget: I/O thread pid: 1378
[ 13.939450] g_mass_storage gadget: adding 'Mass Storage Function'/cc3bbe40 to config 'Linux File-Backed Storage'/bf1bd3ac
[ 13.939483] g_mass_storage gadget: cfg 1/bf1bd3ac speeds: high full
[ 13.939494] g_mass_storage gadget: interface 0 = Mass Storage Function/cc3bbe40
[ 13.939515] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 13.946947] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 13.954411] g_mass_storage gadget: g_mass_storage ready
[ 14.490823] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
[ 14.498868] g_mass_storage gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
[ 14.498879] g_mass_storage gadget: delayed_status count 1
[ 14.499003] g_mass_storage gadget: usb_composite_setup_continue
[ 14.499016] g_mass_storage gadget: usb_composite_setup_continue: Completing delayed status
[ 15.499612] g_mass_storage gadget: sending command-failure status
[ 15.502773] g_mass_storage gadget: bulk-in set halt
[ 15.504236] g_mass_storage gadget: bulk-in set halt
[ 15.607413] g_mass_storage gadget: bulk-in set halt
[ 15.716345] g_mass_storage gadget: bulk-in set halt
[ 15.849486] g_mass_storage gadget: bulk-in set halt
[ 15.956209] g_mass_storage gadget: INQUIRY is buggy! Expected length 6 but we got 12
[ 15.956637] g_mass_storage gadget: bulk-in set halt
[ 15.957602] g_mass_storage gadget: bulk-in set halt
[ 16.065877] g_mass_storage gadget: sending command-failure status
[ 16.379899] g_mass_storage gadget: bulk-in set halt
[ 16.379934] g_mass_storage gadget: sending command-failure status

  • Hi,

    Have you added the missing UARTS to your device tree?

  • Hi Biser,

    Thank you for your reply. I added the code below to the am335x-evmsk.dts file under the am33xx_pinmux function, compiled to get am335x-evmsk.dtb, and copied it into SD card: rootfs/boot/. I now see /dev/ttyO1 and /dev/ttyO4. I'm currently unable to see my devices still. However, have I done this correctly?

    Thanks,

    Tom

    am33xx_pinmux: pinmux@44e10800 {

    ...

      /* NCD - DEBUG */
      uart1_pins: pinmux_uart1_pins {
        pinctrl-single,pins = < 
        0x178 (PIN_INPUT | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
        0x17C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
        0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
        0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
        >;
      };

      /* NCD - DEBUG TX: 0x074 0x06, RX: 0x070 0x26 */
      uart4_pins: pinmux_uart4_pins {
        pinctrl-single,pins = <
        0x068 (PIN_INPUT | MUX_MODE0) /* uart4_ctsn.uart4_ctsn */
        0x06C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart4_rtsn.uart4_rtsn */
        0x070 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart4_rxd.uart4_rxd */
        0x074 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart4_txd.uart4_txd */
        >;
      };

      ...

      ocp {
        uart0: serial@44e09000 {
          pinctrl-names = "default";
          pinctrl-0 = <&uart0_pins>;

          status = "okay";
        };

        /* NCD DEBUG /dev/ttyO1 */
        uart1: serial@48022000 {
          pinctrl-names = "default";
          pinctrl-0 = <&uart1_pins>;

          status = "okay";
        };

        /* NCD DEBUG /dev/ttyO4 */
        uart4: serial@481a8000 {
          pinctrl-names = "default";
          pinctrl-0 = <&uart4_pins>;

          status = "okay";
        };

    ...

      }

    ...

    }

  • Hi,

    looks like your Pin Mux are not set correctly for UART1/4 pins.
    Try to follow these steps to resolve the issue:
    blog.pignology.net/.../getting-uart2-devttyo1-working-on.html

    BR,
    Georgi
  • Thanks for the pointer, Georgi. From your link, I found this: blog.pignology.net/.../getting-uart2-devttyo1-working-on.html , which seems to walk me through what I need to do. However, once it got to this line:

    export SLOTS=/sys/devices/bone_capemgr.9/slots

    I get stuck again because the EVM SK does not have a bone_capemgr.x I do have uart2pinmux-00A0.dtbo in /lib/firmware. Do you know what to do next?

    Thanks,

    Tom
  • Hi Tom,

    if you are able to see added uarts in /dev/ttyOx, but cannot use them, try to verify if addresses of added uarts in pinmux_uartX_pins do not conflict with other addreses in dts files you edited.

    Also can you share your Starting kernel log?

    BR,
    Georgi
  • Hi Georgi,

    I have since tried downloading the latest SDK, but the problem is the same. Interestingly, the new default am335x-evmsk.dts file no longer has an ocp function. I wonder if that has anything to do with this line:

    [ 1.198337] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@48022000[0]'

    I do not see any other instances of the addresses that I added in pinmux_uart1_pins in the .dts file, namely 0x180 and 0x184. Are these what you were referring to?

    I apologize if all of my questions are very basic. As you can tell, I'm very new and I'm just trying to get *something* to work!

    Thanks,

    Tom

    Here is my kernel log:

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 3.14.26-gb9df364-dirty (sysadmin@sitara) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #2 Mon May 25 19:33:12 PDT 2015
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: TI AM335x EVM-SK
    [ 0.000000] cma: CMA: reserved 24 MiB at 8d800000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] On node 0 totalpages: 65024
    [ 0.000000] free_area_init_node: node 0, pgdat c084cd24, node_mem_map cfbee000
    [ 0.000000] Normal zone: 512 pages used for memmap
    [ 0.000000] Normal zone: 0 pages reserved
    [ 0.000000] Normal zone: 65024 pages, LIFO batch:15
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES1.0 (sgx neon )
    [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [ 0.000000] pcpu-alloc: [0] 0
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64512
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [ 0.000000] Memory: 224344K/260096K available (5791K kernel code, 313K rwdata, 2088K rodata, 269K init, 231K bss, 35752K reserved, 0K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    [ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc07ba054 (7881 kB)
    [ 0.000000] .init : 0xc07bb000 - 0xc07fe454 ( 270 kB)
    [ 0.000000] .data : 0xc0800000 - 0xc084e760 ( 314 kB)
    [ 0.000000] .bss : 0xc084e760 - 0xc0888738 ( 232 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.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
    [ 0.000038] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000320] Console: colour dummy device 80x30
    [ 0.000352] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [ 0.119365] pid_max: default: 32768 minimum: 301
    [ 0.119468] Security Framework initialized
    [ 0.119526] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.119539] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.127608] CPU: Testing write buffer coherency: ok
    [ 0.128017] Setting up static identity map for 0x805ad920 - 0x805ad978
    [ 0.129036] devtmpfs: initialized
    [ 0.131028] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.138885] omap_hwmod: tptc0 using broken dt data from edma
    [ 0.138974] omap_hwmod: tptc1 using broken dt data from edma
    [ 0.139054] omap_hwmod: tptc2 using broken dt data from edma
    [ 0.143433] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.199601] pinctrl core: initialized pinctrl subsystem
    [ 0.200713] regulator-dummy: no parameters
    [ 0.203205] NET: Registered protocol family 16
    [ 0.205418] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.208204] cpuidle: using governor ladder
    [ 0.208222] cpuidle: using governor menu
    [ 0.215627] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
    [ 0.217255] platform 49000000.edma: alias fck already exists
    [ 0.217282] platform 49000000.edma: alias fck already exists
    [ 0.217298] platform 49000000.edma: alias fck already exists
    [ 0.218246] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
    [ 0.218558] OMAP GPIO hardware version 0.1
    [ 0.219587] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
    [ 0.220725] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
    [ 0.221841] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
    [ 0.234745] No ATAGs?
    [ 0.234772] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.262952] bio: create slab <bio-0> at 0
    [ 0.280262] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [ 0.281049] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@0[0]'
    [ 0.281398] vbat: 5000 mV
    [ 0.281531] of_get_named_gpiod_flags: can't parse gpios property of node '/fixedregulator@1[0]'
    [ 0.281817] lis3_reg: no parameters
    [ 0.281933] reg-fixed-voltage fixedregulator.6: could not find pctldev for node /pinmux@44e10800/pinmux_wl12xx_gpio, deferring probe
    [ 0.281958] platform fixedregulator.6: Driver reg-fixed-voltage requests probe deferral
    [ 0.282054] of_get_named_gpiod_flags exited with status 0
    [ 0.282438] vtt: 1500 mV
    [ 0.285859] vgaarb: loaded
    [ 0.286440] i2c-core: driver [palmas] using legacy suspend method
    [ 0.286452] i2c-core: driver [palmas] using legacy resume method
    [ 0.287256] SCSI subsystem initialized
    [ 0.287837] libata version 3.00 loaded.
    [ 0.288866] usbcore: registered new interface driver usbfs
    [ 0.289066] usbcore: registered new interface driver hub
    [ 0.289284] usbcore: registered new device driver usb
    [ 0.290410] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [ 0.290441] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [ 0.290868] pps_core: LinuxPPS API ver. 1 registered
    [ 0.290879] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.291018] PTP clock support registered
    [ 0.293173] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.294123] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.295832] Switched to clocksource timer1
    [ 0.317192] NET: Registered protocol family 2
    [ 0.318123] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.318161] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.318192] TCP: Hash tables configured (established 2048 bind 2048)
    [ 0.318266] TCP: reno registered
    [ 0.318281] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.318302] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.318506] NET: Registered protocol family 1
    [ 0.318915] RPC: Registered named UNIX socket transport module.
    [ 0.318927] RPC: Registered udp transport module.
    [ 0.318934] RPC: Registered tcp transport module.
    [ 0.318941] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.318958] PCI: CLS 0 bytes, default 64
    [ 0.320097] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [ 0.323089] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.509272] VFS: Disk quotas dquot_6.5.2
    [ 0.509340] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.509892] NFS: Registering the id_resolver key type
    [ 0.509978] Key type id_resolver registered
    [ 0.509987] Key type id_legacy registered
    [ 0.510029] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.510218] msgmni has been set to 486
    [ 0.511779] NET: Registered protocol family 38
    [ 0.511822] io scheduler noop registered
    [ 0.511831] io scheduler deadline registered
    [ 0.511853] io scheduler cfq registered (default)
    [ 0.513777] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.517571] of_get_named_gpiod_flags: can't parse gpios property of node '/backlight[0]'
    [ 0.517609] backlight.10 supply power not found, using dummy regulator
    [ 0.521470] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.524823] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@44e09000[0]'
    [ 0.524869] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 0.524884] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@44e09000[0]'
    [ 0.525045] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [ 1.193960] console [ttyO0] enabled
    [ 1.198337] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@48022000[0]'
    [ 1.198368] omap_uart 48022000.serial: no wakeirq for uart0
    [ 1.204187] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/serial@48022000[0]'
    [ 1.204393] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [ 1.215555] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 1.222974] [drm] Initialized drm 1.1.0 20060810
    [ 1.239576] brd: module loaded
    [ 1.248885] loop: module loaded
    [ 1.252593] (hci_tty): inside hci_tty_init
    [ 1.257443] (hci_tty): allocated 249, 0
    [ 1.265616] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.276647] usbcore: registered new interface driver asix
    [ 1.282524] usbcore: registered new interface driver ax88179_178a
    [ 1.289083] usbcore: registered new interface driver cdc_ether
    [ 1.295406] usbcore: registered new interface driver smsc95xx
    [ 1.301575] usbcore: registered new interface driver net1080
    [ 1.307684] usbcore: registered new interface driver cdc_subset
    [ 1.314052] usbcore: registered new interface driver zaurus
    [ 1.320105] usbcore: registered new interface driver cdc_ncm
    [ 1.326592] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.333409] ehci-pci: EHCI PCI platform driver
    [ 1.338296] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.344249] usbcore: registered new interface driver cdc_wdm
    [ 1.350410] usbcore: registered new interface driver usb-storage
    [ 1.357880] mousedev: PS/2 mouse device common for all mice
    [ 1.365080] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
    [ 1.372492] input: ti-tsc as /devices/ocp.3/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [ 1.382383] i2c-core: driver [rtc-ds1307] using legacy suspend method
    [ 1.389159] i2c-core: driver [rtc-ds1307] using legacy resume method
    [ 1.396636] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 1.404034] 44e3e000.rtc: already running
    [ 1.409147] i2c /dev entries driver
    [ 1.412963] Driver for 1-wire Dallas network protocol.
    [ 1.420781] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.429591] of_get_named_gpiod_flags exited with status 0
    [ 1.429611] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
    [ 1.430110] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
    [ 1.437215] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
    [ 1.444683] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@481d8000[0]'
    [ 1.444695] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@481d8000[0]'
    [ 1.444925] omap_hsmmc 481d8000.mmc: unable to get vmmc regulator -517
    [ 1.451847] platform 481d8000.mmc: Driver omap_hsmmc requests probe deferral
    [ 1.459862] of_get_named_gpiod_flags exited with status 0
    [ 1.459883] of_get_named_gpiod_flags exited with status 0
    [ 1.459895] of_get_named_gpiod_flags exited with status 0
    [ 1.459906] of_get_named_gpiod_flags exited with status 0
    [ 1.459920] of_get_named_gpiod_flags exited with status 0
    [ 1.460363] of_get_named_gpiod_flags exited with status 0
    [ 1.460680] of_get_named_gpiod_flags exited with status 0
    [ 1.460949] of_get_named_gpiod_flags exited with status 0
    [ 1.461557] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.468240] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 1.475586] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 1.483283] usbcore: registered new interface driver usbhid
    [ 1.489141] usbhid: USB HID core driver
    [ 1.493438] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
    [ 1.504287] oprofile: using arm/armv7
    [ 1.508537] TCP: cubic registered
    [ 1.511999] Initializing XFRM netlink socket
    [ 1.516502] NET: Registered protocol family 17
    [ 1.521181] NET: Registered protocol family 15
    [ 1.525964] Key type dns_resolver registered
    [ 1.531153] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [ 1.540293] cpu cpu0: cpu0 clock notifier not ready, retry
    [ 1.546130] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [ 1.554544] PM: bootloader does not support rtc-only!
    [ 1.559950] ThumbEE CPU extension supported.
    [ 1.564441] Registering SWP/SWPB emulation handler
    [ 1.571086] lis3_reg: disabling
    [ 1.574376] vbat: disabling
    [ 1.577411] regulator-dummy: disabling
    [ 1.584902] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 1.591882] [drm] No driver support for vblank timestamp query.
    [ 1.648356] Console: switching to colour frame buffer device 60x34
    [ 1.657190] tilcdc 4830e000.lcdc: fb0: frame buffer device
    [ 1.663007] tilcdc 4830e000.lcdc: registered panic notifier
    [ 1.668854] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [ 1.675699] of_get_named_gpiod_flags exited with status 0
    [ 1.676256] vwl1271: 1800 mV
    [ 1.681524] tps65910 0-002d: No interrupt support, no core IRQ
    [ 1.692225] vrtc: 1800 mV
    [ 1.695349] vrtc: supplied by vbat
    [ 1.700726] vio: at 1500 mV
    [ 1.703822] vio: supplied by vbat
    [ 1.709194] vdd_mpu: 912 <--> 1375 mV at 1137 mV
    [ 1.714186] vdd_mpu: supplied by vbat
    [ 1.719905] vdd_core: 912 <--> 1150 mV at 1137 mV
    [ 1.724983] vdd_core: supplied by vbat
    [ 1.730424] vdd3: 5000 mV
    [ 1.734675] vdig1: at 1800 mV
    [ 1.737977] vdig1: supplied by vbat
    [ 1.743055] vdig2: at 1800 mV
    [ 1.746338] vdig2: supplied by vbat
    [ 1.751404] vpll: at 1800 mV
    [ 1.754593] vpll: supplied by vbat
    [ 1.759556] vdac: at 1800 mV
    [ 1.762731] vdac: supplied by vbat
    [ 1.767761] vaux1: at 1800 mV
    [ 1.771034] vaux1: supplied by vbat
    [ 1.776115] vaux2: at 3300 mV
    [ 1.779379] vaux2: supplied by vbat
    [ 1.784462] vaux33: at 3300 mV
    [ 1.787850] vaux33: supplied by vbat
    [ 1.792994] vmmc: 1800 <--> 3300 mV at 3300 mV
    [ 1.797881] vmmc: supplied by vbat
    [ 1.803390] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.809897] of_get_named_gpiod_flags exited with status 0
    [ 1.809917] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@48060000[0]'
    [ 1.846336] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@481d8000[0]'
    [ 1.846359] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/mmc@481d8000[0]'
    [ 1.925011] mmc0: host does not support reading read-only switch. assuming write-enable.
    [ 1.936525] mmc0: new high speed SDHC card at address e624
    [ 1.942962] mmcblk0: mmc0:e624 SU08G 7.40 GiB
    [ 1.951266] mmcblk0: p1 p2
    [ 1.966607] remoteproc0: wkup_m3 is available
    [ 1.971256] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 1.980656] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 1.991683] remoteproc0: Direct firmware load failed with error -2
    [ 1.998305] remoteproc0: Falling back to user helper
    [ 2.004074] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[1100000<->1260000]:-22
    [ 2.075875] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 2.082256] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 2.089608] libphy: 4a101000.mdio: probed
    [ 2.093806] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [ 2.104405] cpsw 4a100000.ethernet: Detected MACID = 6c:ec:eb:b8:e3:e6
    [ 2.112645] cpsw 4a100000.ethernet: cpsw: Detected MACID = 6c:ec:eb:b8:e3:e7
    [ 2.121579] of_get_named_gpiod_flags exited with status 0
    [ 2.121609] of_get_named_gpiod_flags exited with status 0
    [ 2.121625] of_get_named_gpiod_flags exited with status 0
    [ 2.121638] of_get_named_gpiod_flags exited with status 0
    [ 2.122521] input: gpio_buttons.9 as /devices/gpio_buttons.9/input/input1
    [ 2.130524] omap_rtc 44e3e000.rtc: setting system clock to 2014-03-31 05:17:40 UTC (1396243060)
    [ 2.142993] ALSA device list:
    [ 2.146176] No soundcards found.
    [ 2.153007] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [ 2.160724] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [ 9.585605] EXT4-fs (mmcblk0p2): recovery complete
    [ 10.002687] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 10.011378] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [ 10.029290] devtmpfs: mounted
    [ 10.033661] Freeing unused kernel memory: 268K (c07bb000 - c07fe000)
    >[ 10.753301] udevd[851]: starting version 182
    [ 11.075173] random: nonblocking pool is initialized
    [ 11.081421] remoteproc0: failed to load am335x-pm-firmware.elf
    [ 11.087780] remoteproc0: powering up wkup_m3
    [ 11.092443] remoteproc0: Direct firmware load failed with error -2
    [ 11.099068] remoteproc0: Falling back to user helper
    [ 11.269348] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/i2c@44e0b000/tlv320aic3106@1b[0]'
    [ 11.316054] lis3lv02d: unknown sensor type 0x87
    [ 11.320924] lis3lv02d_i2c: probe of 0-0018 failed with error -22
    [ 11.435593] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 11.435694] 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 11.517625] of_get_named_gpiod_flags: can't parse gpios property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 11.517722] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 12.440670] davinci_evm sound.11: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    [ 14.122654] remoteproc0: request_firmware failed: -2
    [ 14.128035] wkup_m3 44d00000.wkup_m3: rproc_boot failed
    [ 14.147579] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 14.270132] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [ 14.270160] musb-hdrc: MHDRC RTL version 2.0
    [ 14.270170] musb-hdrc: setup fifo_mode 4
    [ 14.270191] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [ 14.270320] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [ 14.353552] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [ 14.414639] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 14.421844] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 14.429394] usb usb1: Product: MUSB HDRC host driver
    [ 14.434572] usb usb1: Manufacturer: Linux 3.14.26-gb9df364-dirty musb-hcd
    [ 14.441676] usb usb1: SerialNumber: musb-hdrc.0.auto
    [ 14.517674] hub 1-0:1.0: USB hub found
    [ 14.527330] hub 1-0:1.0: 1 port detected
    [ 14.559858] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [ 14.559884] musb-hdrc: MHDRC RTL version 2.0
    [ 14.559895] musb-hdrc: setup fifo_mode 4
    [ 14.559912] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [ 14.560061] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [ 14.584166] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [ 14.609536] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 14.616729] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 14.624263] usb usb2: Product: MUSB HDRC host driver
    [ 14.629456] usb usb2: Manufacturer: Linux 3.14.26-gb9df364-dirty musb-hcd
    [ 14.636566] usb usb2: SerialNumber: musb-hdrc.1.auto
    [ 14.649952] hub 2-0:1.0: USB hub found
    [ 14.662713] hub 2-0:1.0: 1 port detected
    [ 14.819582] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #1, port1 00000104
    [ 14.887400] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [ 14.972013] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #2, port1 00000104
    [ 15.124444] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (89, <AValid), retry #3, port1 00000104
    [ 15.276865] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in a_wait_vrise (88, <AValid), retry #3, port1 0008010c
    [ 15.696508] net eth0: initializing cpsw version 1.12 (0)
    [ 15.776627] net eth0: phy found : id is : 0x4dd074
    [ 18.776676] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
    [ 25.203333] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
    [ 25.203417] Number of LUNs=8
    [ 25.215938] Mass Storage Function, version: 2009/09/11
    [ 25.226224] LUN: removable file: (no medium)
    [ 25.236118] Number of LUNs=1
    [ 25.246358] lun0: open backing file: /dev/mmcblk0p1
    [ 25.246386] LUN: file: /dev/mmcblk0p1
    [ 25.250263] Number of LUNs=1
    [ 25.253283] g_mass_storage gadget: adding config #1 'Linux File-Backed Storage'/bf0903ac
    [ 25.262325] g_mass_storage gadget: I/O thread pid: 1418
    [ 25.262351] g_mass_storage gadget: adding 'Mass Storage Function'/cd5feb00 to config 'Linux File-Backed Storage'/bf0903ac
    [ 25.262385] g_mass_storage gadget: cfg 1/bf0903ac speeds: high full
    [ 25.262396] g_mass_storage gadget: interface 0 = Mass Storage Function/cd5feb00
    [ 25.262420] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [ 25.269778] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [ 25.277160] g_mass_storage gadget: g_mass_storage ready
    [ 25.809944] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
    [ 25.817901] g_mass_storage gadget: set_config: interface 0 (Mass Storage Function) requested delayed status
    [ 25.817912] g_mass_storage gadget: delayed_status count 1
    [ 25.818055] g_mass_storage gadget: usb_composite_setup_continue
    [ 25.818069] g_mass_storage gadget: usb_composite_setup_continue: Completing delayed status
    [ 26.818108] g_mass_storage gadget: sending command-failure status
    [ 26.820557] g_mass_storage gadget: bulk-in set halt
    [ 26.926617] g_mass_storage gadget: bulk-in set halt
    [ 26.929043] g_mass_storage gadget: bulk-in set halt
    [ 27.036502] g_mass_storage gadget: bulk-in set halt
    [ 27.139468] g_mass_storage gadget: bulk-in set halt
    [ 27.140432] g_mass_storage gadget: bulk-in set halt
    [ 27.246621] g_mass_storage gadget: INQUIRY is buggy! Expected length 6 but we got 12
    [ 27.247228] g_mass_storage gadget: bulk-in set halt
    [ 27.247259] g_mass_storage gadget: sending command-failure status
    [ 27.465412] g_mass_storage gadget: bulk-in set halt
    [ 27.465489] g_mass_storage gadget: sending command-failure status

  • So I hooked the UART1 ports to another computer and saw why my test was not working -- I can send messages to the ?EVM-SK via /dev/ttyO1, but I cannot receive messages from the EVM-SK.

    However, I successfully conducted a loopback test using code from here: groups.google.com/forum

    The loopback test fails (times out) with UART4 (/dev/ttyO4).

    At this point, I'm not 100% sure I've got UART1 configured correctly, but given that I can at least see data in one direction, I would think that it is. I may have a hardware issue...
  • Update: I've confirmed UART1 (/dev/ttyO1) is functional. Still working on UART4...
  • Taking a look at the pinmux, I indeed have UART4 set incorrectly. This is the new setting in am335x-evmsk.dts

    &am33xx_pinmux {
    ...
    /* DEBUG NCD */
    uart4_pins: pinmux_uart4_pins {
    pinctrl-single,pins = <
    0x070 (PIN_INPUT_PULLUP | MUX_MODE6) /* rx */
    0x074 (PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* tx */
    >;
    };
    ...
    };

    &uart4 {
    pinctrl-names = "default";
    pinctrl-0 = <&uart4_pins>;
    status = "okay";
    };

    Still, /dev/ttyO4 does not pass the loopback test.
  • So close... I'm getting this in my boot log, but I'm not quite sure how to resolve it:

    [ 1.214982] pinctrl-single 44e10800.pinmux: pin 44e10870.0 already requested by 44e10800.pinmux; cannot claim for 481a8000.serial
    [ 1.227187] pinctrl-single 44e10800.pinmux: pin-28 (481a8000.serial) status -22
    [ 1.234818] pinctrl-single 44e10800.pinmux: could not request pin 28 (44e10870.0) from group pinmux_uart4_pins on device pinctrl-single

    The following is found in am33xx_pinmux.dtsi:

    am33xx_pinmux: pinmux@44e10800 {
    compatible = "pinctrl-single";
    reg = <0x44e10800 0x0238>;
    #address-cells = <1>;
    #size-cells = <0>;
    pinctrl-single,register-width = <32>;
    pinctrl-single,function-mask = <0x7f>;

    };
  • I finally got UART4 working. I found the offending conflicts for 0x70 and 0x74 and commented them out. I don't think I needed them...

    Thanks again for your help, Georgi and Biser! Nothing like learning by jumping off the deep end!

    In am335x_evmsk.dts:

    &am33xx_pinmux {
    /*pinctrl-0 = <&gpio_keys_s0 &clkout2_pin &ddr3_vtt_toggle>;*/
    pinctrl-0 = <&clkout2_pin &ddr3_vtt_toggle>;

    ...

    /*
    gpio_keys_s0: gpio_keys_s0 {
    pinctrl-single,pins = <
    0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 /
    0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 /
    0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 /
    0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 /
    >;
    };
    */

    ...

    /*
    mmc2_pins: pinmux_mmc2_pins {
    pinctrl-single,pins = <
    0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 /
    0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk /
    0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd *
    0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 /
    0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 /
    0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 /
    0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 /
    >;
    };
    */
    };

    /*
    &mmc2 {
    status = "okay";
    vmmc-supply = <&wl12xx_vmmc>;
    ti,non-removable;
    bus-width = <4>;
    cap-power-off-card;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc2_pins>;
    };
    */

    And in am33xx.dtsi:

    /*
    mmc2: mmc@481d8000 {
    compatible = "ti,omap4-hsmmc";
    ti,hwmods = "mmc2";
    ti,needs-special-reset;
    dmas = <&edma 2
    &edma 3>;
    dma-names = "tx", "rx";
    interrupts = <28>;
    interrupt-parent = <&intc>;
    reg = <0x481d8000 0x1000>;
    status = "disabled";
    };
    */