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.

AM5718: Custom board boot

Part Number: AM5718
Other Parts Discussed in Thread: AM5728

Hi,

I am using AM5718 IDK EVM and ti-processor-sdk-linux-am57xx-evm-05.03.00.07.

I am carrying out the activity of booting EVM with minimum peripherals (UART3, eth0,I2c, QSPI1, MMC1.).My aim is to make sure that our custom board will boot with the given U-boot and kernel.

Pin-mux file used and the booting log are attached. pin-mux file extension i.e. 'am571x_minimal.pinmux' was changed to 'am571x_minimal.txt' as upload error occurred.

mux_data.h of U-boot was modified using the files generated with this pin-mux.

core_padconf_array_essential_am571x_idk[] and iodelay_cfg_entry iodelay_cfg_array_am571x_idk[] in mux_data.h of U-boot were modified.

Changes done in DTS are as follows

-------------------------------------------------------
1. am571x-idk.dtsi
Disabled pruss1_eth,&pruss1_mdio in am571x-idk.dtsi.

2. am571x-idk-common.dtsi
Disabled &ipu1, &ipu2

3. am57xx-idk-common.dtsi
Disabled  &pruss_soc_bus1, &pruss_soc_bus2.
Removed &cpsw_emac1, dual_emac in &mac
Removed dual_emac_res_vlan = <1>; in &cpsw_emac0
-------------------------------------------------------

1)Why i'm getting the following error:

Card did not respond to voltage select!

invalid mmc device

(GPIO6_27 and GPIO6_28 corresponding to MMC card are enabled in the pin-mux)

Though this error is shown, EVM boots with the U-boot and kernel in SD-Card.

2) If I do not change the pin-mux of UART3, eth0,I2c, QSPI1, MMC1 etc. Can I make sure that my custom board will boot with this pin-mux, U-boot and kernel ?

3) Which all peripherals do I need to disable other than these in the DTS?

regards,

Anupama

U-Boot SPL 2018.01-00569-gfd38f5afef-dirty (Aug 05 2019 - 14:03:49)
DRA722-GP ES2.0
Trying to boot from MMC1
no pinctrl state for default mode
no pinctrl state for default mode
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment



U-Boot 2018.01-00569-gfd38f5afef-dirty (Aug 05 2019 - 14:03:49 +0530)

