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 flashing from linux host

Other Parts Discussed in Thread: UNIFLASH, DA8XX, TPS65217

Dear E2E community,

As tried eMMC flashing on windows host using uniflash but I was unable to succeed

Could you please let me know, I am trying to flash eMMC from linux host, as the  links says (http://processors.wiki.ti.com/index.php/Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black)  uniflash tool is used in windows, but when am using linux host how this can be done?.. I have already configured tftp & dhcp servers on linux host

And I have the flasher files & images that needs to be flashed in /tftpboot folder of linux host, could you please let me know how to execute the flasher images from linux host

am using ti-sdk-am335x-evm-07.00.00.00

Kindly do the needful as ealry as possible as am trying to flash eMMC from past two weeks still unable to succeed

Any help would be greatly appreciated

Many Thanks in advance again

  • I'm also trying to flash eMMC of BBB according to (http://processors.wiki.ti.com/index.php/Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black). In Windows uniflash started with status "NewlyCreatedDevice" and later status changes to "FlashUnknownError".

    In Linux i have configured tftp server and dhcp server, but can't understand how to initiate flash process. This information can't help me:

    1. Set the Beaglebone Black to boot from Ethernet.
    2. Connect cables as necessary and boot the board.
    3. Stop U-Boot.

             1. Use the procedure from earlier labs to Ethernet boot. This will run the init script and TFTP the flasher.sh, and execute it to program the eMMC.

    I don't know how to boot Beagleboone Black from Ethernet and can't find appropriate information on the Internet and hope here i will find help. And if exists manual for ceating eMMC flasher SD card i would like to see it.

    Thanks in advance.

  • Hi,

    Follow the instructions:
    * Flash Beaglebone Black's eMMC (verified with AM335x SDK 07.00.00.00):
    http://www.adminempire.com/how-to-install-arch-linux-on-beaglebone-black-bbb/

    1. Prepare a SD card either with the create-sdcard.sh script or:
    On the host PC with the SD card inserted:
    1.01. sudo fdisc /dev/sdd (or /dev/mmcblk0)
    1.02. o - this clears the existing partitions
    1.03. p - this lists all partition tables on the card (there should be none)
    1.04. n - create a new partition
    1.05. p - primary partition
    1.06. 1 - partition number
    1.07. 2048 - default value for the first sector
    1.08. +64M - last sector / partition size
    1.09. t - change the partition type (select partition 1)
    1.10. e - change tha partition type to "W95 FAT16 (LBA)"
    1.11. a - set the bootable flag for the selected partition (1)
    1.12. n - create a new partition
    1.13. p - primary partition
    1.14. 2 - partition number
    1.15. hit Enter to choose the default (next available) value for the first sector
    1.16. hit Enter to choose the default (last) value for the last sector
    1.17. p - this lists all partition tables on the card (there should be two)
    1.18. w - write all the above changes to disk
    1.19. sudo mkfs.vfat -F 16 /dev/mmcblk0p1 (or /dev/sdd1) - format the first partition
    1.20. sudo mkfs.ext4 /dev/mmcblk0p2 (or /dev/sdd2) - format the second partition
    1.21. copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # sudo mount /dev/mmcblk0p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # sudo umount boot
    1.22. copy the root file system to the second partition:
    # mkdir root
    # sudo mount /dev/mmcblk0p2 root
    # tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
    # sudo umount root

    2. Run the BBB from the SD card (hold the USR button when powering the board up)

    3. ssh into the board:
    # ssh root@172.20.0.111

    4. The eMMC is /dev/mmcblk1. Format it this way:
    4.01. fdisk /dev/mmcblk1
    4.02. o - this clears the existing partitions
    4.03. p - this lists all partition tables on the card (there should be none)
    4.04. n - create a new partition
    4.05. p - primary partition
    4.06. 1 - partition number
    4.07. 2048 - default value for the first sector
    4.08. +16M - last sector / partition size
    4.09. t - change the partition type (select partition 1)
    4.10. e - change tha partition type to "W95 FAT16 (LBA)"
    4.11. a - set the bootable flag for the selected partition (1)
    4.12. n - create a new partition
    4.13. p - primary partition
    4.14. 2 - partition number
    4.15. hit Enter to choose the default (next available) value for the first sector
    4.16. hit Enter to choose the default (last) value for the last sector
    4.17. p - this lists all partition tables on the card (there should be two)
    4.18. w - write all the above changes to disk
    4.19. umount /dev/mmcblk1p1; mkfs.vfat -F 16 /dev/mmcblk1p1 - format the first partition
    4.20. umount /dev/mmcblk1p2; mkfs.ext4 /dev/mmcblk1p2 - format the second partition

    5. Copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # mount /dev/mmcblk1p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # umount boot

    6. Copy the root file system to the second partition:
    # mkdir root
    # mount /dev/mmcblk1p2 root
    # tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
    # umount root

    7. Shutdown the BBB, remove the SD card and start it from the eMMC.

    BR
    Ivan

  • Hi,

    Follow next instructions:
    * Flash Beaglebone Black's eMMC (verified with AM335x SDK 07.00.00.00):
    http://www.adminempire.com/how-to-install-arch-linux-on-beaglebone-black-bbb/

    1. Prepare a SD card either with the create-sdcard.sh script or:
    On the host PC with the SD card inserted:
    1.01. sudo fdisc /dev/sdd (or /dev/mmcblk0)
    1.02. o - this clears the existing partitions
    1.03. p - this lists all partition tables on the card (there should be none)
    1.04. n - create a new partition
    1.05. p - primary partition
    1.06. 1 - partition number
    1.07. 2048 - default value for the first sector
    1.08. +64M - last sector / partition size
    1.09. t - change the partition type (select partition 1)
    1.10. e - change tha partition type to "W95 FAT16 (LBA)"
    1.11. a - set the bootable flag for the selected partition (1)
    1.12. n - create a new partition
    1.13. p - primary partition
    1.14. 2 - partition number
    1.15. hit Enter to choose the default (next available) value for the first sector
    1.16. hit Enter to choose the default (last) value for the last sector
    1.17. p - this lists all partition tables on the card (there should be two)
    1.18. w - write all the above changes to disk
    1.19. sudo mkfs.vfat -F 16 /dev/mmcblk0p1 (or /dev/sdd1) - format the first partition
    1.20. sudo mkfs.ext4 /dev/mmcblk0p2 (or /dev/sdd2) - format the second partition
    1.21. copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # sudo mount /dev/mmcblk0p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # sudo umount boot
    1.22. copy the root file system to the second partition:
    # mkdir root
    # sudo mount /dev/mmcblk0p2 root
    # tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
    # sudo umount root

    2. Run the BBB from the SD card (hold the USR button when powering the board up)

    3. ssh into the board:
    # ssh root@172.20.0.111

    4. The eMMC is /dev/mmcblk1. Format it this way:
    4.01. fdisk /dev/mmcblk1
    4.02. o - this clears the existing partitions
    4.03. p - this lists all partition tables on the card (there should be none)
    4.04. n - create a new partition
    4.05. p - primary partition
    4.06. 1 - partition number
    4.07. 2048 - default value for the first sector
    4.08. +16M - last sector / partition size
    4.09. t - change the partition type (select partition 1)
    4.10. e - change tha partition type to "W95 FAT16 (LBA)"
    4.11. a - set the bootable flag for the selected partition (1)
    4.12. n - create a new partition
    4.13. p - primary partition
    4.14. 2 - partition number
    4.15. hit Enter to choose the default (next available) value for the first sector
    4.16. hit Enter to choose the default (last) value for the last sector
    4.17. p - this lists all partition tables on the card (there should be two)
    4.18. w - write all the above changes to disk
    4.19. umount /dev/mmcblk1p1; mkfs.vfat -F 16 /dev/mmcblk1p1 - format the first partition
    4.20. umount /dev/mmcblk1p2; mkfs.ext4 /dev/mmcblk1p2 - format the second partition

    5. Copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # mount /dev/mmcblk1p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # umount boot

    6. Copy the root file system to the second partition:
    # mkdir root
    # mount /dev/mmcblk1p2 root
    # tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
    # umount root

    7. Shutdown the BBB, remove the SD card and start it from the eMMC.

    BR
    Ivan

  • Hi.

    Thaks for answer Ivan. I tried your method. I used "MLO" and "u-boot.img" files from this directory:

    ~/ti-sdk-am335x-evm-07.00.00.00/board-support/prebuilt-images

    ("MLO-am335x-evm" and "u-boot-am335x-evm.img" renamed to "MLO" and "u-boot-img") to write them on boot partition on Beaglebone (/dev/mmcblk1p1). And root partition (/dev/mmcblk1p2) i filled with files from archive

    "tisdk-rootfs-image-am335x-evm.tar.gz" found here:

    ~/ti-sdk-am335x-evm-07.00.00.00/filesystem.

    After restart BBB does nothing. LED doesn't blink and system doesn't loading. What i missed?

    Thanks in advance.

  • I realized that boot partition from eMMC loads linux fs from sd card. I've built u-boot like this: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=emmc am335x_boneblack. How i can make beaglebone to boot file system from eMMC?

  • Hi Chris,

    This explanation is possible only for BBB. The beagle bobe white this is not true, because there is not eMMC. If you have BBB you have to use BeagleBone Black Connector and Switch for booting from sd-card and eMMC. See the:
    http://www.elinux.org/Beagleboard:BeagleBoneBlack

    BR
    Ivan

  • I'm working with Beaglebone Black. As I understand, boot switch can be used to load from SD card, but when I don't touch the boot switch, u-boot must be loaded from eMMC. So, after I did changes on the eMMC (/dev/mmcblk1) according to method you provided, BBB uses u-boot from the eMMC, but rootfs is loaded from SD card. This is not the behavior I expected.

  • You can try to boot from emmc after placing the following in the uEnv.txt in boot partition of eMMC, so that rootfs will be loaded from eMMC

    bootpart=1:2
    mmcroot=/dev/mmcblk1p2

  • This uEnv.txt file didn't help me. Looks like device doesn't react on uEnv.txt. I did changes in "am335x_evm.h" of u-boot from sitara SDK (.../board-support/u-boot-2013.10-ti2013.12.01/include/configs/am335x_evm.h) like "Srini S" said. Now BBB doesn't loads without sd card when eMMC boot partition is used, but mmcblk1p2 is mounted as rootfs. Maybe i have to change something else in u-boot parameters, except this:

    bootpart=1:2
    mmcroot=/dev/mmcblk1p2
    .

  • I have to leave "zImage" and "zImage-3.12.10-ti2013.12.01" files in "boot" folder of root partitions on SD card to let the BBB been launched. Other files i can delete from SD card. How i can fix it and let BBB to work without SD card?

  • Am sorry Anton,

    It should be  mmcroot=/dev/mmcblk0p2 after you poweroff & remove the sdcard & rebooting & moreover am using uboot 2014.07 & not tisdk uboot version

    U-Boot SPL 2014.07 (Nov 10 2014 - 19:07:12)
    reading u-boot.img
    reading u-boot.img


    U-Boot 2014.07 (Nov 10 2014 - 19:07:12)

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

    Net: <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    Card did not respond to voltage select!
    Card did not respond to voltage select!
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    reading uEnv.txt
    37 bytes read in 4 ms (8.8 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    4117616 bytes read in 336 ms (11.7 MiB/s)
    34352 bytes read in 43 ms (779.3 KiB/s)
    Kernel image @ 0x82000000 [ 0x000000 - 0x3ed470 ]
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8fff4000, end 8ffff62f ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 3.12.10-ti2013.12.01 (jenkins@sdit-build02) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Sun Mar 30 20:55:31 CDT 2014
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
    [ 0.000000] cma: CMA: reserved 24 MiB at 9e000000
    [ 0.000000] Memory policy: ECC disabled, 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: 129280
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 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: 483352K/521216K available (5555K kernel code, 559K rwdata, 1876K rodata, 345K init, 225K bss, 37864K 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 - 0xc074a04c (7433 kB)
    [ 0.000000] .init : 0xc074b000 - 0xc07a15f0 ( 346 kB)
    [ 0.000000] .data : 0xc07a2000 - 0xc082ddd8 ( 560 kB)
    [ 0.000000] .bss : 0xc082ddd8 - 0xc0866400 ( 226 kB)
    [ 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.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [ 0.000000] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000000] Console: colour dummy device 80x30
    [ 0.000248] Calibrating delay loop... 663.55 BogoMIPS (lpj=3317760)
    [ 0.049788] pid_max: default: 32768 minimum: 301
    [ 0.049873] Security Framework initialized
    [ 0.049912] Mount-cache hash table entries: 512
    [ 0.055731] CPU: Testing write buffer coherency: ok
    [ 0.056063] Setting up static identity map for 0xc0572e68 - 0xc0572ed8
    [ 0.056759] devtmpfs: initialized
    [ 0.058179] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.117860] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.118448] pinctrl core: initialized pinctrl subsystem
    [ 0.119122] regulator-dummy: no parameters
    [ 0.121147] NET: Registered protocol family 16
    [ 0.122824] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.124828] cpuidle: using governor ladder
    [ 0.124842] cpuidle: using governor menu
    [ 0.131224] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [ 0.132048] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [ 0.132994] OMAP GPIO hardware version 0.1
    [ 0.139048] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [ 0.140544] DSS not supported on this SoC
    [ 0.140559] No ATAGs?
    [ 0.140568] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.158136] bio: create slab <bio-0> at 0
    [ 0.169003] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [ 0.169646] vmmcsd_fixed: 3300 mV
    [ 0.171769] vgaarb: loaded
    [ 0.172742] SCSI subsystem initialized
    [ 0.173751] usbcore: registered new interface driver usbfs
    [ 0.173888] usbcore: registered new interface driver hub
    [ 0.174039] usbcore: registered new device driver usb
    [ 0.174737] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [ 0.174759] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [ 0.174923] media: Linux media interface: v0.10
    [ 0.175053] Linux video capture interface: v2.00
    [ 0.175255] pps_core: LinuxPPS API ver. 1 registered
    [ 0.175263] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.175361] PTP clock support registered
    [ 0.177286] Switched to clocksource timer1
    [ 0.191222] NET: Registered protocol family 2
    [ 0.191737] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.191803] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.191841] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.191895] TCP: reno registered
    [ 0.191907] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.191922] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.192078] NET: Registered protocol family 1
    [ 0.192393] RPC: Registered named UNIX socket transport module.
    [ 0.192403] RPC: Registered udp transport module.
    [ 0.192408] RPC: Registered tcp transport module.
    [ 0.192413] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.193116] NetWinder Floating Point Emulator V0.97 (double precision)
    [ 0.193591] PM: Loading am335x-pm-firmware.bin
    [ 0.307742] VFS: Disk quotas dquot_6.5.2
    [ 0.307804] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.308292] NFS: Registering the id_resolver key type
    [ 0.308361] Key type id_resolver registered
    [ 0.308368] Key type id_legacy registered
    [ 0.308403] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
    [ 0.308558] msgmni has been set to 992
    [ 0.309770] NET: Registered protocol family 38
    [ 0.309806] io scheduler noop registered
    [ 0.309813] io scheduler deadline registered
    [ 0.309831] io scheduler cfq registered (default)
    [ 0.311318] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.314943] platform 4830e000.lcdc: Driver da8xx_lcdc requests probe deferral
    [ 0.316202] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.318378] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [ 0.918176] console [ttyO0] enabled
    [ 0.922900] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 0.937347] brd: module loaded
    [ 0.944431] loop: module loaded
    [ 0.950201] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.959563] usbcore: registered new interface driver asix
    [ 0.965393] usbcore: registered new interface driver ax88179_178a
    [ 0.971918] usbcore: registered new interface driver cdc_ether
    [ 0.978174] usbcore: registered new interface driver r815x
    [ 0.984068] usbcore: registered new interface driver smsc95xx
    [ 0.990213] usbcore: registered new interface driver net1080
    [ 0.996280] usbcore: registered new interface driver cdc_subset
    [ 1.002595] usbcore: registered new interface driver zaurus
    [ 1.008635] usbcore: registered new interface driver cdc_ncm
    [ 1.014946] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.021822] ehci-pci: EHCI PCI platform driver
    [ 1.026630] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.032764] usbcore: registered new interface driver cdc_wdm
    [ 1.038870] usbcore: registered new interface driver usb-storage
    [ 1.045924] mousedev: PS/2 mouse device common for all mice
    [ 1.053890] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 1.061948] i2c /dev entries driver
    [ 1.066009] Driver for 1-wire Dallas network protocol.
    [ 1.073238] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.081877] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [ 1.089119] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [ 1.127597] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
    [ 1.134640] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
    [ 1.182479] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.189151] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [ 1.196372] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 1.203485] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 1.209662] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [ 1.216758] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [ 1.227913] usbcore: registered new interface driver usbhid
    [ 1.233761] usbhid: USB HID core driver
    [ 1.239526] oprofile: no performance counters
    [ 1.244411] oprofile: using timer interrupt.
    [ 1.249222] TCP: cubic registered
    [ 1.252717] Initializing XFRM netlink socket
    [ 1.257218] NET: Registered protocol family 17
    [ 1.261961] NET: Registered protocol family 15
    [ 1.266686] 8021q: 802.1Q VLAN Support v1.8
    [ 1.271192] Key type dns_resolver registered
    [ 1.276249] cpu cpu0: cpu0 regulator not ready, retry
    [ 1.281658] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [ 1.289478] mmc1: BKOPS_EN bit is not set
    [ 1.294170] ThumbEE CPU extension supported.
    [ 1.300980] mmc1: new high speed MMC card at address 0001
    [ 1.307542] mmcblk0: mmc1:0001 MMC02G 1.78 GiB
    [ 1.312453] mmcblk0boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
    [ 1.319828] mmcblk0boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
    [ 1.326384] DCDC1: at 1500 mV
    [ 1.330966] vdd_mpu: 925 <--> 1375 mV at 1325 mV
    [ 1.336015] mmcblk0: p1 p2
    [ 1.340202] vdd_core: 925 <--> 1150 mV at 1125 mV
    [ 1.346560] mmcblk0boot1: unknown partition table
    [ 1.351905] LDO1: at 1800 mV
    [ 1.356386] mmcblk0boot0: unknown partition table
    [ 1.361616] LDO2: at 3300 mV
    [ 1.366305] LDO3: 1800 mV
    [ 1.369979] LDO4: at 3300 mV
    [ 1.373720] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 1.499431] tda998x 0-0070: found TDA19988
    [ 1.504137] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.571008] Console: switching to colour frame buffer device 160x45
    [ 1.647326] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.653735] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 1.660885] libphy: 4a101000.mdio: probed
    [ 1.665100] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [ 1.675289] Detected MACID = 7c:66:9d:53:87:de
    [ 1.681418] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 1.698665] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [ 1.706353] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [ 1.724839] EXT4-fs (mmcblk0p2): recovery complete
    [ 1.773361] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.781928] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [ 1.795637] devtmpfs: mounted
    [ 1.799227] Freeing unused kernel memory: 344K (c074b000 - c07a1000)
    INIT: version 2.88 booting
    Starting udev
    [ 2.450239] udevd[802]: starting version 182
    [ 2.804365] PM: CM3 Firmware Version = 0x186
    [ 4.846630] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
    [ 4.925136] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [ 4.964843] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [ 5.012419] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 5.019625] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 5.027219] usb usb1: Product: MUSB HDRC host driver
    [ 5.032447] usb usb1: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
    [ 5.039395] usb usb1: SerialNumber: musb-hdrc.0.auto
    [ 5.044701] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 5.087650] hub 1-0:1.0: USB hub found
    [ 5.107494] hub 1-0:1.0: 1 port detected
    [ 5.129189] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
    [ 5.136845] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [ 5.169958] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [ 5.187618] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [ 5.194772] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 5.202371] usb usb2: Product: MUSB HDRC host driver
    [ 5.207590] usb usb2: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
    [ 5.214531] usb usb2: SerialNumber: musb-hdrc.1.auto
    [ 5.251519] hub 2-0:1.0: USB hub found
    [ 5.262528] hub 2-0:1.0: 1 port detected
    [ 5.378117] cryptodev: driver 1.6 loaded.
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [ 5.451635] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1696: No soundcards found...
    Configuring network interfaces... [ 6.093532] net eth0: initializing cpsw version 1.12 (0)
    [ 6.101292] net eth0: phy found : id is : 0x7c0f1
    [ 6.113493] 8021q: adding VLAN 0 to HW filter on device eth0
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    Mon Mar 31 02:34:00 UTC 2014
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    UIM SYSFS Node Not Found
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    Starting Lighttpd Web Server: lighttpd.
    2014-03-31 02:34:01: (log.c.166) server started
    /
    Starting Matrix GUI application.
    [ 19.942833] Number of LUNs=8
    [ 19.945893] Mass Storage Function, version: 2009/09/11
    [ 19.951960] LUN: removable file: (no medium)
    [ 19.958250] Number of LUNs=1
    [ 19.961742] LUN: file: /dev/mmcblk0p1
    [ 19.965631] Number of LUNs=1
    [ 19.970077] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [ 19.977506] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [ 19.984941] g_mass_storage gadget: g_mass_storage ready
    [ 20.268443] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
    binutils-symlinks
    binutils
    gdbserver

    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
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.

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

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

    Arago 2013.12 am335x-evm ttyO0

    am335x-evm login:

  • I'm using tisdk u-boot (u-boot-2013.10-ti2013.12.01). Options must be set like this?

    bootpart=1:2
    mmcroot=/dev/mmcblk0p2

    It doesn't work.

  • Hi All, 

    I'd like to join this thread, since I have encountered same problem.

    this is my boot log with uEnv.txt as mmcroot=/dev/mmcblk0p2

    =========================

    U-Boot SPL 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)
    reading args
    spl: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img


    U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)

    I2C: ready
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment

    Net: <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    Card did not respond to voltage select!
    mmc0(part 0) is current device
    Scanning mmc 0...
    Card did not respond to voltage select!
    ** Bad device mmc 0 **
    Card did not respond to voltage select!
    mmc0(part 0) is current device
    Card did not respond to voltage select!
    mmc1(part 0) is current device
    SD/MMC found on device 1
    reading uEnv.txt
    38 bytes read in 4 ms (8.8 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    4117616 bytes read in 270 ms (14.5 MiB/s)
    ** File not found /boot/undefined **
    Kernel image @ 0x80200000 [ 0x000000 - 0x3ed470 ]

    Starting kernel ...

    ===================================

    my BBB seems not find dtb file during boot.

    I have used rootfs image with tisdk-rootfs-image-am335x-evm.tar.gz of SDK v7.0 

    would you please take a loot at it ?

    BRs

    HRJung

  • Hi All

    Finally I can boot with following uEnv.txt

    ==========

    bootpart=1:2
    mmcroot=/dev/mmcblk0p2
    fdtfile=am335x-boneblack.dtb

    =============

    please try.

    BRs,

    HRJung

  • Yes! HRJung's "uEnv.txt" made the deal. Big thaks to all.

    But i still want to know, where i can find a boot log?

    And how i can make BBB to start OS from eMMC when SD Card is in device? Now it doesn't want to load system if SD Card is inserted.

  • Hi Anton, 

    I'd like to give information about how to get boot log

    please refer to chapter 7.5 of BBB_SystemReferenceManual.pdf

    there is description about serial port and serial cable 

    good luck.

    BRs,

    HRJung

  • Thank you for help!