How to flash Boot Loader using JTAG

1,362 views
Skip to first unread message

NaveenKumar Yanamaddi

unread,
Mar 21, 2012, 1:03:28 AM3/21/12
to Beagle Board
Hi All,

My Beagle board bicked, and i couldn't able to get unbrick. I've tried
several ways but still my board not booting. Final test i want to
flash boot loader using JTAG. Can any one give your ideas for
procedure...

Anil Sasidharan

unread,
Mar 21, 2012, 1:19:09 AM3/21/12
to beagl...@googlegroups.com
Hi,

Did you try booting from SD card?

Warm Regards,
Anil


--
To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

NaveenKumar Yanamaddi

unread,
Mar 21, 2012, 1:26:42 AM3/21/12
to Beagle Board
Hi Anil,

Yes I've tried to boot from SD card, still it is not booting.

Mark

unread,
Mar 21, 2012, 2:14:02 AM3/21/12
to Beagle Board
I don't think you can brick a beagle board.

These are a few notes regarding the boot procedure. It's possible
that you screwed up the xloader in NAND. Pressing the user button
should boot from a properly setup SD card.

Beagle Board boot procedure

**** see Ch 25 Initialization in spruf98p.pdf ******


1) Xloader
The ROM bootloader on the chip is looking for Xloader (or equivalent)
in the following locations:

User button not pressed (SYS.BOOT[5] = 0): NAND -> USB -> UART3 ->
MMC1
User button is pressed (SYS.BOOT[5] = 1): USB -> UART3 -> MMC1 ->
NAND

The serial terminal will have a few odd looking characters when an
Xloader cannot be found.

Note: To boot Xloader from SD, the first partition of the card must be
formatted FAT32 and have the 'boot' flag set.


On Mar 20, 10:26 pm, NaveenKumar Yanamaddi <navee...@teclever.com>
Message has been deleted

NaveenKumar Yanamaddi

unread,
Mar 27, 2012, 12:39:04 AM3/27/12
to beagl...@googlegroups.com
Hi Mark..

Thanks for reply. My main problem with my board is Not booting and also USR LEDs not glowing. So i thought my board got bricked. So i've tried to boot from SD card, that is also not booting. So now i want flash the boot loader to NAND using JTAG communication. But i dnt know the procedure. So if you have any idea, please post here so that i'm very thankful to u......

Jason Kridner

unread,
Mar 27, 2012, 8:59:25 AM3/27/12
to beagl...@googlegroups.com

Do you have a serial connection? Can you provide the log of output on the serial port?

Hiremath, Vaibhav

unread,
Mar 27, 2012, 3:52:12 PM3/27/12
to beagl...@googlegroups.com
On Tue, Mar 27, 2012 at 10:09:04, NaveenKumar Yanamaddi wrote:
> Hi Mark..
>
> Thanks for reply. My main problem with my board is Not booting and also
> USR LEDs not glowing. So i thought my board got bricked. So i've tried
> to boot from SD card, that is also not booting. So now i want flash the
> boot loader to NAND using JTAG communication. But i dnt know the
> procedure. So if you have any idea, please post here so that i'm very
> thankful to u......
>

Another option I can suggest here, which I usually use in such situations is,

If you are able to connect to A8 using JTAG, you can directly download x-
loader ELF file and boot it from there. I had used Laughterbaug for this in
the past, so I can share the steps with you, same should work for any
debugger,

- Connect via JTAG
- Stop the execution
- Load the x-loader ELF file, usually named as x-load (without ext)
- After loading, the PC automatically should set to 0x40200800
- Start step-by-step execution (OR try free running cpu)
- You should atleast get x-loader serial prints here
(if everything is ok)


Thanks,
Vaibhav

> > > > beagleboard...@googlegroups.com
> <mailto:beagleboard%2Bunsu...@googlegroups.com>

> > > > Frequently asked questions:http://beagleboard.org/faq

> <http://beagleboard.org/faq>

>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

> beagleboard...@googlegroups.com

NaveenKumar Yanamaddi

unread,
Mar 28, 2012, 12:20:41 AM3/28/12
to beagl...@googlegroups.com
Hi 

Thank you. I'll try those steps and get back with progress


> <mailto:beagleboard%2Bunsu...@googlegroups.com>  
>         > > > Frequently asked questions:http://beagleboard.org/faq
> <http://beagleboard.org/faq>
>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

NaveenKumar Yanamaddi

