LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2016, 07:23 AM   #1
sirivellavenkatesh477
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Rep: Reputation: Disabled
bootstrap code is not running


Hi,
I am working in Board Bring up project on GESBC-9x25

I have made SDCard into 2 partitions(boot & rootfs).
I have created bootstrap binary for sdcard support(BOOT.BIN)
I have created u-boot.bin & uImage

BOOT.BIN, u-boot.bin & uImage kept in my boot partition of SDCard.
rootfs kept in rootfs partition of SDCard.

inserted my SDCard into board SDCard slot.

when i power on the board, only ROM code is executing...
It is not taking my images at all...

How to tell the processor, have look an SDcard for my remaining images like that.

here on my board, i didn't find boot pins.to change order of boot sequence.

i want to boot up the board with linux...
how to do this...
can any one help me plz.....
 
Old 04-06-2016, 07:59 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by sirivellavenkatesh477 View Post
Hi,
I am working in Board Bring up project on GESBC-9x25

I have made SDCard into 2 partitions(boot & rootfs). I have created bootstrap binary for sdcard support(BOOT.BIN) I have created u-boot.bin & uImage BOOT.BIN, u-boot.bin & uImage kept in my boot partition of SDCard. rootfs kept in rootfs partition of SDCard.

inserted my SDCard into board SDCard slot. when i power on the board, only ROM code is executing... It is not taking my images at all...

How to tell the processor, have look an SDcard for my remaining images like that. here on my board, i didn't find boot pins.to change order of boot sequence.

i want to boot up the board with linux...how to do this...
can any one help me plz.....
See the LQ Rules about text speak and NOT using it..it's "please" not "plz".

And did you try reading the user manual?? Seeing their website?? It has a COMPLETE description, downloadable images, and how-to guides.
http://www.glomationinc.com/Support/...ers-manual.pdf
http://www.glomationinc.com/SupportW...ct.GESBC-9G25i
 
1 members found this post helpful.
Old 04-07-2016, 12:34 AM   #3
sirivellavenkatesh477
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
bootstrap code is not running

Hi,

I have gone through all the above mentioned links...

Actually, the board will come with pre-installed linux on to board Nand flash... while shipping itself.

My requirement is to boot from SDCard,so what i have did is, i erased all the Nand contents by typing in u-boot prompt.
u-boot# nand erase clean
with that above command, pre-installed bootstrap, u-boot,uImage and rootfs are cleaned and gone...

i have prepared all images again and put into my SDcard boot partition

I inserted SDCard onto board SD slot.

when i power on the board now, only ROM code is executing...and cursor stopped...

If i want to change boot sequence,what is the procedure??? and here there is no boot pins on board.

can anyone help me please, how to boot linux on this GESBC-9x25 board.

Thanks very much.
Attached Thumbnails
Click image for larger version

Name:	Board Not Booting .png
Views:	21
Size:	95.4 KB
ID:	21397  

Last edited by sirivellavenkatesh477; 04-07-2016 at 12:38 AM.
 
Old 04-07-2016, 02:13 AM   #4
blue_z
Member
 
Registered: Jul 2015
Location: USA
Distribution: Ubuntu, Lubuntu, Mint, custom embedded
Posts: 104

Rep: Reputation: Disabled
Quote:
Originally Posted by sirivellavenkatesh477 View Post
If i want to change boot sequence,what is the procedure??? and here there is no boot pins on board.
Only limited change is possible to the boot order on the SAM9X25.
But it doesn't matter because the first boot device is SPI flash (which doesn't exist on that Glomation board), and the second device is the MMC/SDcard. The NAND flash is the third boot device, so the SDcard has precedence over the NAND flash.
So that means that you didn't have to erase the NAND flash.

Quote:
Originally Posted by sirivellavenkatesh477 View Post
I have made SDCard into 2 partitions(boot & rootfs).
More details please.
How did you format the boot partition?


Quote:
Originally Posted by sirivellavenkatesh477 View Post
I have created bootstrap binary for sdcard support(BOOT.BIN)
More details please.
What source file did you use?
What version?
What configuration did you use?

Quote:
Originally Posted by sirivellavenkatesh477 View Post
I have created u-boot.bin
More details please.
What version?
What configuration did you use?


I probably still have a SDcard image for a SAM9G25 project I did a few years ago. I don't recall any difficulties in building it.

Regards
 
Old 04-07-2016, 06:36 AM   #5
sirivellavenkatesh477
LQ Newbie
 
Registered: Nov 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Post

Hi,

I have made only 2 partitions of SDCard by using script in this link...
http://processors.wiki.ti.com/index....tition_SD_Card

How BOOT STRAP(BOOT.BIN) is built
------------------------------------------------------------------------------------------------------------------------
1.I cloned the source code from this site.
git clone git://github.com/linux4sam/at91bootstrap.git

2.selected and make default configurations for this board.
venkatesh@venkatesh:~/at91bootstrap$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- at91sam9x5eksd_uboot_defconfig

3.compiled and created Boot strap binary
venkatesh@venkatesh:~/at91bootstrap$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-

After this step the binary will be present in "at91bootstrap/binaries" directory
You will see "at91sam9x5ek-sdcardboot-uboot-3.8.4.bin" file which is our Boot Strap file...
changed it's name to BOOT.BIN
and kept in boot partition of SDCard.
____________________________________________________________________________________________________ _____________________

How U-boot is built
---------------------------------------------------------------------------------------------------------------------
1. downloaded u-boot-2015.04 source code from denx site.

2. u-boot configuraton
venkatesh@venkatesh:~/u-boot-2015.04$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- at91sam9x5ek_mmc_defconfig

3.u-boot compilation:
venkatesh@venkatesh:~/u-boot-2015.04$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-

then we will find "u-boot.bin" in parent directory of source.
that copied to boot partition of SDCard..
____________________________________________________________________________________________________ _____________________
Boot sequence for this GESBC-9x25 Board:

ROM CODE
|
BOOT STRAP(BOOT.BIN)
|
u-boot.bin
|
uImage
|
RFS

____________________________________________________________________________________________________ ___________

If i did mistake please correct me...

and please help me How to boot linux on GESBC-9x25 board.

Thank you very much...
 
Old 04-07-2016, 04:38 PM   #6
blue_z
Member
 
Registered: Jul 2015
Location: USA
Distribution: Ubuntu, Lubuntu, Mint, custom embedded
Posts: 104

Rep: Reputation: Disabled
Quote:
Originally Posted by sirivellavenkatesh477 View Post
I have made only 2 partitions of SDCard by using script in this link...
http://processors.wiki.ti.com/index....tition_SD_Card
Foul at the starting line!
Those are directions for TI Sitara SoCs.
You're using an Atmel SAM9 SoC.
They may have different requirements.
Instead you should be following SD card boot for AT91SAM SoC

Quote:
Originally Posted by sirivellavenkatesh477 View Post
1.I cloned the source code from this site.
git clone git://github.com/linux4sam/at91bootstrap.git
When you built U-Boot or the Linux kernel, did you clone the github, or do you just download a release tarball?
If all you want is source to build, then the better alternative is to use a release tarball: https://github.com/linux4sam/at91bootstrap/releases

Quote:
Originally Posted by sirivellavenkatesh477 View Post
2.selected and make default configurations for this board.
venkatesh@venkatesh:~/at91bootstrap$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- at91sam9x5eksd_uboot_defconfig

3.compiled and created Boot strap binary
venkatesh@venkatesh:~/at91bootstrap$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
FWIW, because of past gcc version issues when building U-Boot, I prefer to use a bare-metal toolchain for compiling AT91Bootstrap and U-Boot.


But before you worry about the toolchain, you need to bisect the problem, and try to determine if AT91Bootstrap has been loaded and tried to execute.
Why did you erase the NAND flash? Was the board booting from NAND even though the SDcard was inserted?

When you try to boot with the SDcard and only see the "RomBOOT" message (as in your minicom screenshot), type "V#" (your keystrokes will not be echoed). Is there any response?

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while running ./bootstrap cecillord Linux - Software 2 10-03-2013 09:48 AM
LXer: Weekend Project: Bootstrap Your Site with Bootstrap LXer Syndicated Linux News 0 09-02-2011 11:30 PM
why is this code not running? savitrasapre Programming 12 02-18-2009 05:01 AM
problem running "make bootstrap" on GCC Zaneyard Linux From Scratch 1 01-28-2008 09:28 PM
running executable in C++ code psIpher Programming 2 11-25-2005 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration