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/AM3359: Processor Booting Issue - Unable to read partition table.

Part Number: AM3359
Other Parts Discussed in Thread: AM3352, TPS65910

Tool/software: Linux

We are working on a board based on AM3359 processor.

SDK we are using is ti-processor-sdk-linux-am335x-evm-05.00.00.15.

We are trying to boot our board using SD Card. Below is the log of its booting.

 
U-Boot SPL 2018.01-00228-g4579b13-dirty (Feb 27 2019 - 17:01:19)
Trying to boot from MMC1
*** Warning - bad CRC, using default environment
 
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img
bootlist count 9,5
 
 
U-Boot 2018.01-00228-g4579b13-dirty (Feb 27 2019 - 17:01:19 +0530)
 
CPU  : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM:  256 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment
 
<ethaddr> not set. Validating first E-fuse MAC
Net:   Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Hit any key to stop autoboot:  1
 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3842560 bytes read in 772 ms (4.7 MiB/s)
38359 bytes read in 26 ms (1.4 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8df01000, end 8df0d5d6 ... OK
 
Starting kernel ...
 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.40-g4796173fc5 (sbr@sbr-Lenovo-B50-80) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 PREEMPT Wed Feb 27 15:47:15 IST 2019
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x EVM-SK
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x8a800000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=000b3858-02 rw rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 197272K/262144K available (8192K kernel code, 318K rwdata, 2432K rodata, 1024K init, 275K bss, 15720K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0d4fb48   ( 319 kB)
[    0.000000]        .bss : 0xc0d4fb48 - 0xc0d94924   ( 276 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000042] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000056] OMAP clocksource: timer1 at 24000000 Hz
[    0.000286] timer_probe: no matching timers found
[    0.000543] Console: colour dummy device 80x30
[    0.000576] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.000586] This ensures that you still see kernel messages. Please
[    0.000594] update your kernel commandline.
[    0.000632] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.118749] pid_max: default: 32768 minimum: 301
[    0.118985] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119005] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.119950] CPU: Testing write buffer coherency: ok
[    0.120770] Setting up static identity map for 0x80100000 - 0x80100060
[    0.120954] Hierarchical SRCU implementation.
[    0.121375] EFI services will not be available.
[    0.123135] devtmpfs: initialized
[    0.134034] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
[    0.134571] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.134936] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.134971] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.139367] pinctrl core: initialized pinctrl subsystem
[    0.140226] DMI not present or invalid.
[    0.140710] NET: Registered protocol family 16
[    0.143475] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.161513] omap_hwmod: debugss: _wait_target_disable failed
[    0.216130] cpuidle: using governor ladder
[    0.216182] cpuidle: using governor menu
[    0.216241]
[    0.216241]
[    0.216241] ..................................................................................................OMAP GPMC Invoked
[    0.216241]
[    0.221940] OMAP GPIO hardware version 0.1
[    0.232966] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_gpmc_pins, deferring probe
[    0.236073] No ATAGs?
[    0.236092] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.253586] edma 49000000.edma: TI EDMA DMA engine driver
[    0.258259] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.258444] media: Linux media interface: v0.10
[    0.258500] Linux video capture interface: v2.00
[    0.258639] pps_core: LinuxPPS API ver. 1 registered
[    0.258651] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.258681] PTP clock support registered
[    0.258974] EDAC MC: Ver: 3.0.0
[    0.259510] dmi: Firmware registration failed.
[    0.260008] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.260432] Advanced Linux Sound Architecture Driver Initialized.
[    0.261807] clocksource: Switched to clocksource timer1
[    0.272915] NET: Registered protocol family 2
[    0.273809] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.273856] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.273893] TCP: Hash tables configured (established 2048 bind 2048)
[    0.274007] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.274032] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.274211] NET: Registered protocol family 1
[    0.274721] RPC: Registered named UNIX socket transport module.
[    0.274738] RPC: Registered udp transport module.
[    0.274748] RPC: Registered tcp transport module.
[    0.274757] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.275835] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.275978] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.277839] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.283766] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.284641] NFS: Registering the id_resolver key type
[    0.284697] Key type id_resolver registered
[    0.284708] Key type id_legacy registered
[    0.284764] ntfs: driver 2.1.32 [Flags: R/O].
[    0.287181] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.287204] io scheduler noop registered
[    0.287215] io scheduler deadline registered
[    0.287491] io scheduler cfq registered (default)
[    0.287505] io scheduler mq-deadline registered
[    0.287516] io scheduler kyber registered
[    0.289272] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.293175] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.358852] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[    0.362823] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[    1.016502] console [ttyS0] enabled
[    1.021241] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
[    1.032421] omap_rng 48310000.rng: Random Number Generator ver. 20
[    1.040812] panel panel: pins are not configured
[    1.045920] OF: graph: no port node found in /ocp/lcdc@4830e000
[    1.052177] OF: graph: no port node found in /ocp/lcdc@4830e000
[    1.058656] OF: graph: no port node found in /ocp/lcdc@4830e000
[    1.064680] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.071325] [drm] No driver support for vblank timestamp query.
[    1.124232] Console: switching to colour frame buffer device 60x34
[    1.148103] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.154384] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    1.173791] brd: module loaded
[    1.185297] loop: module loaded
[    1.193715] libphy: Fixed MDIO Bus: probed
[    1.271872] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.279582] davinci_mdio 4a101000.mdio: no live phy, scanning all
[    1.286269] davinci_mdio: probe of 4a101000.mdio failed with error -5
[    1.293661] cpsw 4a100000.ethernet: Detected MACID = 2c:6b:7d:4a:43:79
[    1.300389] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    1.306843] cpsw 4a100000.ethernet: ALE Table size 1024
[    1.312164] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[    1.320372] cpsw 4a100000.ethernet: cpsw: Detected MACID = 2c:6b:7d:4a:43:7b
[    1.329325] i2c /dev entries driver
[    1.333531] IR NEC protocol handler initialized
[    1.338129] IR RC5(x/sz) protocol handler initialized
[    1.343247] IR RC6 protocol handler initialized
[    1.347799] IR JVC protocol handler initialized
[    1.352378] IR Sony protocol handler initialized
[    1.357017] IR SANYO protocol handler initialized
[    1.361740] IR Sharp protocol handler initialized
[    1.366481] IR MCE Keyboard/mouse protocol handler initialized
[    1.372366] IR XMP protocol handler initialized
[    1.378888] cpuidle: enable-method property 'ti,am3352' found operations
[    1.386177] sdhci: Secure Digital Host Controller Interface driver
[    1.392458] sdhci: Copyright(c) Pierre Ossman
[    1.397513] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.404126] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.410744] ledtrig-cpu: registered to indicate activity on CPUs
[    1.420902] NET: Registered protocol family 10
[    1.427341] Segment Routing with IPv6
[    1.431124] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.438076] NET: Registered protocol family 17
[    1.443029] Key type dns_resolver registered
[    1.447583] omap_voltage_late_init: Voltage driver support not added
[    1.460718] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    1.466096] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    1.502057] tps65910 0-002d: No interrupt support, no core IRQ
[    1.510272] vrtc: supplied by vbat
[    1.517682] vio: supplied by vbat
[    1.522678] vdd1: supplied by vbat
[    1.528070] vdd2: supplied by vbat
[    1.532049] random: fast init done
[    1.538501] vdig1: supplied by vbat
[    1.543553] vdig2: supplied by vbat
[    1.548599] vpll: supplied by vbat
[    1.553558] vdac: supplied by vbat
[    1.558476] vaux1: supplied by vbat
[    1.563511] vaux2: supplied by vbat
[    1.568561] vaux33: supplied by vbat
[    1.573690] vmmc: supplied by vbat
[    1.578610] vbb: supplied by vbat
[    1.583852] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.591772] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.704032] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.713450] hctosys: unable to open rtc device (rtc0)
[    1.714369] lis3_reg: disabling
[    1.719792] ALSA device list:
[    1.719801]   No soundcards found.
[    1.730765] Waiting for root device PARTUUID=000b3858-02...
[    1.738738] mmc0: new high speed SDHC card at address 21eb
[    1.748408] mmcblk0: mmc0:21eb APPSD 15.0 GiB
[    1.778734] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00
[    1.933396] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00
[    1.942981] mmcblk0: retrying using single block read
[    1.976095] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
[    1.985389] print_req_error: I/O error, dev mmcblk0, sector 0
[    1.991495] mmcblk0: error -84 transferring data, sector 1, nr 7, cmd response 0x900, card status 0x0
[    2.000777] print_req_error: I/O error, dev mmcblk0, sector 1
[    2.006915] mmcblk0: error -84 transferring data, sector 2, nr 6, cmd response 0x900, card status 0x0
[    2.016205] print_req_error: I/O error, dev mmcblk0, sector 2
[    2.022302] mmcblk0: error -84 transferring data, sector 3, nr 5, cmd response 0x900, card status 0x0
[    2.031572] print_req_error: I/O error, dev mmcblk0, sector 3
[    2.037696] mmcblk0: error -84 transferring data, sector 4, nr 4, cmd response 0x900, card status 0x0
[    2.046983] print_req_error: I/O error, dev mmcblk0, sector 4
[    2.053096] mmcblk0: error -84 transferring data, sector 5, nr 3, cmd response 0x900, card status 0x0
[    2.062394] print_req_error: I/O error, dev mmcblk0, sector 5
[    2.068475] mmcblk0: error -84 transferring data, sector 6, nr 2, cmd response 0x900, card status 0x0
[    2.077770] print_req_error: I/O error, dev mmcblk0, sector 6
[    2.083872] mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response 0x900, card status 0x0
[    2.093165] print_req_error: I/O error, dev mmcblk0, sector 7
[    2.098952] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[    2.106624] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0xb00
[    2.116096] mmcblk0: retrying using single block read
[    2.121476] mmcblk0: error -84 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
[    2.130786] print_req_error: I/O error, dev mmcblk0, sector 0
[    2.136891] mmcblk0: error -84 transferring data, sector 1, nr 7, cmd response 0x900, card status 0x0
[    2.146195] print_req_error: I/O error, dev mmcblk0, sector 1
[    2.152307] mmcblk0: error -84 transferring data, sector 2, nr 6, cmd response 0x900, card status 0x0
[    2.162230] mmcblk0: error -84 transferring data, sector 3, nr 5, cmd response 0x900, card status 0x0
[    2.171907] mmcblk0: error -84 transferring data, sector 4, nr 4, cmd response 0x900, card status 0x0
[    2.181476] mmcblk0: error -84 transferring data, sector 5, nr 3, cmd response 0x900, card status 0x0
[    2.191105] mmcblk0: error -84 transferring data, sector 6, nr 2, cmd response 0x900, card status 0x0
[    2.200729] mmcblk0: error -84 transferring data, sector 7, nr 1, cmd response 0x900, card status 0x0
[    2.210022] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[    2.217238]  mmcblk0: unable to read partition table