CPU  : DRA722-GP ES2.0
Model: TI AM5718 IDK
Board: AM571x IDK REV 1.3B
DRAM:  1 GiB
MMC:   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!
invalid mmc device
SCSI:  SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
Found 0 device(s).
Net:   
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
1490 bytes read in 3 ms (484.4 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
1 bytes read in 1 ms (1000 Bytes/s)
Already setup.
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
4022784 bytes read in 201 ms (19.1 MiB/s)
97048 bytes read in 18 ms (5.1 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe5000, end 8ffffb17 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.79-ge669d52447 (bcgi147@bcgi147-HP-Compaq-8200-Elite-MT-PC) (gcc version 7.2.1 20171011 (Linaro GC9
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: TI AM5718 IDK
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
[    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
[    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 24 MiB at 0x00000000be400000
[    0.000000] OMAP4: Map 0x00000000bfd00000 to fe600000 for dram barrier
[    0.000000] DRA722 ES2.0
[    0.000000] percpu: Embedded 15 pages/cpu @ef649000 s31372 r8192 d21876 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 210496
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=PARTUUID=1a39f6e2-02 rw rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 644580K/848896K available (8192K kernel code, 347K rwdata, 2564K rodata, 2048K init, 282K bss, 24092K reserve)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0a00000   (10208 kB)
[    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
[    0.000000]       .data : 0xc1000000 - 0xc1056e98   ( 348 kB)
[    0.000000]        .bss : 0xc1058000 - 0xc109ebe0   ( 283 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] OMAP clockevent source: timer1 at 32786 Hz
[    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
[    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
[    0.000016] Switching to timer-based delay loop, resolution 162ns
[    0.000345] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000353] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000806] Console: colour dummy device 80x30
[    0.000824] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[    0.000831] This ensures that you still see kernel messages. Please
[    0.000838] update your kernel commandline.
[    0.000858] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
[    0.000873] pid_max: default: 32768 minimum: 301
[    0.000990] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001004] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001531] CPU: Testing write buffer coherency: ok
[    0.001570] CPU0: Spectre v2: using ICIALLU workaround
[    0.001768] /cpus/cpu@0 missing clock-frequency property
[    0.001782] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.039848] Setting up static identity map for 0x80200000 - 0x80200060
[    0.059856] Hierarchical SRCU implementation.
[    0.080041] EFI services will not be available.
[    0.099915] smp: Bringing up secondary CPUs ...
[    0.099926] smp: Brought up 1 node, 1 CPU
[    0.099935] SMP: Total of 1 processors activated (12.29 BogoMIPS).
[    0.099943] CPU: All CPU(s) started in HYP mode.
[    0.099950] CPU: Virtualization extensions available.
[    0.100376] devtmpfs: initialized
[    0.117984] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
[    0.120057] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.120256] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.120273] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.124030] pinctrl core: initialized pinctrl subsystem
[    0.124522] DMI not present or invalid.
[    0.124778] NET: Registered protocol family 16
[    0.130833] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.131676] omap_hwmod: l3_main_2 using broken dt data from ocp
[    0.326084] cpuidle: using governor ladder
[    0.326118] cpuidle: using governor menu
[    0.334494] OMAP GPIO hardware version 0.1
[    0.361170] No ATAGs?
[    0.361216] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.361229] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.361633] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.361644] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.362188] OMAP DMA hardware revision 0.0
[    0.392340] edma 43300000.edma: memcpy is disabled
[    0.395480] edma 43300000.edma: TI EDMA DMA engine driver
[    0.402264] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[    0.405663] omap-iommu 40d01000.mmu: 40d01000.mmu registered
[    0.405870] omap-iommu 40d02000.mmu: 40d02000.mmu registered
[    0.406113] omap-iommu 58882000.mmu: 58882000.mmu registered
[    0.406357] omap-iommu 55082000.mmu: 55082000.mmu registered
[    0.406744] iommu: Adding device 40800000.dsp to group 0
[    0.409136] palmas 0-0058: Irq flag is 0x00000004
[    0.432246] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
[    0.433886] SMPS12: supplied by regulator-dummy
[    0.435659] SMPS3: supplied by VMAIN
[    0.437263] SMPS45: supplied by regulator-dummy
[    0.439140] SMPS6: supplied by VMAIN
[    0.440883] SMPS7: supplied by VMAIN
[    0.442779] SMPS8: supplied by VMAIN
[    0.444071] SMPS9: supplied by VMAIN
[    0.445088] LDO1: supplied by VMAIN
[    0.451126] random: fast init done
[    0.451305] LDO2: supplied by VMAIN
[    0.461158] LDO3: supplied by VMAIN
[    0.471164] LDO4: supplied by VMAIN
[    0.481167] LDO5: supplied by regulator-dummy
[    0.481891] LDO6: supplied by regulator-dummy
[    0.482607] LDO7: supplied by regulator-dummy
[    0.483320] LDO8: supplied by regulator-dummy
[    0.484047] LDO9: supplied by VMAIN
[    0.491520] LDOLN: supplied by VMAIN
[    0.501226] LDOUSB: supplied by VMAIN
[    0.513962] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    0.514178] media: Linux media interface: v0.10
[    0.514217] Linux video capture interface: v2.00
[    0.514301] pps_core: LinuxPPS API ver. 1 registered
[    0.514310] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.514330] PTP clock support registered
[    0.514356] EDAC MC: Ver: 3.0.0
[    0.520690] dmi: Firmware registration failed.
[    0.521114] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
[    0.521324] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
[    0.521665] Advanced Linux Sound Architecture Driver Initialized.
[    0.530760] clocksource: Switched to clocksource arch_sys_counter
[    0.538241] NET: Registered protocol family 2
[    0.538776] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.538838] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.538964] TCP: Hash tables configured (established 8192 bind 8192)
[    0.539032] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.539069] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.539187] NET: Registered protocol family 1
[    0.559541] RPC: Registered named UNIX socket transport module.
[    0.559551] RPC: Registered udp transport module.
[    0.559559] RPC: Registered tcp transport module.
[    0.559566] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.560469] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.560596] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[    0.561647] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.565719] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.576269] NFS: Registering the id_resolver key type
[    0.576292] Key type id_resolver registered
[    0.576300] Key type id_legacy registered
[    0.576337] ntfs: driver 2.1.32 [Flags: R/O].
[    0.577979] bounce: pool size: 64 pages
[    0.578029] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.578040] io scheduler noop registered
[    0.578049] io scheduler deadline registered
[    0.578139] io scheduler cfq registered (default)
[    0.578149] io scheduler mq-deadline registered
[    0.578157] io scheduler kyber registered
[    0.582729] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
[    0.582881] pinctrl-single 4a002e8c.pinmux: please update dts to use #pinctrl-cells = <1>
[    0.582953] pinctrl-single 4a002e8c.pinmux: initialized with no interrupts
[    0.582964] pinctrl-single 4a002e8c.pinmux: 1 pins at pa fc002e8c size 4
[    0.595673] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.1
[    0.596060] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
[    0.596094] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
[    0.596122] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
[    1.596376] dra7-pcie 51000000.pcie: phy link never came up
[    1.596506] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[    1.596520] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.596532] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.596542] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[    1.596854] PCI: bus0: Fast back to back transfers disabled
[    1.596948] PCI: bus1: Fast back to back transfers enabled
[    1.596986] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
[    1.597005] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.597328] pcieport 0000:00:00.0: Signaling PME with IRQ 170
[    1.597456] pcieport 0000:00:00.0: AER enabled with IRQ 170
[    1.600408] V3_3D: supplied by smps9
[    1.600693] vtt_fixed: supplied by V3_3D
[    1.643199] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    1.645957] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
[    2.680604] console [ttyS2] enabled
[    2.686009] omap_rng 48090000.rng: Random Number Generator ver. 20
[    2.693112] DSS: OMAP DSS rev 6.1
[    2.698088] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
[    2.706581] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
[    2.726546] brd: module loaded
[    2.735072] loop: module loaded
[    2.742306] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[    2.747351] 7 ofpart partitions found on MTD device spi0.0
[    2.752942] Creating 7 MTD partitions on "spi0.0":
[    2.757756] 0x000000000000-0x000000040000 : "QSPI.SPL"
[    2.763621] 0x000000040000-0x000000140000 : "QSPI.u-boot"
[    2.769667] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
[    2.776342] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
[    2.782736] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
[    2.789798] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
[    2.795851] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
[    2.802929] libphy: Fixed MDIO Bus: probed
[    2.860797] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    2.868492] davinci_mdio 48485000.mdio: detected phy mask fffffffc
[    2.889287] libphy: 48485000.mdio: probed
[    2.893375] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
[    2.903112] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
[    2.913577] cpsw 48484000.ethernet: No slave[1] phy_id, phy-handle, or fixed-link property
[    2.921951] cpsw 48484000.ethernet: Detected MACID = 44:ea:d8:17:d8:d6
[    2.928563] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[    2.934986] cpsw 48484000.ethernet: ALE Table size 1024
[    2.940244] cpsw 48484000.ethernet: device node lookup for pps timer failed
[    2.947285] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[    2.955690] i2c /dev entries driver new :)
[    2.960510] IR NEC protocol handler initialized
[    2.965089] IR RC5(x/sz) protocol handler initialized
[    2.970160] IR RC6 protocol handler initialized
[    2.974721] IR JVC protocol handler initialized
[    2.979268] IR Sony protocol handler initialized
[    2.984114] IR SANYO protocol handler initialized
[    2.988836] IR Sharp protocol handler initialized
[    2.993574] IR MCE Keyboard/mouse protocol handler initialized
[    2.999429] IR XMP protocol handler initialized
[    3.009487] sdhci: Secure Digital Host Controller Interface driver
[    3.015800] sdhci: Copyright(c) Pierre Ossman
[    3.021289] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.027701] sdhci-omap 4809c000.mmc: Got CD GPIO
[    3.033120] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
[    3.039763] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
[    3.100981] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
[    3.147902] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.157908] mmc0: new high speed SDHC card at address 59b4
[    3.163796] mmcblk0: mmc0:59b4 USD   14.9 GiB 
[    3.169686]  mmcblk0: p1 p2
[    3.172516] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
[    3.173555] ledtrig-cpu: registered to indicate activity on CPUs
[    3.183147] NET: Registered protocol family 10
[    3.194176] Segment Routing with IPv6
[    3.194218] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.194518] NET: Registered protocol family 17
[    3.194659] Key type dns_resolver registered
[    3.194743] omap_voltage_late_init: Voltage driver support not added
[    3.194745] Power Management for TI OMAP4+ devices.
[    3.194937] Registering SWP/SWPB emulation handler
[    3.238967] dmm 4e000000.dmm: workaround for errata i878 in use
[    3.249536] dmm 4e000000.dmm: initialized all PAT entries
[    3.256622] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.263403] [drm] No driver support for vblank timestamp query.
[    3.269470] [drm] Cannot find any crtc or sizes
[    3.277989] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[    3.285522] hctosys: unable to open rtc device (rtc0)
[    3.291227] ALSA device list:
[    3.294205]   No soundcards found.
[    3.360038] ti-iodelay 4844a000.padconf: Set reg 0x18c Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.369071] ti-iodelay 4844a000.padconf: Set reg 0x1a4 Delay(a: 119 g: 0), Elements(C=0 F=3)0x29003
[    3.378259] ti-iodelay 4844a000.padconf: Set reg 0x1b0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.387279] ti-iodelay 4844a000.padconf: Set reg 0x1bc Delay(a: 18 g: 0), Elements(C=0 F=0)0x29000
[    3.396386] ti-iodelay 4844a000.padconf: Set reg 0x1c8 Delay(a: 894 g: 0), Elements(C=1 F=11)0x2902b
[    3.405575] ti-iodelay 4844a000.padconf: Set reg 0x1d4 Delay(a: 30 g: 0), Elements(C=0 F=0)0x29000
[    3.414687] ti-iodelay 4844a000.padconf: Set reg 0x1e0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.423711] ti-iodelay 4844a000.padconf: Set reg 0x1ec Delay(a: 23 g: 0), Elements(C=0 F=0)0x29000
[    3.432827] ti-iodelay 4844a000.padconf: Set reg 0x1f8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.441842] ti-iodelay 4844a000.padconf: Set reg 0x360 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.450868] ti-iodelay 4844a000.padconf: Set reg 0x194 Delay(a: 152 g: 0), Elements(C=0 F=4)0x29004
[    3.460048] ti-iodelay 4844a000.padconf: Set reg 0x1ac Delay(a: 206 g: 0), Elements(C=0 F=5)0x29005
[    3.469236] ti-iodelay 4844a000.padconf: Set reg 0x1b8 Delay(a: 78 g: 0), Elements(C=0 F=2)0x29002
[    3.478337] ti-iodelay 4844a000.padconf: Set reg 0x1c4 Delay(a: 2 g: 0), Elements(C=0 F=0)0x29000
[    3.487353] ti-iodelay 4844a000.padconf: Set reg 0x1d0 Delay(a: 266 g: 0), Elements(C=0 F=7)0x29007
[    3.496541] ti-iodelay 4844a000.padconf: Set reg 0x1dc Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.505564] ti-iodelay 4844a000.padconf: Set reg 0x1e8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.514583] ti-iodelay 4844a000.padconf: Set reg 0x1f4 Delay(a: 43 g: 0), Elements(C=0 F=1)0x29001
[    3.523683] ti-iodelay 4844a000.padconf: Set reg 0x200 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.532610] ti-iodelay 4844a000.padconf: Set reg 0x368 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.541632] ti-iodelay 4844a000.padconf: Set reg 0x190 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.550633] ti-iodelay 4844a000.padconf: Set reg 0x1a8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.559644] ti-iodelay 4844a000.padconf: Set reg 0x1b4 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.568661] ti-iodelay 4844a000.padconf: Set reg 0x1c0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.577679] ti-iodelay 4844a000.padconf: Set reg 0x1d8 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.586701] ti-iodelay 4844a000.padconf: Set reg 0x1e4 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.595628] ti-iodelay 4844a000.padconf: Set reg 0x1f0 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.604678] ti-iodelay 4844a000.padconf: Set reg 0x1fc Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.613605] ti-iodelay 4844a000.padconf: Set reg 0x364 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
[    3.625110] mmc1: new DDR MMC card at address 0001
[    3.630256] mmcblk1: mmc1:0001 R1J56L 13.8 GiB 
[    3.635038] mmcblk1boot0: mmc1:0001 R1J56L partition 1 4.00 MiB
[    3.641099] mmcblk1boot1: mmc1:0001 R1J56L partition 2 4.00 MiB
[    3.647239] mmcblk1rpmb: mmc1:0001 R1J56L partition 3 128 KiB
[    3.653609]  mmcblk1: p1 p2
[    3.757893] EXT4-fs (mmcblk0p2): recovery complete
[    3.766125] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.774302] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.784576] devtmpfs: mounted
[    3.788412] Freeing unused kernel memory: 2048K
[    4.118636] systemd[1]: System time before build time, advancing clock.
[    4.170025] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPT)
[    4.191250] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[    4.232675] systemd[1]: Set hostname to <am57xx-evm>.
[    4.320816] [drm] Cannot find any crtc or sizes
[    4.637149] random: systemd: uninitialized urandom read (16 bytes read)
[    4.645152] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    4.680874] random: systemd: uninitialized urandom read (16 bytes read)
[    4.689601] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    4.721150] random: systemd: uninitialized urandom read (16 bytes read)
[    4.728232] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    4.825980] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    4.867789] systemd[1]: Listening on Process Core Dump Socket.
[  OK  ] Listening on Process Core Dump Socket.
[    4.901374] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.930955] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Network Service Netlink Socket.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Slices.
         Mounting Kernel Debug File System...
         Mounting POSIX Message Queue File System...
         Mounting Temporary Directory (/tmp)...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Journal Socket.
         Starting Create list of required st��…ce nodes for the current kernel...
         Starting Load Kernel Modules...
         Starting Journal Service...
