public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Trasnferring u-boot to P2 730
@ 2006-03-29  9:07 Ola Helm
  0 siblings, 0 replies; 7+ messages in thread
From: Ola Helm @ 2006-03-29  9:07 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,

I have searched the archives and and tried to find some discussion about the
issue and also checked out the /pub/documentation but none seems to exist
which would answer. I'm trying to find out how to transfer u-boot to P2
board. I'm interested to hear how have you managed to get the u-boot  - and
furthermore anything - to board.

My situation is that board have SysBoot 1.18 in it. It does recognize and
accept MMC and finds linking file, but it does not accept image itself. It
gives a message:"Valid image could not be found". I have tried self-compiled
and downloaded u-boot.out, u-boot.bin and u-boot files with no result, can't
get a reason for that..

I'm also intrested is there a way to download the u-boot via serial cable or
other transfer method. I have tried to download with hyperterminal, minicom
and OST Tool, but none seems to have any reaction to sysboot. I'm not sure
am I using correct addresses in OST tool for flashing/RAM download thoug, I
should use the debug board in some way I don't know, perhaps switches are
not in correct positions in either of boards (in target I (think) have tried
them in almost all possible positions and in debug board I mainly changed
position of SW4-6 enabling/disabling RS-232 in either board and SW4-7
changing UART 1 and 2) etc. etc.

I have also tried to have connection via JTAG but it does not get connected
even though I tried different switch / jumper settings, now
JP1: 1-2
JP2: 1-2
JP3: 2-3
(device does work, the reason is somewhere else).

Ideas?