After this we analyzed this booting Issue with CCS and JTAG by loading am335x-boot.dss.

Report:

CONTROL: device_id = 0x2b94402e
  * AM335x family
  * Silicon Revision 2.1

PRM_DEVICE: PRM_RSTST = 0x00000001
  * Bit 0 : GLOBAL_COLD_RST

CONTROL: control_status = 0x00400337
  * SYSBOOT[15:14] = 01b (24 MHz)
  * SYSBOOT[11:10] = 00b No GPMC CS0 addr/data muxing
  * Device Type = General Purpose (GP)
  * SYSBOOT[7:6] = 00b MII (EMAC boot modes only)
  * SYSBOOT[5] = 1 CLKOUT1 enabled
  * Boot Sequence : MMC0 -> SPI0 -> UART0 -> USB0

ROM: Current tracing vector, word 1 = 0x0000907f
  * Bit 0  : [General] Passed the public reset vector
  * Bit 1  : [General] Entered main function
  * Bit 2  : [General] Running after the cold reset
  * Bit 3  : [Boot] Main booting routine entered
  * Bit 4  : [Memory Boot] Memory booting started
  * Bit 5  : [Peripheral Boot] Peripheral booting started
  * Bit 6  : [Boot] Booting loop reached last device
  * Bit 12 : [Peripheral Boot] Device initialized
  * Bit 15 : [Peripheral Boot] Peripheral booting failed

