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.

Booting from NAND on AM437x-GP-EVM

I am using a 'stock' AM437x-GP-EVM to start on development while we design our new board.  Our board will not have an SD card and will boot from NAND flash, so I am trying to get the GP-EVM to boot entirely from NAND.  I have reverted to a 100% stock installation of ti-sdk-am437x-evm-08.00.00.00, but I am still unable to get the board to boot from NAND.  

What does work for me:

  • SD boot works fine with both all the pre-built binaries and my own MLO, u-boot.img and kernel
  • SD boot for MLO and u-boot works, and from there I can load the kernel (programmed by me into NAND flash in uboot) and mount the NAND flash file system (also programmed into flash by me using ubi tools).  After getting to the u-boot prompt, this command boots through to linux: setenv nandroot ubi0:rootfs rw ubi.mtd=9; run nandboot

What does not work for me

  • I cannot get the ROM bootloader to load MLO and u-boot.  

Observed symptoms:

I am using boot mode 0 on the EVM (NAND, USB-MS, MMC0, USB_CL).  When I remove the SD card (with nothing in USB either) then apply power, nothing comes out the console log.  If I put the SD card in, the ROM bootloader gets MLO and u-boot from the SD card and then boots linux from NAND due to my uboot configuration.

For grins I tried using boot mode 11001b (UART, NAND_I2C, NAND, MMC0).  When I remove the SD card, I get the expected "CCCC..." out the UART indefinitely.  So it's alive but not finding my MLO and/or u-boot in NAND.

Here are the steps I took to program MLO and u-boot.  I have tried this numerous times and with both the pre-built and me-built versions of MLO/u-boot.

U-Boot# version

U-Boot 2014.07 (Feb 26 2015 - 15:33:10)
arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 4.7.3 20130226 (prerelease)
GNU ld (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 2.23.1

U-Boot# mtdparts

device nand0 <nand.0>, # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00040000 0x00000000 0
1: NAND.SPL.backup1 0x00040000 0x00040000 0
2: NAND.SPL.backup2 0x00040000 0x00080000 0
3: NAND.SPL.backup3 0x00040000 0x000c0000 0
4: NAND.u-boot-spl-os 0x00080000 0x00100000 0
5: NAND.u-boot 0x00100000 0x00180000 0
6: NAND.u-boot-env 0x00040000 0x00280000 0
7: NAND.u-boot-env.backup10x00040000 0x002c0000 0
8: NAND.kernel 0x00700000 0x00300000 0
9: NAND.file-system 0x1f600000 0x00a00000 0

active partition: nand0,0 - (NAND.SPL) 0x00040000 @ 0x00000000

defaults:
mtdids : nand0=nand.0
mtdparts: mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2),256k(NAND.SPL.backup3),512k(NAND.u-boot-spl-os),1m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup1),7m(NAND.kernel),-(NAND.file-system)


U-Boot# nand erase.part NAND.SPL

NAND erase.part: device 0 offset 0x0, size 0x40000
Erasing at 0x0 -- 100% complete.
OK
U-Boot# nand erase.part NAND.SPL.backup1

NAND erase.part: device 0 offset 0x40000, size 0x40000
Erasing at 0x40000 -- 100% complete.
OK
U-Boot# nand erase.part NAND.SPL.backup2

NAND erase.part: device 0 offset 0x80000, size 0x40000
Erasing at 0x80000 -- 100% complete.
OK
U-Boot# nand erase.part NAND.SPL.backup3

NAND erase.part: device 0 offset 0xc0000, size 0x40000
Erasing at 0xc0000 -- 100% complete.
OK
U-Boot# nand erase.part NAND.u-boot

NAND erase.part: device 0 offset 0x180000, size 0x100000
Erasing at 0x240000 -- 100% complete.
OK


U-Boot# printenv loadaddr
loadaddr=0x82000000
U-Boot# mw.b $loadaddr 0xff 0x40000
U-Boot# fatload mmc 0 $loadaddr MLO
reading MLO
93192 bytes read in 7 ms (12.7 MiB/s)
U-Boot# nand write $loadaddr NAND.SPL

NAND write: device 0 offset 0x0, size 0x40000
262144 bytes written: OK
U-Boot# nand write $loadaddr NAND.SPL.backup1

NAND write: device 0 offset 0x40000, size 0x40000
262144 bytes written: OK
U-Boot# nand write $loadaddr NAND.SPL.backup2

NAND write: device 0 offset 0x80000, size 0x40000
262144 bytes written: OK
U-Boot# nand write $loadaddr NAND.SPL.backup3

NAND write: device 0 offset 0xc0000, size 0x40000
262144 bytes written: OK


U-Boot# mw.b $loadaddr 0xff 0x00100000
U-Boot# fatload mmc 0 $loadaddr u-boot.img
reading u-boot.img
417180 bytes read in 23 ms (17.3 MiB/s)
U-Boot# nand write $loadaddr NAND.u-boot

NAND write: device 0 offset 0x180000, size 0x100000
1048576 bytes written: OK

There is information in both the MLO and u-boot sector.  I verified this once I booted to linux:

root@am437x-evm:~# mtd_debug read /dev/mtd0 0 0x400 /tmp/mlo.txt && hexdump /tmp/mlo.txt
0000000 0040 0000 000c 0000 0000 0000 0000 0000
0000010 0000 0000 4843 4553 5454 4e49 5347 0000
0000020 ffff ffff ffff ffff ffff ffff ffff ffff
*
0000040 c0c1 c0c0 0100 0000 0000 0000 0000 0000
0000050 0000 0000 0000 0000 0000 0000 0000 0000
*
0000200 6a00 0001 4000 402f 0075 eb00 0000 e10f
0000210 101f e200 001a e331 001f 13c0 0013 1380
0000220 00c0 e380 f000 e129 0f10 ee11 0a02 e3c0

root@am437x-evm:~# mtd_debug read /dev/mtd5 0 0x400 /tmp/u-boot.txt && hexdump /tmp/u-boot.txt
0000000 0527 5619 2e56 15da ef54 5aad 0600 5c5d
0000010 8080 0000 0000 0000 62d1 d003 0211 0005
0000020 2d55 6f42 746f 3220 3130 2e34 3730 6620
0000030 726f 6120 346d 7833 2078 6f62 7261 0064
0000040 f018 e59f f018 e59f f018 e59f f018 e59f
*
0000060 0300 8080 0060 8080 00c0 8080 0120 8080
0000070 0180 8080 01e0 8080 0240 8080 02a0 8080
0000080 c0de 0bad f000 e320 f000 e320 f000 e320
0000090 f000 e320 f000 e320 f000 e320 f000 e320
00000a0 d028 e51f e000 e58d e000 e14f e004 e58d
00000b0 d013 e3a0 f00d e169 e00f e1a0 f00e e1b0
00000c0 d048 e24d 1fff e88d 2050 e51f 000c e892

 