[    5.452610] cryptodev: loading out-of-tree module taints kernel.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Mounted Kernel Debug File System.
[    5.486062] cryptodev: driver 1.9 loaded.
[  OK  ] Mounted POSIX Message Queue File System.
[    5.515246] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Started Create list of required sta��…vice nodes for the current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
         Starting Rebuild Hardware Database...
         Starting Create System Users...
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Create System Users.
[  OK  ] Started Apply Kernel Variables.
         Starting Create Static Device Nodes in /dev...
[    5.928492] systemd-journald[79]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /media/ram...
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
[  OK  ] Mounted /media/ram.
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Dynamic Linker Cache...
         Starting Create Volatile Files and Directories...
         Starting Rebuild Journal Catalog...
         Starting Load/Save Random Seed...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Rebuild Journal Catalog.
[  OK  ] Started Rebuild Dynamic Linker Cache.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Rebuild Hardware Database.
         Starting Update is Completed...
         Starting udev Coldplug all Devices...
[  OK  ] Started Update is Completed.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[    8.925102] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
         [    9.030673] remoteproc remoteproc0: 40800000.dsp is available
Starting Network Service...
[  OK  ] Listening on D-Bus System Message Bus Socket.[    9.064448] remoteproc remoteproc0: Direct firmware load for dra7-dsp1-fw.x2