unread,
Mar 28, 2012, 2:01:33 AM3/28/12
to beagl...@googlegroups.com
Hi Jason,

Yes, I have serial connection. When i tried to connect my beagle board to PC through serial communication, nothing happens, no boot messages displaying. My Log output in Serial communication is


Welcome to minicom 2.5

OPTIONS: I18n 
Compiled on Feb  5 2011, 06:31:35.
Port /dev/ttyS0

Press CTRL-A Z for help on special keys       

after that nothing displaying. I tried to boot from SD card also, still nothing done. So i decided to flash boot loader using JTAG. Do you know how to achieve that??                            
                                            

Joel

unread,
Mar 28, 2012, 4:46:39 AM3/28/12
to beagl...@googlegroups.com
To clarify what people are saying here, you can't really "brick" a
BeagleBoard, because the actual definition of bricking is putting it
some state where there isn't hardware damage, but it won't boot, and
you have no access to do anything to get it to boot. It sounds like
you maybe have more of a hardware problem.

If you have, say, shorted the 1.8V and 5V lines on your board, then
you haven't bricked it, you've blown it up/shorted it/killed it, and
you'll probably need to replace the processor. I speak from
experience here, having blown up two BeagleBoards of my own. I'm a
slow learner. If that's the case, there's not much you can do. You
can try connecting with JTAG, but if the processor is shot that's not
going to get you anywhere. But it's certainly worth a try.

Joel

On Tue, Mar 27, 2012 at 11:01 PM, NaveenKumar Yanamaddi

>>>> > > > beagleboard...@googlegroups.com


>>>> > > > Frequently asked questions:http://beagleboard.org/faq
>>>
>>> -- To join: http://beagleboard.org/discuss
>>> To unsubscribe from this group, send email to:

>>> beagleboard...@googlegroups.com


>>> Frequently asked questions: http://beagleboard.org/faq
>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

> beagleboard...@googlegroups.com

Joel

unread,
Mar 28, 2012, 4:48:01 AM3/28/12
to beagl...@googlegroups.com
As for actually accessing it with JTAG, I would suggest reading up on
the BeagleBoard JTAG FAQ, and if necessary do some general reading up
on JTAG and how it works, so you can better understand the process:
http://www.elinux.org/BeagleBoardJTAG

On Tue, Mar 27, 2012 at 11:01 PM, NaveenKumar Yanamaddi

>>>> > > > beagleboard...@googlegroups.com


>>>> > > > Frequently asked questions:http://beagleboard.org/faq
>>>
>>> -- To join: http://beagleboard.org/discuss
>>> To unsubscribe from this group, send email to:

>>> beagleboard...@googlegroups.com


>>> Frequently asked questions: http://beagleboard.org/faq
>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

> beagleboard...@googlegroups.com

NaveenKumar Yanamaddi

unread,
Mar 28, 2012, 5:23:44 AM3/28/12
to beagl...@googlegroups.com
Hi Joel

I'm facing same situation now. I don't know actual problem but my board is not booting even i tried to boot from SD/MMC card still board not booting. 


>>>> > > > Frequently asked questions:http://beagleboard.org/faq
>>>
>>> -- To join: http://beagleboard.org/discuss
>>> To unsubscribe from this group, send email to:


>>> Frequently asked questions: http://beagleboard.org/faq
>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

Joel

unread,
Mar 28, 2012, 5:40:58 AM3/28/12
to beagl...@googlegroups.com
Yeah, if you're not getting anything on the serial port, it's more
likely than not just a fried board. The serial will generally output
something, even if it can't find the SD card or NAND. As I said, it's
worth trying to get in there with JTAG, but I wouldn't hold my breath.

On Wed, Mar 28, 2012 at 2:23 AM, NaveenKumar Yanamaddi

>> >>>> > > > beagleboard...@googlegroups.com


>> >>>> > > > Frequently asked questions:http://beagleboard.org/faq
>> >>>
>> >>> -- To join: http://beagleboard.org/discuss
>> >>> To unsubscribe from this group, send email to:

>> >>> beagleboard...@googlegroups.com


>> >>> Frequently asked questions: http://beagleboard.org/faq
>> >
>> > -- To join: http://beagleboard.org/discuss
>> > To unsubscribe from this group, send email to:

>> > beagleboard...@googlegroups.com


>> > Frequently asked questions: http://beagleboard.org/faq
>
> -- To join: http://beagleboard.org/discuss
> To unsubscribe from this group, send email to:

> beagleboard...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages