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 sdcard booting issue



Hi,

 

While booting my SD-Card in am335x system it suck at the below :

--------------------------------------------------------------------------------------

U-Boot 2013.10-00189-g78d8ebd-dirty (May 05 2015 - 11:18:21)

I2C: ready
DRAM: 512 MiB
NAND: 1024 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

Net:
Could not get PHY for cpsw: addr 0
cpsw, usb_ether
Hit any key to stop autoboot: 0
mmc0 is current device
Scanning mmc 0...
4117616 bytes read in 246 ms (16 MiB/s)
41564 bytes read in 28 ms (1.4 MiB/s)
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
1349 bytes read in 3 ms (438.5 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading zImage
4117616 bytes read in 225 ms (17.5 MiB/s)
reading uInitrd
2676210 bytes read in 148 ms (17.2 MiB/s)
reading /dtbs/am335x-evm.dtb
22166 bytes read in 7 ms (3 MiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x3ed470 ]
## Loading init Ramdisk from Legacy Image at 81000000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2676146 Bytes = 2.6 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 815f0000
Booting using the fdt blob at 0x815f0000
Using Device Tree in place at 815f0000, end 815f8695

Starting kernel ...
--------------------------------------------------------------------------------------

what would be the reason why it is not booting completely.

 

Regards

Anil

  • Hi,

    I will forward this to the SW team.

  • Hi Anil,

    please, write what are the board, sdk version (linux version) you are using?

    Thanks,
    Georgi
  • Hi Georgi,

    I am using AM335x-EVM (not starter kit) and trying to port Ubuntu 12.10 OS in my evm.

    I took the boot-loader from SDK7 and Linux is 3.12. I am referring this link to port the uBuntu : e2e.ti.com/.../299634

    Regards,
    Anil
  • Your Load Address and Entry Point look incorrect. Also, can you stop in u-boot and do printenv and post it?

    Steve K.

  • Hi Steve,

    Please find attached printenv & uEnv.txt files, and suggest me where it went wrong.

    Regards

    Anil

    U-Boot# printenv
    arch=arm
    baudrate=115200
    board=am335x
    board_name=A33515BB
    board_rev=1.4A
    boot_fdt=try
    boot_targets= mmc0 nand
    bootargs=console=ttyO0,115200n8 root=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,512M rootfstype=ext3
    bootcmd=mmc rescan; fatload mmc 0 0x80008000 zImage; bootz 0x80008000
    bootcmd_mmc0=setenv devnum 0; setenv rootpart 2; run mmc_boot;
    bootcmd_nand=run nandboot;
    bootcmd_usb=setenv devnum 0; run usb_boot;
    bootdelay=3
    bootdir=/boot
    bootenv=uEnv.txt
    bootfile=zImage
    bootpart=0:2
    console=ttyO0,115200n8
    cpu=armv7
    dfu_alt_info_emmc=rawemmc mmc 0 3751936
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;MLO fat 0 1;MLO.raw mmc 100 100;u-boot.img.raw mmc 300 400;spl-os-args.raw mmc 80 80;spl-os-image.raw mmc 900 2000;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=NAND.SPL part 0 1;NAND.SPL.backup1 part 0 2;NAND.SPL.backup2 part 0 3;NAND.SPL.backup3 part 0 4;NAND.u-boot-spl-os part 0 5;NAND.u-boot part 0 6;NAND.u-boot-env part 0 7;NAND.u-boot-env.backup1 part 0 8;NAND.kernel part 0 9;NAND.rootfs part 0 10
    dfu_alt_info_ram=kernel ram 0x80200000 0xD80000;fdt ram 0x80F80000 0x80000;ramdisk ram 0x81000000 0x4000000
    eth1addr=00:18:31:8f:57:ff
    ethact=cpsw
    ethaddr=00:18:31:8f:57:fe
    fdt_high=0xa0000000
    fdtaddr=0x80F80000
    fdtfile=am335x-evm.dts
    filesize=3ed470
    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 $loadaddr $filesize
    loadaddr=0x80200000
    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
    mmc_boot=setenv devtype mmc; if mmc dev ${devnum}; then run mmcargs;run scan_boot; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run mmcboot;fi
    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=0
    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.rootfs)
    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}
    ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M
    ramrootfstype=ext2
    rdaddr=0x81000000
    rootpart=2
    rootpath=/export/rootfs
    scan_boot=echo Scanning ${devtype} ${devnum}...; for prefix in ${bootdir}; do for script in ${bootfile}; do run script_boot; done; done;
    script_boot=if load ${devtype} ${devnum}:${rootpart} ${loadaddr} ${bootdir}/${bootfile}; then run findfdt; load ${devtype} ${devnum}:${rootpart} ${fdtaddr} ${bootdir}/${fdtfile};fi;
    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
    usb_boot=setenv devtype usb; run usb_init; if usb dev 0; then run usbargs;run scan_boot; bootz ${loadaddr} - ${fdtaddr}; fi
    usb_init=usb start 0;
    usbargs=setenv bootargs console=${console} ${optargs} root=${usbroot} rootfstype=${usbrootfstype}
    usbnet_devaddr=00:18:31:8f:57:ff
    usbroot=/dev/sda2 rw
    usbrootfstype=ext4 rootwait
    vendor=ti
    ver=U-Boot 2013.10-00189-g78d8ebd-dirty (May 04 2015 - 19:06:23)
    
    Environment size: 5552/131067 bytes
    U-Boot#
    kernel_file=zImage
    initrd_file=uInitrd
    initrd_high=0xffffffff
    fdt_high=0xffffffff
    
    #Video: Uncomment to override:
    #kms_force_mode=video=HDMI-A-1:1024x768@60
    
    ##BeagleBone Cape Overrides
    ##Note: On the BeagleBone Black, there is also an uEnv.txt in the eMMC, so if these changes do not seem to be makeing a difference...
    
    ##BeagleBone Black:
    ##Disable HDMI/eMMC
    optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G
    
    #USB Serial
    #console=ttyO0,115200n8
    #LCD
    console=tty1
    
    mmcroot=/dev/mmcblk0p2 ro
    mmcrootfstype=ext3 rootwait fixrtc
    
    loadkernel=load mmc ${mmcdev}:${mmcpart} 0x80200000 ${kernel_file}
    loadinitrd=load mmc ${mmcdev}:${mmcpart} 0x81000000 ${initrd_file}; setenv initrd_size ${filesize}
    loadfdt=load mmc ${mmcdev}:${mmcpart} 0x815f0000 /dtbs/${fdtfile}
    
    boot_classic=run loadkernel; run loadinitrd
    boot_ftd=run loadkernel; run loadinitrd; run loadfdt
    
    device_args=run expansion_args; run mmcargs
    mmcargs=setenv bootargs acpi=off console=${console} ${optargs} ${kms_force_mode} root=${mmcroot} rootfstype=${mmcrootfstype} ${expansion}
    
    expansion_args=setenv expansion ip=${ip_method}
    #Classic Board File Boot:
    #uenvcmd=run boot_classic; run device_args; bootz 0x80200000 0x81000000:${initrd_size}
    #New Device Tree Boot:
    uenvcmd=run boot_ftd; run device_args; bootz 0x80200000 0x81000000:${initrd_size} 0x815f0000
    
    

  • Hi Anil,

    please refer first to this link
    processors.wiki.ti.com/.../Kernel_-_Common_Problems_Booting_Linux

    Why you use initramfs as separate file? zImage must contain ramfs.

    BR,
    Georgi