[    9.089725] remoteproc remoteproc0: powering up 40800000.dsp
[    9.105018] remoteproc remoteproc0: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
[    9.105026] remoteproc remoteproc0: request_firmware failed: -2
         Starting Docker Socket for the API.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Started Network Service.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Found device /dev/ttyS2.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Login Service...
[  OK  ] Started System Logging Service.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Reached target Containers.
[    9.620135] ov2659 0-0030: Sensor detection failed (3030, 0)
[    9.629194] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
[    9.637777] omap-des 480a5000.des: will run requests pump with realtime priority
[    9.765269] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659038@58:tps659038_rtc as r0
[    9.925066] omap_gpio 4805b000.gpio: Could not set line 7 debounce to 20000 microseconds (-22)
[   10.242830] omap_rtc 48838000.rtc: registered as rtc1
         Starting uim-sysfs.service...
[   10.348383] net eth0: initializing cpsw version 1.15 (0)
[  OK  ] Started Kernel Logging Service.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Enable and configure wl18xx bluetooth stack...
         Starting DNS forwarder and DHCP server...
         Starting Wait for Network to be Configured...
[   10.505671] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
[   10.525039] Micrel KSZ9031 Gigabit PHY 48485000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485)
[   10.525149] libphy: PHY  not found
[   10.525154] net eth0: phy "" not found on slave 1, err -19
[   10.537167] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.541173] vpe 489d0000.vpe: Device registered as /dev/video0
         Starting Network Name Resolution...
