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.

内核识别不到eMMC

Other Parts Discussed in Thread: DP83848C, TPS65910

麻烦TI工程师大神分析一下问题,我们用的工具是SDK5版本,系统从SD卡正常启动,u-boot可识别到MMC1(即eMMC设备)和MMC0(SD卡),但是进入系统后,在/dev目录下却只有SD卡(mmcblk0p1和mmcblk0p2两个分区),找不到eMMC,导致无法对eMMC进行分区烧录。

我们已经在设备树文件am335x-evm.dts添加了eMMC的相关内容,目前不知道是哪里出错了。

系统启动log如下:

U-Boot SPL 2018.01-00560-g71d5434086-dirty (Apr 17 2019 - 22:27:19)
Trying to boot from MMC1


U-Boot 2018.01-00560-g71d5434086-dirty (Apr 17 2019 - 22:27:19 +1400)

CPU : AM335X-GP rev 2.1
Model: AM335x
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net: cpsw
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
223 bytes read in 3 ms (72.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
Running uenvcmd ...
41600 bytes read in 7 ms (5.7 MiB/s)
3403760 bytes read in 294 ms (11 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-4.14.79-rt47-g28d73230da
Created: 2019-04-17 7:00:34 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3403696 Bytes = 3.2 MiB
Load Address: 82000000
Entry Point: 82000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Kernel Image ... OK
Loading Device Tree to 8fff2000, end 8ffff27f ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.79-rt47-g28d73230da (root@kong) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #14 Wed Apr 17 21:00:05 +14 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: AM335x
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x9f000000
[ 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: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 rootfstype=ext4 root=/dev/mmcblk0p2 rw init=/init 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: 483576K/524288K available (7168K kernel code, 303K rwdata, 1940K rodata, 1024K init, 7449K bss, 24328K 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 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0b00000 - 0xc0c00000 (1024 kB)
[ 0.000000] .data : 0xc0c00000 - 0xc0c4bde0 ( 304 kB)
[ 0.000000] .bss : 0xc0c4d000 - 0xc1393784 (7450 kB)
[ 0.000000] Running RCU self tests
[ 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.000021] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000058] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000127] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000694] timer_probe: no matching timers found
[ 0.001803] Console: colour dummy device 80x30
[ 0.001865] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.001884] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001901] ... MAX_LOCK_DEPTH: 48
[ 0.001918] ... MAX_LOCKDEP_KEYS: 8191
[ 0.001934] ... CLASSHASH_SIZE: 4096
[ 0.001951] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.001968] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.001985] ... CHAINHASH_SIZE: 32768
[ 0.002002] memory used by lock dependency info: 4655 kB
[ 0.002018] per task-struct memory footprint: 1536 bytes
[ 0.002066] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.098161] pid_max: default: 32768 minimum: 301
[ 0.098586] Security Framework initialized
[ 0.098742] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.098771] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102504] CPU: Testing write buffer coherency: ok
[ 0.102730] CPU0: Spectre v2: using BPIALL workaround
[ 0.105634] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.110882] devtmpfs: initialized
[ 0.146089] random: get_random_u32 called from bucket_table_alloc+0xf0/0x238 with crng_init=0
[ 0.147122] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.147876] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.147959] futex hash table entries: 256 (order: 1, 11264 bytes)
[ 0.150082] pinctrl core: initialized pinctrl subsystem
[ 0.155308] NET: Registered protocol family 16
[ 0.163344] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.221723] omap_hwmod: debugss: _wait_target_disable failed
[ 0.279246] cpuidle: using governor menu
[ 0.293132] OMAP GPIO hardware version 0.1
[ 0.311120] platform 44e3e000.rtc: Cannot lookup hwmod 'rtc'
[ 0.318230] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe
[ 0.325878] No ATAGs?
[ 0.325908] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.365940] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.375242] SCSI subsystem initialized
[ 0.376873] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.377015] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
[ 0.377387] pps_core: LinuxPPS API ver. 1 registered
[ 0.377410] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.377472] PTP clock support registered
[ 0.381393] clocksource: Switched to clocksource timer1
[ 0.382691] VFS: Disk quotas dquot_6.6.0
[ 0.382828] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.411863] NET: Registered protocol family 2
[ 0.413892] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.414018] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[ 0.414939] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.415361] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.415532] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.416047] NET: Registered protocol family 1
[ 0.418110] RPC: Registered named UNIX socket transport module.
[ 0.418169] RPC: Registered udp transport module.
[ 0.418189] RPC: Registered tcp transport module.
[ 0.418209] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.420509] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 0.420842] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.423640] audit: initializing netlink subsys (disabled)
[ 0.426293] audit: type=2000 audit(0.420:1): state=initialized audit_enabled=0 res=1
[ 0.426823] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.429517] NFS: Registering the id_resolver key type
[ 0.429997] Key type id_resolver registered
[ 0.430050] Key type id_legacy registered
[ 0.430225] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.437574] io scheduler noop registered
[ 0.437610] io scheduler deadline registered
[ 0.437736] io scheduler cfq registered (default)
[ 0.437759] io scheduler mq-deadline registered
[ 0.437780] io scheduler kyber registered
[ 0.440135] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.447061] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[ 0.454214] omap_uart 44e09000.serial: no wakeirq for uart0
[ 0.454620] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
[ 1.133767] console [ttyO0] enabled
[ 1.139289] omap_uart 48024000.serial: no wakeirq for uart2
[ 1.145697] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 31, base_baud = 3000000) is a OMAP UART2
[ 1.156868] omap_uart 481a6000.serial: no wakeirq for uart3
[ 1.163148] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 32, base_baud = 3000000) is a OMAP UART3
[ 1.202908] brd: module loaded
[ 1.231197] loop: module loaded
[ 1.237615] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.248609] libphy: Fixed MDIO Bus: probed
[ 1.331497] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.339592] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
[ 1.350624] libphy: 4a101000.mdio: probed
[ 1.354992] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver NS DP83848C 10/100 Mbps PHY
[ 1.366889] cpsw 4a100000.ethernet: Detected MACID = d0:5f:b8:db:8b:b5
[ 1.374367] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.381064] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.386734] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.397497] i2c /dev entries driver
[ 1.405875] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.417931] oprofile: using arm/armv7
[ 1.422763] Initializing XFRM netlink socket
[ 1.427761] NET: Registered protocol family 10
[ 1.436205] Segment Routing with IPv6
[ 1.440234] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.448492] NET: Registered protocol family 17
[ 1.453636] NET: Registered protocol family 15
[ 1.458695] Key type dns_resolver registered
[ 1.463475] omap_voltage_late_init: Voltage driver support not added
[ 1.470639] ThumbEE CPU extension supported.
[ 1.500185] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.506097] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.517083] nand: No NAND device found
[ 1.521079] omap2-nand 8000000.nand: scan failed, may be bus-width mismatch
[ 1.562600] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.573252] vrtc: supplied by vbat
[ 1.583014] vio: supplied by vbat
[ 1.589426] vdd1: supplied by vbat
[ 1.596477] vdd2: supplied by vbat
[ 1.606551] vdig1: supplied by vbat
[ 1.613089] vdig2: supplied by vbat
[ 1.619520] vpll: supplied by vbat
[ 1.625962] vdac: supplied by vbat
[ 1.632593] vaux1: supplied by vbat
[ 1.639145] vaux2: supplied by vbat
[ 1.645656] vaux33: supplied by vbat
[ 1.652309] vmmc: supplied by vbat
[ 1.658636] vbb: supplied by vbat
[ 1.665145] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.675383] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 1.683025] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.745504] lis3_reg: disabling
[ 1.748937] wlan-en-regulator: disabling
[ 1.758280] Waiting for root device /dev/mmcblk0p2...
[ 1.809256] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.819855] mmc0: new high speed SDHC card at address b368
[ 1.828360] mmcblk0: mmc0:b368 SD4GB 3.70 GiB
[ 1.837665] mmcblk0: p1 p2
[ 2.609882] EXT4-fs (mmcblk0p2): recovery complete
[ 2.624628] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.633445] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.647353] devtmpfs: mounted
[ 2.652990] Freeing unused kernel memory: 1024K
[ 3.014832] systemd[1]: System time before build time, advancing clock.
[ 3.141608] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
[ 3.165185] systemd[1]: Detected architecture arm.

