[U-Boot-Users] Loadb issue
Banajit Goswami
banajit.goswami at gmail.com
Wed Jul 19 15:19:36 CEST 2006
Hi Andreas/All,
Thanks for the reply.
I am using same baudrate for terminal as well as kermit modes. both are
with 115200.
I am getting the prompt on console over serial and able to execute commands
like help, bdinfo, md and mw etc.
I am sending a log herewith with some of the commands' execution as well as
the .kermrc file that I am using.
Any pointer would be of very much help.
Thanks and Regards
Banajit
Message: 7
Date: Wed, 19 Jul 2006 12:54:46 +0200
From: Andreas Schweigstill <andreas at schweigstill.de>
Subject: Re: [U-Boot-Users] Loadb issue
To: u-boot-users at lists.sourceforge.net
Message-ID: < 44BE0F76.50208 at schweigstill.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Dear Banajit!
Banajit Goswami schrieb:
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
Please do not post messages in HTML format to this list.
> 3) at u-boot command prompt gave following command
> => loadb 0x60008000 115200
> 4) From hyperterminal, Transfer->send file with protocol as kermit,
> selected the file and tried sending, but failed. Everytime
> hyperterminal poped up "error limit exceeded".
Are you sure that you are using the same baudrate for terminal mode
and kermit mode? Do the RS232 level converters have their own supply
or do they get it from the modem control lines? Although you selected
no handshake this doesn't neccessarily mean that the control lines
don't get toggled.
With best regards
Andreas Schweigstill
--
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060719/5fceb672/attachment.htm
-------------- next part --------------
U-Boot 1.0.0 (Jul 19 2006 - 17:33:49)
U-Boot code: 61000000 -> 610176C0 BSS: -> 6101B05C
IRQ Stack: 6103c058
FIQ Stack: 6103d058
DRAM Configuration:
Bank #0: 60000000 64 MB
Flash: 2 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
PEGASUS #
PEGASUS # help
? - alias for 'help'
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
cmp - memory compare
coninfo - print console devices and informations
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
echo - echo args to console
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
icache - enable or disable instruction cache
iminfo - print header information for application image
imls - list all images found in flash
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version
PEGASUS # md 0x60008000
60008000: 00000000 00000000 00000000 00000000 ................
60008010: 00000000 00000000 00000000 00000000 ................
60008020: 00000000 00000000 00000000 00000000 ................
60008030: 00000000 00000000 00000000 00000000 ................
60008040: 00000000 00000000 00000000 00000000 ................
60008050: 00000000 00000000 00000000 00000000 ................
60008060: 00000000 00000000 00000000 00000000 ................
60008070: 00000000 00000000 00000000 00000000 ................
60008080: 00000000 00000000 00000000 00000000 ................
60008090: 00000000 00000000 00000000 00000000 ................
600080a0: 00000000 00000000 00000000 00000000 ................
600080b0: 00000000 00000000 00000000 00000000 ................
600080c0: 00000000 00000000 00000000 00000000 ................
600080d0: 00000000 00000000 00000000 00000000 ................
600080e0: 00000000 00000000 00000000 00000000 ................
600080f0: 00000000 00000000 00000000 00000000 ................
PEGASUS # mw 0x60008000 0x11 0x2000
PEGASUS # md 0x60008000
60008000: 00000011 00000011 00000011 00000011 ................
60008010: 00000011 00000011 00000011 00000011 ................
60008020: 00000011 00000011 00000011 00000011 ................
60008030: 00000011 00000011 00000011 00000011 ................
60008040: 00000011 00000011 00000011 00000011 ................
60008050: 00000011 00000011 00000011 00000011 ................
60008060: 00000011 00000011 00000011 00000011 ................
60008070: 00000011 00000011 00000011 00000011 ................
60008080: 00000011 00000011 00000011 00000011 ................
60008090: 00000011 00000011 00000011 00000011 ................
600080a0: 00000011 00000011 00000011 00000011 ................
600080b0: 00000011 00000011 00000011 00000011 ................
600080c0: 00000011 00000011 00000011 00000011 ................
600080d0: 00000011 00000011 00000011 00000011 ................
600080e0: 00000011 00000011 00000011 00000011 ................
600080f0: 00000011 00000011 00000011 00000011 ................
PEGASUS # loadb 0x60008000 115200
## Ready for binary (kermit) download to 0x60008000 at 115200 bps...
from HOST PC
[root at localhost s3c24x0_uboot_dev]# cat ../hello_world > /dev/ttyS0
[root at localhost s3c24x0_uboot_dev]#
NOTE: got some junk data when cat the binary file....seems like u-boot is
trying to print the data it is receiving, on the console
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
When used with kermit:
[root at localhost root]# kermit
C-Kermit 8.0.206, 24 Oct 2002, for Red Hat Linux 8.0
Copyright (C) 1985, 2002,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/root/) C-Kermit>
(/root/) C-Kermit>c
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
PEGASUS # loadb 0x60008000 115200
## Ready for binary (kermit) download to 0x60008000 at 115200 bps...
(Back at localhost.localdomain)
----------------------------------------------------
(/root/) C-Kermit>show flow-control
Connection type: modem
Current flow-control: none
Switches automatically: no
Defaults by connection type:
remote : none
direct-serial : none
modem : rts/cts
tcp/ip : none
ssh : none
pipe : none
(/root/) C-Kermit>send /home/banajit/pegasus/s3c24x0_uboot_dev/u-boot.bin
*************************
SEND-class command failed.
Packets sent: 2
Retransmissions: 11
Timeouts: 12
Damaged packets: 0
Fatal Kermit Protocol Error: Too many retries
HINTS... If the preceding error message does not explain the failure:
. Did you start a Kermit receiver on the far end?
. Adjust the timeout method (see HELP SET SEND).
. Increase the retry limit (see HELP SET RETRY).
. Try it again with SET STREAMING OFF.
. Try it again with SET PARITY SPACE.
. As a last resort, give a ROBUST command and try again.
Also:
. Be sure the source file has read permission.
. Be sure the target directory has write permission.
(Use SET HINTS OFF to suppress hints.)
*************************
(/root/) C-Kermit>
-------------- next part --------------
set line /dev/ttyS0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
More information about the U-Boot
mailing list