Loading loader.bin with minicom into AT91RM9200 board

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 212
Joined: Wed May 12, 2004 6:59 pm

Loading loader.bin with minicom into AT91RM9200 board

Fri Jan 14, 2005 6:24 pm

Hello,
I am trying to load loader.bin into a AT91RM9200 based board.
Thie procedure is working perfectly if I upload into the tagret using Xmodem protocol and HyperTerminal.
If I try to use minicom with linux I alwayd get back 55 NAK errors and the upload fails.
I'd like to know if someone is experienced to upload loader.bin to an AT91RM9200 using linux program.
Which program did you use ?

P.S. I tried on 2 different PC without success
Thank you

/marco
seismic
Posts: 12
Joined: Wed Sep 22, 2004 11:25 am

answer

Fri Jan 28, 2005 8:12 am

hi, I wrote a program which could do that work.
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 212
Joined: Wed May 12, 2004 6:59 pm

Re: answer

Fri Jan 28, 2005 9:40 am

seismic wrote:hi, I wrote a program which could do that work.
Do you need contribution /testing ?
I am available.
Regards
seismic
Posts: 12
Joined: Wed Sep 22, 2004 11:25 am

here it is

Fri Jan 28, 2005 12:30 pm

in the attachment
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 212
Joined: Wed May 12, 2004 6:59 pm

Fri Jan 28, 2005 7:09 pm

Hi,
this is a good starting point but IMHO is not enough to solve the problem.

1. When you load ALL the bootloader files into a AT91RM9200 based board,
you require to send loader.bin, and u_boot.bin with XMODEM protocol, and immediately after that you need to load boot.bin and u_boot.gx with KERMIT protocol, so you need a clever program like minicom.

2. The program you have created do almost athe same of the program called ' sz ' with option -x.

3. If you discovered the xmodem transmission problem, what about apply this modification to minicom or sz, instead of creating a new program ?

I'm open to your proposal :)
Regards
seismic
Posts: 12
Joined: Wed Sep 22, 2004 11:25 am

good

Sat Jan 29, 2005 5:40 am

oh,a good proposal,but I don't know where to find the source code of minicom or sz. I think there is some timing problem with them. :wink:
User avatar
koan
Contact:
Location: Bergamo, Italia
Posts: 212
Joined: Wed May 12, 2004 6:59 pm

Tue Feb 01, 2005 8:23 pm

I have modified the file you posted here, adding some documentation in its header and patching some printf and break.
You can download the final release here:
http://www.koansoftware.com/it/art.php?art=68

And here I explain how to use it with minicom :D

- build the source file with
gcc sx-at91.c -o sx-at91

- Howto use this program with minicom/xminicom and AT91
start minicom or xminicom
edit Options / File transfer protocol,
add a name (for example J) like the following example

| Name Program Name U/D FullScr IO-Red. Multi |
| A zmodem /usr/bin/sz -vv -b Y U N Y Y |
| B ymodem /usr/bin/sb -vv Y U N Y Y |
| C xmodem /usr/bin/sx -vv Y U N Y N |
| D zmodem /usr/bin/rz -vv -b -E N D N Y Y |
| E ymodem /usr/bin/rb -vv N D N Y Y |
| F xmodem /usr/bin/rx -vv Y D N Y N |
| G kermit /usr/bin/kermit -i -l %l -s Y U Y N N |
| H kermit /usr/bin/kermit -i -l %l -r N D Y N N |
| I ascii /usr/bin/ascii-xfr -dsv Y U N Y N |
| J at91 /home/koan/xmodem/xs-at91 Y U Y N N |
| K - |
| L - |

save and use it selecting at91 protocol when you start an Xmodem upload to AT91


Marco Cavallini
http://www.koansoftware.com
seismic
Posts: 12
Joined: Wed Sep 22, 2004 11:25 am

so good

Wed Feb 02, 2005 4:10 am

it is so good, i will use it, :)

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 4 guests