Skip to contentSkip to conversation

srec download fail

U-Boot-Users New Thomas Brand 3 participants 10 messages Jun 4, 2004 – Jun 10, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to download the hello_world srec-sample to my Nios Stratix Board with cu. I get the following printout:

DK1S10 > loads
## Ready for S-Record download ... ~>hello_world.srec
1 R R R R R R R R R [timed out looking for echo] [connected]

my configuration:

U-Boot 1.1.2 (May 24 2004 - 15:54:07)

CPU: Nios-32 Rev. 3.3 (0x3038)
Reg file size: 512 LO_LIMIT/HI_LIMIT: 1/30
Board: Altera Nios 1S10 Development Kit
Conf.: Microtronix LDK 2.0 (LDK2)

   In:    serial
   Out:   serial
   Err:   serial

It does not work with kermit either. The loadb cmd with kermit works fine.

Does anybody has a hint for me?
Thanks in advance.

Thomas Brand

#1 lore raw

Hi all NIOS developers/users,

this is the second error report related to download problems by using the serial line. AFAICR I had have trouble too some times ago; just I expact any serious error in the Nios port. Sadly, I'm really busy with other projects so I can't explore the reason for this problem in the next time. Is there anybody who can do this job?

Best regards,
Stephan

Am Freitag, 4. Juni 2004 15:19 schrieb Thomas Brand:

Quoted 42 lines

Hi,

I'm trying to download the hello_world srec-sample to my Nios Stratix Board with cu. I get the following printout:

DK1S10 > loads
## Ready for S-Record download ... ~>hello_world.srec
1 R R R R R R R R R [timed out looking for echo] [connected]

my configuration:

   U-Boot 1.1.2 (May 24 2004 - 15:54:07)

   CPU: Nios-32 Rev. 3.3 (0x3038)
   Reg file size: 512 LO_LIMIT/HI_LIMIT: 1/30
   Board: Altera Nios 1S10 Development Kit
   Conf.: Microtronix LDK 2.0 (LDK2)
   In:    serial
   Out:   serial
   Err:   serial

It does not work with kermit either. The loadb cmd with kermit works fine.

Does anybody has a hint for me?
Thanks in advance.

Thomas Brand

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#3 lore raw
In reply to Thomas Brand
Quoted 3 lines · In message <[email protected]> you wrote:

I'm trying to download the hello_world srec-sample to my Nios Stratix Board with cu. I get the following printout:

Did you configure "cu" as documented in the DULG?

Quoted 5 lines

DK1S10 > loads
## Ready for S-Record download ... ~>hello_world.srec
1 R R R R R R R R R [timed out looking for echo] [connected]

Is "loads_echo" set to 1 in your environment?

Quoted 1 line

It does not work with kermit either. The loadb cmd with kermit works fine.

S-Record download with kermit is not supposed to work.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
       There is enough for the need of everyone in this world,
       but not for the greed of everyone.     - Mahatma Gandhi
#2 lore raw
In reply to Stephan Linz
Quoted 6 lines · In message <04060417362608.02269@pcj86> you wrote:

this is the second error report related to download problems by using the serial line. AFAICR I had have trouble too some times ago; just I expact any serious error in the Nios port. Sadly, I'm really busy with other projects so I can't explore the reason for this problem in the next time. Is there anybody who can do this job?

I don;t think there is anything wrong with the NIOS port, as the O.P. reports that "loadb" with Kermit is working fine, which is more stressing on the serial port than "loads".

I think it's a misconfiguration.

Most probably it's just that you missed to set CONFIG_LOADS_ECHO in the board configuration file and/or loads_echo in the environment.

The "timed out looking for echo" message is pretty clear to me - if no echo is found, then there probably is no echo because it was not turned on.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Randal said it would be tough to do in sed. He didn't say  he  didn't
understand  sed.  Randal  understands sed quite well. Which is why he
uses Perl. :-)         - Larry Wall in <[email protected]>
#4 lore raw
In reply to Wolfgang Denk
Quoted 7 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> you wrote:

