On Wed, 2008-06-04 at 12:36 +0200, Andrea Gasparini wrote:
> Hi, 
> I'm trying to figure out how to boot a completely new board through serial 
> port.
> 
> My purpose, in a first step, is building a test application and put it into 
> the DM through the serial port.

Hi, I am in a similar situation here: new prototype boards arriving with
DM355 on them.

TI are working on a serial flasher for DM355 but I haven't seen a
release yet, only a prerelease beta that did not work for me (did not
like my USB-serial adapter it seems).

The serial protocol appears to be the same, "Sergey's UBL" kermit
scripts appear to work on DM355, but you need a serial UBL for it..

I highly reccomend that you use JTAG, I hope you populated it on your
board? I used an Amontec JTAGkey-Tiny (only 30 euros) and OpenOCD (free)
to start hacking bootloaders and test our new board. I didn't finish
this work as we bought a Ronetix PEEDI Flash which can program the NAND
so we can just use the existing bootloader.

However with JTAG you can boot linux on a virgin DM355 board, with a bit
of fiddling:

- Upload the TI ublNAND to 0x20. (I explain how to get a binary image
here:
http://www.mail-archive.com/[email protected]/msg05429.html
 )
- Set a hardware breakpoint at address 0
- Run the cpu from 0x20. You should see messages on serial that it has
found the chip but no UBL. However the EMIFs and clocks are now set up.
- Upload u-boot over JTAG to 0x81080000 (can copy from mtd0 in the same
way)
- Run from 0x81080000

u-boot should now run and find the NAND flash, it will probably take a
minute to build bad block tables. Then you can interrupt the countdown
and boot linux over tftp and nfs.

That's as far as I got, I was hoping to work out some way of writing the
UBL, u-boot etc to NAND from linux. There may be a way to do it from
u-boot itself.

I did some work on porting Sergey's UBL to DM355, I got as far as the
boot menu appearing, so the assembly setup stuff is done, but I didn't
touch any of the C (and it doesn't work beyond the menu). If anyone
wants this, let me know.

Also if you do go the JTAG route, here is a gdb script I used to
automate loading of UBL and u-boot. They were written assuming the board
could boot off SD so you will need to change "rejubl".

----
target remote localhost:3333

define rejubl
        file .bin/ubl.elf
        delete
        monitor reset halt
        monitor bp 0x20 4 hw
        monitor resume
        monitor sleep 900
        monitor rbp 0x20
        monitor load_image /home/jon/vidbox/boot/jubl/ubl.trunc 0x20 bin
end

define uboot-up
        file /home/jon/vidbox/boot/ti/u-boot-1.2.0/u-boot
        monitor rbp 0x81080000
        set remotetimeout 15
        monitor
load_image /home/jon/vidbox/boot/ti/u-boot-1.2.0/u-boot-1.2.0-dm355_evm.bin 
0x81080000 bin
        set remotetimeout 2
        monitor step 0x81080000
end



Good luck,

-- 
Jon Povey, Design Engineer
+44(0)1280 825983 | [EMAIL PROTECTED]

 
Racelogic is a limited company registered in England. Registered number 2743719 
. 
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, 
MK18 1TB .
The information contained in this electronic mail transmission is intended by 
Racelogic Ltd for the use of the named individual or entity to which it is 
directed and may contain information that is confidential or privileged. If you 
have received this electronic mail transmission in error, please delete it from 
your system without copying or forwarding it, and notify the sender of the 
error by reply email so that the sender's address records can be corrected. The 
views expressed by the sender of this communication do not necessarily 
represent those of Racelogic Ltd. Please note that Racelogic reserves the right 
to monitor e-mail communications passing through its network
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to