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制作好sd卡启动盘后,只能用sd卡启动,如果要用sd卡烧入emmc,应如何做?

Other Parts Discussed in Thread: TPS65217, UNIFLASH

am335x用sd卡启动后,应如何从sd卡烧写程序到emmc。

  • 请参考下面这篇文档的介绍:

    http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/73278.aspx

  • Hi ,Jian Zhou,

    这是用sd卡升级的打印,请帮忙分析下,谢谢。

    U-Boot 2015.07-00114-gf5078ef-dirty (Jan 25 2016 - 10:43:00 +0800)

           Watchdog enabled
    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env

    ** Unable to read "uboot.env" from mmc0:1 **
    Using default environment

    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    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 **
    71471840 bytes read in 3963 ms (17.2 MiB/s)
    32990 bytes read in 47 ms (684.6 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x44292e0 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8ffff0dd ... OK

    Starting kernel ...

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Initializing cgroup subsys cpuacct
    [    0.000000] Linux version 4.1.6-g52c4aa7 (kevin@kevin) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #1 PREEMPT Mon Jan 25 10:55:52 CST 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 24 MiB at 0x9e800000
    [    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: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=00000000-02 rw 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: 417776K/524288K available (6247K kernel code, 254K rwdata, 2096K rodata, 67820K init, 229K bss, 81936K reserved, 24576K 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 - 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 - 0xc082e05c   (8345 kB)
    [    0.000000]       .init : 0xc082f000 - 0xc4a6a000   (67820 kB)
    [    0.000000]       .data : 0xc4a6a000 - 0xc4aa9b28   ( 255 kB)
    [    0.000000]        .bss : 0xc4aac000 - 0xc4ae57f8   ( 230 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]  Additional per-CPU info printed with stalls.
    [    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.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000031] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000041] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000206] Console: colour dummy device 80x30
    [    0.000228] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000233] This ensures that you still see kernel messages. Please
    [    0.000238] update your kernel commandline.
    [    0.000255] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089326] pid_max: default: 32768 minimum: 301
    [    0.089419] Security Framework initialized
    [    0.089466] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089474] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090088] Initializing cgroup subsys blkio
    [    0.090110] Initializing cgroup subsys memory
    [    0.090147] Initializing cgroup subsys devices
    [    0.090160] Initializing cgroup subsys freezer
    [    0.090172] Initializing cgroup subsys perf_event
    [    0.090193] CPU: Testing write buffer coherency: ok
    [    0.090557] Setting up static identity map for 0x80008200 - 0x80008270
    [    0.091932] devtmpfs: initialized
    [    0.100003] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.107382] omap_hwmod: tptc0 using broken dt data from edma
    [    0.107480] omap_hwmod: tptc1 using broken dt data from edma
    [    0.107563] omap_hwmod: tptc2 using broken dt data from edma
    [    0.111831] omap_hwmod: debugss: _wait_target_disable failed
    [    0.166167] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.168134] pinctrl core: initialized pinctrl subsystem
    [    0.169268] NET: Registered protocol family 16
    [    0.171225] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.199316] cpuidle: using governor ladder
    [    0.229306] cpuidle: using governor menu
    [    0.232306] OMAP GPIO hardware version 0.1
    [    0.240099] No ATAGs?
    [    0.240129] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.276239] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.278887] vgaarb: loaded
    [    0.279431] SCSI subsystem initialized
    [    0.279904] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.280044] pps_core: LinuxPPS API ver. 1 registered
    [    0.280051] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.280079] PTP clock support registered
    [    0.280783] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.280976] Advanced Linux Sound Architecture Driver Initialized.
    [    0.281689] Switched to clocksource timer1
    [    0.290463] NET: Registered protocol family 2
    [    0.291197] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.291242] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.291280] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.291359] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.291375] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.291519] NET: Registered protocol family 1
    [    0.291933] RPC: Registered named UNIX socket transport module.
    [    0.291946] RPC: Registered udp transport module.
    [    0.291952] RPC: Registered tcp transport module.
    [    0.291958] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    4.291021] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    4.291081] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    4.293035] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    4.293117] audit: initializing netlink subsys (disabled)
    [    4.293185] audit: type=2000 audit(4.290:1): initialized
    [    4.299423] VFS: Disk quotas dquot_6.6.0
    [    4.299609] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    4.301461] NFS: Registering the id_resolver key type
    [    4.301528] Key type id_resolver registered
    [    4.301537] Key type id_legacy registered
    [    4.301599] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    4.304092] NET: Registered protocol family 38
    [    4.304158] io scheduler noop registered
    [    4.304171] io scheduler deadline registered
    [    4.304225] io scheduler cfq registered (default)
    [    4.305140] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    4.306818] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    4.307740] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    4.310753] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a 8250
    [    4.946532] console [ttyS0] enabled
    [    4.950909] [drm] Initialized drm 1.1.0 20060810
    [    4.955917] slave hdmi: could not get i2c
    [    4.968929] brd: module loaded
    [    4.976386] loop: module loaded
    [    4.980353] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    4.988680] mousedev: PS/2 mouse device common for all mice
    [    4.994386] i2c /dev entries driver
    [    4.998757] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    5.079054] mmc0: host does not support reading read-only switch, assuming write-enable
    [    5.087419] ledtrig-cpu: registered to indicate activity on CPUs
    [    5.093880] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    5.099756] mmc0: new high speed SDHC card at address 0001
    [    5.106228] mmcblk0: mmc0:0001 SD 3.69 GiB
    [    5.111555] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    5.119272]  remoteproc0: wkup_m3 is available
    [    5.123950]  mmcblk0: p1 p2
    [    5.127602]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    5.136772]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    5.148486]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    5.161922] oprofile: using arm/armv7
    [    5.165920] Initializing XFRM netlink socket
    [    5.170244] NET: Registered protocol family 17
    [    5.174814]  remoteproc0: Falling back to user helper
    [    5.180115] NET: Registered protocol family 15
    [    5.184819] Key type dns_resolver registered
    [    5.189355] omap_voltage_late_init: Voltage driver support not added
    [    5.197291] ThumbEE CPU extension supported.
    [    5.203659] Registering SWP/SWPB emulation handler
    [    5.238681] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    5.244130] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    5.373926] tda998x 0-0070: found TDA19988
    [    5.378998] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    5.385696] [drm] No driver support for vblank timestamp query.
    [    5.392027] tilcdc 4830e000.lcdc: No connectors reported connected with modes
    [    5.399207] [drm] Cannot find any crtc or sizes - going 1024x768
    [    5.413704] Console: switching to colour frame buffer device 128x48
    [    5.425294] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    5.430909] tilcdc 4830e000.lcdc: registered panic notifier
    [    5.461725] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    5.531709] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    5.537843] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    5.548841] libphy: 4a101000.mdio: probed
    [    5.553049] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    5.563074] cpsw 4a100000.ethernet: Detected MACID = 78:a5:04:dc:33:42
    [    5.570562] hctosys: unable to open rtc device (rtc0)
    [    5.579032] ALSA device list:
    [    5.582202]   No soundcards found.
    [    5.585770] Warning: unable to open an initial console.
    [    5.675171] Freeing unused kernel memory: 67820K (c082f000 - c4a6a000)
    [    5.681898] mmc1: MAN_BKOPS_EN bit is not set
    [    5.691827] mmc1: new high speed MMC card at address 0001
    [    5.697817] mmcblk1: mmc1:0001 MMC04G 3.65 GiB
    [    5.702684] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
    [    5.708759] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
    [    5.716973]  mmcblk1: p1 p2
    [    7.312541]  remoteproc0: failed to load am335x-pm-firmware.elf
    [    7.318535]  remoteproc0: powering up wkup_m3
    [    7.345149]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    7.741854]  remoteproc0: Falling back to user helper
    [    8.937149]  remoteproc0: request_firmware failed: -11
    [    9.006744]  remoteproc0: rproc_boot failed
    [    9.208202] EXT4-fs (mmcblk1): VFS: Can't find ext4 filesystem
    [    9.215152] EXT3-fs (mmcblk1): error: can't find ext3 filesystem on dev mmcblk1.
    [    9.223618] EXT2-fs (mmcblk1): error: can't find an ext2 filesystem on dev mmcblk1.
    [    9.233381] FAT-fs (mmcblk1): bogus number of reserved sectors
    [    9.239472] FAT-fs (mmcblk1): Can't find a valid FAT filesystem
    [    9.268248] cramfs: wrong magic
    [    9.272968] FAT-fs (mmcblk1): bogus number of reserved sectors
    [    9.279007] FAT-fs (mmcblk1): Can't find a valid FAT filesystem
    [    9.366531] EXT4-fs (mmcblk0): VFS: Can't find ext4 filesystem
    [    9.413708] EXT3-fs (mmcblk0): error: can't find ext3 filesystem on dev mmcblk0.
    [    9.429594] EXT2-fs (mmcblk0): error: can't find an ext2 filesystem on dev mmcblk0.
    [    9.461088] FAT-fs (mmcblk0): bogus number of reserved sectors
    [    9.492292] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [    9.584606] cramfs: wrong magic
    [    9.589944] FAT-fs (mmcblk0): bogus number of reserved sectors
    [    9.642092] FAT-fs (mmcblk0): Can't find a valid FAT filesystem
    [   10.270538] EXT4-fs (mmcblk1p1): VFS: Can't find ext4 filesystem
    [   10.282764] EXT3-fs (mmcblk1p1): error: can't find ext3 filesystem on dev mmcblk1p1.
    [   10.293382] EXT2-fs (mmcblk1p1): error: can't find an ext2 filesystem on dev mmcblk1p1.
    [   10.309944] FAT-fs (mmcblk1p1): bogus number of reserved sectors
    [   10.337087] FAT-fs (mmcblk1p1): Can't find a valid FAT filesystem
    [   10.362018] EXT4-fs (mmcblk1p2): recovery complete
    [   10.366867] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [   10.394093] EXT4-fs (mmcblk1boot0): VFS: Can't find ext4 filesystem
    [   10.400804] EXT4-fs (mmcblk1boot1): VFS: Can't find ext4 filesystem
    [   10.430208] EXT3-fs (mmcblk1boot0): error: can't find ext3 filesystem on dev mmcblk1boot0.
    [   10.439230] EXT3-fs (mmcblk1boot1): error: can't find ext3 filesystem on dev mmcblk1boot1.
    [   10.475195] cramfs: wrong magic
    [   10.482034] FAT-fs (mmcblk1p1): bogus number of reserved sectors
    [   10.490745] EXT2-fs (mmcblk1boot0): error: can't find an ext2 filesystem on dev mmcblk1boot0.
    [   10.500193] EXT2-fs (mmcblk1boot1): error: can't find an ext2 filesystem on dev mmcblk1boot1.
    [   10.515742] FAT-fs (mmcblk1p1): Can't find a valid FAT filesystem
    [   10.533851] FAT-fs (mmcblk1boot0): bogus number of reserved sectors
    [   10.540732] FAT-fs (mmcblk1boot1): bogus number of reserved sectors
    [   10.553031] FAT-fs (mmcblk1boot0): Can't find a valid FAT filesystem
    [   10.559677] FAT-fs (mmcblk1boot1): Can't find a valid FAT filesystem
    [   10.652993] cramfs: wrong magic
    [   10.658422] cramfs: wrong magic
    [   10.662283] FAT-fs (mmcblk1boot0): bogus number of reserved sectors
    [   10.668991] FAT-fs (mmcblk1boot0): Can't find a valid FAT filesystem
    [   10.676151] FAT-fs (mmcblk1boot1): bogus number of reserved sectors
    [   10.689093] FAT-fs (mmcblk1boot1): Can't find a valid FAT filesystem
    [   10.745068] kjournald starting.  Commit interval 5 seconds
    [   10.753789] EXT3-fs (mmcblk0p2): using internal journal
    [   10.779466] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [   13.001737] random: nonblocking pool is initialized

    我在论坛上也看到过有人提到这个问题,我是用sdk自带的工具代码包是ti-processor-sdk-linux-am335x-evm-02.00.00.00-Linux-x86-Install.bin

  • 看log应该是没有做文件系统,你需要把emmc进行格式化到相应的文件系统格式(fat, ext3/ext4).

    可以参考 http://processors.wiki.ti.com/index.php/Sitara_Uniflash_Flash_Programming_with_Linux?keyMatch=uniflash%20AM335x&tisearch=Search-EN#eMMC_Programming_Process 中的脚本文件

  • 我的那篇文档是基于SDK06的,建议你先下载SDK06试一下。