/O

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Trasnferring u-boot to P2 730
@ 2006-04-07 13:18 Kipisz, Steven
  2006-04-07 14:23 ` Chetan Kapoor
  0 siblings, 1 reply; 7+ messages in thread
From: Kipisz, Steven @ 2006-04-07 13:18 UTC (permalink / raw)
  To: Ola Helm, Linux-omap-open-source

I have not worked on P2 in a long time, but I recall that I used Code
Composer Studio with JTAG to download u-boot to the board.  CCS can load
ELF file formats, which is what u-boot is.  After downloading u-boot,
run it and then use it to flash u-boot.bin.  Remember that 'u-boot' is
the ELF executable that CCS can load while 'u-boot.bin' is the flat
binary file that you flash to the board.

Steve K.

-----Original Message-----
From: linux-omap-open-source-bounces@linux.omap.com
[mailto:linux-omap-open-source-bounces@linux.omap.com] On Behalf Of Ola
Helm
Sent: Friday, April 07, 2006 2:16 AM
To: Linux-omap-open-source@linux.omap.com; Brian Swetland; Kevin Hilman;
cp_singh@faith.co.jp; kangjw@lenovo.com
Subject: Re:Trasnferring u-boot to P2 730

Hi,

I'm really in the need of answers for this case because I cannot get any
progress with this thing. So I'm daring to send this mail also to you
few
people who have been conversating here about 730 P2 during last month.
The
question is still: how have you managed to download u-boot to 730?

I hope I don't bother anybody too much when I'm sending the mail
directly
and apologies in case I do. In case you cannot answer to this e.g. due
to
customers etc. it is totally ok, just forget this.

Cheers,

/O



>
>
>
>
>
>
>
> Hi,
>
> I have searched the archives and and tried to find some discussion
about
> the
> issue and also checked out the /pub/documentation but none seems to
exist
> which would answer. I'm trying to find out how to transfer u-boot to
P2
> board. I'm interested to hear how have you managed to get the u-boot
-
> and
> furthermore anything - to board.
>
> My situation is that board have SysBoot 1.18 in it. It does recognize
and
> accept MMC and finds linking file, but it does not accept image
itself. It
>
> gives a message:"Valid image could not be found". I have tried
> self-compiled
> and downloaded u-boot.out, u-boot.bin and u-boot files with no result,
> can't
> get a reason for that..
>
> I'm also intrested is there a way to download the u-boot via serial
cable
> or
> other transfer method. I have tried to download with hyperterminal,
> minicom
> and OST Tool, but none seems to have any reaction to sysboot. I'm not
sure
> am I using correct addresses in OST tool for flashing/RAM download
thoug,
> I
> should use the debug board in some way I don't know, perhaps switches
are
> not in correct positions in either of boards (in target I (think) have
> tried
> them in almost all possible positions and in debug board I mainly
changed
> position of SW4-6 enabling/disabling RS-232 in either board and SW4-7
> changing UART 1 and 2) etc. etc.
>
> I have also tried to have connection via JTAG but it does not get
> connected
> even though I tried different switch / jumper settings, now
> JP1: 1-2
> JP2: 1-2
> JP3: 2-3
> (device does work, the reason is somewhere else).
>
> Ideas?
>
> /O
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
>
>
>
>
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Trasnferring u-boot to P2 730
  2006-04-07 13:18 Trasnferring u-boot to P2 730 Kipisz, Steven
@ 2006-04-07 14:23 ` Chetan Kapoor
  2006-04-07 16:29   ` Brian Swetland
  0 siblings, 1 reply; 7+ messages in thread
From: Chetan Kapoor @ 2006-04-07 14:23 UTC (permalink / raw)
  To: Kipisz, Steven; +Cc: linux-omap-open-source-bounces, Linux-omap-open-source

Hello 

I am also working on the P2 board and having similar problems with u-boot 
download onto the board.

Can we not use OST Tools - a TI application, for downloading the 
u-boot.bin onto the P2 board RAM/FLASH, OST seems to have flexibility 
between downloading & executing images from RAM AND downloading/burning 
images to flash.

I was able to download the u-boot.bin (the raw binary) as well as u-boot 
(ELF image) to P2's RAM using OST Tools over a serial line (COM1). I has 
success in downloading u-boot to the specific address in RAM, but the 
image doesn't seem to execute/run. ALso, there is a provision of 
downloading images over the USB connection to the target, but in my case 
my Windows PC does not detect the P2 board as a USB device when I connect 
the board to the host PC with a USB cable. Rather, the charging LED on the 
board blinks for a second. 

Any Ideas how to download the u-boot image over the USB connection using 
OST tools??

I has a look at http://linux.omap.com/pub/xloader/p2/readme.txt, which 
could be useful for you as well. But, the intention behind using x-loader 
in this document is not very clear.

I tend to differ from what Steven said in his email: 
"Remember that 'u-boot' is the ELF executable that CCS can load while 
'u-boot.bin' is the flat binary file that you flash to the board". Have a 
look at the doc: http://www.arm.com/linux/ARM-Linux-Notes.pdf, and you 
will find that things are the other way round, it says on page 3 that the 
ELF executable as well as the raw binary can be placed in the flash, but 
the raw binary has to be run from the RAM. Your thoughts Steven?

OST tools installer for OMAP 730 can be found at 
http://focus.ti.com/download/wtbu/OSTBoot_NoSource_1.6.1.zip, the 
installer accompanies a User guide as well in PDF format.

Your reply will be of great help.

Cheers!!

Chetan 





"Kipisz, Steven" <s-kipisz2@ti.com> 
Sent by: linux-omap-open-source-bounces@linux.omap.com
04/07/2006 06:48 PM


To
"Ola Helm" <ola.hel@gmail.com>, <Linux-omap-open-source@linux.omap.com>
cc

Subject
RE: Trasnferring u-boot to P2 730






I have not worked on P2 in a long time, but I recall that I used Code
Composer Studio with JTAG to download u-boot to the board.  CCS can load
ELF file formats, which is what u-boot is.  After downloading u-boot,
run it and then use it to flash u-boot.bin.  Remember that 'u-boot' is
the ELF executable that CCS can load while 'u-boot.bin' is the flat
binary file that you flash to the board.

Steve K.

-----Original Message-----
From: linux-omap-open-source-bounces@linux.omap.com
[mailto:linux-omap-open-source-bounces@linux.omap.com] On Behalf Of Ola
Helm
Sent: Friday, April 07, 2006 2:16 AM
To: Linux-omap-open-source@linux.omap.com; Brian Swetland; Kevin Hilman;
cp_singh@faith.co.jp; kangjw@lenovo.com
Subject: Re:Trasnferring u-boot to P2 730

Hi,

I'm really in the need of answers for this case because I cannot get any
progress with this thing. So I'm daring to send this mail also to you
few
people who have been conversating here about 730 P2 during last month.
The
question is still: how have you managed to download u-boot to 730?

I hope I don't bother anybody too much when I'm sending the mail
directly
and apologies in case I do. In case you cannot answer to this e.g. due
to
customers etc. it is totally ok, just forget this.

Cheers,

/O
> Hi,
>
> I have searched the archives and and tried to find some discussion
about
> the
> issue and also checked out the /pub/documentation but none seems to
exist
> which would answer. I'm trying to find out how to transfer u-boot to
P2
> board. I'm interested to hear how have you managed to get the u-boot
-
> and
> furthermore anything - to board.
>
> My situation is that board have SysBoot 1.18 in it. It does recognize
and
> accept MMC and finds linking file, but it does not accept image
itself. It
>
> gives a message:"Valid image could not be found". I have tried
> self-compiled
> and downloaded u-boot.out, u-boot.bin and u-boot files with no result,
> can't
> get a reason for that..
>
> I'm also intrested is there a way to download the u-boot via serial
cable
> or
> other transfer method. I have tried to download with hyperterminal,
> minicom
> and OST Tool, but none seems to have any reaction to sysboot. I'm not
sure
> am I using correct addresses in OST tool for flashing/RAM download
thoug,
> I
> should use the debug board in some way I don't know, perhaps switches
are
> not in correct positions in either of boards (in target I (think) have
> tried
> them in almost all possible positions and in debug board I mainly
changed
> position of SW4-6 enabling/disabling RS-232 in either board and SW4-7
> changing UART 1 and 2) etc. etc.
>
> I have also tried to have connection via JTAG but it does not get
> connected
> even though I tried different switch / jumper settings, now
> JP1: 1-2
> JP2: 1-2
> JP3: 2-3
> (device does work, the reason is somewhere else).
>
> Ideas?
>
> /O
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source


***********************  FSS-Unclassified   ***********************

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trasnferring u-boot to P2 730
  2006-04-07 14:23 ` Chetan Kapoor