[  OK  ] Started Network Name Resolution.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Enable and configure wl18xx bluetooth stack.
[   11.603406] vip 48970000.vip: loading firmware vpdma-1b8.bin
[   11.630820] vip 48970000.vip: VPDMA firmware loaded
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS2.
[  OK  ] Reached target Login Prompts.
         Starting Synchronize System and HW clocks...
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started DNS forwarder and DHCP server.
[  OK  ] Started Synchronize System and HW clocks.
[  OK  ] Started Login Service.
[  OK  ] Started uim-sysfs.service.
         Starting telnetd.service...
[   12.168603] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.227397] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   12.284200] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   12.324640] SCSI subsystem initialized
[   12.418802] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[   12.418822] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[   12.418829] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
[   12.431016] scsi host0: ahci
[   12.431205] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 80
[   12.449956] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[   12.452776] CAN device driver interface
[   12.474837] c_can_platform 4ae3c000.can: c_can_platform device registered (regs=fce3c000, irq=88)
[   12.475221] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
[   12.533497] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
[   12.537827] omap-aes 4b500000.aes: will run requests pump with realtime priority
[   12.561178] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
[   12.566923] omap-aes 4b700000.aes: will run requests pump with realtime priority
[   12.761797] ata1: SATA link down (SStatus 0 SControl 300)
[   13.015767] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
[   13.015773] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
[  OK  ] Started telnetd.service.
[   13.689469] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   13.710859] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
         Starting thttpd.service...
