This thread has been locked.

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

Linux/AM3352: eMMC fails in U-boot

Part Number: AM3352
Other Parts Discussed in Thread: CSD

Tool/software: Linux

We have beagle bone black based custom board with 256MB RAM and 4GB eMMC.

We are trying to port U-Boot from version 2013 to 2017.01.

U-Boot code is changed lot between those version to I had to start porting from start.

I took am335x-evm reference and started porting.

I could get to a point where I can boot till u-boot prompt. however I am not able to get eMMC working.

Below is device tree entry

vmmcsd_fixed: fixedregulator@0 {
		compatible = "regulator-fixed";
		regulator-name = "vmmcsd_fixed";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-boot-on;
	};

&mmc2 {
	vmmc-supply = <&vmmcsd_fixed>;
	pinctrl-names = "default";
	pinctrl-0 = <&emmc_pins>;
	bus-width = <8>;
	status = "okay";
};

I see omap SD/MMC 0 listed but I am not able to get it working.

below is boot log for the same

U-Boot SPL 2017.01-ge7344f7-dirty (Jul 13 2018 - 10:51:07)
ANKUR:---Inside spl board init
Trying to boot from MMC2
malloc_simple: size=x, ptr=38, limit=38: 81f00000
malloc_simple: size=x, ptr=190, limit=1c8: 81f00038
malloc_simple: size=x, ptr=38, limit=200: 81f001c8
malloc_simple: size=x, ptr=190, limit=390: 81f00200
part_init: try 'EFI': ret=0
mmc_reinit: 0, time 74 (retries 0)
spl: mmc boot mode: raw
hdr read sector 800, count=1
spl: payload image: *s load addr: 0x4 size: -2139095072
read 2e7 sectors to 807fffc0
Jumping to U-Boot
loaded - jumping to U-Boot...
image entry point: 0x
initcall: 8082d1d1


U-Boot 2017.01-ge7344f7-dirty (Jul 13 2018 - 10:51:07 -0400)

initcall: 8080a68d
U-Boot code: 80800000 -> 8084B340  BSS: -> 8088670C
initcall: 80801385
CPU  : AM335X-GP rev 2.1
initcall: 8080aa7d
Model: TI AM335x EVM
initcall: 8080a545
initcall: 8080a53b
initcall: 8080a6b1
DRAM:  initcall: 80801415
initcall: 8080a53b
initcall: 8080a53b
initcall: 8080a53b
initcall: 8080a835
Monitor len: 0008670C
Ram size: 10000000
Ram top: 90000000
initcall: 8080a50d
initcall: 8080a645
TLB table from 8fff0000 to 8fff4000
initcall: 8080a521
initcall: 8080a605
Reserving 537k for U-Boot at: 8ff69000
initcall: 8080a5dd
Reserving 32896k for malloc() at: 8df49000
initcall: 8080a775
Reserving 80 Bytes for Board Info at: 8df48fb0
initcall: 8080a525
initcall: 8080a5b5
Reserving 216 Bytes for Global Data at: 8df48ed8
initcall: 8080a565
Reserving 33824 Bytes for FDT at: 8df40ab8
initcall: 8080a537
initcall: 8080a89d
initcall: 8080a819
initcall: 8080a7b5

RAM Configuration:
Bank #0: 80000000 256 MiB

DRAM:  256 MiB
initcall: 8080a551
New Stack Pointer is: 8df40a90
initcall: 8080a53b
initcall: 8080a749
initcall: 8080a6f1
Relocation Offset is: 0f769000
Relocating to 8ff69000, new gd at 8df48ed8, sp at 8df40a90
initcall: 8ff738dd
initcall: 8ff738e1
initcall: 8080aa51 (relocated to 8ff73a51)
dram_bank_mmu_setup: bank: 0
initcall: 8080aa29 (relocated to 8ff73a29)
efi_runtime_relocate: Relocating to offset=8ff69000
efi_runtime_relocate: Setting 8ffb41f0 to 8ffb4248
efi_runtime_relocate: Setting 8ffb41fc to 8ff9baec
efi_runtime_relocate: Setting 8ffb4204 to 8ff9baf8
efi_runtime_relocate: Setting 8ffb420c to 8ff9baf8
efi_runtime_relocate: Setting 8ffb4210 to 8ffb4260
efi_runtime_relocate: Setting 8ffb4214 to 8ff9b450
efi_runtime_relocate: Setting 8ffb421c to 8ffb4220
efi_runtime_relocate: Setting 8ffb4278 to 8ff8c831
efi_runtime_relocate: Setting 8ffb427c to 8ffb41c5
efi_runtime_relocate: Setting 8ffb4280 to 8ffb41bd
efi_runtime_relocate: Setting 8ffb4284 to 8ffb41bd
efi_runtime_relocate: Setting 8ffb4288 to 8ff8c985
efi_runtime_relocate: Setting 8ffb428c to 8ffb41cd
efi_runtime_relocate: Setting 8ffb4290 to 8ffb41c5
efi_runtime_relocate: Setting 8ffb4294 to 8ffb41c5
efi_runtime_relocate: Setting 8ffb4298 to 8ffb41c5
efi_runtime_relocate: Setting 8ffb429c to 8ffb41c5
efi_runtime_relocate: Setting 8ffb42a0 to 8ff8c839
initcall: 8080a8f5 (relocated to 8ff738f5)
initcall: 8080a9f9 (relocated to 8ff739f9)
Pre-reloc malloc() used 0x178 bytes (0 KB)
using memory 0x8df49000-0x8ff69000 for malloc()
initcall: 8080a8f9 (relocated to 8ff738f9)
initcall: 8080a8d9 (relocated to 8ff738d9)
initcall: 8080a9e3 (relocated to 8ff739e3)
uclass_find_device_by_seq: 0 -1
uclass_find_device_by_seq: 0 0
   - -1 -1
   - not found
Bound device mod_exp_sw to root_driver
bind node chosen
Device 'chosen' has no compatible string
bind node aliases
Device 'aliases' has no compatible string
bind node memory
Device 'memory' has no compatible string
bind node cpus
Device 'cpus' has no compatible string
bind node pmu
   - attempt to match compatible string 'arm,cortex-a8-pmu'
No match for node 'pmu'
bind node soc
   - attempt to match compatible string 'ti,omap-infra'
No match for node 'soc'
bind node ocp
   - attempt to match compatible string 'simple-bus'
   - found match at 'generic_simple_bus'
fdtdec_get_int_array: ranges
get_prop_check_min_len: ranges
bind node l4_wkup@44c00000
   - attempt to match compatible string 'ti,am3-l4-wkup'
   - attempt to match compatible string 'simple-bus'
   - found match at 'generic_simple_bus'
fdtdec_get_int_array: ranges
get_prop_check_min_len: ranges
bind node prcm@200000
   - attempt to match compatible string 'ti,am3-prcm'
No match for node 'prcm@200000'
bind node scm@210000
   - attempt to match compatible string 'ti,am3-scm'
   - attempt to match compatible string 'simple-bus'
   - found match at 'generic_simple_bus'
