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/AM3358: Kernel start issue

Part Number: AM3358
Other Parts Discussed in Thread: AM3352, TPS65217

Tool/software: Linux

Hello,

I have had a custom board designed based upon the BeagleBone Black but without many of the bulky components for a project I am working on. I have been trying to bring up the board and flash the eMMC via the SD card but I have not been successful thus far. When the board tries to boot it will get stuck in an endless cycle. Below is the output I am getting during the boot process and once it gets to the end it restarts the process all over. Could anyone give me some insight as to what might be the problem? I am new to the world of embedded systems and hardware bring up, so bare with me.

================================================================================
Starting eMMC Flasher from microSD media
Version: [1.20170427: u-boot v2017.05-rc2...]
================================================================================

================================================================================
Prepare environment for flashing
Starting at Sat Jan  1 00:02:05 UTC 2000
----------------------------------------
==> Giving system time to stablize...
5 4 3 2 1
==> Preparing /tmp
==> Preparing sysctl
==> sysctl: vm.min_free_kbytes=[2657]
==> sysctl: setting: [sysctl -w vm.min_free_kbytes=16384]
vm.min_free_kbytes = 16384
----------------------------------------
==> Determining root drive
==> console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
----------------------------------------
==> root_drive=[/dev/mmcblk0p1]
====> Root drive identified at [/dev/mmcblk0p1]
==> Boot Drive [/dev/mmcblk0p1]
==> Figuring out Source and Destination devices
====> Source identified: [/dev/mmcblk0]
====> Destination identified: [/dev/mmcblk1]
==> Figuring out machine
====> Machine is TI_AM335x_BeagleBone
====> Machine is compatible with BeagleBone Black
================================================================================
5 4 3 2 1

========================================
Checking for Valid bbb-eeprom header
==> Invalid EEPROM header detected
===> Writing header to EEPROM
0+1 records in
0+1 records out
12 bytes copied, 0.00384433 s, 3.1 kB/s
===> eeprom check: [ÿÿÿ]
========================================
Rebooting.
[   17.414966] reboot: Restarting system

U-Boot SPL 2017.09-00003-g9a6fe97466 (Oct 09 2017 - 15:31:21)
Trying to boot from MMC1