[  OK  ] Started thttpd.service.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting thermal-zone-init.service...
[  OK  ] Started thermal-zone-init.service.
[   15.428295] usbcore: registered new interface driver usbfs
[   15.460701] usbcore: registered new interface driver hub
[   15.506118] usbcore: registered new device driver usb
[   15.554044] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   15.559576] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[   15.599047] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
[   15.622638] xhci-hcd xhci-hcd.1.auto: irq 177, io mem 0x48890000
[   15.642645] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   15.649509] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.672940] usb usb1: Product: xHCI Host Controller
[   15.677839] usb usb1: Manufacturer: Linux 4.14.79-ge669d52447 xhci-hcd
[   15.703134] usb usb1: SerialNumber: xhci-hcd.1.auto
[   15.713391] hub 1-0:1.0: USB hub found
[   15.725203] hub 1-0:1.0: 1 port detected
[  OK  ] Reached target Sound Card.
[   15.738821] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[   15.745157] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[   15.755316] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[   15.775291] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   15.785409] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[   15.793189] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.800443] usb usb2: Product: xHCI Host Controller
[   15.806655] usb usb2: Manufacturer: Linux 4.14.79-ge669d52447 xhci-hcd
[   15.814003] usb usb2: SerialNumber: xhci-hcd.1.auto
[   15.819853] hub 2-0:1.0: USB hub found
[   15.825967] hub 2-0:1.0: 1 port detected

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

Arago Project http://arago-project.org am57xx-evm ttyS2

Arago 2018.10 am57xx-evm ttyS2