@ 2006-04-07 16:29   ` Brian Swetland
  0 siblings, 0 replies; 7+ messages in thread
From: Brian Swetland @ 2006-04-07 16:29 UTC (permalink / raw)
  To: Chetan Kapoor; +Cc: Linux-omap-open-source, linux-omap-open-source-bounces

[Chetan Kapoor <chetan.kapoor@flextronicssoftware.com>]
> Hello 
> 
> I am also working on the P2 board and having similar problems with u-boot 
> download onto the board.
> 
> Can we not use OST Tools - a TI application, for downloading the 
> u-boot.bin onto the P2 board RAM/FLASH, OST seems to have flexibility 
> between downloading & executing images from RAM AND downloading/burning 
> images to flash.
> 
> I was able to download the u-boot.bin (the raw binary) as well as u-boot 
> (ELF image) to P2's RAM using OST Tools over a serial line (COM1). I has 
> success in downloading u-boot to the specific address in RAM, but the 
> image doesn't seem to execute/run. ALso, there is a provision of 
> downloading images over the USB connection to the target, but in my case 
> my Windows PC does not detect the P2 board as a USB device when I connect 
> the board to the host PC with a USB cable. Rather, the charging LED on the 
> board blinks for a second. 

There is a bug in P2 (some combination of an on-die rom bug and a board
design issue, iirc) that prevents USB download from working.

Brian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trasnferring u-boot to P2 730
  2006-04-07  7:15 Ola Helm
@ 2006-04-07 16:47 ` Todd Poynor
  2006-04-07 16:58 ` Kevin Hilman
  1 sibling, 0 replies; 7+ messages in thread
From: Todd Poynor @ 2006-04-07 16:47 UTC (permalink / raw)
  To: Ola Helm; +Cc: cp_singh, Linux-omap-open-source, kangjw

Ola Helm wrote:
...
>> I have also tried to have connection via JTAG but it does not get
>> connected
>> even though I tried different switch / jumper settings, now
>> JP1: 1-2
>> JP2: 1-2
>> JP3: 2-3

I did this once via an Abatron BDI-2000.  George Davis had previously 
got it working using the small JTAG debug board that shipped with some 
versions of OMAP 730/16xx based on the "surfer" board; so far as I know 
we never got a BDI to talk to the multiport debug card shipped with P2 
boards.  On the JTAG board:

     * Jumper JP1 at 2-3
     * Jumper JP2 at 1-2
     * Jumper JP3 at 1-2

The P2 switches that worked for me included NOR and FULL/FASTBOOT = ON.

bdi config file used:

WM32	0xfffecc0c	0x00000012	; EMIFS CONFIG = NOR flash CS3

and maybe some other stuff that I cribbed from the u-boot board setup code.


-- 
Todd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trasnferring u-boot to P2 730
  2006-04-07  7:15 Ola Helm
  2006-04-07 16:47 ` Trasnferring " Todd Poynor