Welcome to Arago 2018.10!

[ 3.203787] systemd[1]: Set hostname to <am335x-evm>.
[ 4.092147] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.125296] systemd[1]: Listening on Process Core Dump Socket.
[ OK ] Listening on Process Core Dump Socket.
[ 4.162684] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.170143] systemd[1]: Listening on Network Service Netlink Socket.
[ OK ] Listening on Network Service Netlink Socket.
[ 4.201907] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.209040] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 4.243293] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 4.283326] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 4.323327] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.362250] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Listening on Syslog Socket.
[ OK ] Created slice System Slice.
[ OK ] Created slice system-getty.slice.
Mounting Kernel Debug File System...
Mounting POSIX Message Queue File System...
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Listening on Journal Audit Socket.
[ OK ] Reached target Slices.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on Journal Socket.
Starting Journal Service...
Starting Remount Root and Kernel File Systems...
Starting Load Kernel Modules...
Starting Create list of required st…ce nodes for the current kernel...
[ 5.255654] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ 5.333556] cryptodev: disagrees about version of symbol module_layout
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Remount Root and Kernel File Systems.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
[ OK ] Started Journal Service.
Starting Apply Kernel Variables...
Mounting Kernel Configuration File System...
Starting udev Coldplug all Devices...
Starting Flush Journal to Persistent Storage...
Starting Create Static Device Nodes in /dev...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create Static Device Nodes in /dev.
[ 6.244172] systemd-journald[60]: Received request to flush runtime journal from PID 1
[ OK ] Reached target Local File Systems (Pre).
Mounting /var/volatile...
Mounting /media/ram...
Starting udev Kernel Device Manager...
[ OK ] Mounted /var/volatile.
[ OK ] Mounted /media/ram.
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started udev Kernel Device Manager.
Starting Load/Save Random Seed...
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ 9.055725] matrix_keymap: disagrees about version of symbol module_layout
[ 9.256857] matrix_keymap: disagrees about version of symbol module_layout
[ 9.275517] ti_am335x_tscadc: disagrees about version of symbol module_layout
[ 9.289830] omap_wdt: disagrees about version of symbol module_layout
[ 9.324132] rtc_omap: disagrees about version of symbol module_layout
[ 9.412036] rtc_omap: disagrees about version of symbol module_layout
[ OK ] Found device /dev/ttyO0.
[ 9.493478] musb_am335x: disagrees about version of symbol module_layout
[ 9.575936] ti_am335x_tscadc: disagrees about version of symbol module_layout
[ 9.612724] omap_wdt: disagrees about version of symbol module_layout
[ OK ] Started udev Coldplug all Devices.
[ 9.709727] rtc_omap: disagrees about version of symbol module_layout
[ OK ] Reached target System Initialization.
[ 9.761341] musb_am335x: disagrees about version of symbol module_layout
[ OK ] Started Daily rotation of log files.
[ OK ] Listening on RPCbind Server Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ 9.828937] rtc_omap: disagrees about version of symbol module_layout
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting RPC Bind Service...
[ 10.193490] snd_soc_tlv320aic3x: disagrees about version of symbol module_layout
[ OK ] Started Periodic Command Scheduler.
[ 10.527463] snd_soc_tlv320aic3x: disagrees about version of symbol module_layout
[ OK ] Started Kernel Logging Service.
[ OK ] Reached target Containers.
Starting telnetd.service...
[ OK ] Started Job spooling tools.
[ 11.084863] pruss_soc_bus: disagrees about version of symbol module_layout
[ 11.212239] ti_emif_sram: disagrees about version of symbol module_layout
Starting Login Service...
[ 11.498394] pruss_soc_bus: disagrees about version of symbol module_layout
[ 11.586468] ti_emif_sram: disagrees about version of symbol module_layout

