U-Boot/Kermit Problem
A message that is not in the archive (sent off-list or not yet received): [email protected]
I am facing a problem in loading a binary file from minicom. Whenver I try to load, it is going in an infinite loop.
=> loadb 100000
## Ready for binary (kermit) download to 0x00100000 at 9600 bps...
I configured kermit as told in the DULG/SystemSetup Manual.... Only change I made is
set speed 9600 instead of 115200
I am getting stuck here. After going through the u-boot source code .... The calling sequence is ....
-load_serial_bin
-k_recv
Inside k_recv the code where I stucked up here is ...
----------------------------ACTUAL CODE-----------------------------------
/* get a packet */
/* wait for the starting character or ^C */
for (;;) {
switch (serial_getc ()) {
case START_CHAR: /* start packet */
goto START;
case ETX_CHAR: /* ^C waiting for packet*/
return (0);
default:
;
}
}----------------------------ACTUAL CODE UP TO HERE------------------------
I think it continiously in the for loop.
When I press control-C then it will come comeout saying ....
## Total Size = 0x00000000 = 0 Bytes
## Start Addr = 0x00100000
Can anyabody help me why it is happening ?
Any help will be appreciated.
-regards,
-Ashish
###########################################################################
Ashish R Dhawane
Research Engineer
W-CDMA Group (3G RAN)
Contacts:
---------
Tel(O) :+91-80-2282168 (Direct Line)
Tel(O/Lab) :+91-80-2263399 X 329
Fax(O) :+91-80-2282168
Mobile :98455 36814
E-Mail(s) :ashishdhawane at yahoo.com, ashish at cyberspace.org
Surface Address (O): Surface Address (R):
-------------------- --------------------
Centre for Development of Telematics, #50, Ground Floor, 12th Cross,
71/1, Sneha Complex, Ayyappa Block, Manorayan Palya,
Millers Road, Sultan Palya Main Road,
Bangalore-560052, RT Nagar Post,Bangalore-560032,
Karnataka, India. Karnataka, India.
###########################################################################
Hi Ashish,
Check whether your serial_getc() function is returning 0. Yourserial_get() function should not return 0 if LSR_DR is 0. I hope this will solve your problem.
Regards
Ganapathi C
----- Original Message -----
From: "Ashish R Dhawane" <[email protected]>
To: <[email protected]>
Sent: Thursday, April 29, 2004 12:28 PM
Subject: [U-Boot-Users] U-Boot/Kermit Problem
Quoted 47 lines
I am facing a problem in loading a binary file from minicom. Whenver I try to load, it is going in an infinite loop.
=> loadb 100000
## Ready for binary (kermit) download to0x00100000at 9600 bps...I configured kermit as told in the DULG/SystemSetup Manual.... Only change I made is
set speed 9600 instead of 115200
I am getting stuck here. After going through the u-boot source code .... The calling sequence is ....
(quoted diff) +0
-2-load_serial_bin -k_recvInside
k_recvthe code where I stucked up here is ...----------------------------ACTUAL CODE-----------------------------------
/* get a packet */ /* wait for the starting character or ^C */ for (;;) { switch (serial_getc ()) { case START_CHAR: /* start packet */ goto START; case ETX_CHAR: /* ^C waiting for packet*/ return (0); default: ; } }----------------------------ACTUAL CODE UP TO HERE------------------------
I think it continiously in the for loop.
When I press control-C then it will come comeout saying ....## Total Size =
0x00000000= 0 Bytes
## Start Addr =0x00100000Can anyabody help me why it is happening ?
Any help will be appreciated.
Review
Quoted 2 lines
(quoted diff) +0
-2-regards, -Ashish
###########################################################################
Quoted 12 lines
Ashish R Dhawane
Research Engineer
W-CDMA Group (3G RAN)Contacts:
---------
Tel(O) :+91-80-2282168 (Direct Line)
Tel(O/Lab) :+91-80-2263399 X 329
Fax(O) :+91-80-2282168
Mobile :98455 36814
E-Mail(s) :ashishdhawane at yahoo.com, ashish at cyberspace.org
Quoted 8 lines
Surface Address (O): Surface Address (R):
-------------------- --------------------
Centre for Development of Telematics, #50, Ground Floor, 12th Cross, 71/1, Sneha Complex, Ayyappa Block, Manorayan Palya, Millers Road, Sultan Palya Main Road,
Bangalore-560052, RT Nagar Post,Bangalore-560032, Karnataka, India. Karnataka, India.
###########################################################################
Quoted 12 lines
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
Quoted 9 lines · In message <[email protected]> you…
I am facing a problem in loading a binary file from minicom. Whenver I try to load, it is going in an infinite loop.
=> loadb 100000
## Ready for binary (kermit) download to0x00100000at 9600 bps...I configured kermit as told in the DULG/SystemSetup Manual....
The DULG also warns you NOT to use minicom - for good reasons.
If you use kermit for file download anyway, just use it as terminal program, too.
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 What's the sound a name makes when it's dropped?