fdtdec_get_int_array: ranges
get_prop_check_min_len: ranges
bind node pinmux@800
   - attempt to match compatible string 'pinctrl-single'
No match for node 'pinmux@800'
bind node scm_conf@0
   - attempt to match compatible string 'syscon'
No match for node 'scm_conf@0'
bind node clockdomains
Device 'clockdomains' has no compatible string
Bound device scm@210000 to l4_wkup@44c00000
Bound device l4_wkup@44c00000 to ocp
bind node interrupt-controller@48200000
   - attempt to match compatible string 'ti,am33xx-intc'
No match for node 'interrupt-controller@48200000'
bind node edma@49000000
   - attempt to match compatible string 'ti,edma3'
No match for node 'edma@49000000'
bind node gpio@44e07000
   - attempt to match compatible string 'ti,omap4-gpio'
   - found match at 'gpio_omap'
Looking for 'gpio' at 14348, name gpio@44e07000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
OF: ** translation for device gpio@44e07000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 0070e044
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1155559424
OF: one level translation: 0070e044
OF: reached root node
Bound device gpio@44e07000 to ocp
bind node gpio@4804c000
   - attempt to match compatible string 'ti,omap4-gpio'
   - found match at 'gpio_omap'
Looking for 'gpio' at 14512, name gpio@4804c000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
OF: ** translation for device gpio@4804c000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 00c00448
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1208270848
OF: one level translation: 00c00448
OF: reached root node
Bound device gpio@4804c000 to ocp
bind node gpio@481ac000
   - attempt to match compatible string 'ti,omap4-gpio'
   - found match at 'gpio_omap'
Looking for 'gpio' at 14676, name gpio@481ac000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
OF: ** translation for device gpio@481ac000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 00c01a48
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1209712640
OF: one level translation: 00c01a48
OF: reached root node
Bound device gpio@481ac000 to ocp
bind node gpio@481ae000
   - attempt to match compatible string 'ti,omap4-gpio'
   - found match at 'gpio_omap'
Looking for 'gpio' at 14840, name gpio@481ae000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
OF: ** translation for device gpio@481ae000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 00e01a48
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1209720832
OF: one level translation: 00e01a48
OF: reached root node
Bound device gpio@481ae000 to ocp
bind node serial@44e09000
   - attempt to match compatible string 'ti,omap3-uart'
   - found match at 'ns16550_serial'
Looking for 'serial' at 15004, name serial@44e09000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
Found seq 0
Bound device serial@44e09000 to ocp
bind node serial@48022000
   - attempt to match compatible string 'ti,omap3-uart'
   - found match at 'ns16550_serial'
Looking for 'serial' at 15248, name serial@48022000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
Found seq 1
Bound device serial@48022000 to ocp
   - ignoring disabled device
   - ignoring disabled device
   - ignoring disabled device
   - ignoring disabled device
bind node i2c@44e0b000
   - attempt to match compatible string 'ti,omap4-i2c'
   - found match at 'i2c_omap'
Looking for 'i2c' at 16196, name i2c@44e0b000
   - i2c0, /ocp/i2c@44e0b000
Found seq 0
bind node tps@2d
Device 'tps@2d' has no compatible string
Bound device i2c@44e0b000 to ocp
bind node i2c@4802a000
   - attempt to match compatible string 'ti,omap4-i2c'
   - found match at 'i2c_omap'
Looking for 'i2c' at 16440, name i2c@4802a000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
Found seq 1
bind node lis331dlh@18
   - attempt to match compatible string 'st,lis331dlh'
   - attempt to match compatible string 'st,lis3lv02d'
No match for node 'lis331dlh@18'
bind node tsl2550@39
   - attempt to match compatible string 'taos,tsl2550'
No match for node 'tsl2550@39'
bind node tmp275@48
   - attempt to match compatible string 'ti,tmp275'
No match for node 'tmp275@48'
Bound device i2c@4802a000 to ocp
   - ignoring disabled device
   - ignoring disabled device
bind node mmc@481d8000
   - attempt to match compatible string 'ti,omap4-hsmmc'
   - found match at 'omap_hsmmc'
Looking for 'mmc' at 17560, name mmc@481d8000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device mmc@481d8000 to ocp
   - ignoring disabled device
bind node spinlock@480ca000
   - attempt to match compatible string 'ti,omap4-hwspinlock'
No match for node 'spinlock@480ca000'
bind node wdt@44e35000
   - attempt to match compatible string 'ti,omap3-wdt'
No match for node 'wdt@44e35000'
   - ignoring disabled device
   - ignoring disabled device
bind node mailbox@480C8000
   - attempt to match compatible string 'ti,omap4-mailbox'
No match for node 'mailbox@480C8000'
bind node timer@44e31000
   - attempt to match compatible string 'ti,am335x-timer-1ms'
No match for node 'timer@44e31000'
bind node timer@48040000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 18952, name timer@48040000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@48040000 to ocp
bind node timer@48042000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 19060, name timer@48042000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@48042000 to ocp
bind node timer@48044000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 19168, name timer@48044000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@48044000 to ocp
bind node timer@48046000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 19288, name timer@48046000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@48046000 to ocp
bind node timer@48048000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 19408, name timer@48048000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@48048000 to ocp
bind node timer@4804a000
   - attempt to match compatible string 'ti,am335x-timer'
   - found match at 'omap_timer'
Looking for 'timer' at 19528, name timer@4804a000
   - i2c0, /ocp/i2c@44e0b000
   - i2c1, /ocp/i2c@4802a000
   - i2c2, /ocp/i2c@4819c000
   - serial0, /ocp/serial@44e09000
   - serial1, /ocp/serial@48022000
   - serial2, /ocp/serial@48024000
   - serial3, /ocp/serial@481a6000
   - serial4, /ocp/serial@481a8000
   - serial5, /ocp/serial@481aa000
   - d_can0, /ocp/can@481cc000
   - d_can1, /ocp/can@481d0000
   - usb0, /ocp/usb@47400000/usb@47401000
   - usb1, /ocp/usb@47400000/usb@47401800
   - phy0, /ocp/usb@47400000/usb-phy@47401300
   - phy1, /ocp/usb@47400000/usb-phy@47401b00
   - ethernet0, /ocp/ethernet@4a100000/slave@4a100200
   - ethernet1, /ocp/ethernet@4a100000/slave@4a100300
Not found
Bound device timer@4804a000 to ocp
bind node rtc@44e3e000
   - attempt to match compatible string 'ti,am3352-rtc'
   - attempt to match compatible string 'ti,da830-rtc'
No match for node 'rtc@44e3e000'
   - ignoring disabled device
   - ignoring disabled device
bind node usb@47400000
   - attempt to match compatible string 'ti,am33xx-usb'
No match for node 'usb@47400000'
bind node epwmss@48300000
   - attempt to match compatible string 'ti,am33xx-pwmss'
No match for node 'epwmss@48300000'
   - ignoring disabled device
   - ignoring disabled device
bind node ethernet@4a100000
   - attempt to match compatible string 'ti,cpsw'
