boot problem when SD card is accessing as other storage medium

Hi Sir ,

I amusing beaglebone board for my project purpose. I build the yocto image as per the below document and flashed to beagle bone board via sd card.

http://www.jumpnowtek.com/beaglebone/BeagleBone-Systems-with-Yocto.html

But I need to boot always from EMMC I followed the same steps as per the above document. Now I need to store my boot log on SD card. That means I need to use sd card as other storage device. I am inserting sd card and boot the board from emmc it will stuck after the kernel loading kernel panic occurred. If the sd car is not present means there is no issue for booting . Could you please help me resolve this issue.

I hereby attach the boot log of above mentioned scenario.

Broadcast message from root@beaglebone (ttyO0) (Fri May 27 02:06:44 2016):
The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
logout
Stopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 924)
.
Stopping system message bus: dbus.
Stopping ntpd: done
Stopping syslogd/klogd: stopped syslogd (pid 939)
stopped klogd (pid 942)
done
Deconfiguring network interfaces… done.
Sending all processes the TERM signal…
Sending all processes the KILL signal…
Unmounting remote filesystems…
Deactivating swap…
Unmounting local filesystems…
[ 6150.599014] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Rebooting… [ 6152.696795] musb-hdrc musb-hdrc.1.auto: remove, state 4
[ 6152.703006] usb usb1: USB disconnect, device number 1
[ 6152.718781] musb-hdrc musb-hdrc.1.auto: USB bus 1 deregistered
[ 6152.731546] reboot: Restarting system

U-Boot SPL 2016.01-jumpnow (Feb 29 2016 - 12:10:10)
Trying to boot from MMC
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img

U-Boot 2016.01-jumpnow (Feb 29 2016 - 12:10:10 +0530)