I'm trying to download the hello_world srec-sample to my Nios Stratix Board with cu. I get the following printout:

Did you configure "cu" as documented in the DULG?

yes

Quoted 10 lines
Quoted 8 lines

DK1S10 > loads
## Ready for S-Record download ... ~>hello_world.srec
1 R R R R R R R R R [timed out looking for echo] [connected]

Is "loads_echo" set to 1 in your environment?

yes, I have set CONFIG_LOADS_ECHO in the configuration file. But the "loads_echo"

does not show up in the environment. So I set it with the setenv command and now

it's working fine. Maybe I have to check in the source code if the CONFIG_LOADS_ECHO has any influence to the environment.

Quoted 11 lines
Quoted 3 lines

It does not work with kermit either. The loadb cmd with kermit works fine.

S-Record download with kermit is not supposed to work.

Best regards,

Wolfgang Denk

Thanks for your help.

Thomas

#5 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 2 lines

Is "loads_echo" set to 1 in your environment?

yes, I have set CONFIG_LOADS_ECHO in the configuration file. But the "loads_echo" does not show up in the environment. So I set it with the setenv command and now it's working fine. Maybe I have to check in the source code if the CONFIG_LOADS_ECHO has any influence to the environment.

It affects only the _default_ environment, i. e. if you don;t have an embedded environment in flash which gets overwritten when storing a new image, and if there is already a valid environment in place, then it will not take effect if you change this later.

Quoted 1 line

Thanks for your help.

I'm glad that I was able to help.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
panic: can't find /
#6 lore raw
In reply to Thomas Brand
Quoted 11 lines
Quoted 1 line

Is "loads_echo" set to 1 in your environment?

yes, I have set CONFIG_LOADS_ECHO in the configuration file. But the "loads_echo"
does not show up in the environment. So I set it with the setenv command and now
it's working fine. Maybe I have to check in the source code if the CONFIG_LOADS_ECHO
has any influence to the environment.

Now I got it. As long as u-boot finds a valid environment in the flash memory it will take that. If I change CONFIG_LOADS_ECHO in the config files, it affects only the default environment. After deleting the valid environment in the flash memory, the loads_echo variable shows up :-)

regards,
Thomas

#7 lore raw

Am Montag, 7. Juni 2004 15:02 schrieb Thomas Brand:

Quoted 9 lines
Quoted 9 lines
Quoted 1 line

Is "loads_echo" set to 1 in your environment?

yes, I have set CONFIG_LOADS_ECHO in the configuration file. But the "loads_echo"
does not show up in the environment. So I set it with the setenv command and now
it's working fine. Maybe I have to check in the source code if the CONFIG_LOADS_ECHO
has any influence to the environment.

Hi Thomas,

nice to see it works. Can you post a patch for the DK1S10 configuration that includes the corresct setup for loads command (CONFIG_LOADS_ECHO) ?

Thanks,
Stephan

Quoted 6 lines

Now I got it. As long as u-boot finds a valid environment in the flash memory it will take that. If I change CONFIG_LOADS_ECHO in the config files, it affects only the default environment. After deleting the valid environment in the flash memory, the loads_echo variable shows up :-)

#8 lore raw

PATCH 1/1 Nios loads

Quoted 9 lines · Stephan Linz

Hi Thomas,

nice to see it works. Can you post a patch for the DK1S10 configuration that includes the corresct setup for loads command (CONFIG_LOADS_ECHO) ?

Thanks,
Stephan

Here is the little patch..

regards,
Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: loads_patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20040610/f8b016e8/attachment.txt

#9 lore raw

PATCH 1/1 Nios loads

Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 3 lines

nice to see it works. Can you post a patch for the DK1S10 configuration that includes the corresct setup for loads command (CONFIG_LOADS_ECHO) ?

...

Quoted 1 line

Here is the little patch..

Added, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I have a theory that it's impossible to prove anything, but  I  can't
prove it.