public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] U-Boot/Kermit Problem
       [not found] <E1BILz1-0007b0-QP@sc8-sf-list1.sourceforge.net>
@ 2004-04-29  6:58 ` Ashish R Dhawane
  2004-04-29  7:35   ` ganapathi
  2004-04-29  8:53   ` Wolfgang Denk
  0 siblings, 2 replies; 5+ messages in thread
From: Ashish R Dhawane @ 2004-04-29  6:58 UTC (permalink / raw)
  To: u-boot

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.						
###########################################################################

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

* [U-Boot-Users] U-Boot/Kermit Problem
  2004-04-29  6:58 ` [U-Boot-Users] U-Boot/Kermit Problem Ashish R Dhawane
@ 2004-04-29  7:35   ` ganapathi
  2004-04-29  8:53   ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: ganapathi @ 2004-04-29  7:35 UTC (permalink / raw)
  To: u-boot

Hi Ashish,
    Check whether your serial_getc() function is returning 0. Your
serial_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" <ashish@cdotb.ernet.in>
To: <u-boot-users@lists.sourceforge.net>
Sent: Thursday, April 29, 2004 12:28 PM
Subject: [U-Boot-Users] U-Boot/Kermit Problem


>
> 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.
>
###########################################################################
>
>
>
> -------------------------------------------------------
> 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

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

* [U-Boot-Users] U-Boot/Kermit Problem
@ 2004-04-29  7:41 Daren Hayward
  0 siblings, 0 replies; 5+ messages in thread
From: Daren Hayward @ 2004-04-29  7:41 UTC (permalink / raw)
  To: u-boot

I had a similar problem I ended up getting it to work with using the 
following

SET PREFIXING ALL
SET PARITY NONE
SET CARRIER-WATCH OFF

also ensure there is no handshaking see the kermit manual for more 
information.

I have placed the above commands in ~/.kermrc so they are picked up by 
minicom when it calls kermit.

btw they recommend not using minicom for serial transfers, I have used 
U-boot v 1.1.1 with minicom serial file transfer with no problems though.

Daren


From: Ashish R Dhawane &lt;ashish at cdotb.ernet.in&gt;
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] U-Boot/Kermit Problem
Date: Thu, 29 Apr 2004 11:58:28 +0500 (GMT+0500)


I am facing a problem in loading a binary file from minicom.
Whenver I try to load, it is going in an infinite loop.

=&gt; 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.
###########################################################################



-------------------------------------------------------
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&amp;alloc_id=8166&amp;op=click
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger

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

* [U-Boot-Users] U-Boot/Kermit Problem
  2004-04-29  6:58 ` [U-Boot-Users] U-Boot/Kermit Problem Ashish R Dhawane
  2004-04-29  7:35   ` ganapathi
@ 2004-04-29  8:53   ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-04-29  8:53 UTC (permalink / raw)
  To: u-boot

In message <Pine.OSF.4.21.0404291125360.22727-100000@ws9.cdotb.ernet.in> you wrote:
> 
> 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....

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

-- 
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?

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

* [U-Boot-Users] U-Boot/Kermit Problem
       [not found] <Pine.OSF.4.21.0404291639440.1949-100000@ws9.cdotb.ernet.in>
@ 2004-04-29 12:28 ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-04-29 12:28 UTC (permalink / raw)
  To: u-boot

In message <Pine.OSF.4.21.0404291639440.1949-100000@ws9.cdotb.ernet.in> you wrote:
> 
> Any other serial line protocol is there, which works fine with minicom ?

If you ask for my $ 0.02: minicom is broken. I recommend not to use it.

I know that others  like  it,  and  use  it  successfully,  so  chose
whatever you like, but don't say you have not been warned.

> I tried to configure uucp as given in the DULG manual.
> 
> When I tried to upload a file from minicom, it gives me the following
> error.....
> 
> ----------------------------------------------------------------------
> /usr/bin/cu: hello_world: System not found
> READY: press any key to continue...

Don't use cu from minicom; use cu directly from the command line.

> If I run "cu" dirctly from the command prompt I am getting the following
> error.
> 
> [root at genome root]# cu S0 at 9600
> cu: open (/dev/ttyS0): Permission denied
> cu: S0 at 9600: All matching ports in use
> [root at genome root]#


> So I checked the permissions od /dev/ttyS0.
> 
> [root at genome root]# ls -l /dev/ttyS0
> crwxr-xr-x    1 root     uucp       4,  64 Apr 29 17:07 /dev/ttyS0
> [root at genome root]#
> 
> What could be the problem ?

group uucp should have write permission on the  device,  and  in  the
lock directory.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The idea of male and female are universal constants.
	-- Kirk, "Metamorphosis", stardate 3219.8

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

end of thread, other threads:[~2004-04-29 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1BILz1-0007b0-QP@sc8-sf-list1.sourceforge.net>
2004-04-29  6:58 ` [U-Boot-Users] U-Boot/Kermit Problem Ashish R Dhawane
2004-04-29  7:35   ` ganapathi
2004-04-29  8:53   ` Wolfgang Denk
2004-04-29  7:41 Daren Hayward
     [not found] <Pine.OSF.4.21.0404291639440.1949-100000@ws9.cdotb.ernet.in>
2004-04-29 12:28 ` Wolfgang Denk

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