Watchdog enabled
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Net: not set. Validating first E-fuse MAC
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
reading /boot/zImage
** Unable to read file /boot/zImage **
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
1082 bytes read in 5 ms (210.9 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc …
Running uenvcmd …
31864 bytes read in 32 ms (971.7 KiB/s)
Loaded bbb-hdmi.dtb
3882776 bytes read in 238 ms (15.6 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x3b3f18 ]

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff5000, end 8ffffc77 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.2-jumpnow (ntp-202@NTP-202) (gcc version 5.2.0 (GCC) ) #113 Fri May 27 09:17:44 IST 2016
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x BeagleBone Black
[ 0.000000] cma: Reserved 16 MiB at 0x9f000000
[ 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[ 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: 487128K/524288K available (5278K kernel code, 363K rwdata, 1912K rodata, 304K init, 8143K bss, 20776K reserved, 16384K 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 : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc070dbac (7191 kB)
[ 0.000000] .init : 0xc070e000 - 0xc075a000 ( 304 kB)
[ 0.000000] .data : 0xc075a000 - 0xc07b4ed0 ( 364 kB)
[ 0.000000] .bss : 0xc07b4ed0 - 0xc0fa8bfc (8144 kB)
[ 0.000000] Running RCU self tests
[ 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.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000075] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000715] Console: colour dummy device 80x30
[ 0.000766] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000774] … MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000781] … MAX_LOCK_DEPTH: 48
[ 0.000787] … MAX_LOCKDEP_KEYS: 8191
[ 0.000793] … CLASSHASH_SIZE: 4096
[ 0.000799] … MAX_LOCKDEP_ENTRIES: 32768
[ 0.000806] … MAX_LOCKDEP_CHAINS: 65536
[ 0.000812] … CHAINHASH_SIZE: 32768
[ 0.000818] memory used by lock dependency info: 5167 kB
[ 0.000825] per task-struct memory footprint: 1536 bytes
[ 0.000847] Calibrating delay loop… 996.14 BogoMIPS (lpj=4980736)
[ 0.078836] pid_max: default: 32768 minimum: 301
[ 0.079059] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.079072] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081295] CPU: Testing write buffer coherency: ok
[ 0.082458] Setting up static identity map for 0x80008200 - 0x80008258
[ 0.087359] devtmpfs: initialized
[ 0.112490] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.148946] omap_hwmod: tptc0 using broken dt data from edma
[ 0.149363] omap_hwmod: tptc1 using broken dt data from edma
[ 0.149758] omap_hwmod: tptc2 using broken dt data from edma
[ 0.157731] omap_hwmod: debugss: _wait_target_disable failed
[ 0.212804] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.215497] pinctrl core: initialized pinctrl subsystem
[ 0.219901] NET: Registered protocol family 16
[ 0.227535] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.232168] cpuidle: using governor ladder
[ 0.232212] cpuidle: using governor menu
[ 0.240412] OMAP GPIO hardware version 0.1
[ 0.258401] No ATAGs?
[ 0.258432] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.313970] edma 49000000.edma: Legacy memcpy is enabled, things might not work
[ 0.328223] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.332837] usbcore: registered new interface driver usbfs
[ 0.332997] usbcore: registered new interface driver hub
[ 0.333153] usbcore: registered new device driver usb
[ 0.334047] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.334153] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/i2c2_pins, deferring probe
[ 0.337483] clocksource: Switched to clocksource timer1
[ 0.480382] NET: Registered protocol family 2
[ 0.482019] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.482105] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[ 0.483289] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.483467] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.483634] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.484362] NET: Registered protocol family 1
[ 0.485757] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.489513] futex hash table entries: 256 (order: 1, 11264 bytes)
[ 0.498011] VFS: Disk quotas dquot_6.6.0
[ 0.498234] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.504324] io scheduler noop registered
[ 0.504358] io scheduler deadline registered
[ 0.504394] io scheduler cfq registered (default)
[ 0.507729] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.512712] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.519063] omap_uart 44e09000.serial: no wakeirq for uart0
[ 0.519608] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a OMAP UART0
[ 1.093742] console [ttyO0] enabled
[ 1.099090] omap_uart 481a8000.serial: no wakeirq for uart4
[ 1.105225] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 156, base_baud = 3000000) is a OMAP UART4
[ 1.118332] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.161516] brd: module loaded
[ 1.186185] loop: module loaded
[ 1.191160] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.277598] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.284012] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.292952] libphy: 4a101000.mdio: probed
[ 1.297170] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.307929] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:86:e2:b3
[ 1.317184] usbcore: registered new interface driver asix
[ 1.323055] usbcore: registered new interface driver ax88179_178a
[ 1.329590] usbcore: registered new interface driver cdc_ether
[ 1.335848] usbcore: registered new interface driver smsc95xx
[ 1.341999] usbcore: registered new interface driver net1080
[ 1.348052] usbcore: registered new interface driver cdc_subset
[ 1.354358] usbcore: registered new interface driver zaurus
[ 1.360412] usbcore: registered new interface driver cdc_ncm
[ 1.371484] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.378422] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.384247] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.390955] usbcore: registered new interface driver cdc_wdm
[ 1.397044] usbcore: registered new interface driver usbtest
[ 1.405733] 47401300.usb-phy supply vcc not found, using dummy regulator
[ 1.422272] 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 1.434479] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.443668] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.453678] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.460854] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.468444] usb usb1: Product: MUSB HDRC host driver
[ 1.473651] usb usb1: Manufacturer: Linux 4.4.2-jumpnow musb-hcd
[ 1.479962] usb usb1: SerialNumber: musb-hdrc.1.auto
[ 1.489311] hub 1-0:1.0: USB hub found
[ 1.494078] hub 1-0:1.0: 1 port detected
[ 1.505179] mousedev: PS/2 mouse device common for all mice
[ 1.514342] **************Entering probing function
[ 1.519541] *****************rtc
[ 1.523493] omap_rtc 44e3e000.rtc: already running
[ 1.530815] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 1.538615] i2c /dev entries driver
[ 1.542371] Driver for 1-wire Dallas network protocol.
[ 1.553525] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.562982] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.650900] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.657819] usbcore: registered new interface driver usbhid
[ 1.663667] usbhid: USB HID core driver
[ 1.668721] oprofile: using arm/armv7
[ 1.673205] Initializing XFRM netlink socket
[ 1.677900] NET: Registered protocol family 17
[ 1.682762] NET: Registered protocol family 15
[ 1.687833] Key type dns_resolver registered
[ 1.692483] omap_voltage_late_init: Voltage driver support not added
[ 1.700111] ThumbEE CPU extension supported.
[ 1.731499] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.743873] mmc0: new high speed SDHC card at address aaaa
[ 1.753214] mmcblk0: mmc0:aaaa SS16G 14.8 GiB
[ 1.764505] mmcblk0: p1 p2
[ 1.784983] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.791648] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.804180] Entering probing function
[ 1.808102] Checking client data is avaiulable
[ 1.827690] rtc-m41t80 2-0068: read error
[ 1.832687] mmc1: MAN_BKOPS_EN bit is not set
[ 1.837664] rtc-m41t80 2-0068: rtc core: registered m41t82 as rtc1
[ 1.844171] checking clientdata
[ 1.848133] rtc-m41t80 2-0068: Can’t clear HT bit
[ 1.856075] rtc-m41t80: probe of 2-0068 failed with error -121
[ 1.862332] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.870443] omap_rtc 44e3e000.rtc: setting system clock to 2016-05-27 06:07:01 UTC (1464329221)
[ 1.902470] mmc1: new high speed MMC card at address 0001
[ 1.910623] List of all partitions:
[ 1.914322] 0100 16384 ram0 (driver?)
[ 1.919256] 0101 16384 ram1 (driver?)
[ 1.924107] 0102 16384 ram2 (driver?)
[ 1.928975] 0103 16384 ram3 (driver?)
[ 1.933827] 0104 16384 ram4 (driver?)
[ 1.938694] 0105 16384 ram5 (driver?)
[ 1.943544] 0106 16384 ram6 (driver?)
[ 1.948409] 0107 16384 ram7 (driver?)
[ 1.953260] 0108 16384 ram8 (driver?)
[ 1.958140] 0109 16384 ram9 (driver?)
[ 1.962992] 010a 16384 ram10 (driver?)
[ 1.967950] 010b 16384 ram11 (driver?)
[ 1.972893] 010c 16384 ram12 (driver?)
[ 1.977850] 010d 16384 ram13 (driver?)
[ 1.982792] 010e 16384 ram14 (driver?)
[ 1.987748] 010f 16384 ram15 (driver?)
[ 1.992701] b300 15558144 mmcblk0 driver: mmcblk
[ 1.998319] b301 65536 mmcblk0p1 00000000-01
[ 2.003896] b302 15492544 mmcblk0p2 00000000-02
[ 2.009495] No filesystem could mount root, tried: ext4
[ 2.015211] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 2.024164] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

Conversation opened. 1 unread message.


|
|


Please help me……



It’s an urgent requirement.











Regards

Sachu
|

  • | - | - |