- Priority: 3 --> middle
[#7057] load uboot from uart and update parallel uboot, fail to copy to flash
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: Vivi Li
Open Date
2012-04-16 10:55:22
Priority:
Assignee:
Category:
Fixed In Release:
Found In Release:
Status:
Board:
Processor:
Silicon Revision:
Resolution:
Is the bug repeatable?:
Summary:
Details: (Edit)
In bf609-ezkit 0.1 board, load uboot from uart and update parallel uboot, fail to copy to flash.
--
test@linux-vivi:~/Documents/os_install> bfin-uclinux-ldr -l /tftpboot/u-boot.ldr.uart /dev/ttyS0 && kermit -l /dev/ttyS0 -b 57600 -C connect
Loading LDR /tftpboot/u-boot.ldr.uart ... OK!
Opening /dev/ttyS0 ... OK!
Configuring terminal I/O ... OK!
Trying to send autobaud ... OK!
Trying to read autobaud ... OK!
Checking autobaud ... OK!
Autobaud result: 115200bps 23.961mhz (header:0xBF DLL:0x0D DLH:0x00 fin:0x00)
Sending blocks of DXE 1 ... [21/21] (100%)[board said: 怘€æ€˜€ffž€æžþžx]
[board said: ˜à˜à†]
[board said: †††˜æ†˜àxfà˜ž†øfx††]
[board said: ø˜à]
[board said: 怘€ff†~]
[board said: fxfx~fx]
[board said: †ø~]
[board said: €†x˜ø˜†žf†ž˜†žà枆øx怘€]
[board said: ˜˜f~]
[board said: †žøžø†fæàž†žøžf††þžæxþ†æ€˜€ž]
[board said: þžææ†~]
[board said: ˜æ˜˜˜†]
[board said: ˜˜†]
[board said: žžž˜xf˜˜˜f€˜€f]
[board said: žf€˜€xžæøž˜]
[board said: ø]
[board said: €žæàææ†x†žøž]
[board said: †ž†žøž~˜žàfx]
[board said: †xf~àž˜††žxfžæžøžæžf†žf€˜€æ€˜€†˜øž˜]
[board said: ˜øfxfžžæ€˜€þ˜f~˜˜øfxf]
[board said: žžæ€˜€f†ø†ø†~]
[board said: †~]
[board said: žf†ø˜˜†ž†ž`f€˜€]
[board said: ø˜f~˜ø]
[board said: 枆ž†ž] OK!
You may want to run minicom or kermit now
Quick tip: run 'ldr <ldr> <devspec> && minicom'
Connecting to /dev/ttyS0, speed 57600
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.</devspec></ldr>
bfin> set ipaddr 10.100.4.50
bfin> set serverip 10.100.4.174
bfin> set gatewayip 10.100.4.174
bfin> printenv
addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off
autoload=no
baudrate=57600
bootargs=root=/dev/mtdblock0 rw clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttyBF0,57600
bootcmd=run ramboot
ethact=mii0
ethaddr=02:80:ad:20:31:e8
flashboot=bootm 0xB0100000
gatewayip=10.100.4.174
hostname=bf609-ezkit
ipaddr=10.100.4.50
loadaddr=0x1000000
loads_echo=1
nc=set ncip ${serverip};set stdin nc;set stdout nc;set stderr nc
netmask=255.255.255.0
nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3
nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm
nfsfile=vmImage
ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=(25000000) earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ramboot=tftp $(loadaddr) $(ramfile);run ramargs;run addip;bootm
ramfile=uImage
rootpath=/romfs
serverip=10.100.4.174
stderr=serial
stdin=serial
stdout=serial
ubootfile=u-boot.ldr
update=tftp $(loadaddr) $(ubootfile);protect off 0xB0000000 +$(filesize);erase 0xB0000000 +$(filesize);cp.b $(loadaddr) 0xB0000000 $(filesize)
Environment size: 1158/32764 bytes
bfin> printenv ubootfile
ubootfile=u-boot.ldr
bfin> run update
Using mii0 device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'u-boot.ldr'.
Load address: 0x1000000
Loading: #################
done
Bytes transferred = 248488 (3caa8 hex)
..... done
Un-Protected 5 sectors
..... done
Erased 5 sectors
Copy to Flash... 9.Flash not Erased
bfin>
--
Follow-ups
--- Bob Liu 2012-05-31 15:09:46
can't repeat