@ 2006-04-07 16:58 ` Kevin Hilman
  2006-04-10  8:54   ` Ola Helm
  1 sibling, 1 reply; 7+ messages in thread
From: Kevin Hilman @ 2006-04-07 16:58 UTC (permalink / raw)
  To: Ola Helm; +Cc: cp_singh, Linux-omap-open-source, kangjw

It's been a while since I've done this, so I don't remember the details, but 
when I was at TI, here's what we did to put u-boot on boards with sysboot.

The 'sysboot' bootloader that is flashed on the board has the ability to flash 
new images over the serial port.  There is a windows command-line tool that is 
used to communicate with sysboot during bootup in order to (re)flash the 730. 
I forget what that tool is called.

Then you take the binary you want to flash, and add a small header to it 
(includes, offset into flash, size, etc.)   Then you pass this image to the 
windows tool and power on the board.

I don't know if that tool ships as part of the 730 kit, but you should ask your 
TI FAE for it.

Kevin

Ola Helm wrote:
> Hi,
> 
> I'm really in the need of answers for this case because I cannot get any 
> progress with this thing. So I'm daring to send this mail also to you 
> few people who have been conversating here about 730 P2 during last 
> month. The question is still: how have you managed to download u-boot to 
> 730?
> 
> I hope I don't bother anybody too much when I'm sending the mail 
> directly and apologies in case I do. In case you cannot answer to this 
> e.g. due to customers etc. it is totally ok, just forget this.
> 
> Cheers,
> 
> /O
> 
> 
> 
>     	
>     	
> 
>     	
>     	
> 
>     	
>     	
> 
> 
>     Hi,
> 
>     I have searched the archives and and tried to find some discussion
>     about the
>     issue and also checked out the /pub/documentation but none seems to
>     exist
>     which would answer. I'm trying to find out how to transfer u-boot to P2
>     board. I'm interested to hear how have you managed to get the u-boot
>      - and
>     furthermore anything - to board.
> 
>     My situation is that board have SysBoot 1.18 in it. It does
>     recognize and
>     accept MMC and finds linking file, but it does not accept image
>     itself. It
>     gives a message:"Valid image could not be found". I have tried
>     self-compiled
>     and downloaded u-boot.out, u-boot.bin and u-boot files with no
>     result, can't
>     get a reason for that..
> 
>     I'm also intrested is there a way to download the u-boot via serial
>     cable or
>     other transfer method. I have tried to download with hyperterminal,
>     minicom
>     and OST Tool, but none seems to have any reaction to sysboot. I'm
>     not sure
>     am I using correct addresses in OST tool for flashing/RAM download
>     thoug, I
>     should use the debug board in some way I don't know, perhaps
>     switches are
>     not in correct positions in either of boards (in target I (think)
>     have tried
>     them in almost all possible positions and in debug board I mainly
>     changed
>     position of SW4-6 enabling/disabling RS-232 in either board and SW4-7
>     changing UART 1 and 2) etc. etc.
> 
>     I have also tried to have connection via JTAG but it does not get
>     connected
>     even though I tried different switch / jumper settings, now
>     JP1: 1-2
>     JP2: 1-2
>     JP3: 2-3
>     (device does work, the reason is somewhere else).
> 
>     Ideas?
> 
>     /O
>     _______________________________________________
>     Linux-omap-open-source mailing list
>     Linux-omap-open-source@linux.omap.com
>     <mailto:Linux-omap-open-source@linux.omap.com>
>     http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>     <http://linux.omap.com/mailman/listinfo/linux-omap-open-source>
> 
> 
> 
> 
> 


