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.

Help: cannot uniflash beaglebone black on Processor SDK 01.00.00.00

Other Parts Discussed in Thread: UNIFLASH

Hi,


I followed the guidelines, http://processors.wiki.ti.com/index.php/Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black,
But, I cannot flash program, uniflash progress always stop on 27%, and BBB(BeagleBoneBlack) showed the flowing log:

CCCCCCCC
U-Boot SPL 2014.07-00107-gd28f2b9 (Jul 14 2015 - 13:47:54)
Using default environment

usb_ether
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC d0:39:72:40:ea:8f
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
Using usb_ether device
TFTP from server 192.168.2.1; our IP address is 192.168.2.2
Filename 'u-boot-restore.img'.
Load address: 0x807fffc0
Loading: ###############################
         476.6 KiB/s
done
Bytes transferred = 447608 (6d478 hex)


U-Boot 2014.07-00107-gd28f2b9 (Jul 14 2015 - 13:47:54)

I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Card did not respond to voltage select!
** Bad device mmc 0 **
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
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
** No partition table - mmc 1 **
Booting from nand ...

no devices available

no devices available
Bad Linux ARM zImage magic!
U-Boot#

and printenv:

U-Boot# printenv
arch=arm
baudrate=115200
board=am335x
board_name=A335BNLT
board_rev=000C
boot_fdt=try
bootargs=console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run mmcboot;run nandboot;
bootcount=1
bootdelay=1
bootdir=/boot
bootenv=uEnv.txt
bootfile=zImage
bootm_size=0x10000000
bootpart=1:2
console=ttyO0,115200n8
cpu=armv7
dfu_alt_info_emmc=rawemmc raw 0 3751936;boot part 1 1;rootfs part 1 2;MLO fat 1 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x400;spl-os-args.raw raw 0x80 0x80;spl-os-image.raw raw 0x900 0x2000;spl-os-args fat 1 1;spl-os-image fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1
dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw raw 0x100 0x100;u-boot.img.raw raw 0x300 0x400;spl-os-args.raw raw 0x80 0x80;spl-os-image.raw raw 0x900 0x2000;spl-os-args fat 0 1;spl-os-image fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_alt_info_nand=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;u-boot-spl-os part 0 6;kernel part 0 8;rootfs part 0 9
dfu_alt_info_ram=kernel ram 0x80200000 0xD80000;fdt ram 0x80F80000 0x80000;ramdisk ram 0x81000000 0x4000000
eth1addr=d0:39:72:40:ea:91
ethact=cpsw
ethaddr=d0:39:72:40:ea:8f
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtfile=am335x-boneblack.dtb
findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A335BNLT; then setenv fdtfile am335x-boneblack.dtb; fi; if test $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi; if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi;
importbootenv=echo Importing environment from mmc ...; env import -t -r $loadaddr $filesize
kernel_addr_r=0x82000000
loadaddr=0x82000000
loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}
loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype}
mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run mmcloados;fi;fi;
mmcdev=1
mmcloados=run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait
mtdids=nand0=nand.0
mtdparts=mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)
nandargs=setenv bootargs console=${console} ${optargs} root=${nandroot} rootfstype=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${fdtaddr} NAND.u-boot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} - ${fdtaddr}
nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048
nandrootfstype=ubifs rootwait=1
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
nfsopts=nolock
partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
ramdisk_addr_r=0x88080000
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rdaddr=0x88080000
rootpath=/export/rootfs
soc=am33xx
spiargs=setenv bootargs console=${console} ${optargs} root=${spiroot} rootfstype=${spirootfstype}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}
spibusno=0
spiimgsize=0x362000
spiroot=/dev/mtdblock4 rw
spirootfstype=jffs2
spisrcaddr=0xe0000
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
usbnet_devaddr=d0:39:72:40:ea:91
vendor=ti
ver=U-Boot 2014.07-00107-gd28f2b9 (Jul 14 2015 - 13:47:54)

Environment size: 4826/131068 bytes
U-Boot#

Could someone give me some hints to help me continue this?

Thanks,

Bradlu.

  • Hi,

    I will forward this to the SW team.

  • U-Boot#    setenv ethact usb_ether
    U-Boot# dhcp
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC d0:39:72:40:ea:91
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    musb-hdrc: peripheral reset irq lost!
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    DHCP client bound to address 192.168.2.3
    Using usb_ether device
    TFTP from server 192.168.2.1; our IP address is 192.168.2.3
    Filename 'uImage'.
    Load address: 0x82000000
    Loading: *
    TFTP error: 'File not found or No Access' (1)
    Not retrying...
    U-Boot# run findfdt
    U-Boot# tftp ${fdtaddr} ${fdtfile}
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC d0:39:72:40:ea:91
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    *** ERROR: `serverip' not set
    U-Boot# setenv serverip 192.168.2.1
    U-Boot# tftp ${fdtaddr} ${fdtfile}
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC d0:39:72:40:ea:91
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    *** ERROR: `ipaddr' not set
    U-Boot# setemv ipaddr 192.168.2.2
    Unknown command 'setemv' - try 'help'
    U-Boot# setenv ipaddr 192.168.2.2
    U-Boot# tftp ${fdtaddr} ${fdtfile}
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC d0:39:72:40:ea:91
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    Using usb_ether device
    TFTP from server 192.168.2.1; our IP address is 192.168.2.2
    Filename 'am335x-boneblack.dtb'.
    Load address: 0x88000000
    Loading: T ###
             5.9 KiB/s
    done
    Bytes transferred = 32138 (7d8a hex)
    U-Boot# bootz ${loadaddr} - ${fdtaddr}
    Bad Linux ARM zImage magic!

    I also tried mutually to set serverip & ipaddr, it seems can load dtb file, but still cannot boot into kernel. 

    anyone could give me a help.

    Thanks,

    Bradlu

  • Hi Bradlu,

    Brad Lu4 said:
    U-Boot# bootz ${loadaddr} - ${fdtaddr}

    Bad Linux ARM zImage magic!

     

    You get this error, because you don't have a kernel image downloaded at ${loadaddr}

    You need to load the zImage the same way you do with the device tree am335x-boneblack.dtb.

    Best Regards, 

    Yordan

  • Hi Yordan,

    Thanks for reply.

    And I added to do "U-Boot# tftp ${loadaddr} zImage"

    it's OK to boot into kernel, and also can login root.

    But, I didn't see do any flashing program.

    U-Boot# tftp ${loadaddr} zImage
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC d0:39:72:40:ea:91
    HOST MAC de:ad:be:af:00:00
    RNDIS ready
    high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
    USB RNDIS network up!
    Using usb_ether device
    TFTP from server 192.168.2.1; our IP address is 192.168.2.3
    Filename 'zImage'.
    Load address: 0x82000000
    Loading: T #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################
             786.1 KiB/s
    done
    Bytes transferred = 26236200 (1905528 hex)
    U-Boot# bootz ${loadaddr} - ${fdtaddr}
    Kernel image @ 0x82000000 [ 0x000000 - 0x1905528 ]
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff5000, end 8ffffd89 ... OK
    
    Starting kernel ...
    
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org am335x-evm ttyO0
    
    Arago 2013.05 am335x-evm ttyO0
    
    am335x-evm login: root
    root@am335x-evm:~# dmesg
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.14.26-g07d13c6-dirty (brad@xU32) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Tue Jul 14 14:24:44 CST 2015

    How to start flash program to eMMC?


    Please refer to this page that helped me to solve problem.

    http://processors.wiki.ti.com/index.php/Sitara_Linux_AM335x_Flash_Programming_Linux_Development#eMMC_Programming_Process

    Thanks,

    Brad.