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 AM3517 From NAND.

Other Parts Discussed in Thread: AM3517

Dear All,

 

I have Bare metal board...and i want to boot the processor from NAND all configurations are correct ...i was able to boot from NAND with the TAM 3517 SOM board ... i think the manufacturer of nand has some boot script in Nand ? so i was able to evoke the x-loader..there is no problem with tam 3517 board...

But i am not able to boot from the bare metal board ... can any one guess what additional thing i need ?

 

Please suggest your views !

Thanks and regards

Hrishikesh.

  • I think you are wrong with the assumption that a new NAND does contain any data. Actually it will your task to flash the NAND with application and or boot code.

    As long as you haven't done that the processor will just be idling around... For the SOMs this is done by the board manufacturer as an additional service.

    Regards.

  • i want to know build process for uboot for custom board

    so far i have found process for building uboot for  boards  whos  <boardname>_defconfig is given

    how to build  _defconfig

  • Hi Siddharth,

    root#make ARCH=arm help

    use this command on u-boot and this command will give various options for board specific packages for compiling kernel.

    Which is your custom board..Please enter some details

    Thanks and Regards

    Hrishikesh.

  • Siddharth,

    By Mistake i have written it is U-boot prompt...it is your linux prompt

  • hi

    thank you for replying

    i am using crane board to design my own board

    i want to know how to develop uboot for custome board???

    i have read about Board Support Package.Is it similar to boot code or is it driving boot code???

    i am not clear about BSP and not understanding how to develop uboot for custome board.

    the command which u told i tried it and got following result

     

    root@anapc01:~# make ARCH=arm --help
    Usage: make [options] [target] ...
    Options:
      -b, -m                      Ignored for compatibility.
      -B, --always-make           Unconditionally make all targets.
      -C DIRECTORY, --directory=DIRECTORY
                                  Change to DIRECTORY before doing anything.
      -d                          Print lots of debugging information.
      --debug[=FLAGS]             Print various types of debugging information.
      -e, --environment-overrides
                                  Environment variables override makefiles.
      -f FILE, --file=FILE, --makefile=FILE
                                  Read FILE as a makefile.
      -h, --help                  Print this message and exit.
      -i, --ignore-errors         Ignore errors from commands.
      -I DIRECTORY, --include-dir=DIRECTORY
                                  Search DIRECTORY for included makefiles.
      -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
      -k, --keep-going            Keep going when some targets can't be made.
      -l [N], --load-average[=N], --max-load[=N]
                                  Don't start multiple jobs unless load is below N.
      -L, --check-symlink-times   Use the latest mtime between symlinks and target.
      -n, --just-print, --dry-run, --recon
                                  Don't actually run any commands; just print them.
      -o FILE, --old-file=FILE, --assume-old=FILE
                                  Consider FILE to be very old and don't remake it.
      -p, --print-data-base       Print make's internal database.
      -q, --question              Run no commands; exit status says if up to date.
      -r, --no-builtin-rules      Disable the built-in implicit rules.
      -R, --no-builtin-variables  Disable the built-in variable settings.
      -s, --silent, --quiet       Don't echo commands.
      -S, --no-keep-going, --stop
                                  Turns off -k.
      -t, --touch                 Touch targets instead of remaking them.
      -v, --version               Print the version number of make and exit.
      -w, --print-directory       Print the current directory.
      --no-print-directory        Turn off -w, even if it was turned on implicitly.
      -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                                  Consider FILE to be infinitely new.
      --warn-undefined-variables  Warn when an undefined variable is referenced

     

     

    not understanding where which option is for BSP selection.

    i am new to these things and have very less knowledge about it ur help will be very useful

     

    Thank you

     

     

  •  

    I have some experience with TAM-3517 custom board..Sorry i am not aware of The board u have ...This is not the expected output...u have to traverse the kernel source location

    root#cd /home/Linux/Kernel 2.6.xx

    root#make ARCH=arm help

    no need of putting of --...this command will give u the board specific configuration .config file..which has been already configured for board...then use this one using cross compile toolchain..u can compile this.

    Make sure this command will show some files like .. Tam3517_defconfig and other similar names of board.

    if want to manually configure kernel according to your requirements..bt this is very difficult needs lot of modification..

    root#cd to kernel source

    root#make menuconfig

     

    Thanks and regards

    Hrishikesh.

  • Siddharth,

     

    Also try posting your problem with New post may be some expert people from TI can help you.

    Thanks and Regards

    hrishikesh.

  • Hi Siddharth,

              Have you installed the necessary toolchain for compiling the sources.

              The procedure for the same and building images for CraneBoard can be found from the below link:

                http://processors.wiki.ti.com/index.php/Building_images_for_CraneBoard

    Regards,
    N.S.SriHarsha


  • Hi


    Followed the steps given in following website and i could make MLO,u-boot.bin,uImage.

    http://processors.wiki.ti.com/index.php/Building_images_for_CraneBoard

    various command used are as follows:

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517crane_config (to make MLO)

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_crane_config (to make u-boot)

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_crane_defconfig (to make uImage)

    I want to know how to generate am3517crane_config,am3517_crane_config,am3517_crane_defconfig .







  • Hi Siddharth,

               These are the configurations needed to build the images and are mentioned in the MAKEFILE of the respective directories.You can grep the same in MAKEFILE for much information on the same.

     

    Regards,

    N.S.SriHarsha

  • Hi SriHarsha

     

    U-BOOT:

        I went throug Readme of uboot and found how to create uboot.bin for custome board with supported architecture.I considered crane board as custome board and took board files.

    I took am3517_crane.h and made copy of it as am3517_crane1.h

    also took board files am3517crane and made copy of it as am3517crane1 and replaced inside files by board name like am3517crane1.c,am3517crane1.h

    and added following line to Uboot top Make file

    am3517_crane1_config :    unconfig
        @$(MKCONFIG) $(@:_config=) arm arm_cortexa8 am3517crane1 ti omap3

    After doing all this I tried

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_crane_config

    make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm all

     

    and I got uboot.bin,uboot,uboot.srec.

    I want to know is this the correct process of generating uboot.bin for custome board????


    X-LOAD:

    I tried to generate xload.bin in similar way as i did in uboot but not able to generate xload.bin

    I am getting errors as

    x-load/board/am3517crane1/am3517crane1.c:791: undefined reference to `nand_chip'

    x-load/lib/board.c:93: undefined reference to `nand_read_block'

    Is there any different process for generating xload.bin????? or am i doing somthing wrong???

    Can you please tell me??

     

     

    Thank you