I must be missing something simple here since this seems pretty basic. Am I supposed to program something different into NAND than the files which succesfully load from SD maybe, and if so which ones? Any help is appreciated.

  • Hi,

    Please check AM437X Errata Rev. A, Advisory 15.

  • Thanks Biser. It is too bad NAND boot is not supported on this part.
  • Please note that this is true only for the first silicon revision. The new silicon revision should not have this issue.

  • Hi,

    I faced the same problem,and I want to know the DEVICE REVISION CODE of your chip, A or B?

     

    Thanks!

     

    vefone

  • It was revision code A on the EVM board.  We have since created our own board with revision B parts, and I can confirm that NAND boot is functioning on my new board.

  • Hi,

    My board is revision code B too,but I can't boot from nand flash follow TI step below :

    http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User's_Guide#Using_NAND    , could you tell me how  to do to make your board boot from nand flash?

    Thanks!

    vefone 

  • That is a pretty good guide.  It lists most of the things I had to do.  I also had to adjust the size of the flash partitions in the u-boot code since the NAND flash I was using had large sectors.  If you look for MTDPARTS_DEFAULT in am43xx_evm.h in the u-boot code, you'll see where this is defined.  And of course you also must set the boot mode pins of the AM43xx to one of the modes which boots from flash (obvious...but I thought I'd mention it).

    Can you tell me what you are seeing in the console output?  Do you see anything at all when you apply power to the board?  You should at least see something like this

    U-Boot SPL 2014.07-svn201 (Jun 03 2015 - 10:15:01)

    when it starts up.  That means that it's gotten the first stage bootloader from flash.  If you don't see that, then MLO is not getting read correctly.  If you see that but nothing else, then it may be a problem with u-boot.

  • Sorry to reply so lately,I see nothing in the console ,although I set the boot mode pins of the AM43xx which boots from flash.I also think the ROM don't read the MLO correctly,but I don't know how to slove it.
  • If you boot from MMC and halt in u-boot, do all the commands for programming the NAND as described here  work correctly, or do some of them give errors?  If they all work then that does seem like the hardware is operating correctly and it should boot.  If not, you could use the command "nand info" in u-boot to see if the device is detected at all, and if it is detected you can check the detected flash size and sector size against what you've configured in your MTDPARTS_DEFAULT in your u-boot source code.

  • vefone, there is another chip errata that might be affecting things for you: see advisory 15. It is not very clear what exactly is meant by that though. I can confirm that it appears to be booting reliably for me on at least one of my prototype boards and with one flash device. It will be necessary to get clarification on what that advisory implies.

    *edit*

    Actually that advisory only applies to rev 1.1 silicon so it should not be affecting you either.

  • ,Sorry to reply so lately,the problem has been sovled.It isn't the software problem,but a hardware problem.
  • Hi ChickenDuck,

    Can i have the NAND full steps to loading all the images in NAND including with with u-boot, Kernel-Image, FILE SYSTEMS.

    Thanks,
    Lofna
  • Hi Lofna

    If you aren't already familiar with UBI file systems, I suggest reading this as background:

    http://processors.wiki.ti.com/index.php/UBIFS_Support#Creating_UBIFS_file_system

    The first step is to decide on how to partition your NAND to hold all the files you want.  Once you've settled on this, you must edit both u-boot and the kernel files with this information.  In u-boot, search for MTDPARTS_DEFAULT and edit that with your configuration.  In the kernel, edit your dts file (e.g., am437x-gp-evm.dts).  You will see a number of lines specifying the partition sizes in the gpmc section.

    I have found it easiest to program the files from linux since I can use various scripts.  It is also possible to use ubinize to do this, but I find the following scripts more flexible and at least for me easier to understand and debug.  But perhaps that is just me.  I had to learn all this mtd and ubi stuff while making my system run, so at least in part these scripts were part of my learning process.  Hopefully they are helpful to you too.

    I use the following script to write MLO, u-boot, zImage, and my dtb file to flash:

    #!/bin/bash
    
    
    show_usage()
    {
            echo "write-file-to-flash - Write file to one of the flash partitions that is just a single file."
            echo "  usage: write-file-to-flash <target-file> <sector name or number>"
            echo "  The file will be padded to the size of the entire sector."
            echo "  You can use either the sector name or number.  They are as follows:"
            echo "  0 - MLO"
            echo "  1 - MLO1"
            echo "  2 - MLO2"
            echo "  3 - MLO3"
            echo "  4 - dtb"
            echo "  5 - uboot"
            echo "  6 - uEnv"
            echo "  7 - dtb-upgrade"
            echo "  8 - zImage"
            echo "  10 - zImage-upgrade"
    }
    
    name_to_mtd_num()
    {
            case "$1" in
                    MLO)    MTDNUM=0 ;;
                    MLO1)   MTDNUM=1 ;;
                    MLO2)   MTDNUM=2 ;;
                    MLO3)   MTDNUM=3 ;;
                    dtb)    MTDNUM=4 ;;
                    uboot)  MTDNUM=5 ;;
                    uEnv)   MTDNUM=6 ;;
                    dtb-upgrade)    MTDNUM=7 ;;
                    zImage) MTDNUM=8 ;;
                    zImage-upgrade) MTDNUM=10 ;;
                    *)      show_usage
                            exit 2 ;;
            esac
    }
    
    get_mtd_size()
    {
            case "$1" in
                    5)  MTDSIZE=0x100000 ;;
                    8)  MTDSIZE=0x800000 ;;
                    10) MTDSIZE=0x800000 ;;
                    *)  MTDSIZE=0x80000  ;;
            esac
    }
    
    
    if [[ -z "$1"  ||  -z $2 ]]; then
            show_usage
            exit 1;
    fi
    
    
    if [[ ! -f "$1" ]]; then
            echo "$1 does not exist.  Exiting."
            exit 2;
    fi
    
    
    # check if we need to map from name to number:
    
    MTDNUM=$2
    MTDSIZE=0
    
    if [ "$MTDNUM" -eq "$MTDNUM" ] 2>/dev/null; then
            # safety guard against writing to file systems
            if [[ $MTDNUM == 9 || $MTDNUM == 11 || $MTDNUM == 12 ]]; then
                    echo "MTD sector $MTDNUM is a file system.  Won't write to it as this will destroy it!"
                    exit 3;
            fi
    else
            name_to_mtd_num "$MTDNUM"
    fi
    
    MTDDEV=/dev/mtd$MTDNUM
    if [[ ! -c $MTDDEV ]]; then
            echo "$MTDDEV doesn't exist or can't be opened as character device.  Exiting."
            exit 4;
    fi;
    
    get_mtd_size $MTDNUM
    echo "Using $MTDDEV, size $MTDSIZE"
    mtd_debug erase $MTDDEV 0 $MTDSIZE
    nandwrite -p $MTDDEV "$1"
    
    
    exit 0
    

    To mount my user file system I use the following linux script file.  I have it in /etc/init.d so it runs automatically when the system starts to mount my user partition where I store data, but you can also call it to mount other partitions.  Be careful to edit the USER_PART and PART_NAME variables at the top of this script to align with your NAND partition usage.

    #!/bin/bash
    modprobe ubi
    
    MOUNT_POINT=/mnt/ubi
    USER_PART=12
    PART_NAME=user
    
    if [[ ! -z $2 ]]; then
            MOUNT_POINT=$2
    fi
    
    if [[ ! -z $3 ]]; then
            USER_PART=$3
    fi
    
    if [[ ! -z $4 ]]; then
            PART_NAME=$4    # generally optional but if partition doesn't exist this will be used
    fi
    
    #
    
    
    case $1 in
    
    
        start)
            # example
            # mount-ubi start /mnt/junk 9 rootfs
            # where 9 comes from /dev/mtd9, where the partition lives.  See cat /proc/mtd.
            MOUNTED=`mount | grep $MOUNT_POINT`
            if [ ! -z "$MOUNTED" ]; then
                    echo "$MOUNT_POINT is already mounted.  Exiting."
                    exit -1
            fi
    
            # Grab the ubi dev # out of the status info from ubiattach:
            UBI_DEV=`ubiattach /dev/ubi_ctrl -m $USER_PART  | awk -F'[, ]' '{print $4}'`
            if [ -z "$UBI_DEV" ]; then
                    echo "Error 1 attaching to ubi volume."
                    exit -2;
            fi
            # This gives an error if the variable is not a number
            if [ "$UBI_DEV" -ne "$UBI_DEV" ] 2>/dev/null; then
                    echo "Error 2 attaching to ubi volume."
                    exit -3;
            fi
    
            # mtdinfo -u /dev/mtd$USER_PART
            # do this to create initial volume ubimkvol /dev/ubi0 -N user -m
            # get existing partition name:
            PART_NAME=`ubinfo -d $UBI_DEV -a | grep "Name:" | awk '{print $2}'`
            if [[ -z $PART_NAME ]]; then
                    PART_NAME=$4
                    echo "Creating partition $PART_NAME"
                    ubimkvol /dev/ubi$UBI_DEV -N $PART_NAME -m || exit -4
            fi
            mount -o noatime -t ubifs ubi$UBI_DEV:$PART_NAME $MOUNT_POINT
            if [[ $? -ne 0 ]]; then
                    echo "Error mounting ubi$UBI_DEV:$PART_NAME $MOUNT_POINT"
                    exit -5;
            fi
    
            exit $UBI_DEV
        ;;
    
        stop)
            MOUNTED=`mount | grep $MOUNT_POINT`
            if [ ! -z "$MOUNTED" ]; then
                    umount $MOUNT_POINT
            fi
    
            ubidetach -m $USER_PART  &> /dev/null
        ;;
    
        *)
            echo "Usage: /etc/init.d/mount-ubi {start|stop} [mount point] [mtd partion number] [ubi partition name (optional except for initial creation)]"
            exit -1
        ;;
    esac

     

    The first time this script runs it will initialize the ubi partition, and on subsequent boots it will mount it on /mnt/ubi.  Then you can use it just like any linux file system and write to it.  You can also pass arguments to this script to mount other file system partitions.  Note that you should not mount the MLO, u-boot, or kernel partitions using this script.  Those are written to using the previous script file and are not directly accessible as linux files.  Only the NAND partitions which will hold linux file systems should use this script.

    To get my linux file system installed , I run from SD or NFS, then mount the linux file system partition using the above script.  I use tar -c to create a copy of a working file system, and then use tar -x to extract it to my ubi file system.  Note: I have my system set up with one partition for my linux file system and another for my data files.  This is a good idea because then you can mount your linux filesystem readonly and it will never become corrupted due to power interruption.

    After you've got all your files programmed into NAND, u-boot should be able to load them and boot from NAND.  These are my u-boot commands to do that:

    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=9
    nandrootfstype=ubifs rootwait=1

  • 8741.am335x_evm.hHi ChickenDuck,

    Thanks for your response.

    I am using AM335X with 1GB NAND i.e MT29F8G08ABABA,

    My NAND configuration is :

    – Page size x8: 4,320 bytes (4,096 + 224 bytes)

    – Block size: 128 pages (512K + 28K bytes)

    – Plane size: 2 planes x 1,024 blocks per plane

    – Device size: 8Gb: 2,048 blocks

    Please advice me, it is always my mtdparts showing incorrect.

    U-Boot# mtdparts

    nand0: partition (NAND.SPL) size alignment incorrect

    Find my u-boot configuration file and give me suggestions how to rectify my issue.

    Regards,

    Lofna

  • It looks like your CONFIG_SYS_NAND_BLOCK_SIZE is wrong:

    #define CONFIG_SYS_NAND_BLOCK_SIZE (256 * 1024) //(128*2048) //Buzz (128*1024)sss

    should be

    #define CONFIG_SYS_NAND_BLOCK_SIZE (512* 1024) //(128*2048) //Buzz (128*1024)sss

    Then, you must change all the sector defines in MTDPARTS_DEFAULT to use a minimum of 512k, e.g.,

    #define MTDPARTS_DEFAULT "mtdparts=nand.0:" \
    "512k(NAND.SPL)," \
    "512k(NAND.SPL.backup1)," \
    "512k(NAND.SPL.backup2)," \
    "512k(NAND.SPL.backup3)," \
    "512k(NAND.u-boot-spl-os)," \
    "1m(NAND.u-boot)," \
    "512k(NAND.u-boot-env)," \
    "512k(NAND.u-boot-env.backup1)," \
    "7m(NAND.kernel)," \
    "-(NAND.rootfs)"

    Depending on your boot mode (i.e., if you are booting from NAND), you may need to update CONFIG_SYS_NAND_U_BOOT_START and CONFIG_SYS_NAND_U_BOOT_OFFS to point to the u-boot sector above.

    And if you want to store your u-boot settings in NAND you'll need to update these defines too:

    #define CONFIG_ENV_OFFSET 0x00480000 //buzz 0x001C0000
    #define CONFIG_ENV_OFFSET_REDUND 0x00500000 //buzz 0x001E0000
  • Hi ChickenDuck,

    Thanks.

    As per your mail i have changed in my u-boot. Now my mtdparts are correct, Please find attached file.

    In my u-boot I have defined offset & start locations in my am335x_evm.h as below:

      #define CONFIG_SYS_NAND_U_BOOT_START                0x08000000

      #define CONFIG_SYS_NAND_U_BOOT_OFFS                  0x00180000

    Using this mtdparts locations how to flash all my images in to NAND. Previously i have followed the below steps to flash all the imges to NAND.

    fatload mmc 0 0x81000000 MLO

    cp.b 0x81000000 0x81020000 20000; cp.b 0x81000000 0x81040000 20000; cp.b 0x81000000 0x81060000 20000

    fatload mmc 0 0x81080000 am335x-evm.dtb

    fatload mmc 0 0x810c0000 u-boot.img

    fatload mmc 0 0x81200000 zImage

    fatload mmc 0 0x81a00000 arago-base-tisdk-image-am335x-evm.ubi

    nand write 0x81000000 0x0 0x2950000

    Please give an idea to port all the images and run from NAND flash.

    Regards,

    Lofna

    mtdparts.txt
    U-Boot 2013.10-00189-g78d8ebd-dirty (Aug 12 2015 - 14:06:26)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-Boot#
    U-Boot# mtdparts
    
    device nand0 <nand.0>, # parts = 10
     #: name                size            offset          mask_flags
     0: NAND.SPL            0x00080000      0x00000000      0
     1: NAND.SPL.backup1    0x00080000      0x00080000      0
     2: NAND.SPL.backup2    0x00080000      0x00100000      0
     3: NAND.SPL.backup3    0x00080000      0x00180000      0
     4: NAND.u-boot-spl-os  0x00080000      0x00200000      0
     5: NAND.u-boot         0x00100000      0x00280000      0
     6: NAND.u-boot-env     0x00080000      0x00380000      0
     7: NAND.u-boot-env.backup10x00080000   0x00400000      0
     8: NAND.kernel         0x00700000      0x00480000      0
     9: NAND.rootfs         0x3f480000      0x00b80000      0
    
    active partition: nand0,0 - (NAND.SPL) 0x00080000 @ 0x00000000
    
    defaults:
    mtdids  : nand0=nand.0
    mtdparts: mtdparts=nand.0:512k(NAND.SPL),512k(NAND.SPL.backup1),512k(NAND.SPL.backup2),512k(NAND.SPL.backup3),512k(NAND.u-boot-spl-os),1m(NAND.u-boot),512k(NAND.u-boot-env),512k(NAND.u-boot-env.backup1),7m(NAND.kernel),-(NAND.rootfs)
    U-Boot# nand info
    
    Device 0: nand0, sector size 512 KiB
      Page size      4096 b
      OOB size        224 b
      Erase size   524288 b
    U-Boot#

  • Hi ChickenDuck,

    Still i am facing an error to load images i tried to load the images over nand using the below steps.

    fatload mmc 0 0x81000000 MLO

    cp.b 0x81000000 0x81080000 80000; cp.b 0x81000000 0x81100000 80000; cp.b 0x81000000 0x81180000 80000

    fatload mmc 0 0x81200000 am335x-evm.dtb

    fatload mmc 0 0x81280000 u-boot.img

    fatload mmc 0 0x81480000 zImage

    fatload mmc 0 0x81b80000 arago-base-tisdk-image-am335x-evm.ubi

    nand write 0x81000000 0x0 0x2950000

    Then it is booting from NAND but it not pointing to next location and not starting the kernel image. It is booting again and booting with the below message.

    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Aug 13 2015 - 14:03:05)

    The Expected Linux image was not found. Please check your NAND configuration.
    Trying to start u-boot now...

    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Aug 13 2015 - 14:03:05)
    The Expected Linux image was not found. Please check your NAND configuration.
    Trying to start u-boot now...

    Please give your suggestions. Find again attached am335x u-boot config file. 

    Regards,

    Lofna

    5661.am335x_evm.h

  • Sorry, I don't know.  I use linux instead of uboot to program the flash as I described in detail above because I found it easier to troubleshoot when things like this went wrong.  Good luck!

  • Dear ChickenDuck,

    I have flashed all the images in to NAND and booting SPL, U-BOOT & KERNEL IMAGE from NAND, But i am unable to connect to my root file system (ubi).

    It is giving the below error and stands there:

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

    [    3.208687] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

    [    3.220934] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19

    [    3.228978] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19

    [    3.237381] Please append a correct "root=" boot option; here are the available partitions:

    [    3.246188] 1f00             512 mtdblock0  (driver?)

    [    3.251493] 1f01             512 mtdblock1  (driver?)

    [    3.256804] 1f02             512 mtdblock2  (driver?)

    [    3.262108] 1f03             512 mtdblock3  (driver?)

    [    3.267418] 1f04             512 mtdblock4  (driver?)

    [    3.272718] 1f05            1024 mtdblock5  (driver?)

    [    3.278029] 1f06             512 mtdblock6  (driver?)

    [    3.283329] 1f07             512 mtdblock7  (driver?)

    [    3.288638] 1f08            7168 mtdblock8  (driver?)

    [    3.293942] 1f09         1036800 mtdblock9  (driver?)

    [    3.299252] b300         7761920 mmcblk0  driver: mmcblk

    [    3.304827]   b301           72261 mmcblk0p1 00000000-01

    [    3.310412]   b302         7679070 mmcblk0p2 00000000-02

    [    3.315994] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

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

    Please help me where it went wrong. Please find attached complete booting log for your reference.

    Regards,

    Lofna

    NAND-Booting-Log-am335x.txt
    U-Boot 2013.10-00189-g78d8ebd-dirty (Aug 19 2015 - 13:29:24)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Net:   Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-Boot#
    U-Boot#
    U-Boot# setenv bootargs 'console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048  ip=off'
    U-Boot# saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x380000 -- 100% complete.
    Writing to NAND... OK
    U-Boot# boot
    Booting from nand ...
    
    NAND read: device 0 offset 0x200000, size 0x80000
     524288 bytes read: OK
    
    NAND read: device 0 offset 0x480000, size 0x700000
     7340032 bytes read: OK
    Kernel image @ 0x80200000 [ 0x000000 - 0x3f2c68 ]
    ## Flattened Device Tree blob at 80f80000
       Booting using the fdt blob at 0x80f80000
       Loading Device Tree to 9f31e000, end 9f32b2d3 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.10-ti2013.12.01 (root@am335xsdk78-virtual-machine) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #10 Tue Jul 28 18:44:26 IST 2015
    [    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 EVM
    [    0.000000] cma: CMA: reserved 24 MiB at 9d800000
    [    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 mem=512M root=ubi0:rootfs rw ubi.mtd=9,2048 rootfstype=ubifs rootwait=1
    [    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: 482984K/521216K available (5535K kernel code, 557K rwdata, 1880K rodata, 714K init, 225K bss, 38232K 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 - 0xc074604c   (7417 kB)
    [    0.000000]       .init : 0xc0747000 - 0xc07f9930   ( 715 kB)
    [    0.000000]       .data : 0xc07fa000 - 0xc0885598   ( 558 kB)
    [    0.000000]        .bss : 0xc0885598 - 0xc08bdc40   ( 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.000266] Calibrating delay loop... 663.55 BogoMIPS (lpj=3317760)
    [    0.049747] pid_max: default: 32768 minimum: 301
    [    0.049834] Security Framework initialized
    [    0.049877] Mount-cache hash table entries: 512
    [    0.057236] CPU: Testing write buffer coherency: ok
    [    0.057614] Setting up static identity map for 0xc056daa8 - 0xc056db18
    [    0.058381] devtmpfs: initialized
    [    0.059838] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.119823] omap_hwmod: debugss: _wait_target_disable failed
    [    0.120467] pinctrl core: initialized pinctrl subsystem
    [    0.121208] regulator-dummy: no parameters
    [    0.123337] NET: Registered protocol family 16
    [    0.125202] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.127318] cpuidle: using governor ladder
    [    0.127331] cpuidle: using governor menu
    [    0.133805] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.134661] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.135688] OMAP GPIO hardware version 0.1
    [    0.143207] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
    [    0.143235] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.143531] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.146671] DSS not supported on this SoC
    [    0.146690] No ATAGs?
    [    0.146699] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.164436] bio: create slab <bio-0> at 0
    [    0.175682] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.176432] vbat: 5000 mV
    [    0.176769] lis3_reg: no parameters
    [    0.177147] wlan-en-regulator: 1800 mV
    [    0.179662] vgaarb: loaded
    [    0.180756] SCSI subsystem initialized
    [    0.181815] usbcore: registered new interface driver usbfs
    [    0.181968] usbcore: registered new interface driver hub
    [    0.182128] usbcore: registered new device driver usb
    [    0.182914] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.182938] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.182961] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [    0.182973] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [    0.183169] media: Linux media interface: v0.10
    [    0.183302] Linux video capture interface: v2.00
    [    0.183513] pps_core: LinuxPPS API ver. 1 registered
    [    0.183521] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.183627] PTP clock support registered
    [    0.185714] Switched to clocksource timer1
    [    0.200161] NET: Registered protocol family 2
    [    0.200716] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.200783] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.200821] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.200888] TCP: reno registered
    [    0.200900] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.200915] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.201086] NET: Registered protocol family 1
    [    0.201428] RPC: Registered named UNIX socket transport module.
    [    0.201437] RPC: Registered udp transport module.
    [    0.201442] RPC: Registered tcp transport module.
    [    0.201447] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.202285] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.202858] PM: Loading am335x-pm-firmware.bin
    [    0.318537] VFS: Disk quotas dquot_6.5.2
    [    0.318599] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.319127] NFS: Registering the id_resolver key type
    [    0.319205] Key type id_resolver registered
    [    0.319211] Key type id_legacy registered
    [    0.319245] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.319388] msgmni has been set to 991
    [    0.320659] NET: Registered protocol family 38
    [    0.320696] io scheduler noop registered
    [    0.320704] io scheduler deadline registered
    [    0.320721] io scheduler cfq registered (default)
    [    0.322508] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.371145] Console: switching to colour frame buffer device 100x30
    [    0.381254] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.383690] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.030179] console [ttyO0] enabled
    [    1.034600] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    1.044698] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 44e10800.pinmux; cannot claim for 48024000.serial
    [    1.056959] pinctrl-single 44e10800.pinmux: pin-84 (48024000.serial) status -22
    [    1.064633] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_uart2_pins  on device pinctrl-single
    [    1.077507] omap_uart 48024000.serial: Error applying setting, reverse things back
    [    1.085673] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.096604] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.111367] brd: module loaded
    [    1.118650] loop: module loaded
    [    1.122309] (stk) :sysfs entries created
    [    1.126569] (stk) : debugfs entries created
    [    1.134695] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.144864] usbcore: registered new interface driver asix
    [    1.150751] usbcore: registered new interface driver ax88179_178a
    [    1.157314] usbcore: registered new interface driver cdc_ether
    [    1.163575] usbcore: registered new interface driver r815x
    [    1.169483] usbcore: registered new interface driver smsc95xx
    [    1.175667] usbcore: registered new interface driver net1080
    [    1.181726] usbcore: registered new interface driver cdc_subset
    [    1.188072] usbcore: registered new interface driver zaurus
    [    1.194137] usbcore: registered new interface driver cdc_ncm
    [    1.200523] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.207402] ehci-pci: EHCI PCI platform driver
    [    1.212230] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.218499] usbcore: registered new interface driver cdc_wdm
    [    1.224631] usbcore: registered new interface driver usb-storage
    [    1.231289] usbcore: registered new interface driver usbserial
    [    1.237552] usbcore: registered new interface driver cp210x
    [    1.243532] usbserial: USB Serial support registered for cp210x
    [    1.249859] usbcore: registered new interface driver pl2303
    [    1.255838] usbserial: USB Serial support registered for pl2303
    [    1.262965] mousedev: PS/2 mouse device common for all mice
    [    1.269681] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [    1.279774] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.287935] i2c /dev entries driver
    [    1.292050] Driver for 1-wire Dallas network protocol.
    [    1.299602] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.308540] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.315680] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.322983] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
    [    1.329882] edma-dma-engine edma-dma-engine.0: freeing channel for 24
    [    1.336660] edma-dma-engine edma-dma-engine.0: freeing channel for 25
    [    1.343529] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
    [    1.351172] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
    [    1.358336] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
    [    1.438911] omap_hwmod: gpio1: _wait_target_disable failed
    [    1.466567] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.476314] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.483548] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.490819] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.496972] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.504061] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.513860] usbcore: registered new interface driver usbhid
    [    1.519741] usbhid: USB HID core driver
    [    1.525767] oprofile: no performance counters
    [    1.530692] oprofile: using timer interrupt.
    [    1.535434] TCP: cubic registered
    [    1.538944] Initializing XFRM netlink socket
    [    1.543487] NET: Registered protocol family 17
    [    1.548212] NET: Registered protocol family 15
    [    1.552918] 8021q: 802.1Q VLAN Support v1.8
    [    1.557398] Key type dns_resolver registered
    [    1.562448] cpu cpu0: cpu0 regulator not ready, retry
    [    1.567928] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.576219] ThumbEE CPU extension supported.
    [    1.582455] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.587918] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.595290] ONFI param page 0 valid
    [    1.598996] ONFI flash detected
    [    1.602296] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP), 1024MiB, page size: 4096, OOB size: 224
    [    1.614460] omap2-nand: detected x8 NAND flash
    [    1.619129] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.624730] omap2-nand: using custom ecc layout
    [    1.629674] 10 ofpart partitions found on MTD device omap2-nand.0
    [    1.636088] Creating 10 MTD partitions on "omap2-nand.0":
    [    1.641772] 0x000000000000-0x000000080000 : "NAND.SPL"
    [    1.648543] 0x000000080000-0x000000100000 : "NAND.SPL.backup1"
    [    1.655860] 0x000000100000-0x000000180000 : "NAND.SPL.backup2"
    [    1.663104] 0x000000180000-0x000000200000 : "NAND.SPL.backup3"
    [    1.670372] 0x000000200000-0x000000280000 : "NAND.u-boot-spl-os"
    [    1.677851] 0x000000280000-0x000000380000 : "NAND.u-boot"
    [    1.684595] 0x000000380000-0x000000400000 : "NAND.u-boot-env"
    [    1.691701] 0x000000400000-0x000000480000 : "NAND.u-boot-env.backup1"
    [    1.699548] 0x000004800000-0x000004f00000 : "NAND.kernel"
    [    1.706967] 0x000000b80000-0x000040000000 : "NAND.file-system"
    [    1.819861] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.827903] vrtc: 1800 mV
    [    1.830995] vrtc: supplied by vbat
    [    1.835704] vio: at 1800 mV
    [    1.838820] vio: supplied by vbat
    [    1.843530] vdd_mpu: 912 <--> 1375 mV at 1325 mV
    [    1.848539] vdd_mpu: supplied by vbat
    [    1.853614] vdd_core: 912 <--> 1150 mV at 1137 mV
    [    1.858711] vdd_core: supplied by vbat
    [    1.863676] vdd3: 5000 mV
    [    1.867563] vdig1: at 1800 mV
    [    1.870830] vdig1: supplied by vbat
    [    1.875547] vdig2: at 1800 mV
    [    1.878820] vdig2: supplied by vbat
    [    1.883545] vpll: at 1800 mV
    [    1.886728] vpll: supplied by vbat
    [    1.891357] vdac: at 1800 mV
    [    1.894523] vdac: supplied by vbat
    [    1.899163] vaux1: at 1800 mV
    [    1.902422] vaux1: supplied by vbat
    [    1.907145] vaux2: at 3300 mV
    [    1.910397] vaux2: supplied by vbat
    [    1.915103] vaux33: at 3300 mV
    [    1.918474] vaux33: supplied by vbat
    [    1.923275] vmmc: 1800 <--> 3300 mV at 3300 mV
    [    1.928105] vmmc: supplied by vbat
    [    1.932387] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.940780] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    1.947538] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.954692] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.996998] UBI: attaching mtd9 to ubi0
    [    2.091509] mmc1: new high speed SDHC card at address aaaa
    [    2.106401] mmcblk0: mmc1:aaaa SS08G 7.40 GiB
    [    2.117479]  mmcblk0: p1 p2
    [    3.035175] UBI: scanning is finished
    [    3.048314] UBI: attached mtd9 (name "NAND.file-system", size 1012 MiB) to ubi0
    [    3.056048] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 520192 bytes
    [    3.063167] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 1024
    [    3.070208] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    3.077425] UBI: good PEBs: 2025, bad PEBs: 0, corrupted PEBs: 0
    [    3.083725] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
    [    3.091218] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1499472693
    [    3.100717] UBI: available PEBs: 0, total reserved PEBs: 2025, PEBs reserved for bad PEB handling: 40
    [    3.110405] UBI: background thread "ubi_bgt0d" started, PID 839
    [    3.175740] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    3.182150] davinci_mdio 4a101000.mdio: detected phy mask 7fffffff
    [    3.189250] libphy: 4a101000.mdio: probed
    [    3.193475] davinci_mdio 4a101000.mdio: phy[31]: device 4a101000.mdio:1f, driver unknown
    [    3.202661] Detected MACID = d0:5f:b8:87:07:58
    [    3.208687] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    3.220934] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
    [    3.228978] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
    [    3.237381] Please append a correct "root=" boot option; here are the available partitions:
    [    3.246188] 1f00             512 mtdblock0  (driver?)
    [    3.251493] 1f01             512 mtdblock1  (driver?)
    [    3.256804] 1f02             512 mtdblock2  (driver?)
    [    3.262108] 1f03             512 mtdblock3  (driver?)
    [    3.267418] 1f04             512 mtdblock4  (driver?)
    [    3.272718] 1f05            1024 mtdblock5  (driver?)
    [    3.278029] 1f06             512 mtdblock6  (driver?)
    [    3.283329] 1f07             512 mtdblock7  (driver?)
    [    3.288638] 1f08            7168 mtdblock8  (driver?)
    [    3.293942] 1f09         1036800 mtdblock9  (driver?)
    [    3.299252] b300         7761920 mmcblk0  driver: mmcblk
    [    3.304827]   b301           72261 mmcblk0p1 00000000-01
    [    3.310412]   b302         7679070 mmcblk0p2 00000000-02
    [    3.315994] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

  • If you use the prebuilt arago-base-tisdk-image-am335x-evm.ubi from SDK 6 this command might help.

    U-Boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=9,2048
    U-Boot# run nandboot

  • Hi

    Still i am facing issue after i use the aboove command

    I am using 1GB NAND with am335x + SDK7 and modified the u-boot & Linux kernel. I have flashed all the images in to NAND using the below process:

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

    UNDER U-BOOT

    fatload mmc 0 0x81000000 MLO

    cp.b 0x81000000 0x81080000 80000; cp.b 0x81000000 0x81100000 80000; cp.b 0x81000000 0x81180000 80000

    fatload mmc 0 0x81200000 am335x-evm.dtb

    fatload mmc 0 0x81280000 u-boot.img

    fatload mmc 0 0x81480000 zImage

    fatload mmc 0 0x81f00000 arago-base-tisdk-image-am335x-evm.ubi

    nand write 0x81000000 0x0 0x5000000

    U-Boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=9,2048

    U-Boot# setenv bootcmd run nandboot

    U-Boot# run bootcmd

    UNDER LINUX

    The below is loading arago-base-tisdk-image-am335x-evm.ubi image in to rootfs mtd 9 partition :::---

    flash_eraseall /dev/mtd9

    ubiformat /dev/mtd9 -f /media/mmcblk0p1/arago-base-tisdk-image-am335x-evm.ubi  -s 512 -O 2048

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

    Please help me how to resolve my booting issue.

    Find attached booting log:

    Regards,

    Lofna

  • Looks like you forgot to attach the log file.
  • fyi

    thanks

    Booting-Log.txt
    U-Boot 2013.10-00189-g78d8ebd-dirty (Aug 19 2015 - 13:29:24)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Net:   Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-Boot#
    U-Boot#
    U-Boot# setenv nandroot ubi0:am335x-evm-rootfs rw ubi.mtd=9,2048
    U-Boot# saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x380000 -- 100% complete.
    Writing to NAND... OK
    U-Boot# run nandboot
    Booting from nand ...
    
    NAND read: device 0 offset 0x200000, size 0x80000
     524288 bytes read: OK
    
    NAND read: device 0 offset 0x480000, size 0x700000
     7340032 bytes read: OK
    Kernel image @ 0x80200000 [ 0x000000 - 0x3f2c68 ]
    ## Flattened Device Tree blob at 80f80000
       Booting using the fdt blob at 0x80f80000
       Loading Device Tree to 9f31e000, end 9f32b2d3 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 3.12.10-ti2013.12.01 (root@am335xsdk78-virtual-machine) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #10 Tue Jul 28 18:44:26 IST 2015
    [    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 EVM
    [    0.000000] cma: CMA: reserved 24 MiB at 9d800000
    [    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=ubi0:am335x-evm-rootfs rw ubi.mtd=9,2048 rootfstype=ubifs rootwait=1
    [    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: 482984K/521216K available (5535K kernel code, 557K rwdata, 1880K rodata, 714K init, 225K bss, 38232K 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 - 0xc074604c   (7417 kB)
    [    0.000000]       .init : 0xc0747000 - 0xc07f9930   ( 715 kB)
    [    0.000000]       .data : 0xc07fa000 - 0xc0885598   ( 558 kB)
    [    0.000000]        .bss : 0xc0885598 - 0xc08bdc40   ( 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.000263] Calibrating delay loop... 663.55 BogoMIPS (lpj=3317760)
    [    0.049756] pid_max: default: 32768 minimum: 301
    [    0.049845] Security Framework initialized
    [    0.049889] Mount-cache hash table entries: 512
    [    0.057254] CPU: Testing write buffer coherency: ok
    [    0.057640] Setting up static identity map for 0xc056daa8 - 0xc056db18
    [    0.058411] devtmpfs: initialized
    [    0.059846] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.119923] omap_hwmod: debugss: _wait_target_disable failed
    [    0.120565] pinctrl core: initialized pinctrl subsystem
    [    0.121287] regulator-dummy: no parameters
    [    0.123413] NET: Registered protocol family 16
    [    0.125209] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.127329] cpuidle: using governor ladder
    [    0.127343] cpuidle: using governor menu
    [    0.133809] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.134650] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.135678] OMAP GPIO hardware version 0.1
    [    0.143212] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
    [    0.143240] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
    [    0.143533] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
    [    0.146649] DSS not supported on this SoC
    [    0.146668] No ATAGs?
    [    0.146677] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.164391] bio: create slab <bio-0> at 0
    [    0.175633] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.176369] vbat: 5000 mV
    [    0.176694] lis3_reg: no parameters
    [    0.177073] wlan-en-regulator: 1800 mV
    [    0.179572] vgaarb: loaded
    [    0.180659] SCSI subsystem initialized
    [    0.181711] usbcore: registered new interface driver usbfs
    [    0.181858] usbcore: registered new interface driver hub
    [    0.182018] usbcore: registered new device driver usb
    [    0.182811] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [    0.182833] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [    0.182856] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [    0.182868] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [    0.183068] media: Linux media interface: v0.10
    [    0.183208] Linux video capture interface: v2.00
    [    0.183422] pps_core: LinuxPPS API ver. 1 registered
    [    0.183430] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.183536] PTP clock support registered
    [    0.185582] Switched to clocksource timer1
    [    0.200051] NET: Registered protocol family 2
    [    0.200606] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [    0.200674] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.200712] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.200778] TCP: reno registered
    [    0.200790] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.200805] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.200976] NET: Registered protocol family 1
    [    0.201325] RPC: Registered named UNIX socket transport module.
    [    0.201335] RPC: Registered udp transport module.
    [    0.201340] RPC: Registered tcp transport module.
    [    0.201345] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.202161] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.202726] PM: Loading am335x-pm-firmware.bin
    [    0.318448] VFS: Disk quotas dquot_6.5.2
    [    0.318508] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.319033] NFS: Registering the id_resolver key type
    [    0.319117] Key type id_resolver registered
    [    0.319124] Key type id_legacy registered
    [    0.319161] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.319304] msgmni has been set to 991
    [    0.320586] NET: Registered protocol family 38
    [    0.320624] io scheduler noop registered
    [    0.320631] io scheduler deadline registered
    [    0.320652] io scheduler cfq registered (default)
    [    0.322430] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.371059] Console: switching to colour frame buffer device 100x30
    [    0.381160] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.383596] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [    1.030260] console [ttyO0] enabled
    [    1.034694] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [    1.044788] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 44e10800.pinmux; cannot claim for 48024000.serial
    [    1.057052] pinctrl-single 44e10800.pinmux: pin-84 (48024000.serial) status -22
    [    1.064726] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_uart2_pins  on device pinctrl-single
    [    1.077600] omap_uart 48024000.serial: Error applying setting, reverse things back
    [    1.085777] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 3000000) is a OMAP UART2
    [    1.096665] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.111420] brd: module loaded
    [    1.118685] loop: module loaded
    [    1.122344] (stk) :sysfs entries created
    [    1.126617] (stk) : debugfs entries created
    [    1.134749] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.144927] usbcore: registered new interface driver asix
    [    1.150816] usbcore: registered new interface driver ax88179_178a
    [    1.157365] usbcore: registered new interface driver cdc_ether
    [    1.163622] usbcore: registered new interface driver r815x
    [    1.169527] usbcore: registered new interface driver smsc95xx
    [    1.175714] usbcore: registered new interface driver net1080
    [    1.181786] usbcore: registered new interface driver cdc_subset
    [    1.188111] usbcore: registered new interface driver zaurus
    [    1.194175] usbcore: registered new interface driver cdc_ncm
    [    1.200563] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.207442] ehci-pci: EHCI PCI platform driver
    [    1.212270] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.218537] usbcore: registered new interface driver cdc_wdm
    [    1.224667] usbcore: registered new interface driver usb-storage
    [    1.231322] usbcore: registered new interface driver usbserial
    [    1.237592] usbcore: registered new interface driver cp210x
    [    1.243567] usbserial: USB Serial support registered for cp210x
    [    1.249893] usbcore: registered new interface driver pl2303
    [    1.255870] usbserial: USB Serial support registered for pl2303
    [    1.263002] mousedev: PS/2 mouse device common for all mice
    [    1.269727] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [    1.279827] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    1.288006] i2c /dev entries driver
    [    1.292112] Driver for 1-wire Dallas network protocol.
    [    1.299674] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.308612] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.315882] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    1.323065] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
    [    1.329961] edma-dma-engine edma-dma-engine.0: freeing channel for 24
    [    1.336738] edma-dma-engine edma-dma-engine.0: freeing channel for 25
    [    1.343601] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
    [    1.351237] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
    [    1.358399] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
    [    1.438959] omap_hwmod: gpio1: _wait_target_disable failed
    [    1.476433] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.486179] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
    [    1.493411] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.500664] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.506826] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
    [    1.513915] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
    [    1.523685] usbcore: registered new interface driver usbhid
    [    1.529569] usbhid: USB HID core driver
    [    1.535534] oprofile: no performance counters
    [    1.540491] oprofile: using timer interrupt.
    [    1.545238] TCP: cubic registered
    [    1.548742] Initializing XFRM netlink socket
    [    1.553281] NET: Registered protocol family 17
    [    1.558000] NET: Registered protocol family 15
    [    1.562707] 8021q: 802.1Q VLAN Support v1.8
    [    1.567242] Key type dns_resolver registered
    [    1.572282] cpu cpu0: cpu0 regulator not ready, retry
    [    1.577723] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [    1.586012] ThumbEE CPU extension supported.
    [    1.592252] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.597716] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.605090] ONFI param page 0 valid
    [    1.608803] ONFI flash detected
    [    1.612110] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP), 1024MiB, page size: 4096, OOB size: 224
    [    1.624267] omap2-nand: detected x8 NAND flash
    [    1.628937] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.634538] omap2-nand: using custom ecc layout
    [    1.639473] 10 ofpart partitions found on MTD device omap2-nand.0
    [    1.645889] Creating 10 MTD partitions on "omap2-nand.0":
    [    1.651564] 0x000000000000-0x000000080000 : "NAND.SPL"
    [    1.658350] 0x000000080000-0x000000100000 : "NAND.SPL.backup1"
    [    1.665567] 0x000000100000-0x000000180000 : "NAND.SPL.backup2"
    [    1.672825] 0x000000180000-0x000000200000 : "NAND.SPL.backup3"
    [    1.680093] 0x000000200000-0x000000280000 : "NAND.u-boot-spl-os"
    [    1.687591] 0x000000280000-0x000000380000 : "NAND.u-boot"
    [    1.694362] 0x000000380000-0x000000400000 : "NAND.u-boot-env"
    [    1.701462] 0x000000400000-0x000000480000 : "NAND.u-boot-env.backup1"
    [    1.709321] 0x000000480000-0x000000f00000 : "NAND.kernel"
    [    1.717097] 0x000000f00000-0x000040380000 : "NAND.file-system"
    [    1.723232] mtd: partition "NAND.file-system" extends beyond the end of device "omap2-nand.0" -- size truncated to 0x3f100000
    [    1.841532] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.849579] vrtc: 1800 mV
    [    1.852681] vrtc: supplied by vbat
    [    1.857445] vio: at 1800 mV
    [    1.860536] vio: supplied by vbat
    [    1.865242] vdd_mpu: 912 <--> 1375 mV at 1325 mV
    [    1.870258] vdd_mpu: supplied by vbat
    [    1.875317] vdd_core: 912 <--> 1150 mV at 1137 mV
    [    1.880413] vdd_core: supplied by vbat
    [    1.885375] vdd3: 5000 mV
    [    1.889263] vdig1: at 1800 mV
    [    1.892526] vdig1: supplied by vbat
    [    1.897261] vdig2: at 1800 mV
    [    1.900521] vdig2: supplied by vbat
    [    1.905243] vpll: at 1800 mV
    [    1.908428] vpll: supplied by vbat
    [    1.913050] vdac: at 1800 mV
    [    1.916236] vdac: supplied by vbat
    [    1.920860] vaux1: at 1800 mV
    [    1.924115] vaux1: supplied by vbat
    [    1.928839] vaux2: at 3300 mV
    [    1.932093] vaux2: supplied by vbat
    [    1.936827] vaux33: at 3300 mV
    [    1.940172] vaux33: supplied by vbat
    [    1.944979] vmmc: 1800 <--> 3300 mV at 3300 mV
    [    1.949812] vmmc: supplied by vbat
    [    1.954083] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.962466] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    1.969273] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
    [    1.976461] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
    [    2.016863] UBI: attaching mtd9 to ubi0
    [    2.191912] mmc1: new high speed SDHC card at address aaaa
    [    2.206290] mmcblk0: mmc1:aaaa SS08G 7.40 GiB
    [    2.225276]  mmcblk0: p1 p2
    [    3.047435] UBI: scanning is finished
    [    3.060385] UBI: attached mtd9 (name "NAND.file-system", size 1009 MiB) to ubi0
    [    3.068152] UBI: PEB size: 524288 bytes (512 KiB), LEB size: 520192 bytes
    [    3.075272] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 1024
    [    3.082312] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
    [    3.089528] UBI: good PEBs: 2018, bad PEBs: 0, corrupted PEBs: 0
    [    3.095835] UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
    [    3.103320] UBI: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 1985104887
    [    3.112818] UBI: available PEBs: 1974, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
    [    3.122598] UBI: background thread "ubi_bgt0d" started, PID 838
    [    3.215604] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    3.222011] davinci_mdio 4a101000.mdio: detected phy mask 7fffffff
    [    3.246459] libphy: 4a101000.mdio: probed
    [    3.250673] davinci_mdio 4a101000.mdio: phy[31]: device 4a101000.mdio:1f, driver unknown
    [    3.276254] Detected MACID = d0:5f:b8:87:07:58
    [    3.282229] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    3.308654] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:am335x-evm-rootfs", error -19
    [    3.317689] VFS: Cannot open root device "ubi0:am335x-evm-rootfs" or unknown-block(0,0): error -19
    [    3.327103] Please append a correct "root=" boot option; here are the available partitions:
    [    3.335908] 1f00             512 mtdblock0  (driver?)
    [    3.341219] 1f01             512 mtdblock1  (driver?)
    [    3.346531] 1f02             512 mtdblock2  (driver?)
    [    3.351833] 1f03             512 mtdblock3  (driver?)
    [    3.357146] 1f04             512 mtdblock4  (driver?)
    [    3.362446] 1f05            1024 mtdblock5  (driver?)
    [    3.367771] 1f06             512 mtdblock6  (driver?)
    [    3.373075] 1f07             512 mtdblock7  (driver?)
    [    3.378386] 1f08           10752 mtdblock8  (driver?)
    [    3.383686] 1f09         1033216 mtdblock9  (driver?)
    [    3.388999] b300         7761920 mmcblk0  driver: mmcblk
    [    3.394574]   b301           72261 mmcblk0p1 00000000-01
    [    3.400157]   b302         7679070 mmcblk0p2 00000000-02
    [    3.405742] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

  • I suspect you have a name mismatch between your nandargs in u-boot and the name of the file system ubi partition.  In linux, if you type

    ubinfo -a | grep Name

    you'll see the name of the linux file system partition.  You must make the u-boot command use this same name, which should be NAND.file-system for you.

    So then your u-boot command should use the following root:

    nandroot=ubi0:NAND.file-system rw ubi.mtd=9\0

    Looks like you are still using nandroots=ubi0:rootfs instead.

  • Hi Chicken,

    Thanks for your suggestions. Now my platform is working using NAND 1GB in Linux 3.12 -SDK7.

    Still i am trying in Linux 3.2-SDK6 version. but it is not connecting to root file system.  My most of the drivers are  working under Linux 3.2-SDK6

    Could you check my log and suggest me where it went wrong. Is there any kernel dependency to support for my 1GB nand.

    Find attached log for reference.

    Regards,

    Lofna

    NAND-Boot-Log-Linux-3-2.txt
    U-Boot 2013.10-00189-g78d8ebd-dirty (Aug 25 2015 - 15:33:58)
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Net:   Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    Could not get PHY for cpsw: addr 0
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-Boot#
    
    U-Boot#
    U-Boot# setenv bootargs console=ttyO0,115200n8 rootfstype=ext3 nandroot ubi0:rootfs rw ubi.mtd=7
    U-Boot# saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x300000 -- 100% complete.
    Writing to NAND... OK
    U-Boot# boot
    
    NAND read: device 0 offset 0x380000, size 0x700000
     7340032 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3265728 Bytes = 3.1 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #33 Wed Sep 2 18:15:33 IST 2015
    [    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: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 rootfstype=ext3 nandroot ubi0:rootfs rw ubi.mtd=7
    [    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: 512MB = 512MB total
    [    0.000000] Memory: 512728k/512728k available, 11560k 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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05ba000   (5832 kB)
    [    0.000000]       .init : 0xc05ba000 - 0xc0652000   ( 608 kB)
    [    0.000000]       .data : 0xc0652000 - 0xc06aeae8   ( 371 kB)
    [    0.000000]        .bss : 0xc06aeb0c - 0xc06db194   ( 178 kB)
    [    0.000000] NR_IRQS:396
    [    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: GPTIMER2 at 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000166] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087740] pid_max: default: 32768 minimum: 301
    [    0.087843] Security Framework initialized
    [    0.087929] Mount-cache hash table entries: 512
    [    0.088268] CPU: Testing write buffer coherency: ok
    [    0.088916] devtmpfs: initialized
    [    0.107387] omap_hwmod: gfx: failed to hardreset
    [    0.123159] omap_hwmod: pruss: failed to hardreset
    [    0.124250] print_constraints: dummy:
    [    0.124540] NET: Registered protocol family 16
    [    0.126349] OMAP GPIO hardware version 0.1
    [    0.128351] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130214]  omap_i2c.1: alias fck already exists
    [    0.130985]  omap2_mcspi.1: alias fck already exists
    [    0.131160]  omap2_mcspi.2: alias fck already exists
    [    0.131393]  edma.0: alias fck already exists
    [    0.131422]  edma.0: alias fck already exists
    [    0.131449]  edma.0: alias fck already exists
    [    0.150698] bio: create slab <bio-0> at 0
    [    0.152571] SCSI subsystem initialized
    [    0.153871] usbcore: registered new interface driver usbfs
    [    0.154127] usbcore: registered new interface driver hub
    [    0.154286] usbcore: registered new device driver usb
    [    0.154410] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.154631] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.167766] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.169343] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.171611] print_constraints: VRTC:
    [    0.172979] print_constraints: VIO: at 1800 mV
    [    0.175201] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.177404] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.178332] print_constraints: VDD3: 5000 mV
    [    0.179667] print_constraints: VDIG1: at 1800 mV
    [    0.181027] print_constraints: VDIG2: at 1800 mV
    [    0.182368] print_constraints: VPLL: at 1800 mV
    [    0.183728] print_constraints: VDAC: at 1800 mV
    [    0.185075] print_constraints: VAUX1: at 1800 mV
    [    0.186435] print_constraints: VAUX2: at 3300 mV
    [    0.187774] print_constraints: VAUX33: at 3300 mV
    [    0.189123] print_constraints: VMMC: at 3300 mV
    [    0.189516] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.190821] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.191826] Switching to clocksource gp timer
    [    0.205611] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.205775] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.206490] musb-hdrc musb-hdrc.0: USB OTG mode controller at e081c000 using PIO, IRQ 18
    [    0.206637] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.206952] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.207017] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.207132] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.207143] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.207153] usb usb1: Product: MUSB HDRC host driver
    [    0.207160] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.207168] usb usb1: SerialNumber: musb-hdrc.1
    [    0.207899] hub 1-0:1.0: USB hub found
    [    0.207924] hub 1-0:1.0: 1 port detected
    [    0.208384] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19
    [    0.208763] NET: Registered protocol family 2
    [    0.208935] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.209203] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.209419] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.209544] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.209554] TCP reno registered
    [    0.209563] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209580] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.209741] NET: Registered protocol family 1
    [    0.209959] RPC: Registered named UNIX socket transport module.
    [    0.209972] RPC: Registered udp transport module.
    [    0.209978] RPC: Registered tcp transport module.
    [    0.209985] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.210173] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.229698] VFS: Disk quotas dquot_6.5.2
    [    0.229755] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.230924] msgmni has been set to 1001
    [    0.231582] io scheduler noop registered
    [    0.231592] io scheduler deadline registered
    [    0.231639] io scheduler cfq registered (default)
    [    0.232732] usbcore: registered new interface driver udlfb
    [    0.322410] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.971601] console [ttyO0] enabled
    [    0.975867] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.983694] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.991436] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.999200] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    1.006957] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    1.022335] brd: module loaded
    [    1.029413] loop: module loaded
    [    1.033015] i2c-core: driver [tsl2550] using legacy suspend method
    [    1.039476] i2c-core: driver [tsl2550] using legacy resume method
    [    1.045923] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.151862] No daughter card found
    [    1.155460] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.164818] Board name: A33515BB
    [    1.168187] Board version: 1.4A
    [    1.171465] SKU: SKU#01
    [    1.191886] The board is general purpose EVM in profile 0
    [    1.197527] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.228203] buzzzz##01 - pwm backlight - enable_ecap0
    [    1.233557] LCD hannstar configuration -  ############## 1
    [    1.241751] LCD hannstar configuration -  ############## 2
    [    1.249764]  da8xx_lcdc.0: alias fck already exists
    [    1.255123] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.262399] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.283490] Console: switching to colour frame buffer device 100x30
    [    1.302334] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.307354] Registering NAND on CS0
    [    1.311618]  omap_i2c.2: alias fck already exists
    [    1.331965] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.338482] tsl2550 2-0039: standard operating mode
    [    1.344294] tsl2550 2-0039: support ver. 1.2 enabled
    [    1.350133] bmp085: probe of 2-0077 failed with error -121
    [    1.357254] gpiochip_add: gpios 0..7 (tca6408) failed to register
    [    1.363647] ------------[ cut here ]------------
    [    1.368492] WARNING: at kernel/irq/manage.c:1163 __free_irq+0x9c/0x16c()
    [    1.375493] Trying to free already-free IRQ 271
    [    1.380223] Modules linked in:
    [    1.383413] Backtrace:
    [    1.385990] [<c00178b0>] (dump_backtrace+0x0/0x10c) from [<c043854c>] (dump_stack+0x18/0x1c)
    [    1.394810]  r6:0000048b r5:c006f514 r4:df02d918 r3:c0673488
    [    1.400749] [<c0438534>] (dump_stack+0x0/0x1c) from [<c003c58c>] (warn_slowpath_common+0x54/0x6c)
    [    1.410028] [<c003c538>] (warn_slowpath_common+0x0/0x6c) from [<c003c648>] (warn_slowpath_fmt+0x38/0x40)
    [    1.419936]  r8:00000000 r7:0000010f r6:a0000013 r5:c067cae4 r4:df129780
    [    1.426770] r3:00000009
    [    1.429512] [<c003c610>] (warn_slowpath_fmt+0x0/0x40) from [<c006f514>] (__free_irq+0x9c/0x16c)
    [    1.438604]  r3:0000010f r2:c0529204
    [    1.442347] [<c006f478>] (__free_irq+0x0/0x16c) from [<c006f62c>] (free_irq+0x48/0x84)
    [    1.450620]  r8:df7f5a00 r7:c045c9ac r6:df129780 r5:0000010f r4:c067cae4
    [    1.457455] r3:00000000
    [    1.460198] [<c006f5e4>] (free_irq+0x0/0x84) from [<c042e5f0>] (pca953x_probe+0x458/0x4c0)
    [    1.468835]  r6:fffffff0 r5:00000000 r4:df129780 r3:df7f5a00
    [    1.474779] [<c042e198>] (pca953x_probe+0x0/0x4c0) from [<c02f4b74>] (i2c_device_probe+0xd4/0x12c)
    [    1.484159] [<c02f4aa0>] (i2c_device_probe+0x0/0x12c) from [<c0236ec8>] (driver_probe_device+0xb8/0x2c0)
    [    1.494076] [<c0236e10>] (driver_probe_device+0x0/0x2c0) from [<c02371ac>] (__device_attach+0x44/0x48)
    [    1.503803]  r8:c06d22cc r7:df354068 r6:c0237168 r5:df7f5a20 r4:c0685f4c
    [    1.510830] [<c0237168>] (__device_attach+0x0/0x48) from [<c0235bb8>] (bus_for_each_drv+0x64/0x90)
    [    1.520193]  r5:00000000 r4:df7f5a20
    [    1.523938] [<c0235b54>] (bus_for_each_drv+0x0/0x90) from [<c0236da0>] (device_attach+0x90/0xa8)
    [    1.533121]  r6:00000000 r5:df7f5a54 r4:df7f5a20
    [    1.537960] [<c0236d10>] (device_attach+0x0/0xa8) from [<c02364d4>] (bus_probe_device+0x2c/0x48)
    [    1.547142]  r6:00000000 r5:df7f5a28 r4:df7f5a20 r3:00000001
    [    1.553075] [<c02364a8>] (bus_probe_device+0x0/0x48) from [<c02347e0>] (device_add+0x498/0x584)
    [    1.562172] [<c0234348>] (device_add+0x0/0x584) from [<c02348e8>] (device_register+0x1c/0x20)
    [    1.571089] [<c02348cc>] (device_register+0x0/0x20) from [<c02f5358>] (i2c_new_device+0xf0/0x1a4)
    [    1.580362]  r4:df7f5a00 r3:df7f8800
    [    1.584107] [<c02f5268>] (i2c_new_device+0x0/0x1a4) from [<c02f5824>] (i2c_register_adapter+0x188/0x244)
    [    1.594015]  r8:c0697370 r7:df33d4c0 r6:00000000 r5:df354068 r4:df354040
    [    1.601042] [<c02f569c>] (i2c_register_adapter+0x0/0x244) from [<c02f5a34>] (i2c_add_numbered_adapter+0xb8/0xdc)
    [    1.611678]  r8:df7fb808 r7:df7fb800 r6:df7fae94 r5:00000000 r4:df354040
    [    1.618513] r3:00000000
    [    1.621256] [<c02f597c>] (i2c_add_numbered_adapter+0x0/0xdc) from [<c0436d80>] (omap_i2c_probe+0x2bc/0x384)
    [    1.631437]  r5:df7fd5c0 r4:df354000
    [    1.635185] [<c0436ac4>] (omap_i2c_probe+0x0/0x384) from [<c023847c>] (platform_drv_probe+0x20/0x24)
    [    1.644739] [<c023845c>] (platform_drv_probe+0x0/0x24) from [<c0236ec8>] (driver_probe_device+0xb8/0x2c0)
    [    1.654747] [<c0236e10>] (driver_probe_device+0x0/0x2c0) from [<c02371ac>] (__device_attach+0x44/0x48)
    [    1.664474]  r8:c06d22cc r7:c0672c88 r6:c0237168 r5:df7fb808 r4:c069751c
    [    1.671501] [<c0237168>] (__device_attach+0x0/0x48) from [<c0235bb8>] (bus_for_each_drv+0x64/0x90)
    [    1.680864]  r5:00000000 r4:df7fb808
    [    1.684609] [<c0235b54>] (bus_for_each_drv+0x0/0x90) from [<c0236da0>] (device_attach+0x90/0xa8)
    [    1.693791]  r6:00000000 r5:df7fb83c r4:df7fb808
    [    1.698630] [<c0236d10>] (device_attach+0x0/0xa8) from [<c02364d4>] (bus_probe_device+0x2c/0x48)
    [    1.707812]  r6:00000000 r5:df7fb810 r4:df7fb808 r3:00000001
    [    1.713744] [<c02364a8>] (bus_probe_device+0x0/0x48) from [<c02347e0>] (device_add+0x498/0x584)
    [    1.722844] [<c0234348>] (device_add+0x0/0x584) from [<c0238a60>] (platform_device_add+0x108/0x1dc)
    [    1.732312] [<c0238958>] (platform_device_add+0x0/0x1dc) from [<c0033f74>] (omap_device_register+0x38/0x5c)
    [    1.742494]  r7:c0441b7c r6:00000000 r5:df7fd640 r4:df7fb800
    [    1.748425] [<c0033f3c>] (omap_device_register+0x0/0x5c) from [<c0034094>] (omap_device_build_ss+0xfc/0x148)
    [    1.758698]  r4:df7fb800 r3:00000000
    [    1.762442] [<c0033f98>] (omap_device_build_ss+0x0/0x148) from [<c0034134>] (omap_device_build+0x54/0x5c)
    [    1.772452] [<c00340e0>] (omap_device_build+0x0/0x5c) from [<c05c8e3c>] (omap_i2c_add_bus+0xe0/0x134)
    [    1.782094] [<c05c8d5c>] (omap_i2c_add_bus+0x0/0x134) from [<c05c8fd4>] (omap_register_i2c_bus+0x7c/0x84)
    [    1.792094]  r6:00000001 r5:00000064 r4:00000002
    [    1.796949] [<c05c8f58>] (omap_register_i2c_bus+0x0/0x84) from [<c003036c>] (i2c1_init+0x30/0x34)
    [    1.806222]  r5:c0671530 r4:c0670668
    [    1.809967] [<c003033c>] (i2c1_init+0x0/0x34) from [<c0438770>] (_configure_device+0xb8/0xe0)
    [    1.818876]  r4:00000001 r3:c003033c
    [    1.822621] [<c04386b8>] (_configure_device+0x0/0xe0) from [<c0030fc8>] (am335x_evm_setup+0x31c/0x428)
    [    1.832349]  r7:ffffffff r6:00000000 r5:c0670668 r4:c06af8e4
    [    1.838285] [<c0030cac>] (am335x_evm_setup+0x0/0x428) from [<c02489a4>] (at24_probe+0x45c/0x50c)
    [    1.847468]  r7:00000000 r6:df344540 r5:df0ae820 r4:df0ae800
    [    1.853400] [<c0248548>] (at24_probe+0x0/0x50c) from [<c02f4b74>] (i2c_device_probe+0xd4/0x12c)
    [    1.862499] [<c02f4aa0>] (i2c_device_probe+0x0/0x12c) from [<c0236ec8>] (driver_probe_device+0xb8/0x2c0)
    [    1.872415] [<c0236e10>] (driver_probe_device+0x0/0x2c0) from [<c0237164>] (__driver_attach+0x94/0x98)
    [    1.882143]  r8:00000000 r7:00000000 r6:df0ae854 r5:c068b8a4 r4:df0ae820
    [    1.889170] [<c02370d0>] (__driver_attach+0x0/0x98) from [<c0235ec4>] (bus_for_each_dev+0x64/0x90)
    [    1.898533]  r6:c02370d0 r5:00000000 r4:c068b8a4 r3:c02370d0
    [    1.904466] [<c0235e60>] (bus_for_each_dev+0x0/0x90) from [<c0236af0>] (driver_attach+0x24/0x28)
    [    1.913648]  r6:df3446c0 r5:c06973b4 r4:c068b8a4
    [    1.918487] [<c0236acc>] (driver_attach+0x0/0x28) from [<c023674c>] (bus_add_driver+0x18c/0x26c)
    [    1.927677] [<c02365c0>] (bus_add_driver+0x0/0x26c) from [<c023767c>] (driver_register+0x80/0x138)
    [    1.937049] [<c02375fc>] (driver_register+0x0/0x138) from [<c02f6c18>] (i2c_register_driver+0x34/0xe8)
    [    1.946777]  r8:00000000 r7:00000013 r6:00000000 r5:df02c000 r4:c068b87c
    [    1.953611] r3:c06973b4
    [    1.956360] [<c02f6be4>] (i2c_register_driver+0x0/0xe8) from [<c05d9154>] (at24_init+0x48/0x54)
    [    1.965452]  r5:df02c000 r4:c06aeb40
    [    1.969197] [<c05d910c>] (at24_init+0x0/0x54) from [<c00085fc>] (do_one_initcall+0x40/0x184)
    [    1.978033] [<c00085bc>] (do_one_initcall+0x0/0x184) from [<c05ba854>] (kernel_init+0x80/0x11c)
    [    1.987135] [<c05ba7d4>] (kernel_init+0x0/0x11c) from [<c003f3cc>] (do_exit+0x0/0x66c)
    [    1.995409]  r5:c05ba7d4 r4:00000000
    [    1.999188] ---[ end trace 15f24c86bf2d89dc ]---
    [    2.004071] pca953x: probe of 2-0020 failed with error -16
    [    2.009864] buzzzz - static void mmc2_wl12xx_init(int evm_id, int profile) - 00
    [    2.017727]  omap_hsmmc.0: alias fck already exists
    [    2.023346]  omap_hsmmc.2: alias fck already exists
    [    2.028739] buzzzz - static void wl12xx_init(int evm_id, int profile) - 00
    [    2.035961] buzzzz - static void wl12xx_init(int evm_id, int profile) - 01
    [    2.043161] Configure Bluetooth Enable pin...
    [    2.047722] buzzzz - gp_evm_revision == GP_EVM_REV_IS_1_1A - 00
    [    2.053951] LCD hannstar configuration - ############## 0b
    [    2.062857] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.070507] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    2.083195] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    2.090203] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    2.097680] usb 1-1: Product: USB2.0 Hub
    [    2.102488] lis3lv02d: 8 bits 3DLH sensor found
    [    2.107575] hub 1-1:1.0: USB hub found
    [    2.111804] hub 1-1:1.0: 4 ports detected
    [    2.202245] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    2.214043] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    2.221115] failure requesting irq 4
    [    2.224910] omap2_elm: probe of omap2_elm failed with error -22
    [    2.231254] omap2-nand driver initializing
    [    2.235860] ONFI flash detected
    [    2.239257] ONFI param page 0 valid
    [    2.242925] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
    [    2.251480] Creating 8 MTD partitions on "omap2-nand.0":
    [    2.257059] 0x000000000000-0x000000080000 : "SPL"
    [    2.263279] 0x000000080000-0x000000100000 : "SPL.backup1"
    [    2.270070] 0x000000100000-0x000000180000 : "SPL.backup2"
    [    2.276890] 0x000000180000-0x000000200000 : "SPL.backup3"
    [    2.283722] 0x000000200000-0x000000300000 : "U-Boot"
    [    2.290088] 0x000000300000-0x000000380000 : "U-Boot-Env"
    [    2.296812] 0x000000380000-0x000000a80000 : "Kernel"
    [    2.303756] 0x000000a80000-0x000040000000 : "rootfs"
    [    2.414428] OneNAND driver initializing
    [    2.419124] UBI: attaching mtd7 to ubi0
    [    2.423190] UBI: physical eraseblock size:   524288 bytes (512 KiB)
    [    2.429738] UBI: logical eraseblock size:    520192 bytes
    [    2.435388] UBI: smallest flash I/O unit:    4096
    [    2.440302] UBI: sub-page size:              1024
    [    2.445223] UBI: VID header offset:          1024 (aligned 1024)
    [    2.451497] UBI: data offset:                4096
    [    2.542120] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    2.567969] UBI: empty MTD device detected
    [    2.572303] UBI: max. sequence number:       0
    [    2.577014] UBI: create volume table (copy #1)
    [    2.581658] UBI error: ubi_scan_get_free_peb: no free eraseblocks
    [    2.588187] UBI error: ubi_init: cannot attach mtd7
    [    2.641870] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    2.648338] davinci_mdio davinci_mdio.0: detected phy mask 7fffffff
    [    2.655624] davinci_mdio.0: probed
    [    2.659188] davinci_mdio davinci_mdio.0: phy[31]: device 0:1f, driver unknown
    [    2.666814] PPP generic driver version 2.4.2
    [    2.671634] PPP BSD Compression module registered
    [    2.676573] PPP Deflate Compression module registered
    [    2.682382] PPP MPPE Compression module registered
    [    2.687779] usbcore: registered new interface driver zd1201
    [    2.693869] usbcore: registered new interface driver cdc_ether
    [    2.700156] usbcore: registered new interface driver cdc_eem
    [    2.706194] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.713398] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.721040] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    2.727688] usb 1-1.2: Manufacturer: Silicon Labs
    [    2.732610] usb 1-1.2: SerialNumber: 0001
    [    2.736971] usbcore: registered new interface driver dm9601
    [    2.742844] cdc_ncm: 04-Aug-2011
    [    2.746369] usbcore: registered new interface driver cdc_ncm
    [    2.752301] Initializing USB Mass Storage driver...
    [    2.757602] usbcore: registered new interface driver usb-storage
    [    2.763898] USB Mass Storage support registered.
    [    2.769568] usbcore: registered new interface driver usbserial
    [    2.775704] usbserial: USB Serial Driver core
    [    2.780485] USB Serial support registered for cp210x
    [    2.786386] cp210x 1-1.2:1.0: cp210x converter detected
    [    2.872110] usb 1-1.2: reset full-speed USB device number 3 using musb-hdrc
    [    2.973308] usb 1-1.2: cp210x converter now attached to ttyUSB0
    [    2.979655] usbcore: registered new interface driver cp210x
    [    2.985504] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
    [    2.992781] USB Serial support registered for pl2303
    [    2.998176] usbcore: registered new interface driver pl2303
    [    3.004024] pl2303: Prolific PL2303 USB to serial adaptor driver
    [    3.010804] mousedev: PS/2 mouse device common for all mice
    [    3.017815] input: adp5588-keys as /devices/platform/omap/omap_i2c.1/i2c-1/1-0034/input/input1
    [    3.033147] adp5588_keys 1-0034: Rev.4 keypad, irq 217
    [    3.039507] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input2
    [    3.047887] ==ft5x0x_ts_init==
    [    3.051127] ==ft5x0x_ts_probe=
    [    3.054349] ==kzalloc=
    [    3.057128] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    3.064821] input: ft5x0x_ts as /devices/virtual/input/input3
    [    3.122041] msg ft5x0x_read_reg i2c read error: -121
    [    3.127231] [FST] FT55x0x Firmware version = 0xa6
    [    3.132163] ==probe over =
    [    3.135189] ret=0
    [    3.137860] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    3.144778] i2c /dev entries driver
    [    3.149111] Linux video capture interface: v2.00
    [    3.154878] lm75 2-0048: hwmon0: sensor 'tmp275'
    [    3.163332] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    3.170529] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    3.178187] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    3.184837] usb 1-1.3: Manufacturer: Silicon Labs
    [    3.189750] usb 1-1.3: SerialNumber: 0001
    [    3.195319] cp210x 1-1.3:1.0: cp210x converter detected
    [    3.272116] usb 1-1.3: reset full-speed USB device number 4 using musb-hdrc
    [    3.353489] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    3.364414] cpuidle: using governor ladder
    [    3.369179] cpuidle: using governor menu
    [    3.373528] sdhci: Secure Digital Host Controller Interface driver
    [    3.379981] sdhci: Copyright(c) Pierre Ossman
    [    3.387965] buzzzz - wl12xx_set_power ON status 00 : 1
    [    3.393371] buzzzz - wl12xx_set_power ON status 01
    [    3.469725] usb 1-1.3: cp210x converter now attached to ttyUSB1
    [    3.478592] usbcore: registered new interface driver usbhid
    [    3.484442] usbhid: USB HID core driver
    [    3.489243] HMC5843 initialized
    [    3.493112] i2c-core: driver [hmc5843] using legacy suspend method
    [    3.499563] i2c-core: driver [hmc5843] using legacy resume method
    [    3.506808] usbcore: registered new interface driver snd-usb-audio
    [    3.513319] ALSA device list:
    [    3.516407]   No soundcards found.
    [    3.519946] oprofile: hardware counters not available
    [    3.525216] oprofile: using timer interrupt.
    [    3.529712] nf_conntrack version 0.5.0 (8011 buckets, 32044 max)
    [    3.536579] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    3.542280] TCP cubic registered
    [    3.545648] NET: Registered protocol family 17
    [    3.550403] Bridge firewalling registered
    [    3.554647] lib80211: common routines for IEEE802.11 drivers
    [    3.560590] Registering the dns_resolver key type
    [    3.565564] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    3.573569] ThumbEE CPU extension supported.
    [    3.578081] mux: Failed to setup hwmod io irq -22
    [    3.583656] Power Management for AM33XX family
    [    3.588508] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    3.595199] Copied the M3 firmware to UMEM
    [    3.599486] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    3.614832] clock: disabling unused clocks to save power
    [    3.622605] Detected MACID=68:c9:b:a9:34:f2
    [    3.628531] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    3.637932] Root-NFS: no NFS server address
    [    3.642340] VFS: Unable to mount root fs via NFS, trying floppy.
    [    3.648959] VFS: Cannot open root device "(null)" or unknown-block(2,0)
    [    3.655902] Please append a correct "root=" boot option; here are the available partitions:
    [    3.664659] 1f00             512 mtdblock0  (driver?)
    [    3.669928] 1f01             512 mtdblock1  (driver?)
    [    3.675214] 1f02             512 mtdblock2  (driver?)
    [    3.680483] 1f03             512 mtdblock3  (driver?)
    [    3.685763] 1f04            1024 mtdblock4  (driver?)
    [    3.691034] 1f05             512 mtdblock5  (driver?)
    [    3.696315] 1f06            7168 mtdblock6  (driver?)
    [    3.701584] 1f07         1037824 mtdblock7  (driver?)
    [    3.706865] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [    3.715486] Backtrace:
    [    3.718073] [<c00178b0>] (dump_backtrace+0x0/0x10c) from [<c043854c>] (dump_stack+0x18/0x1c)
    [    3.726882]  r6:c05e7aec r5:00000000 r4:c06afb48 r3:c0673488
    [    3.732813] [<c0438534>] (dump_stack+0x0/0x1c) from [<c043885c>] (panic+0x64/0x188)
    [    3.740816] [<c04387f8>] (panic+0x0/0x188) from [<c05bac58>] (mount_block_root+0x178/0x22c)
    [    3.749528]  r3:df7be000 r2:00000000 r1:df02df50 r0:c0516180
    [    3.755451]  r7:00008000
    [    3.758099] [<c05baae0>] (mount_block_root+0x0/0x22c) from [<c05baebc>] (mount_root+0xc4/0xe4)
    [    3.767092] [<c05badf8>] (mount_root+0x0/0xe4) from [<c05bb044>] (prepare_namespace+0x168/0x1cc)
    [    3.776258]  r4:c06aeba0
    [    3.778905] [<c05baedc>] (prepare_namespace+0x0/0x1cc) from [<c05ba8c4>] (kernel_init+0xf0/0x11c)
    [    3.788162]  r5:c06510ec r4:c06510ec
    [    3.791919] [<c05ba7d4>] (kernel_init+0x0/0x11c) from [<c003f3cc>] (do_exit+0x0/0x66c)
    [    3.800167]  r5:c05ba7d4 r4:00000000

  • Hi Lofna

    Do you have UBI support enabled for your kernel?  The option is available in 'make menuconfig' in the kernel build system.  Look under Device Drivers -> Memory Technology (MTD) support -> Enable UBI