Starting Print notice about GPLv3 packages...
[ 12.003374] omap_crypto: disagrees about version of symbol module_layout
[ 12.012121] omap_sham: disagrees about version of symbol module_layout
[ OK ] Started D-Bus System Message Bus.
[ 12.420907] omap_sham: disagrees about version of symbol module_layout
[ 12.460362] remoteproc: disagrees about version of symbol module_layout
[ 12.487129] omap_crypto: disagrees about version of symbol module_layout
[ 12.782068] ti_emif_sram: disagrees about version of symbol module_layout
[ 12.858795] remoteproc: disagrees about version of symbol module_layout
[ 12.919707] snd_soc_simple_card_utils: disagrees about version of symbol module_layout
[ 13.059720] ti_emif_sram: disagrees about version of symbol module_layout
[ 13.159326] snd_soc_simple_card_utils: disagrees about version of symbol module_layout
[ 13.187655] remoteproc: disagrees about version of symbol module_layout
[ 13.637797] remoteproc: disagrees about version of symbol module_layout
[ OK ] Started Hardware RNG Entropy Gatherer Daemon.
Starting Network Service...
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Started RPC Bind Service.
[ OK ] Started telnetd.service.
[ OK ] Found device /dev/ttyS0.
[ OK ] Found device /dev/ttyS3.
[ OK ] Started Network Service.
[ 17.011369] net eth0: initializing cpsw version 1.12 (0)
[ 17.019077] libphy: PHY 4a101000.mdio:00 not found
[ 17.024243] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19
[ 17.713870] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 19.447470] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ OK ] Reached target Network.
Starting Network Name Resolution...
Starting Permit User Sessions...
Starting thttpd.service...
[ OK ] Started Permit User Sessions.
[ OK ] Started Login Service.
[ OK ] Started Serial Getty on ttyO0.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Started Serial Getty on ttyS3.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
Starting Synchronize System and HW clocks...
[ OK ] Started thttpd.service.
Starting rng-tools.service...
[FAILED] Failed to start Synchronize System and HW clocks.
See 'systemctl status sync-clocks.service' for details.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started NFS status monitor for NFSv2/3 locking..
[ OK ] Started rng-tools.service.
Starting thermal-zone-init.service...
[ OK ] Started thermal-zone-init.service.
***************************************************************
***************************************************************
NOTICE: This file system contains the following GPLv3 packages:
bash
binutils
cifs-utils
cpio
dosfstools
elfutils
gawk
gzip
libdw1
libelf1
libreadline7
m4
which

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
[ OK ] Started Print notice about GPLv3 packages.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org am335x-evm ttyO0

