[U-Boot-Users] srec download fail

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

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:
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

In message 40C076E4.4040409@imms.de 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?
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?
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

Wolfgang Denk wrote:
In message 40C076E4.4040409@imms.de 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
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.
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

In message 40C4548A.4050903@imms.de you wrote:
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.
Thanks for your help.
I'm glad that I was able to help.
Best regards,
Wolfgang Denk

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

Am Montag, 7. Juni 2004 15:02 schrieb Thomas Brand:
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
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 :-)

Stephan Linz wrote:
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
Index: include/configs/DK1S10.h =================================================================== RCS file: /cvsroot/u-boot/u-boot/include/configs/DK1S10.h,v retrieving revision 1.6 diff -u -r1.6 DK1S10.h --- include/configs/DK1S10.h 9 Jun 2004 10:15:02 -0000 1.6 +++ include/configs/DK1S10.h 10 Jun 2004 12:06:50 -0000 @@ -142,6 +142,7 @@ #if (CFG_NIOS_CPU_UART_NUMS != 0)
#define CFG_NIOS_CONSOLE CFG_NIOS_CPU_UART0 /* 1st UART is Cons. */ +#define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
#if (CFG_NIOS_CPU_UART0_BR != 0) #define CFG_NIOS_FIXEDBAUD 1 /* Baudrate is fixed */

In message 40C8541C.7000807@imms.de you wrote:
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) ?
...
Here is the little patch..
Added, thanks.
Best regards,
Wolfgang Denk
participants (3)
-
Stephan Linz
-
Thomas Brand
-
Wolfgang Denk