No match for node 'ethernet@4a100000'
bind node ocmcram@40300000
   - attempt to match compatible string 'mmio-sram'
No match for node 'ocmcram@40300000'
bind node wkup_m3@44d00000
   - attempt to match compatible string 'ti,am3353-wkup-m3'
No match for node 'wkup_m3@44d00000'
bind node elm@48080000
   - attempt to match compatible string 'ti,am3352-elm'
No match for node 'elm@48080000'
   - ignoring disabled device
bind node tscadc@44e0d000
   - attempt to match compatible string 'ti,am3359-tscadc'
No match for node 'tscadc@44e0d000'
   - ignoring disabled device
bind node sham@53100000
   - attempt to match compatible string 'ti,omap4-sham'
No match for node 'sham@53100000'
bind node aes@53500000
   - attempt to match compatible string 'ti,omap4-aes'
No match for node 'aes@53500000'
   - ignoring disabled device
   - ignoring disabled device
bind node rng@48310000
   - attempt to match compatible string 'ti,omap4-rng'
No match for node 'rng@48310000'
Bound device ocp to root_driver
bind node fixedregulator@0
   - attempt to match compatible string 'regulator-fixed'
No match for node 'fixedregulator@0'
bind node fixedregulator@1
   - attempt to match compatible string 'regulator-fixed'
No match for node 'fixedregulator@1'
bind node backlight
   - attempt to match compatible string 'pwm-backlight'
No match for node 'backlight'
initcall: 8080a9d7 (relocated to 8ff739d7)
initcall: 808003a9 (relocated to 8ff693a9)
initcall: 808244c9 (relocated to 8ff8d4c9)
efi_add_memory_map: 0x80000000 0x10000 7 no
efi_add_memory_map: 0x8cf40000 0x30c0 2 no
efi_add_memory_map: 0x8ffb4000 0x1 5 no
initcall: 80810839 (relocated to 8ff79839)
initcall: 8080a9cd (relocated to 8ff739cd)
uclass_find_device_by_seq: 0 -1
uclass_find_device_by_seq: 0 0
   - -1 -1
   - -1 -1
   - -1 -1
   - not found
uclass_find_device_by_seq: 0 0
   - 0 -1
   - 1 -1
   - not found
OF: ** translation for device serial@44e09000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 0090e044
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1155567616
OF: one level translation: 0090e044
OF: reached root node
fdtdec_get_int: reg-offset: (not found)
fdtdec_get_int: reg-shift: 0x2 (2)
fdtdec_get_int: clock-frequency: 0x2dc6c00 (48000000)
initcall: 8080a909 (relocated to 8ff73909)
ANKUR:----Indeed board_init_r from board_r.c------
initcall: 8080a9b9 (relocated to 8ff739b9)
Now running in RAM - U-Boot at: 8ff69000
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080a8fd (relocated to 8ff738fd)
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080a9a1 (relocated to 8ff739a1)
MMC:   uclass_find_device_by_seq: 0 0
   - -1 -1
   - not found
uclass_find_device_by_seq: 1 0
   - -1 -1
   - not found
uclass_find_device_by_seq: 0 -1
uclass_find_device_by_seq: 0 0
   - -1 -1
   - not found
OF: ** translation for device mmc@481d8000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 00801d48
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1209892864
OF: one level translation: 00801d48
OF: reached root node
fdtdec_get_int: bus-width: 0x8 (8)
fdtdec_get_int: max-frequency: (not found)
fdtdec_get_bool: cap-sd-highspeed
fdtdec_get_bool: cap-mmc-highspeed
fdtdec_get_bool: mmc-ddr-1_8v
fdtdec_get_bool: mmc-hs200-1_8v
fdtdec_get_bool: sd-uhs-sdr104
fdtdec_get_bool: sd-uhs-sdr50
fdtdec_get_bool: sd-uhs-ddr50
fdtdec_get_bool: sd-uhs-sdr25
fdtdec_get_bool: sd-uhs-sdr12
fdtdec_get_bool: ti,dual-volt
fdtdec_get_bool: no-1-8-v
fdtdec_get_bool: cd-inverted
_gpio_request_by_name_nodev: fdtdec_parse_phandle_with_args failed
_gpio_request_by_name_nodev: Node 'mmc@481d8000', property 'cd-gpios', failed to request GPIO index 0: -2
_gpio_request_by_name_nodev: fdtdec_parse_phandle_with_args failed
_gpio_request_by_name_nodev: Node 'mmc@481d8000', property 'wp-gpios', failed to request GPIO index 0: -2
OMAP SD/MMC: 0
initcall: 8080a959 (relocated to 8ff73959)
fdtdec_get_config_int: load-environment
MMC Device 1 not found
*** Warning - No MMC card found, using default environment

