2009-09-30 12:37:32     cannot upload file via 'lzr' to BF561 target running uClinux

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

2009-09-30 12:37:32     cannot upload file via 'lzr' to BF561 target running uClinux

Mario Valenta (UNITED STATES)

Message: 80720   

 

the doc describing how to upload files to a board running uClinux isn't helping me much.

 

 

 

this doc:

 

  docs.blackfin.uclinux.org/doku.php?id=simple_hello_world_application_example

 

specificially:

 

"If lrz (receive z-modem) is built into uClinux-dist, you can use this to transfer files from the PC to the board."

 

 

 

on my BF561 board running uClinux, I'm using minicom to talk to the board.   I've also used kermit with success as well.

 

i'm trying to send a simple 'hello world' program over to execute.

 

when running lrz, i get a message:

 

"� z waiting to receive.**B0100000023be50:

 

then using minicom, I hit CTRL-A then Z to bring up menu.  select S for send file, then select Z-modem protocol.  I select my file I wish to upload then the upload just stalls.

 

The docs do not go into detail on this process, and so I think i'm doing something wrong.  I have my minicom set properly to talk to the board but file transfers using lrz do not seem to work.  I am not even able to CTRL-C or CTRL-Break out of lzr, i have to wait until it times out.

 

for kicks, I also tried this via kermit but that failed (as expected - not same protocol as z-modem)

 

can anyone provide some tips on what I'm doing wrong?

QuoteReplyEditDelete

 

 

2009-09-30 13:41:12     Re: cannot upload file via 'lzr' to BF561 target running uClinux

Robin Getz (UNITED STATES)

Message: 80721   

 

Mario:

 

What version of sz are you using on your host?

 

rgetz@pinky ~ $ sz --version

sz (lrzsz) 0.12.20

 

?

QuoteReplyEditDelete

 

 

2009-09-30 14:01:47     Re: cannot upload file via 'lzr' to BF561 target running uClinux

Mario Valenta (UNITED STATES)

Message: 80722   

 

sz is not installed.  Should I be using sz instead of minicom?

QuoteReplyEditDelete

 

 

2009-09-30 14:53:01     Re: cannot upload file via 'lzr' to BF561 target running uClinux

Mario Valenta (UNITED STATES)

Message: 80725   

 

i tried using kermet again..  i found some success here.

 

after commanding 'lrz' from the target, back out to kermet (CTRL-\ then C) and type:

 

'send /PROTOCOL:ZMODEM <filename>' and it seems to work.

 

hope this helps others who were experiencing same frustrations as I.  I do not know if this optimum solution but it gets the job done.

QuoteReplyEditDelete

 

 

2009-09-30 16:26:41     Re: cannot upload file via 'lzr' to BF561 target running uClinux

Robin Getz (UNITED STATES)

Message: 80726   

 

Mario:

 

When you configure minicom (CNTRL-A O), then go to "File transfer protocols", it should be calling an external program. (like /usr/bin/sz -vv -b) - if that is not installed

 

ls /usr/bin/sz

ls: cannot access /usr/bin/sz: No such file or directory

 

zmodem is not going to work on your system if it is not installed. Just install the "lrzsz" package with your distributions package manager.

 

-Robin

Attachments

    Outcomes