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.

AM335x_boneblack Waiting for root device /dev/mmcblk0p2......

自己做的SD卡启动分区分了三部分:

mmcblk1boot0 179:8 0 16M 1 disk
mmcblk1boot1 179:16 0 16M 1 disk
mmcblk0 179:24 0 3.7G 0 disk
├─mmcblk0p1 179:25 0 62.8M 0 part
├─mmcblk0p2 179:26 0 1G 0 part
└─mmcblk0p3 179:27 0 2.6G 0 part
mmcblk1 179:0 0 3.6G 0 disk
└─mmcblk1p1 179:1 0 3.6G 0 part /
ubuntu@arm:~$

第一部分放:

u-boot.img MLO uImage zImage

第二部分放文件系统

第三部分未用

这个制作好的SD卡可以在Am335x-evm-sk上使用正常启动,但是在BeagleBone black却不能正常启动时什么原因?

启动调试信息:

U-Boot SPL 2016.03 (Oct 16 2017 - 19:22:35)

preloader_console_init()
>>spl:SDRAM_init()
>>spl:board_init_r()
 MAIN_OSC: 24Mhz
 DPLL_Mpu_Freq: 300MHz
 DPLL_Core_Freq: 100MHz
 DPLL_Per_Freq_usb_phy_clk: 960MHz
 DPLL_Per_Freq_PRU_ICSS_Uart_moduclk: 192MHz
 DPLL_Per_Freq_MMC_moduclk: 96MHz
 DPLL_Per_Freq_SPI_moduclk: 48MHz
 DPLL_Per_Freq_UART_moduclk: 48MHz
 DPLL_Per_Freq_I2C_moduclk: 48MHz
 This is sure,only I think
/arch/arm/cpu/armv7/omap-common/save_omap_boot_params
/arch/arm/cpu/armv7/omap-common/gpmc_init
/arch/arm/cpu/armv7/omap-common/i2c_init
/arch/arm/cpu/armv7/omap-common/arch_misc_init()
/arch/arm/cpu/armv7/omap-common/hw_watchdog_init()
/arch/arm/cpu/armv7/omap-common/am33xx_spl_board_init()
Trying to boot from MMC
MMC->xxxx/drivers/mmc/mmc.c2
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img


U-Boot 2016.03 (Oct 16 2017 - 19:22:35 +0800)

U-Boot code: 80800000 -> 808DA324  BSS_END: -> 80926BBC
       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
nand_init->xxxx/drivers/mtd/nand/nand.c
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
MMC->xxxx/drivers/mmc/mmc.c1
MMC->xxxx/drivers/mmc/mmc.c2
xxxx/common/env_common.c
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment

xxxx/common/env_common.c
Net:   xxx/board/ti/am335x/board_eth_init--->,6be7
xxx/board/ti/am335x/board_eth_init--->,5fab5ef4
<ethaddr> not set. Validating first E-fuse MAC
Here at xxx/drivers/net/cpsw.c
phy_reg---> 3000
phy_reg---> 7809
phy_reg---> 7
phy_reg---> c0f1
phy_reg---> 1e1
phy_reg---> 1
phy_reg---> 0
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> 0
phy_reg---> 40
phy_reg---> 2
phy_reg---> e0
phy_reg---> ffff
phy_reg---> 0
phy_reg---> 0
phy_reg---> 0
phy_reg---> 0
phy_reg---> ffff
phy_reg---> ffff
phy_reg---> 0
phy_reg---> 0
phy_reg---> 0
phy_reg---> 90
phy_reg---> 0
phy_reg---> 40
End
xxx/Board/Ti/Am335x/Board.c:---->Ethernet_init
maria: ----> 40070106
maria: ----> 410000ff
maria: ----> 1
maria: ----> 0
maria: ----> 0
maria: ----> 0
maria: ----> 1
maria: ----> 0
maria: ----> 0
maria: ----> 0
maria: ----> 23e00040
maria: ----> 0
maria: ----> 0
maria: ----> 0
xxx/Board/Ti/Am335x/Board.c:---->Ethernet_init
cpsw, usb_ether
NET: -> xxxx/net/eth_legacy.c
Press SPACE to abort autoboot in 5 seconds
## Error: "envboot" not defined
 lcd reset
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
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
133 bytes read in 4 ms (32.2 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
4287776 bytes read in 391 ms (10.5 MiB/s)
reading zyr-am335x-evmsk.dtb
32012 bytes read in 15 ms (2 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.14.65
   Created:      2017-06-12   5:13:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4287712 Bytes = 4.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Loading Kernel Image ... OK
   Loading Device Tree to 8fff5000, end 8ffffd0b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.65 (zyr@ubuntu) (gcc version 4.6.3 (Ubuntu/Linar                                                                                                                                                           o 4.6.3-1ubuntu5) ) #1 SMP Mon Jun 12 12:35:16 CST 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] Machine model: TI AM335x EVM-SK
[    0.000000] cma: CMA: reserved 16 MiB at 9e800000
[    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 9 pages/cpu @dfad4000 s13184 r8192 d15488 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages                                                                                                                                                           : 129792
[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO0,115                                                                                                                                                           200
[    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: 487848K/523264K available (5629K kernel code, 655K rwdata,                                                                                                                                                            2132K rodata, 384K init, 5518K bss, 35416K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 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 - 0xc079c71c   (7762 kB)
[    0.000000]       .init : 0xc079d000 - 0xc07fd380   ( 385 kB)
[    0.000000]       .data : 0xc07fe000 - 0xc08a1e18   ( 656 kB)
[    0.000000]        .bss : 0xc08a1e18 - 0xc0e05968   (5519 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, 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] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000010] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 1789569                                                                                                                                                           69942ns
[    0.000055] OMAP clocksource: timer1 at 24000000 Hz
[    0.000818] Console: colour dummy device 80x30
[    0.000871] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo M                                                                                                                                                           olnar
[    0.000879] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000887] ... MAX_LOCK_DEPTH:          48
[    0.000894] ... MAX_LOCKDEP_KEYS:        8191
[    0.000901] ... CLASSHASH_SIZE:          4096
[    0.000908] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000915] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000922] ... CHAINHASH_SIZE:          16384
[    0.000930]  memory used by lock dependency info: 3695 kB
[    0.000937]  per task-struct memory footprint: 1152 bytes
[    0.000980] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.079153] pid_max: default: 32768 minimum: 301
[    0.079511] Security Framework initialized
[    0.079624] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.079637] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098616] CPU: Testing write buffer coherency: ok
[    0.099959] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.100031] Setting up static identity map for 0x80556c28 - 0x80556c98
[    0.102994] Brought up 1 CPUs
[    0.103014] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.103024] CPU: All CPU(s) started in SVC mode.
[    0.105719] devtmpfs: initialized
[    0.115227] VFP support v0.3: implementor 41 architecture 3 part 30 variant c r                                                                                                                                                           ev 3
[    0.149938] omap_hwmod: tptc0 using broken dt data from edma
[    0.150292] omap_hwmod: tptc1 using broken dt data from edma
[    0.150632] omap_hwmod: tptc2 using broken dt data from edma
[    0.158277] omap_hwmod: debugss: _wait_target_disable failed
[    0.217074] pinctrl core: initialized pinctrl subsystem
[    0.221344] regulator-dummy: no parameters
[    0.224651] NET: Registered protocol family 16
[    0.229775] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.247475] platform 49000000.edma: alias fck already exists
[    0.247514] platform 49000000.edma: alias fck already exists
[    0.247532] platform 49000000.edma: alias fck already exists
[    0.251781] OMAP GPIO hardware version 0.1
[    0.281185] No ATAGs?
[    0.281211] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.339642] bio: create slab <bio-0> at 0
[    0.378631] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.380895] vbat: 5000 mV
[    0.382043] lis3_reg: no parameters
[    0.388837] SCSI subsystem initialized
[    0.392242] usbcore: registered new interface driver usbfs
[    0.392683] usbcore: registered new interface driver hub
[    0.393425] usbcore: registered new device driver usb
[    0.396284] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e1                                                                                                                                                           0800/pinmux_i2c0_pins, deferring probe
[    0.396328] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.403461] Switched to clocksource timer1
[    0.556282] NET: Registered protocol family 2
[    0.558293] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.558476] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[    0.559840] TCP: Hash tables configured (established 4096 bind 4096)
[    0.559991] TCP: reno registered
[    0.560016] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.560206] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.561159] NET: Registered protocol family 1
[    0.562505] RPC: Registered named UNIX socket transport module.
[    0.562526] RPC: Registered udp transport module.
[    0.562535] RPC: Registered tcp transport module.
[    0.562544] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.563832] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters                                                                                                                                                            available
[    0.572179] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.713326] VFS: Disk quotas dquot_6.5.2
[    0.713776] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.715791] NFS: Registering the id_resolver key type
[    0.716173] Key type id_resolver registered
[    0.716194] Key type id_legacy registered
[    0.716313] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.716726] msgmni has been set to 984
[    0.719690] io scheduler noop registered
[    0.719713] io scheduler deadline registered
[    0.719787] io scheduler cfq registered (default)
[    0.722742] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.727139] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.734768] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.736026] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 30                                                                                                                                                           00000) is a OMAP UART0
[    1.395813] console [ttyO0] enabled
[    1.405702] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.442961] brd: module loaded
[    1.464960] loop: module loaded
[    1.474411] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.489262] usbcore: registered new interface driver asix
[    1.495915] usbcore: registered new interface driver ax88179_178a
[    1.502698] usbcore: registered new interface driver cdc_ether
[    1.509374] usbcore: registered new interface driver smsc95xx
[    1.516261] usbcore: registered new interface driver net1080
[    1.522580] usbcore: registered new interface driver cdc_subset
[    1.529264] usbcore: registered new interface driver zaurus
[    1.535718] usbcore: registered new interface driver cdc_ncm
[    1.543884] usbcore: registered new interface driver cdc_wdm
[    1.550304] usbcore: registered new interface driver usb-storage
[    1.557154] usbcore: registered new interface driver usbtest
[    1.566986] mousedev: PS/2 mouse device common for all mice
[    1.578298] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.585937] 44e3e000.rtc: already running
[    1.591466] i2c /dev entries driver
[    1.595905] Driver for 1-wire Dallas network protocol.
[    1.606221] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.617699] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.624183] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.633908] usbcore: registered new interface driver usbhid
[    1.639737] usbhid: USB HID core driver
[    1.646188] oprofile: using arm/armv7
[    1.650668] TCP: cubic registered
[    1.654264] Initializing XFRM netlink socket
[    1.658851] NET: Registered protocol family 17
[    1.663617] NET: Registered protocol family 15
[    1.668591] Key type dns_resolver registered
[    1.675190] ThumbEE CPU extension supported.
[    1.679703] Registering SWP/SWPB emulation handler
[    1.688582] lis3_reg: disabling
[    1.691885] vbat: disabling
[    1.694911] regulator-dummy: disabling
[    1.706831] tps65910 0-002d: No interrupt support, no core IRQ
[    1.716819] tps65910 0-002d: Error in configuring external control EN1
[    1.723756] tps65910 0-002d: Failed to initialise ext control config
[    1.731886] vrtc: failed to enable
[    1.738066] tps65910 0-002d: failed to register tps65910-pmic regulator
[    1.745181] tps65910-pmic: probe of tps65910-pmic failed with error -121
[    1.756782] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.764271] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.770355] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.843468] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    1.849853] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    1.858931] libphy: 4a101000.mdio: probed
[    1.863141] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver                                                                                                                                                            SMSC LAN8710/LAN8720
[    1.874445] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.880513] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.889233] Detected MACID = f4:5e:ab:5f:e7:6b
[    1.896830] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.902886] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.914025] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.920090] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.930453] input: gpio_buttons.7 as /devices/gpio_buttons.7/input/input0
[    1.941590] omap_hsmmc 48060000.mmc: vmmc regulator missing
[    1.947852] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    1.956030] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:37:19                                                                                                                                                            UTC (946687039)
[    1.984506] Waiting for root device /dev/mmcblk0p2...
内核中配置支持ext3,ext4.
浏览论坛有的说是硬件问题,我试着吧CD脚给注释还是不行这是这么原因呢?
  • 这种情况,往往是因为kernel中对于CD脚的检测逻辑导致了停在那里。你把CD脚注释掉了,是只是注释掉了pinmux中关于MMC_CD的配置,还是把kernel中的那个CD检测逻辑也注释掉了?

  • 应该是在加载文件系统时内核没有找到文件的位置。试着修改uEnv.txt里的环境变量,为题解决

x 出现错误。请重试或与管理员联系。