Destroy Hash Table: 8ffb2a3c table = 00000000
Create Hash Table: N=512
INSERT: table 8ffb2a3c, filled 1/521 rv 8df4cb14 ==> name="bootcmd" value="if test ${boot_fit} -eq 1; then run "
INSERT: table 8ffb2a3c, filled 2/521 rv 8df4d370 ==> name="bootdelay" value="2"
INSERT: table 8ffb2a3c, filled 3/521 rv 8df4c6f0 ==> name="baudrate" value="115200"
INSERT: table 8ffb2a3c, filled 4/521 rv 8df4bf0c ==> name="arch" value="arm"
INSERT: table 8ffb2a3c, filled 5/521 rv 8df4d708 ==> name="cpu" value="armv7"
INSERT: table 8ffb2a3c, filled 6/521 rv 8df4cec0 ==> name="board" value="test_board"
INSERT: table 8ffb2a3c, filled 7/521 rv 8df4c1c8 ==> name="board_name" value="test_board"
INSERT: table 8ffb2a3c, filled 8/521 rv 8df4d794 ==> name="vendor" value="testvendor"
INSERT: table 8ffb2a3c, filled 9/521 rv 8df4dd5c ==> name="soc" value="am33xx"
INSERT: table 8ffb2a3c, filled 10/521 rv 8df4d1f4 ==> name="loadaddr" value="0x82000000"
INSERT: table 8ffb2a3c, filled 11/521 rv 8df4cb78 ==> name="kernel_addr_r" value="0x82000000"
INSERT: table 8ffb2a3c, filled 12/521 rv 8df4d514 ==> name="fdtaddr" value="0x88000000"
INSERT: table 8ffb2a3c, filled 13/521 rv 8df4c4d4 ==> name="fdt_addr_r" value="0x88000000"
INSERT: table 8ffb2a3c, filled 14/521 rv 8df4d35c ==> name="rdaddr" value="0x88080000"
INSERT: table 8ffb2a3c, filled 15/521 rv 8df4d898 ==> name="ramdisk_addr_r" value="0x88080000"
INSERT: table 8ffb2a3c, filled 16/521 rv 8df4c36c ==> name="scriptaddr" value="0x80000000"
INSERT: table 8ffb2a3c, filled 17/521 rv 8df4c1dc ==> name="pxefile_addr_r" value="0x80100000"
INSERT: table 8ffb2a3c, filled 18/521 rv 8df4bb4c ==> name="bootm_size" value="0x10000000"
INSERT: table 8ffb2a3c, filled 19/521 rv 8df4c678 ==> name="boot_fdt" value="try"
INSERT: table 8ffb2a3c, filled 20/521 rv 8df4c010 ==> name="mmcdev" value="0"
INSERT: table 8ffb2a3c, filled 21/521 rv 8df4cd1c ==> name="mmcrootfstype" value="ext4 rootwait"
INSERT: table 8ffb2a3c, filled 22/521 rv 8df4c588 ==> name="finduuid" value="part uuid mmc ${bootpart} uuid"
INSERT: table 8ffb2a3c, filled 23/521 rv 8df4e2fc ==> name="args_mmc" value="run finduuid;setenv bootargs conso"
INSERT: table 8ffb2a3c, filled 24/521 rv 8df4bcf0 ==> name="loadbootscript" value="load mmc ${mmcdev} ${loadadd"
INSERT: table 8ffb2a3c, filled 25/521 rv 8df4c650 ==> name="bootscript" value="echo Running bootscript from mmc"
INSERT: table 8ffb2a3c, filled 26/521 rv 8df4cf24 ==> name="bootenvfile" value="uEnv.txt"
INSERT: table 8ffb2a3c, filled 27/521 rv 8df4c344 ==> name="importbootenv" value="echo Importing environment fr"
INSERT: table 8ffb2a3c, filled 28/521 rv 8df4e054 ==> name="loadbootenv" value="fatload mmc ${mmcdev} ${loadadd"
INSERT: table 8ffb2a3c, filled 29/521 rv 8df4d49c ==> name="loadimage" value="load ${devtype} ${bootpart} ${loa"
INSERT: table 8ffb2a3c, filled 30/521 rv 8df4d834 ==> name="loadfdt" value="load ${devtype} ${bootpart} ${fdtad"
INSERT: table 8ffb2a3c, filled 31/521 rv 8df4c380 ==> name="envboot" value="mmc dev ${mmcdev}; if mmc rescan; t"
INSERT: table 8ffb2a3c, filled 32/521 rv 8df4e1e4 ==> name="mmcloados" value="run args_mmc; if test ${boot_fdt}"
INSERT: table 8ffb2a3c, filled 33/521 rv 8df4dde8 ==> name="mmcboot" value="mmc dev ${mmcdev}; setenv devnum ${"
INSERT: table 8ffb2a3c, filled 34/521 rv 8df4bc50 ==> name="boot_fit" value="0"
INSERT: table 8ffb2a3c, filled 35/521 rv 8df4cdf8 ==> name="fit_loadaddr" value="0x87000000"
INSERT: table 8ffb2a3c, filled 36/521 rv 8df4dec4 ==> name="fit_bootfile" value="fitImage"
INSERT: table 8ffb2a3c, filled 37/521 rv 8df4da14 ==> name="update_to_fit" value="setenv loadaddr ${fit_loadadd"
INSERT: table 8ffb2a3c, filled 38/521 rv 8df4dca8 ==> name="loadfit" value="run args_mmc; bootm ${loadaddr}#${f"
INSERT: table 8ffb2a3c, filled 39/521 rv 8df4df00 ==> name="bootpart" value="0:2"
INSERT: table 8ffb2a3c, filled 40/521 rv 8df4bae8 ==> name="bootdir" value="/boot"
INSERT: table 8ffb2a3c, filled 41/521 rv 8df4ce34 ==> name="bootfile" value="zImage"
INSERT: table 8ffb2a3c, filled 42/521 rv 8df4d014 ==> name="fdtfile" value="undefined"
INSERT: table 8ffb2a3c, filled 43/521 rv 8df4dd20 ==> name="console" value="ttyO0,115200n8"
INSERT: table 8ffb2a3c, filled 44/521 rv 8df4d71c ==> name="partitions" value="uuid_disk=${uuid_gpt_disk};name="
DELETE CANDIDATE: "optargs"
hdelete: DELETE key "optargs"
DELETE ERROR ##############################
INSERT: table 8ffb2a3c, filled 45/521 rv 8df4c330 ==> name="ramroot" value="/dev/ram0 rw"
INSERT: table 8ffb2a3c, filled 46/521 rv 8df4bafc ==> name="ramrootfstype" value="ext2"
INSERT: table 8ffb2a3c, filled 47/521 rv 8df4d76c ==> name="spiroot" value="/dev/mtdblock4 rw"
INSERT: table 8ffb2a3c, filled 48/521 rv 8df4cf38 ==> name="spirootfstype" value="jffs2"
INSERT: table 8ffb2a3c, filled 49/521 rv 8df4dbe0 ==> name="spisrcaddr" value="0xe0000"
INSERT: table 8ffb2a3c, filled 50/521 rv 8df4d424 ==> name="spiimgsize" value="0x362000"
INSERT: table 8ffb2a3c, filled 51/521 rv 8df4dc44 ==> name="spibusno" value="0"
INSERT: table 8ffb2a3c, filled 52/521 rv 8df4cee8 ==> name="spiargs" value="setenv bootargs console=${console} "
INSERT: table 8ffb2a3c, filled 53/521 rv 8df4baac ==> name="ramargs" value="setenv bootargs console=${console} "
INSERT: table 8ffb2a3c, filled 54/521 rv 8df4bd90 ==> name="loadramdisk" value="load mmc ${mmcdev} ${rdaddr} ra"
INSERT: table 8ffb2a3c, filled 55/521 rv 8df4e004 ==> name="spiboot" value="echo Booting from spi ...; run spia"
INSERT: table 8ffb2a3c, filled 56/521 rv 8df4cbc8 ==> name="ramboot" value="echo Booting from ramdisk ...; run "
INSERT: table 8ffb2a3c, filled 57/521 rv 8df4bd40 ==> name="findfdt" value="if test $board_name = A335BONE; the"
INSERT: table 8ffb2a3c, filled 58/521 rv 8df4d730 ==> name="init_console" value="if test $board_name = A335_ICE"
INSERT: table 8ffb2a3c, filled 59/521 rv 8df4de60 ==> name="static_ip" value="${ipaddr}:${serverip}:${gatewayip"
INSERT: table 8ffb2a3c, filled 60/521 rv 8df4d5c8 ==> name="nfsopts" value="nolock"
INSERT: table 8ffb2a3c, filled 61/521 rv 8df4d44c ==> name="rootpath" value="/export/rootfs"
INSERT: table 8ffb2a3c, filled 62/521 rv 8df4be44 ==> name="netloadimage" value="tftp ${loadaddr} ${bootfile}"
INSERT: table 8ffb2a3c, filled 63/521 rv 8df4ce5c ==> name="netloadfdt" value="tftp ${fdtaddr} ${fdtfile}"
INSERT: table 8ffb2a3c, filled 64/521 rv 8df4d140 ==> name="netargs" value="setenv bootargs console=${console} "
INSERT: table 8ffb2a3c, filled 65/521 rv 8df4e25c ==> name="netboot" value="echo Booting from network ...; sete"
INSERT: table 8ffb2a3c, filled 66/521 rv 8df4c9c0 ==> name="dfu_alt_info_emmc" value="rawemmc raw 0 3751936"
INSERT: table 8ffb2a3c, filled 67/521 rv 8df4d384 ==> name="dfu_alt_info_mmc" value="boot part 0 1;rootfs part "
INSERT: table 8ffb2a3c, filled 68/521 rv 8df4c40c ==> name="dfu_alt_info_ram" value="kernel ram 0x80200000 0x40"
INSERT: table 8ffb2a3c, filled 69/521 rv 8df4d5f0 ==> name="mmc_boot" value="if mmc dev ${devnum}; then setenv "
INSERT: table 8ffb2a3c, filled 70/521 rv 8df4d21c ==> name="boot_efi_binary" value="load ${devtype} ${devnum}:$"
INSERT: table 8ffb2a3c, filled 71/521 rv 8df4e068 ==> name="load_efi_dtb" value="load ${devtype} ${devnum}:${di"
INSERT: table 8ffb2a3c, filled 72/521 rv 8df4d7d0 ==> name="efi_dtb_prefixes" value="/ /dtb/ /dtb/current/"
INSERT: table 8ffb2a3c, filled 73/521 rv 8df4bb38 ==> name="scan_dev_for_efi" value="setenv efi_fdtfile ${fdtfi"
INSERT: table 8ffb2a3c, filled 74/521 rv 8df4bb24 ==> name="boot_prefixes" value="/ /boot/"
INSERT: table 8ffb2a3c, filled 75/521 rv 8df4bb88 ==> name="boot_scripts" value="boot.scr.uimg boot.scr"
INSERT: table 8ffb2a3c, filled 76/521 rv 8df4e1bc ==> name="boot_script_dhcp" value="boot.scr.uimg"
INSERT: table 8ffb2a3c, filled 77/521 rv 8df4d8e8 ==> name="boot_targets" value="mmc0 legacy_mmc0 mmc1 legacy_m"
INSERT: table 8ffb2a3c, filled 78/521 rv 8df4c754 ==> name="boot_extlinux" value="sysboot ${devtype} ${devnum}:"
INSERT: table 8ffb2a3c, filled 79/521 rv 8df4e20c ==> name="scan_dev_for_extlinux" value="if test -e ${devtype}"
INSERT: table 8ffb2a3c, filled 80/521 rv 8df4c3f8 ==> name="boot_a_script" value="load ${devtype} ${devnum}:${d"
INSERT: table 8ffb2a3c, filled 81/521 rv 8df4e11c ==> name="scan_dev_for_scripts" value="for script in ${boot_s"
INSERT: table 8ffb2a3c, filled 82/521 rv 8df4e02c ==> name="scan_dev_for_boot" value="echo Scanning ${devtype} "
INSERT: table 8ffb2a3c, filled 83/521 rv 8df4df3c ==> name="scan_dev_for_boot_part" value="part list ${devtype}"
INSERT: table 8ffb2a3c, filled 84/521 rv 8df4dadc ==> name="bootcmd_mmc0" value="setenv devnum 0; run mmc_boot"
INSERT: table 8ffb2a3c, filled 85/521 rv 8df4c268 ==> name="bootcmd_legacy_mmc0" value="setenv mmcdev 0; setenv"
INSERT: table 8ffb2a3c, filled 86/521 rv 8df4ca88 ==> name="bootcmd_mmc1" value="setenv devnum 1; run mmc_boot"
INSERT: table 8ffb2a3c, filled 87/521 rv 8df4d2a8 ==> name="bootcmd_legacy_mmc1" value="setenv mmcdev 1; setenv"
INSERT: table 8ffb2a3c, filled 88/521 rv 8df4dac8 ==> name="bootcmd_nand" value="run nandboot"
INSERT: table 8ffb2a3c, filled 89/521 rv 8df4e2e8 ==> name="bootcmd_pxe" value="dhcp; if pxe get; then pxe boot"
INSERT: table 8ffb2a3c, filled 90/521 rv 8df4c254 ==> name="bootcmd_dhcp" value="if dhcp ${scriptaddr} ${boot_s"
INSERT: table 8ffb2a3c, filled 91/521 rv 8df4cf4c ==> name="distro_bootcmd" value="for target in ${boot_targets"
INSERT: free(data = 8df49c18)
INSERT: done
Initial value for argc=3
Final value for argc=3
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080aa5d (relocated to 8ff73a5d)
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8081084d (relocated to 8ff7984d)
initcall: 8080a94f (relocated to 8ff7394f)
initcall: 8080d6e9 (relocated to 8ff766e9)
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
initcall: 80801441 (relocated to 8ff6a441)
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 80800fa1 (relocated to 8ff69fa1)
initcall: 8080a945 (relocated to 8ff73945)
initcall: 8080a92d (relocated to 8ff7392d)
initcall: 808003c1 (relocated to 8ff693c1)
<ethaddr> not set. Validating first E-fuse MAC
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
initcall: 8080a53b (relocated to 8ff7353b)
initcall: 8080a919 (relocated to 8ff73919)
Net:   Initial value for argc=3
Final value for argc=3
uclass_find_device_by_seq: 0 -1
uclass_find_device_by_seq: 0 0
   - -1 -1
   - -1 -1
   - -1 -1
   - -1 -1
   - -1 -1
   - -1 -1
   - not found