-- 
Kevin Hilman
MontaVista Software -- http://www.mvista.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trasnferring u-boot to P2 730
  2006-04-07 16:58 ` Kevin Hilman
@ 2006-04-10  8:54   ` Ola Helm
  0 siblings, 0 replies; 7+ messages in thread
From: Ola Helm @ 2006-04-10  8:54 UTC (permalink / raw)
  To: Linux-omap-open-source; +Cc: kangjw, cp_singh

Thanks a lot for everybody for your help!

With these bits and pieces it seems to be that perhaps the most easiest way
to handle this would be to first add this small header, which should perhaps
be done with some tool tends to be called preimage_flash or something like
that. It cannot be done manually at least in my case when you really don't
know excatly what should be done. Then the image could be downloaded either
using some serial tool with some name (could it be OMAP730 Host Loader I saw
in some in picture of some documetation) or using MMC.

So, does anybody have a glue either
- where to get the preflash_image tool
- how to excatly modify u-boot file manually
- where to get the serial loader tool for 730

As I said, I have not been able to twist the OST tool version I have
(version 2.5, available also from TI website) to work with 730, not even to
download it.

I was able to download the u-boot.bin (the raw binary) as well as u-boot
> (ELF image) to P2's RAM using OST Tools over a serial line (COM1). I has
> success in downloading u-boot to the specific address in RAM, but the image
> doesn't seem to execute/run. ALso, there is a provision of downloading
> images over the USB connection to the target, but in my case my Windows PC
> does not detect the P2 board as a USB device when I connect the board to the
> host PC with a USB cable. Rather, the charging LED on the board blinks for a
> second.
>
>


> OST tools installer for OMAP 730 can be found at
> http://focus.ti.com/download/wtbu/OSTBoot_NoSource_1.6.1.zip, the
> installer accompanies a User guide as well in PDF format.
>


Chetan, which version have you used since you have been able to aat least
download the image to board? And furthermore, I do have the OST boot you
mentioned in your mail but as far as I know that package does not include
any executables and is anyway more 2420 oriented package. What kind of usage
do you mean with it?


> I did this once via an Abatron BDI-2000.  George Davis had previously
> got it working using the small JTAG debug board that shipped with some
> versions of OMAP 730/16xx based on the "surfer" board; so far as I know
> we never got a BDI to talk to the multiport debug card shipped with P2
> boards.  On the JTAG board:
>
>

Todd, do you mean that there is some other debug device than that normally
coming with 730 boards?

BRs,

/O

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-10  8:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 13:18 Trasnferring u-boot to P2 730 Kipisz, Steven
2006-04-07 14:23 ` Chetan Kapoor
2006-04-07 16:29   ` Brian Swetland
  -- strict thread matches above, loose matches on Subject: below --
2006-04-07  7:15 Ola Helm
2006-04-07 16:47 ` Trasnferring " Todd Poynor
2006-04-07 16:58 ` Kevin Hilman
2006-04-10  8:54   ` Ola Helm
2006-03-29  9:07 Ola Helm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox