2008-06-12 17:56:37     Problem loading ldr with ldrviewer

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-06-12 17:56:37     Problem loading ldr with ldrviewer

Larry Samuels (UNITED STATES)

Message: 57181   

 

I am using the latest uboot source: u-boot-1.1.6-2008R1.tar.bz2

 

I am trying to compile for bootup in UART mode for the BF537-EZ Kit Board.

 

I have the boot switch set to 7: UART Bootup mode

 

I updated the file /include/configs/bf537-stamp.h and changed CONFIG_BFIN_BOOT_MODE from BFIN_BOOT_BYPASS to BFIN_BOOT_UART.

 

I did make clean, make bf537-stamp_config, make.

 

I then used ldrviewer to download u-boot.ldr to the target.

 

The target does not output anything out the serial port.

 

Previously I had used a pre-built ldr file:

 

A 2007 u-boot image called: u-boot_stamp537_uart_boot.ldr that ldrviewer did download to the BF537-EZKIT and uBOOT executed from UART.

 

I notice the 2007 ldr file has a DXE0 and a DXE1 section, where the 2008 version only has DXE0

 

Also, using bfin-uclnux-ldr I found the 2007 version Blocks are:

 

1: Address 0xFF800040 (L1)

 

2: Address 0xFFA00040 (L1)

 

3: Address 0xFF800040 (L1)

 

4: Address 0x00000BE (L1)

 

...

 

The 2008 version is:

 

1: Address 0xFFA00000 (L1)

 

2: Address 0x3fc0000

 

....

 

Please let me know if you think it is an LDR creation problem, or I did not configure everythng for UART boot mode.

 

If the boot mode is set to BYPASS, than the .bin file does load into Flash using JTAG so that mens the UBOOT code does compile and run, its just in UART bootmode and/or ldr creation I have a problem.

 

Thank you.

 

 

QuoteReplyEditDelete

 

 

2008-06-12 18:06:04     Re: Problem loading ldr with ldrviewer

Mike Frysinger (UNITED STATES)

Message: 57183   

 

the UART LDR has been fully tested and known to work ... the differences you refer to do not matter

 

make sure you're loading at 115200 baud.  if that doesnt work, use the bfin-elf-ldr utility to load things rather than ldrviewer.

QuoteReplyEditDelete

 

 

2008-06-13 12:17:19     Re: Problem loading ldr with ldrviewer

Larry Samuels (UNITED STATES)

Message: 57242   

 

Using version 1.2 of ldrviewer, the latest uboot ldr file does run, along with one that I compiled.

 

Unforunatelty on my system it takes 180 seconds to download the 100K file, where in version 1.1 of Ldrviewer it took about 30 seconds.  I have emailed to dolomitics with the issue I have.

 

Do you remember which version of ldrviewer was tested, and how long the download should take?

 

 

 

Thanks again

QuoteReplyEditDelete

 

 

2008-06-13 15:03:54     Re: Problem loading ldr with ldrviewer

Mike Frysinger (UNITED STATES)

Message: 57257   

 

we dont use ldrviewer anymore ... there is a command line ldr-utils package that works in Windows

QuoteReplyEditDelete

 

 

2008-07-24 08:55:16     Re: Problem loading ldr with ldrviewer

blue hash (UNITED STATES)

Message: 59349   

 

Does the Windows version of ldr-utils require Cygwin?

 

Also, could you please point me it's location. Thanks.

QuoteReplyEditDelete

 

 

2008-07-24 10:42:55     Re: Problem loading ldr with ldrviewer

Robin Getz (UNITED STATES)

Message: 59351   

 

Blue:

 

No Cygwin required. It should be in the Windows toolchain on the release page.

 

/Program\ Files/Analog\ Devices/GNU\ Toolchain/2008R1/elf/bin/bfin-elf-ldr.exe

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-24 17:06:51     Re: Problem loading ldr with ldrviewer

blue hash (UNITED STATES)

Message: 59362   

 

Robin,

 

What would the port be called? I cant call it \dev\ttyS0 since it's a windows machine.

 

