Minicom trivial fix to talk w/u-boot
Amit Choudhary
Amit_Choudhary at mindtree.com
Sun Apr 10 05:22:19 CDT 2005
Hi,
I had written a kermit script to transfer kernel images/ffs from a linux box
to h2/h3 board running u-boot.
I am just sending it across in case someone finds it useful.
The way to invoke it is:
Kermit kermit_scpit = -connect (connects to the board, by default
/dev/ttyS0)
Kermit kermit_scpit = -linuxram $file_name (downloads the kernel image to
RAM)
Kermit kermit_scpit = -linux $file_name (downloads the kernel image to RAM
and then copies to flash, drawback: takes time as it erases the flash, etc.)
Kermit kermit_scpit = -ffs $file_name (downloads the flash file system to RAM
and then copies to flash, drawback: takes time as it erases the flash, etc.)
It will come back to linux prompt again so you will have to execute Kermit
kermit_scpit = -connect again to get the prompt on the board. You can come
back to linux prompt anytime by typing Ctrl-\ followed by 'c' and then go
back to the board by executing the connect command again. It has proper error
checking for files not existing, files of zero size, etc.
Regards,
Amit
-----Original Message-----
From:
linux-omap-open-source-bounces+amit_choudhary=mindtree.com at linux.omap.com
[mailto:linux-omap-open-source-bounces+amit_choudhary=mindtree.com at linux.omap
.com] On Behalf Of Woodruff, Richard
Sent: Saturday, April 09, 2005 8:44 PM
To: linux-omap-open-source at linux.omap.com
Subject: RE: Minicom trivial fix to talk w/u-boot
I dug up the old mail telling how to configure for u-boot and minicom.
Regards,
Richard W.
1. install ckermit on a linux machine(on RH machines, you can find RPM
for direct installation) 2. when you configure minicom by "minicom
-s"(you have to be root),
2.1 go to 'File Transfer protocols",you will find two lines commands for
kermit, replace the default "%l" by "%f", e.g. change /usr/bin/kermit -i
-l %l -s to /usr/bin/kermit -i -l %f -b %b -s YUYNN, another line could
be /usr/bin/kermit -i -l %f -b %b -r NDYNN 2.2 go to "Serial port setup"
and configure your serial port and baudrate there. 2.3 go to "Modem and
dialing", erase the strings after A,B,K, i.e. make these three lines
empty 2.4. go to "save setup as dfl" 2.5. go to "exit from minicom"
3. make sure your serial port devices are 'rw' to non-root users 4. as a
non-root user, run 'minicom' again, and boot up u-boot and get the
u-boot prompt inside minicom 5. under u-boot, when you want to do a
binary download, for example, you do something like:
u-boot>loadb 1000000 ramdisk 115200
//now you can do Ctrl-A-Z, then press 'P' to choose the download baudate
to 115200(if you're not using 115200 as your default baudrate), then do
Ctrl-A-Z, and press "S", scroll down to 'kermit' and press on it, you
will be presented a browser window to choose any file you want to
download via kermit. 6. after the download, you do "imi 1000000" to
check the integrity for the downloaded file.
> -----Original Message-----
> From: Woodruff, Richard [mailto:r-woodruff2 at ti.com]
> Sent: Tuesday, March 22, 2005 9:30 PM
> To: Ishigami, Tatsuya; David Brownell; linux-omap-open-
> source at linux.omap.com
> Subject: RE: Total newbie...
>
>
> Minicom works just fine with u-boots Kermit if you adjust some
> parameters.
>
> If you adjust the Kermit connection parameters for send/receive which
> minicom will issue then minicom will work fine.
>
> I'll see if I can dig up the trivial fix. It has been posted many
> times. You need to change like four transfer parameters.
>
> For simplicity using Kermit directly is just fine. Kermit95 on a
> Windows machine works as well as the free source version for Linux.
> Minicom bundles a few more features which can be nice to use
sometimes.
>
> Regards,
> Richard W.
>
> > 1. terminal
> > Minicom is fine for ascii character terminal. However, an issue has
> > reported
> > for kermit file transffer with the u-boot.
> > Details and alternative can be found
> > http://www.denx.de/twiki/bin/view/DULG/SystemSetup#Section_4.3
> >
_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source at linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kermit_script
Type: application/octet-stream
Size: 3659 bytes
Desc: kermit_script
Url : http://linux.omap.com/pipermail/linux-omap-open-source/attachments/20050410/57748446/kermit_script.obj
-------------- next part --------------
-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------
"This message(including attachment if any)is confidential and may be privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission."
-----------------------------------------------------------------------------------------------------------------------------
More information about the Linux-omap-open-source
mailing list