am57xx-evm login: 



  • Hello Anupama,

    Anupama Sreekumar said:

    1)Why i'm getting the following error:

    Card did not respond to voltage select!

    invalid mmc device


    You are booting your board from the SD card and this messages is related to the eMMC. Wrong PinMux, IODelay settings or broken PMIC can cause this error. Please, see this post for possible causes.


    Anupama Sreekumar said:
    2) If I do not change the pin-mux of UART3, eth0,I2c, QSPI1, MMC1 etc. Can I make sure that my custom board will boot with this pin-mux, U-boot and kernel ?

    Yes, if you follow the same design as your reference board.


    Anupama Sreekumar said:
    3) Which all peripherals do I need to disable other than these in the DTS?

    You can refer to the AM571x datasheet to see which peripherals you need to disable.

    Best regards,
    Kemal

  • Hi,

    In AM571x IDK for EMMC there is a reset signal (eMMC_RSTn) controlled by GPIO4_21 (as per pin mux)

    As I understand by default this pin is pulled down and unless asserted eMMC will remain in reset.

    So while operating on emmc we need to set this pin as high or is it that this pin always held high using 10k pull up??

    in the DTS file of eMMC (MMC2) we could not find the usage of this GPIO4_21 . 

     mmc@480b4000 {
                compatible = "ti,dra7-sdhci";
                reg = <0x480b4000 0x400>;
                interrupts = <0x0 0x51 0x4>;
                ti,hwmods = "mmc2";
                status = "okay";
                max-frequency = <0x5b8d800>;
                sdhci-caps-mask = <0x7 0x0>;
                mmc-hs200-1_8v;
                mmc-ddr-1_8v;
                vmmc-supply = <0xd4>;
                vqmmc-supply = <0xd4>;
                bus-width = <0x8>;
                non-removable;
                no-1-8-v;
                pinctrl-names = "default", "hs", "ddr_1_8v";
                pinctrl-0 = <0xdf>;
                pinctrl-1 = <0xe0>;
                pinctrl-2 = <0xe1 0xe2>;
            };
    Is the Kernel using this GPIO?? How to find it out?? In our custom board design we have connected another GPIO to reset. So We may have to handle it hence asking..
    In case of  AM5728 GP EVM this pin is connected to device resetout so on every reset memory undergoes reset cycling.
  • Hi,

           Contents of dra7.dtsi was posted above. Is this the correct DTS to refer related to MMC?

    We also have the following in am571x-idk-common.dtsi

    &mmc2 {
        status = "okay";
        vmmc-supply = <&v3_3d>;
        bus-width = <8>;
        ti,non-removable;
        max-frequency = <96000000>;
        no-1-8-v;
        /delete-property/ mmc-hs200-1_8v;
    };
    regards,
    Anupama
  • Hello Anupama,

    Please, see this comment. You can just pinmux the new eMMC_RSTn connected GPIO as (M14 | PIN_OUTPUT) in U-Boot.

    Best regards,
    Kemal

  • Dear Kemal,

    From the link given above 

    "" you can move it to any available GPIO output. The inverter may be needed if your chosen GPIO defaults to a low state when the processor is in reset, or at reset release. This will hold the eMMC in reset, preventing the processor to boot from it, therefore the need for the inverter.""

    So this means that i can choose a different GPIO pin for eMMC_RSTn in a custom board.  But in EVM (AM5718) GPIO4_21 it is PD during reset and PD on reset release.

    I did not see an inverter in AM5718 -EVM. I guess there is a 10K pull up which would be strong enough to pull eMMC_RSTn to remain high.

    Correct me if i am wrong.

    Now two scenarios

    1. Case one

    If i have uboot in QSPI.

    Then once i execute uBoot from QSPI, GPIO eMMC_RSTn  will appear as output due to ""GPIO as (M14 | PIN_OUTPUT) in U-Boot"" . 

    Now someone has to set the status of this pin as ""HIGH""  before accessing eMMC. ie release its reset.

    Where in uBOOT this action takes place??. This will help us modify the GPIO location as per custom board.

    2. Case two

    if uBOOt in eMMC.

    In this case by default eMMC has to be on reset release mode  eMMC_RSTn = "HIGH". I guess, this is done by using a strong pull up resistor on eMMC_RSTn .

    uBOOT once executed if It set eMMC_RSTn pin as output the default value will be ""LOW"" thus resetting the eMMC.

    Is this not an issue??

    How do you circumvent this issue?? 

  • Quoting from the MTFC16GAKAECN-2M WT eMMC datasheet:

    "The RST_n signal is used by the host for resetting the device, moving the device to the pre-idle state. By default, the RST_n signal is temporarily disabled in the device. The host must set ECSD register byte 162, bits[1:0] to 0x1 to enable this functionality before the host can use it."