Arago 2018.10 am335x-evm ttyO0

am335x-evm login: root
[ 34.963483] audit: type=1006 audit(1544930915.710:2): pid=447 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
root@am335x-evm:~# ls /dev/mmc*
/dev/mmcblk0 /dev/mmcblk0p1 /dev/mmcblk0p2
root@am335x-evm:~#

  • 使用的是自己的板子,还是官方的开发板?
  • 是自己的板子,目前上述问题已经解决,是因为设备树里面的引脚配置错了一个。但是现在有个问题,就是烧录好eMMC之后,拔掉SD卡,重新上电从eMMC启动,发现uboot不会读取uEnv去设置环境,在命令行输入boot后才能读取uEnv并正常启动,但是如果用通用的程序放到SD卡,再从SD卡启动,一切就正常。

    这是启动log:

    CPU  : AM335X-evm
    Model: AM335x
    I2C:   ready
    DRAM:  512 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   cpsw
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc1(part 0) is current device
    Scanning mmc 1:1...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    ** File not found /boot/uImage **
    root#boot
    switch to partitions #0, OK mmc1(part 0) is current device SD/MMC found on device 1 ** Unable to read file boot.scr ** 223 bytes read in 1 ms (217.8 KiB/s) Loaded env from uEnv.txt Importing environment from mmc1 ... Running uenvcmd ... 41884 bytes read in 6 ms (6.7 MiB/s) 3403760 bytes read in 292 ms (11.1 MiB/s) ## Booting kernel from Legacy Image at 82000000 ...
  • 有没有在你参考的板子上试试呢?
  • 有没有自己手动设置环境变量呢?
  • 麻烦TI的工程师帮忙分析,非常感谢!

    这个问题很恶心,因为从SD卡启动,一切正常,但是从eMMC启动,就出现上述情况,从log信息来看,之所以去/boot下找uImage,是因为我的uEnv.txt没有读取进去,系统就使用了默认环境。

    但是当执行到打印** File not found /boot/uImage **的时候,就停留在uboot命令行,这个时候输入boot,就可以读取到uEnv.txt,系统就正常启动了。

    CPU : AM335X-GP rev 2.1
    Model:  AM335x
    I2C: ready
    DRAM: 512 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: cpsw
    Hit any key to stop autoboot: 0
    switch to partitions #0, OK
    mmc1(part 0) is current device
    Scanning mmc 1:1...
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1

    ** File not found /boot/uImage **
    root# boot

    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    ** Unable to read file boot.scr **
    223 bytes read in 1 ms (217.8 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    Running uenvcmd ...
    41884 bytes read in 6 ms (6.7 MiB/s)
    3403760 bytes read in 292 ms (11.1 MiB/s)
    ## Booting kernel from Legacy Image at 82000000 ...

     

    查看eMMC两个分区的内容,是正确的:

    root#fatls mmc 1:1
    94228 MLO
    564876 u-boot.img
    223 uEnv.txt
    41884 am335x-evm.dtb
    3403760 uImage

    5 file(s), 0 dir(s)

    root#ext4ls mmc 1:2
    <DIR> 4096 .
    <DIR> 4096 ..
    <DIR> 16384 lost+found
    <DIR> 4096 bin
    <DIR> 4096 dev
    <DIR> 4096 home
    <DIR> 4096 media
    <DIR> 4096 proc
    <DIR> 4096 run
    <DIR> 4096 sys
    <DIR> 4096 usr
    <DIR> 4096 boot
    <DIR> 4096 etc
    <DIR> 4096 lib
    <DIR> 4096 mnt
    <DIR> 4096 sbin
    <DIR> 4096 tmp
    <DIR> 4096 var
    <SYM> 20 init
    <DIR> 4096 opt
    <DIR> 4096 srv
    root#boot

  • 请看一下下面的帖子。
    www.51ele.net/forum.php
  • 看了一下那个帖子,出现的问题是不一样的。我们这边eMMC设备名和SD卡名是固定的,分别是mmcblk1p1和mmcblk1p2、mmcblk0p1和mmcblk0p2,eMMC和SD两种启动方式唯一不同是在uEnv是分别为root=/dev/mmcblk1p2和root=/dev/mmcblk0p2,这是没问题的。根文件系统是可以正常挂载的,主要是从eMMC的uboot启动阶段,没有把uEnv里面的变量设置进去,导致启动失败;而SD卡启动把uEnv里面的变量设置进去,就启动正常。