U-Boot 2017.09-00003-g9a6fe97466 (Oct 09 2017 - 15:31:21 -0500), Build: jenkins-github_Bootloader-Builder-607

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global external warm reset has occurred.
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Model: BeagleBone:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   No ethernet found.
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BONE] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
1359 bytes read in 63 ms (20.5 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
2030 bytes read in 50 ms (39.1 KiB/s)
debug: [/boot/vmlinuz-4.9.54-ti-r68] ...
9640976 bytes read in 646 ms (14.2 MiB/s)
debug: [/boot/initrd.img-4.9.54-ti-r68] ...
6028647 bytes read in 423 ms (13.6 MiB/s)
debug: [/boot/dtbs/4.9.54-ti-r68/am335x-bone.dtb] ...
55724 bytes read in 243 ms (223.6 KiB/s)
debug: [console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh] ...
debug: [bootz 0x82000000 0x88080000:5bfd67 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 88000000, end 880109ab

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.54-ti-r68 (root@b7-am57xx-beagle-x15-2gb) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5) ) #1 SMP PREEMPT Tue Oct 10 10:05:30 UTC 2017
[    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 BeagleBone
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 15 pages/cpu @df92c000 s31948 r8192 d21300 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 441484K/522240K available (12288K kernel code, 1124K rwdata, 4212K rodata, 1024K init, 747K bss, 31604K 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 : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0d00000   (13280 kB)
[    0.000000]       .init : 0xc1200000 - 0xc1300000   (1024 kB)
[    0.000000]       .data : 0xc1300000 - 0xc1419188   (1125 kB)
[    0.000000]        .bss : 0xc141b000 - 0xc14d5f70   ( 748 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000038] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000052] OMAP clocksource: timer1 at 24000000 Hz
[    0.000834] clocksource_probe: no matching clocksources found
[    0.001308] Console: colour dummy device 80x30
[    0.002463] console [tty0] enabled
[    0.002510] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.002549] This ensures that you still see kernel messages. Please
[    0.002587] update your kernel commandline.
[    0.002635] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.046755] pid_max: default: 32768 minimum: 301
[    0.047083] Security Framework initialized
[    0.047126] Yama: becoming mindful.
[    0.047193] AppArmor: AppArmor disabled by boot time parameter
[    0.047441] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.047490] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.048745] CPU: Testing write buffer coherency: ok
[    0.048858] ftrace: allocating 38571 entries in 114 pages
[    0.158839] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.158968] Setting up static identity map for 0x80100000 - 0x80100060
[    0.206756] Brought up 1 CPUs
[    0.206825] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.206857] CPU: All CPU(s) started in SVC mode.
[    0.208487] devtmpfs: initialized
[    0.231043] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.231652] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.231725] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.235585] xor: measuring software checksum speed
[    0.274773]    arm4regs  :  1217.000 MB/sec
[    0.314722]    8regs     :  1090.000 MB/sec
[    0.354722]    32regs    :  1088.000 MB/sec
[    0.394721]    neon      :  1648.000 MB/sec
[    0.394749] xor: using function: neon (1648.000 MB/sec)
[    0.394791] pinctrl core: initialized pinctrl subsystem
[    0.396376] NET: Registered protocol family 16
[    0.399381] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.425885] omap_hwmod: debugss: _wait_target_disable failed
[    0.478770] cpuidle: using governor ladder
[    0.490751] cpuidle: using governor menu
[    0.499437] OMAP GPIO hardware version 0.1
[    0.518861] No ATAGs?
[    0.518904] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.519263] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.519315] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.630852] raid6: int32x1  gen()   257 MB/s
[    0.698825] raid6: int32x1  xor()   229 MB/s
[    0.766866] raid6: int32x2  gen()   322 MB/s
[    0.834738] raid6: int32x2  xor()   280 MB/s
[    0.902858] raid6: int32x4  gen()   330 MB/s
[    0.970724] raid6: int32x4  xor()   268 MB/s
[    1.038881] raid6: int32x8  gen()   294 MB/s
[    1.090719] random: fast init done
[    1.106841] raid6: int32x8  xor()   224 MB/s
[    1.174746] raid6: neonx1   gen()  1444 MB/s
[    1.242728] raid6: neonx1   xor()   841 MB/s
[    1.310723] raid6: neonx2   gen()  1903 MB/s
[    1.378742] raid6: neonx2   xor()  1184 MB/s
[    1.446743] raid6: neonx4   gen()  1089 MB/s
[    1.514739] raid6: neonx4   xor()   673 MB/s
[    1.582762] raid6: neonx8   gen()   843 MB/s
[    1.650748] raid6: neonx8   xor()   691 MB/s
[    1.650776] raid6: using algorithm neonx2 gen() 1903 MB/s
[    1.650804] raid6: .... xor() 1184 MB/s, rmw enabled
[    1.650831] raid6: using intx1 recovery algorithm
[    1.660847] edma 49000000.edma: TI EDMA DMA engine driver
[    1.664445] SCSI subsystem initialized
[    1.667271] usbcore: registered new interface driver usbfs
[    1.667390] usbcore: registered new interface driver hub
[    1.667547] usbcore: registered new device driver usb
[    1.668158] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    1.668265] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    1.668419] media: Linux media interface: v0.10
[    1.668517] Linux video capture interface: v2.00
[    1.668628] pps_core: LinuxPPS API ver. 1 registered
[    1.668658] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.668720] PTP clock support registered
[    1.669610] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    1.671265] NetLabel: Initializing
[    1.671311] NetLabel:  domain hash size = 128
[    1.671337] NetLabel:  protocols = UNLABELED CIPSOv4
[    1.671439] NetLabel:  unlabeled traffic allowed by default
[    1.672065] clocksource: Switched to clocksource timer1
[    1.800699] VFS: Disk quotas dquot_6.6.0
[    1.800878] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.816351] NET: Registered protocol family 2
[    1.817431] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.817518] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.817601] TCP: Hash tables configured (established 4096 bind 4096)
[    1.817720] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.817764] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.818005] NET: Registered protocol family 1
[    1.826996] RPC: Registered named UNIX socket transport module.
[    1.827050] RPC: Registered udp transport module.
[    1.827076] RPC: Registered tcp transport module.
[    1.827101] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.827791] Unpacking initramfs...
[    2.265235] Freeing initrd memory: 5888K
[    2.265801] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    2.268907] audit: initializing netlink subsys (disabled)
[    2.269055] audit: type=2000 audit(2.200:1): initialized
[    2.274643] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    2.274889] zbud: loaded
[    2.280222] NFS: Registering the id_resolver key type
[    2.280305] Key type id_resolver registered
[    2.280332] Key type id_legacy registered
[    2.280370] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.280824] fuse init (API version 7.26)
[    2.281283] orangefs_debugfs_init: called with debug mask: :none: :0:
[    2.281611] orangefs_init: module version upstream loaded
[    2.281646] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.302198] Key type asymmetric registered
[    2.302262] Asymmetric key parser 'x509' registered
[    2.302420] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    2.306783] io scheduler noop registered
[    2.306824] io scheduler deadline registered
[    2.306946] io scheduler cfq registered (default)
[    2.308973] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    2.311972] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.313612] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    2.317263] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    3.188060] console [ttyS0] enabled
[    3.193956] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    3.201021] [drm] Initialized
[    3.207826] libphy: Fixed MDIO Bus: probed
[    3.213117] CAN device driver interface
[    3.268166] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    3.274390] davinci_mdio 4a101000.mdio: no live phy, scanning all
[    3.280864] davinci_mdio: probe of 4a101000.mdio failed with error -5
[    3.288215] cpsw 4a100000.ethernet: Detected MACID = 98:5d:ad:45:33:b8
[    3.294960] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[    3.305377] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.312125] ehci-pci: EHCI PCI platform driver
[    3.316751] ehci-platform: EHCI generic platform driver
[    3.322267] ehci-omap: OMAP-EHCI Host Controller driver
[    3.328162] usbcore: registered new interface driver usb-storage
[    3.336653] 47401300.usb-phy supply vcc not found, using dummy regulator
[    3.349357] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    3.360120] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    3.365583] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    3.373404] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.380300] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.387615] usb usb1: Product: MUSB HDRC host driver
[    3.392646] usb usb1: Manufacturer: Linux 4.9.54-ti-r68 musb-hcd
[    3.398724] usb usb1: SerialNumber: musb-hdrc.1
[    3.404474] hub 1-0:1.0: USB hub found
[    3.408430] hub 1-0:1.0: 1 port detected
[    3.424797] omap_rtc 44e3e000.rtc: already running
[    3.430250] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    3.438842] i2c /dev entries driver
[    3.444381] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    3.452807] cpuidle: enable-method property 'ti,am3352' found operations
[    3.460728] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.467683] ledtrig-cpu: registered to indicate activity on CPUs
[    3.474323] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    3.480529] omap-aes 53500000.aes: will run requests pump with realtime priority
[    3.490022] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    3.497881] hidraw: raw HID events driver (C) Jiri Kosina
[    3.504501] usbcore: registered new interface driver usbhid
[    3.510378] usbhid: USB HID core driver
[    3.514817] remoteproc remoteproc0: wkup_m3 is available
[    3.522656] NET: Registered protocol family 10
[    3.532918] mip6: Mobile IPv6
[    3.535961] NET: Registered protocol family 17
[    3.540578] can: controller area network core (rev 20120528 abi 9)
[    3.546938] NET: Registered protocol family 29
[    3.551553] Key type dns_resolver registered
[    3.555893] mpls_gso: MPLS GSO support
[    3.559937] omap_voltage_late_init: Voltage driver support not added
[    3.567054] PM: Cannot get wkup_m3_ipc handle
[    3.571703] ThumbEE CPU extension supported.
[    3.576095] Registering SWP/SWPB emulation handler
[    3.582070] registered taskstats version 1
[    3.586422] zswap: loaded using pool lzo/zbud
[    3.596944] Btrfs loaded, crc32c=crc32c-generic
[    3.640482] Key type encrypted registered
[    3.689848] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    3.701425] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    3.707360] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.714445] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    3.722056] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.729556] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.736916] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.744298] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.751338] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    3.758362] remoteproc remoteproc0: powering up wkup_m3
[    3.763802] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    3.772366] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    3.772382] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    3.789827] bone_capemgr bone_capemgr: Invalid board signature 'ffffffff'
[    3.796770] bone_capemgr bone_capemgr: Failed to scan baseboard eeprom
[    3.806614] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.852995] PM: bootloader does not support rtc-only!
[    3.859203] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:02:26 UTC (946684946)
[    3.868159] of_cfs_init
[    3.870945] of_cfs_init: OK
[    3.877814] vmmcsd_fixed: disabling
[    3.883665] Freeing unused kernel memory: 1024K
[    3.925329] mmc0: host does not support reading read-only switch, assuming write-enable
Loading, please wait...
[    3.942620] mmc0: new high speed SDHC card at address 59b4
[    3.964436] mmcblk0: mmc0:59b4 BB2MW 29.8 GiB
[    3.970931]  mmcblk0: p1
[    4.022518] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
starting version 229
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[    5.797045] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Thanks,

Zack