bfin-elf-ldr.exe -v -l C:\Temp\u-boot.ldr ??port??

 

Thanks

QuoteReplyEditDelete

 

 

2008-07-24 21:14:09     Re: Problem loading ldr with ldrviewer

Robin Getz (UNITED STATES)

Message: 59369   

 

Blue:

 

Just like Windows - com2 - There might be some magic requirement for double slashes - Mike will know for sure when he gets in.

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-25 06:54:01     Re: Problem loading ldr with ldrviewer

Mike Frysinger (UNITED STATES)

Message: 59397   

 

just use "COM#" like you would expect

QuoteReplyEditDelete

 

 

2008-07-25 12:52:40     Re: Problem loading ldr with ldrviewer

blue hash (UNITED STATES)

Message: 59412   

 

Thanks, but I get a "bfin-elf-ldr.exe: your system does not support POSIX termios functionality" error.

 

--------------------------------------------------------------------------------------------------------------------

 

C:\Temp\Program Files\Analog Devices\GNU Toolchain\2008R1\elf\bin>ldr.exe -v --l

oad u-boot.ldr COM1

Loading LDR u-boot.ldr ... auto detected LDR as 'BF537'

OK!

ldr: tty lock dir '/var/lock' is not usable

Opening COM1 ... OK!

Configuring terminal I/O ... [getattr] Failed: Inappropriate ioctl for device

Trying to send autobaud ... tcdrain failed: Inappropriate ioctl for device

OK!

Trying to read autobaud ...

C:\Temp\Program Files\Analog Devices\GNU Toolchain\2008R1\elf\bin>bfin-elf-ldr.e

xe -v --load C:\Temp\u-boot.ldr COM1

Loading LDR C:\Temp\u-boot.ldr ... auto detected LDR as 'BF537' compatible forma

t

OK!

bfin-elf-ldr.exe: your system does not support POSIX termios functionality

 

---------------------------------------------------------------------------------------------------------------------

QuoteReplyEditDelete

 

 

2008-08-21 09:07:01     Re: Problem loading ldr with ldrviewer

Larry Samuels (UNITED STATES)

Message: 60830   

 

Robin,

 

   I do not know what to download to get:

 

Program\ Files/Analog\ Devices/GNU\ Toolchain/2008R1/elf/bin/bfin-elf-ldr.exe

 

You say it is on the releases page.  What is the url for that releases page?

 

I have downloaded the 2008 R1 uClinux Snapshot, along with the 2008 Uboot source code, and have the toolcahin installed in my /opt directory.

 

I do not see bfin-elf-ldr anyhere on my system.

 

 

 

Regards,

 

 

 

Larry

 

 

QuoteReplyEditDelete

 

 

2008-08-21 09:18:16     Re: Problem loading ldr with ldrviewer

Robin Getz (UNITED STATES)

Message: 60832   

 

Larry:

 

https://docs.blackfin.uclinux.org/doku.php?id=toolchain:ldr-utils

 

It is a normal application, which is prefixed by the toolchain target prefixes: bfin-elf-ldr or bfin-uclibc-ldr or bfin-linux-uclibc-ldr are all the same, and can be used interchangeably.

QuoteReplyEditDelete

 

 

2008-08-21 11:43:30     Re: Problem loading ldr with ldrviewer

Larry Samuels (UNITED STATES)

Message: 60848   

 

Robin,

 

   This is pointing me to ldr-utils source code which requires compiling on the linux PC.  If I compile this will it run on a Windows PC? Or maybe using CygWin?

 

I'm looking for a way to boot load from the UART using a Windows PC.  Mike wrote:

 

we dont use ldrviewer anymore ... there is a command line ldr-utils package that works in Windows

 

Are you referring to the same SVN code, which would be compiled in LInux and run in Windows?

 

Regards,

 

 

 

Larry

 

 

QuoteReplyEditDelete

 

 

2008-08-24 21:30:54     Re: Problem loading ldr with ldrviewer

Robin Getz (UNITED STATES)

Message: 60959   

 

Larry:

 

The windows toolchain includes a copy of ldr-utils.

 

-Robin

Attachments

    Outcomes