How to flash Boot Loader using JTAG

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...

Hi,

Did you try booting from SD card?

Warm Regards,
Anil

Hi Anil,

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

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.

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…

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

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

Hi

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

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??

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

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

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.

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.