fdtdec_get_int: clock-frequency: (not found)
OF: ** translation for device timer@48040000 **
OF: bus is default (na=1, ns=1) on ocp
OF: translating address: 00000448
OF: parent bus is default (na=1, ns=1) on 
OF: no ranges, 1:1 translation
OF: parent translation for: 00000000
OF: with offset: 1208221696
OF: one level translation: 00000448
OF: reached root node
cpsw connected to Generic PHY
cpsw
initcall: 8080a901 (relocated to 8ff73901)
Initial value for argc=3
Final value for argc=3
Initial value for argc=3
Final value for argc=3
fdtdec_get_config_int: bootdelay
### main_loop entered: bootdelay=2

fdtdec_get_config_int: kernel-offset
fdtdec_get_config_int: rootdisk-offset
fdtdec_get_config_string: bootcmd
fdtdec_get_config_int: bootsecure
### main_loop: bootcmd="if test ${boot_fit} -eq 1; then run update_to_fit;fi;run findfdt; run init_console; run"
Hit any key to stop autoboot:  0 
=> mmc list
OMAP SD/MMC: 0
=> mmc dev 0
mmc_reinit: 1, time 71 (retries 0)
Command failed, result=1
=> mmc part
mmc_reinit: 1, time 71 (retries 0)
Command failed, result=1

Any suggestion/pointer ?

  • Hi ,

    I made some progress as to, I added below define in include/configs/test_board.h file

    #define CONFIG_GENERIC_MMC

    And now I see weird behavior.

    On the command prompt if I keep trying mmc part command after a while it starts working.


    fdtdec_get_config_int: kernel-offset
    fdtdec_get_config_int: rootdisk-offset
    fdtdec_get_config_string: bootcmd
    fdtdec_get_config_int: bootsecure
    ### main_loop: bootcmd="if test ${boot_fit} -eq 1; then run update_to_fit;fi;run findfdt; run init_console; run"
    Hit any key to stop autoboot:  0 
    =>  mmc part
    mmc_reinit: 1, time 71 (retries 0)
    Command failed, result=1
    => 
    mmc_reinit: 1, time 71 (retries 0)
    Command failed, result=1
    => 
    mmc_reinit: 1, time 71 (retries 0)
    Command failed, result=1
    => 
    mmc_reinit: 1, time 72 (retries 0)
    Command failed, result=1
    => 
    mmc_reinit: 1, time 72 (retries 0)
    Command failed, result=1
    => 
    mmc_reinit: 1, time 72 (retries 0)
    Command failed, result=1
    => 
    part_init: try 'EFI': ret=0
    mmc_reinit: 0, time 78 (retries 0)
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    GPT: first_usable_lba: 22 last_usable_lba: 727FDE last lba: 728000
    alloc_read_gpt_entries: count = 128 * 128 = 16384
    part_print_efi: gpt-entry at 8df50700
    Part    Start LBA       End LBA         Name
            Attributes
            Type GUID
            Partition GUID
      1     0x00000100      0x000001fe      "spl1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   e96f524b-592f-4646-b948-b9248652f65e
      2     0x00000200      0x000002fe      "spl2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   507b2bb1-59fb-41e6-890c-139cc3cfa4fe
      3     0x00000300      0x00000400      "spl3"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   234a7c9a-2d92-4357-9e7e-4253bc057fab
      4     0x00000800      0x00000fff      "uboot1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ec29bdd0-78a2-4e00-a11a-f3cae4244482
      5     0x00001000      0x000017ff      "uboot2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   eb7c63a3-1798-44e1-b8bb-cb683a2cb6d4
      6     0x00001800      0x00001fff      "uboot_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   a521eedc-7bef-4927-83b6-5cb0ac98ab1c
      7     0x00002000      0x000027ff      "uboot_env"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2efd8efa-5647-468f-8cb9-ee465290dd34
      8     0x00002800      0x00004fff      "kernel1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   831a6e2f-4255-426f-98c9-2e760f4e5855
      9     0x00005000      0x000077ff      "kernel2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   4e322641-e1ac-4e4f-946d-60938055a1ae
     10     0x00007800      0x00009fff      "kernel_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   04293f78-bd13-4445-8710-044ba8b17b0a
     11     0x0000a000      0x0000a7ff      "devicetree1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   06a41329-e86d-4872-8466-a26f5fb79f26
     12     0x0000a800      0x0000afff      "devicetree2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   195ebad7-8e46-4506-ac68-91141bbb4917
     13     0x0000b000      0x0000b7ff      "devicetree_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ab066011-d3bd-4e04-9810-3e05465817a7
     14     0x0000b800      0x0000dfff      "rawbuffer"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2c04994a-80e9-4517-96c2-6c8d0a55ce8a
     15     0x0000e000      0x00107fff      "rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   f69b0675-c307-4c6c-9e21-e77fa98e236a
     16     0x00108000      0x00201fff      "rootfs2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   4d99cab6-17c2-49de-9de0-9ee49747bec7
     17     0x00202000      0x00233fff      "recovery_rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2eba7795-8c21-4b62-963c-b96b144c7046
     18     0x00234000      0x00251fff      "database"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   bd610b68-d7bb-4ee9-860a-ccad5e056116
     19     0x00252000      0x00451fff      "firmware"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   dec75968-afac-49d2-9dea-e252d553d42c
     20     0x00452000      0x005157ff      "misc"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ad65592a-44c5-4eec-90b6-1b951ad33213
     21     0x00515800      0x005277ff      "linuxlog"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   99cf48e0-17bd-411e-88db-7a9715e2cb12
     22     0x00527800      0x007277ff      "logging"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   73e1fc98-ff61-477c-8fbe-bc94bc80b4f1
    is_pte_valid: Found an unused PTE GUID at 0x8DF51200
    => 
    
    Partition Map for MMC device 0  --   Partition Type: EFI
    
    GPT: first_usable_lba: 22 last_usable_lba: 727FDE last lba: 728000
    alloc_read_gpt_entries: count = 128 * 128 = 16384
    part_print_efi: gpt-entry at 8df50700
    Part    Start LBA       End LBA         Name
            Attributes
            Type GUID
            Partition GUID
      1     0x00000100      0x000001fe      "spl1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   e96f524b-592f-4646-b948-b9248652f65e
      2     0x00000200      0x000002fe      "spl2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   507b2bb1-59fb-41e6-890c-139cc3cfa4fe
      3     0x00000300      0x00000400      "spl3"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   234a7c9a-2d92-4357-9e7e-4253bc057fab
      4     0x00000800      0x00000fff      "uboot1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ec29bdd0-78a2-4e00-a11a-f3cae4244482
      5     0x00001000      0x000017ff      "uboot2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   eb7c63a3-1798-44e1-b8bb-cb683a2cb6d4
      6     0x00001800      0x00001fff      "uboot_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   a521eedc-7bef-4927-83b6-5cb0ac98ab1c
      7     0x00002000      0x000027ff      "uboot_env"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2efd8efa-5647-468f-8cb9-ee465290dd34
      8     0x00002800      0x00004fff      "kernel1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   831a6e2f-4255-426f-98c9-2e760f4e5855
      9     0x00005000      0x000077ff      "kernel2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   4e322641-e1ac-4e4f-946d-60938055a1ae
     10     0x00007800      0x00009fff      "kernel_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   04293f78-bd13-4445-8710-044ba8b17b0a
     11     0x0000a000      0x0000a7ff      "devicetree1"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   06a41329-e86d-4872-8466-a26f5fb79f26
     12     0x0000a800      0x0000afff      "devicetree2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   195ebad7-8e46-4506-ac68-91141bbb4917
     13     0x0000b000      0x0000b7ff      "devicetree_recovery"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ab066011-d3bd-4e04-9810-3e05465817a7
     14     0x0000b800      0x0000dfff      "rawbuffer"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2c04994a-80e9-4517-96c2-6c8d0a55ce8a
     15     0x0000e000      0x00107fff      "rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   f69b0675-c307-4c6c-9e21-e77fa98e236a
     16     0x00108000      0x00201fff      "rootfs2"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   4d99cab6-17c2-49de-9de0-9ee49747bec7
     17     0x00202000      0x00233fff      "recovery_rootfs"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   2eba7795-8c21-4b62-963c-b96b144c7046
     18     0x00234000      0x00251fff      "database"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   bd610b68-d7bb-4ee9-860a-ccad5e056116
     19     0x00252000      0x00451fff      "firmware"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   dec75968-afac-49d2-9dea-e252d553d42c
     20     0x00452000      0x005157ff      "misc"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   ad65592a-44c5-4eec-90b6-1b951ad33213
     21     0x00515800      0x005277ff      "linuxlog"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   99cf48e0-17bd-411e-88db-7a9715e2cb12
     22     0x00527800      0x007277ff      "logging"
            attrs:  0x0000000000000000
            type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
            guid:   73e1fc98-ff61-477c-8fbe-bc94bc80b4f1
    is_pte_valid: Found an unused PTE GUID at 0x8DF51200
    => 
    

    These suggests that there is some issue with probe/init . I don't know what I am missing.

    Any suggestion/pointer ?

    Thanks,

    Regards,

    Ankur

  • Hi Ankur

    can you send us the env parameters also that might help here.  To see how things are setup.

    Also i assume you are using the same dts files?

    Mohsen

  • Hi Mohsen,

    I have attached three files here.est_board_defconfig,

    1. test_board.h and
    2. test_board.dts file.

    They are not completely ported as i have just started porting.

    Thank you,

    Regards,

    Ankur

    8686.test_board.h

    CONFIG_ARM=y
    CONFIG_AM33XX=y
    CONFIG_TARGET_TEST_BOARD=y
    CONFIG_SPL_STACK_R_ADDR=0x82000000
    CONFIG_DEFAULT_DEVICE_TREE="test_board"
    CONFIG_DISTRO_DEFAULTS=y
    CONFIG_FIT=y
    CONFIG_OF_BOARD_SETUP=y
    CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
    # CONFIG_SPL_LOAD_FIT is not set
    CONFIG_SYS_CONSOLE_INFO_QUIET=y
    CONFIG_VERSION_VARIABLE=y
    CONFIG_SPL=y
    CONFIG_SPL_STACK_R=y
    CONFIG_SPL_ETH_SUPPORT=y
    CONFIG_SPL_MTD_SUPPORT=y
    CONFIG_SPL_NET_SUPPORT=y
    CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL"
    # CONFIG_SPL_OS_BOOT is not set
    # CONFIG_CMD_IMLS is not set
    CONFIG_CMD_ASKENV=y
    # CONFIG_CMD_FLASH is not set
    CONFIG_CMD_MMC=y
    CONFIG_CMD_SF=y
    CONFIG_CMD_SPI=y
    # CONFIG_CMD_I2C is not set
    # CONFIG_CMD_USB is not set
    # CONFIG_CMD_DFU is not set
    CONFIG_CMD_GPIO=y
    # CONFIG_CMD_SETEXPR is not set
    CONFIG_CMD_EXT4_WRITE=y
    CONFIG_OF_CONTROL=y
    CONFIG_OF_LIST="test_board"
    # CONFIG_BLK is not set
    CONFIG_DM_I2C=y
    CONFIG_MISC=y
    CONFIG_DM_MMC=y
    # CONFIG_DM_MMC_OPS is not set
    CONFIG_DM_NAND=y
    CONFIG_SPI_FLASH=y
    CONFIG_SPI_FLASH_WINBOND=y
    CONFIG_SYS_NS16550=y
    CONFIG_TIMER=y
    CONFIG_OMAP_TIMER=y
    # CONFIG_USB is not set
    CONFIG_USE_TINY_PRINTF=y
    CONFIG_RSA=y
    CONFIG_SPL_OF_LIBFDT=y
    # CONFIG_SPL_YMODEM_SUPPORT is not set
    CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=800
    # CONFIG_TI_I2C_BOARD_DETECT is not set
    
    /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
    	model = "TI AM335x EVM";
    	compatible = "ti,am335x-evm", "ti,am33xx";
    
    	chosen {
    		stdout-path = &uart0;
    		tick-timer = &timer2;
    	};
    
    	memory {
    		device_type = "memory";
    		reg = <0x80000000 0x10000000>; /* 256 MB */
    	};
    
    	vmmcsd_fixed: fixedregulator@0 {
    		compatible = "regulator-fixed";
    		regulator-name = "vmmcsd_fixed";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
    		regulator-boot-on;
    	};
    
    	lis3_reg: fixedregulator@1 {
    		compatible = "regulator-fixed";
    		regulator-name = "lis3_reg";
    		regulator-boot-on;
    	};
    
    	backlight {
    		compatible = "pwm-backlight";
    		pwms = <&ecap0 0 50000 0>;
    		brightness-levels = <0 51 53 56 62 75 101 152 255>;
    		default-brightness-level = <8>;
    	};
    
    };
    
    &am33xx_pinmux {
    	pinctrl-names = "default";
    	pinctrl-0 = <&clkout2_pin>;
    
    	i2c0_pins: pinmux_i2c0_pins {
    		pinctrl-single,pins = <
    			0x188 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
    			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
    		>;
    	};
    
    	i2c1_pins: pinmux_i2c1_pins {
    		pinctrl-single,pins = <
    			0x158 (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_d1.i2c1_sda */
    			0x15c (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_cs0.i2c1_scl */
    		>;
    	};
    
    	uart0_pins: pinmux_uart0_pins {
    		pinctrl-single,pins = <
    			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
    			0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
    		>;
    	};
    
    	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 */
    		>;
    	};
    
    	clkout2_pin: pinmux_clkout2_pin {
    		pinctrl-single,pins = <
    			0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3)	/* xdma_event_intr1.clkout2 */
    		>;
    	};
    
    	emmc_pins: pinmux_emmc_pins {
    		pinctrl-single,pins = <
    			0x080 (PIN_INPUT_PULLUP | MUX_MODE2)    /* gpmc_csn1.mmc1_clk */
    			0x084 (PIN_INPUT_PULLUP | MUX_MODE2)    /* gpmc_csn2.mmc1_cmd */
    			0x000 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad0.mmc1_dat0 */
    			0x004 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad1.mmc1_dat1 */
    			0x008 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad2.mmc1_dat2 */
    			0x00c (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad3.mmc1_dat3 */
    			0x010 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad4.mmc1_dat4 */
    			0x014 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad5.mmc1_dat5 */
    			0x018 (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad5.mmc1_dat6 */
    			0x01c (PIN_INPUT_PULLUP | MUX_MODE1)    /* gpmc_ad5.mmc1_dat7 */
    		>;
    	};
    
    	ecap0_pins: backlight_pins {
    		pinctrl-single,pins = <
    			0x164 0x0	/* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
    		>;
    	};
    
    	cpsw_default: cpsw_default {
    		pinctrl-single,pins = <
    			/* Slave 1 */
    			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
    			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd3.rgmii1_td3 */
    			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd2.rgmii1_td2 */
    			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
    			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
    			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rgmii1_rclk */
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd3.rgmii1_rd3 */
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd2.rgmii1_rd2 */
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
    		>;
    	};
    
    	cpsw_sleep: cpsw_sleep {
    		pinctrl-single,pins = <
    			/* Slave 1 reset value */
    			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	davinci_mdio_default: davinci_mdio_default {
    		pinctrl-single,pins = <
    			/* MDIO */
    			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
    			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
    		>;
    	};
    
    	davinci_mdio_sleep: davinci_mdio_sleep {
    		pinctrl-single,pins = <
    			/* MDIO reset value */
    			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    };
    
    &uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart0_pins>;
    
    	status = "okay";
    };
    
    &uart1 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart1_pins>;
    
    	status = "okay";
    };
    
    &i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c0_pins>;
    
    	status = "okay";
    	clock-frequency = <400000>;
    
    	tps: tps@2d {
    		reg = <0x2d>;
    	};
    };
    
    &usb {
    	status = "okay";
    };
    
    &usb_ctrl_mod {
    	status = "okay";
    };
    
    &usb0_phy {
    	status = "okay";
    };
    
    &usb1_phy {
    	status = "okay";
    };
    
    &usb0 {
    	status = "okay";
    };
    
    &usb1 {
    	status = "okay";
    	dr_mode = "host";
    };
    
    &cppi41dma  {
    	status = "okay";
    };
    
    &i2c1 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c1_pins>;
    
    	status = "okay";
    	clock-frequency = <100000>;
    
    	lis331dlh: lis331dlh@18 {
    		compatible = "st,lis331dlh", "st,lis3lv02d";
    		reg = <0x18>;
    		Vdd-supply = <&lis3_reg>;
    		Vdd_IO-supply = <&lis3_reg>;
    
    		st,click-single-x;
    		st,click-single-y;
    		st,click-single-z;
    		st,click-thresh-x = <10>;
    		st,click-thresh-y = <10>;
    		st,click-thresh-z = <10>;
    		st,irq1-click;
    		st,irq2-click;
    		st,wakeup-x-lo;
    		st,wakeup-x-hi;
    		st,wakeup-y-lo;
    		st,wakeup-y-hi;
    		st,wakeup-z-lo;
    		st,wakeup-z-hi;
    		st,min-limit-x = <120>;
    		st,min-limit-y = <120>;
    		st,min-limit-z = <140>;
    		st,max-limit-x = <550>;
    		st,max-limit-y = <550>;
    		st,max-limit-z = <750>;
    	};
    
    	tsl2550: tsl2550@39 {
    		compatible = "taos,tsl2550";
    		reg = <0x39>;
    	};
    
    	tmp275: tmp275@48 {
    		compatible = "ti,tmp275";
    		reg = <0x48>;
    	};
    };
    
    &mmc2 {
    	vmmc-supply = <&vmmcsd_fixed>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&emmc_pins>;
    	bus-width = <8>;
    	status = "okay";
    };
    
    &elm {
    	status = "okay";
    };
    
    &epwmss0 {
    	status = "okay";
    
    	ecap0: ecap@48300100 {
    		status = "okay";
    		pinctrl-names = "default";
    		pinctrl-0 = <&ecap0_pins>;
    	};
    };
    
    &mac {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&cpsw_default>;
    	pinctrl-1 = <&cpsw_sleep>;
    	status = "okay";
    };
    
    &davinci_mdio {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&davinci_mdio_default>;
    	pinctrl-1 = <&davinci_mdio_sleep>;
    	status = "okay";
    };
    
    &cpsw_emac0 {
    	phy_id = <&davinci_mdio>, <0>;
    	phy-mode = "rgmii-txid";
    };
    
    &cpsw_emac1 {
    	phy_id = <&davinci_mdio>, <1>;
    	phy-mode = "rgmii-txid";
    };
    
    
    
    &tscadc {
    	status = "okay";
    	tsc {
    		ti,wires = <4>;
    		ti,x-plate-resistance = <200>;
    		ti,coordinate-readouts = <5>;
    		ti,wire-config = <0x00 0x11 0x22 0x33>;
    		ti,charge-delay = <0x400>;
    	};
    
    	adc {
    		ti,adc-channels = <4 5 6 7>;
    	};
    };
    
    &edma {
    	ti,edma-xbar-event-map = /bits/ 16 <1 12
    					    2 13>;
    };
    
    &sham {
    	status = "okay";
    };
    
    &aes {
    	status = "okay";
    };
    

  • Hi Mohsen,

    I added printfs and found out that I am getting error in following function call

    mmc_startup()->mmc_select_bus_width()->mmc_send_ext_csd()->mmc_send_ext_csd() --> omap_hsmmc_send_cmd()

    I get following printfs 

    => mmc rescan
    MMC:ANKUR--bfr- mmc_start_init() 
    fdtdec_get_int: vmmc-supply: 0x2b (43)
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x18000, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x18000, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:----Ankur-- err=0
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:--ANKUR- mmc_complete_op_cond(), 0
    MMC:mmc_startup()------1
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:mmc_startup()------2
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:mmc_startup()------3
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:mmc_startup()------4
    MMC:mmc_startup()------5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x3, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:mmc_startup()------6
    MMC:mmc_select_bus_width()------0
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x21, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    MMC:mmc_select_bus_width()------1
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x3, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x1, IE_CTO=0x10000  
    **OMAP_MMC:--ANKUR---5
    **OMAP_MMC:--ANKUR---1
    **OMAP_MMC:--ANKUR---2
    **OMAP_MMC:--ANKUR---3
    **OMAP_MMC:--ANKUR---4            ----------------------------------> REF1
    **OMAP_MMC:--ANKUR--- mmc_stat = 0x408021, IE_CTO=0x10000  ------------> REF2
    MMC:mmc_select_bus_width()------2, err -1                                            
    MMC:mmc_startup()------6c err : -1
    MMC:--ANKUR- mmc_startup(), -1
    mmc_reinit: -1, time 418 (retries 0)
    Command failed, result=1
    => 
    

    above REF1 and REF2 is from following code

    printf("**OMAP_MMC:--ANKUR---3\n");
    	do {
    		mmc_stat = readl(&mmc_base->stat);
    		if (get_timer(0) - start > MAX_RETRY_MS) {
    			printf("%s : timeout: No status update\n", __func__);
    			return -ETIMEDOUT;
    		}
    	} while (!mmc_stat);
    
    	printf("**OMAP_MMC:--ANKUR---4\n"); --------------------------------------------REF1
    	printf("**OMAP_MMC:--ANKUR--- mmc_stat = 0x%x, IE_CTO=0x%x  \n", mmc_stat,IE_CTO ); ----> REF2
    	if ((mmc_stat & IE_CTO) != 0) {
    		mmc_reset_controller_fsm(mmc_base, SYSCTL_SRC);
    		return -ETIMEDOUT;
    	} else if ((mmc_stat & ERRI_MASK) != 0) --------------------------------------------> REF3
    		return -1;                                         
    
    	if (mmc_stat & CC_MASK) {

    It seems REF3 above is the place where omap_hsmmc_send_cmd() function of  omap_hsmmc.c is returning error.

    I looked up technical reference manual and it seems SD_STAT has DEB(bit 22, Data End bit Error) set to 1 , so Data end bit error.

    Any suggestion how to get around this error

    Thanks,

    Regards,

    Ankur

  • After the customer started with a clean uboot then things started to work. Will close this one and if other issues come up then they will open another post.