| Welcome to AT91SAM Community Forum http://www.at91.com/samphpbb/ |
|
| Loading loader.bin with minicom into AT91RM9200 board http://www.at91.com/samphpbb/viewtopic.php?f=12&t=407 |
Page 1 of 1 |
| Author: | koan [ Fri Jan 14, 2005 6:24 pm ] |
| Post subject: | Loading loader.bin with minicom into AT91RM9200 board |
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 |
|
| Author: | seismic [ Fri Jan 28, 2005 8:12 am ] |
| Post subject: | answer |
hi, I wrote a program which could do that work. |
|
| Author: | koan [ Fri Jan 28, 2005 9:40 am ] |
| Post subject: | Re: answer |
seismic wrote: hi, I wrote a program which could do that work.
Do you need contribution /testing ? I am available. Regards |
|
| Author: | seismic [ Fri Jan 28, 2005 12:30 pm ] |
| Post subject: | here it is |
in the attachment |
|
| Author: | koan [ Fri Jan 28, 2005 7:09 pm ] |
| Post subject: | |
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 |
|
| Author: | seismic [ Sat Jan 29, 2005 5:40 am ] |
| Post subject: | good |
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. |
|
| Author: | koan [ Tue Feb 01, 2005 8:23 pm ] |
| Post subject: | |
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 - 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 |
|
| Author: | seismic [ Wed Feb 02, 2005 4:10 am ] |
| Post subject: | so good |
it is so good, i will use it, |
|
| Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|



Forum