ROM: Current tracing vector, word 1 = 0x00001000
  * Bit 12 : [Memory Boot] Memory booting trial 0

ROM: Current tracing vector, word 1 = 0x00111000
  * Bit 12 : Memory booting device SPI
  * Bit 16 : Peripheral booting device UART0
  * Bit 20 : [Peripheral Boot] Peripheral booting device USB

ROM: Current copy of PRM_RSTST = 0x00000000

ROM: Cold reset tracing vector, word 1 = 0x00000000

ROM: Cold reset tracing vector, word 1 = 0x00000000

ROM: Cold reset tracing vector, word 1 = 0x00000001
  * Bit 0  : [Memory Boot] Memory booting device NULL

Cortex A8 Program Counter = 0x000233ac

ROM Exception Vectors
  * 0x4030CE04 Undefined
  * 0x4030CE08 SWI
  * 0x4030CE0C Pre-fetch abort
  * 0x4030CE10 Data abort
  * 0x4030CE14 Unused
  * 0x4030CE18 IRQ
  * 0x4030CE1C FIQ

ROM Dead Loops
  * 0x00020080 Undefined exception default handler
  * 0x00020084 SWI exception default handler
  * 0x00020088 Pre-fetch abort exception default handler
  * 0x0002008C Data exception default handler
  * 0x00020090 Unused exception default handler
  * 0x00020094 IRQ exception default handler
  * 0x00020098 FIQ exception default handler
  * 0x0002009C Validation test PASS
  * 0x000200A0 Validation test FAIL
  * 0x000200A4 Reserved
  * 0x000200A8 Image not executed or returned
  * 0x000200AC Reserved
  * 0x000200B0 Reserved
  * 0x000200B4 Reserved
  * 0x000200B8 Reserved
  * 0x000200BC Reserved

Now Please somebody tell me what is the issue? Is it related to hardware or software?

And also suggest us if any changes to be done.

Regards

Vamsi