2009-04-09 10:28:17 TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72468
Trying to download new uImage to BF537.
uBoot was preloaded on stamp when I got it (Robin loaded it)
Both uBoot and existing image work perfectly.
I've tried three different TFTP servers (including TFTP Turbo).
On BF537 console: bfin> tftp 0x1000000 uImage
Download starts successfully, then at variable times after 1,2 or sometimes 3% the process stops and the stamp hangs. TFTP server just times out.
Need hard reset on stamp to recover.
What could be causing this?
thanks.
QuoteReplyEditDelete
2009-04-09 11:09:53 Re: TFTP download stops
Robin Getz (UNITED STATES)
Message: 72470
Jim:
Sorry - on the board I gave you I just put on a version of U-Boot that I was playing with -- I might have broken the networking code. (sorry about that - I guess that is what happens when I sneak things out the back door).
I think this should fix all your issues.
Use this (load from serial)
https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:upgrading
and load this file:
blackfin.uclinux.org/gf/download/frsrelease/395/4904/u-boot-bf533-stamp-bypass-2008R1.5.bin
-Robin
QuoteReplyEditDelete
2009-04-09 13:00:33 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72471
OK. I'll give it a shot. Thanks.
QuoteReplyEditDelete
2009-04-09 13:57:36 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72472
Getting a bunch of 'Unknown Command' errors during the serial download - like uboot doesn't know it's supposed to be getting a file.
Typed "loadb" at the bfin> prompt (I'm definitely in uboot here)
It returns "## Ready for binary (kermit) download to 0x1000000 at 57600 bps...
I've used the serial program I'm using before for downloading without issues, but perhaps there's another that you've had good luck with? (I'm using Simpterm.)
One more thing...
On the last thread I asked whether or not there would be enough memory on the stamp to handle the 9Meg uImage file. Mike answered affirmative, pointing out that it has 64Meg of memory. However, that memory is RAM, not FLASH. The board only has 4Meg of FLASH. Once I do get this image to download (to RAM), will there be enough room in FLASH to burn it?
thanks.
QuoteReplyEditDelete
2009-04-09 15:33:57 Re: TFTP download stops
Mike Frysinger (UNITED STATES)
Message: 72475
so upgrade u-boot over the network
i think you've answered your own question about flash ... the board only has 4 megs of flash, and 9 is bigger than 4 ...
QuoteReplyEditDelete
2009-04-09 15:38:17 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72476
OK. Got the serial working using Hyperterminal (UGGHHH!)
Now I use the 'go' command and get this:
What's up???
## Total Size = 0x00023214 = 143892 Bytes
## Start Addr = 0x01000000
bfin> go 0x1000000
## Starting application at 0x01000000 ...
Ack! Something bad happened to the Blackfin!
SEQUENCER STATUS:
SEQSTAT: 0000c000 IPEND: 8030 SYSCFG: 0032
HWERRCAUSE: 0x3: external memory addressing error
EXCAUSE : 0x0: custom exception
physical IVG15 asserted : <0x03fc088c> { _evt_default + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x008c4000> /* unknown address */
RETX: <0x0338dfd0> /* unknown address */
RETS: <0x0100005c> /* unknown address */
RETI: <0x01006c32> /* unknown address */
PROCESSOR STATE:
R0 : 01000000 R1 : 01000000 R2 : 00040000 R3 : ffb0e14e
R4 : 00000000 R5 : 00000000 R6 : 00000000 R7 : 0338dfd0
P0 : 07fc0004 P1 : 01000000 P2 : 0000ffff P3 : 00000002
P4 : 01000000 P5 : 03f5ff80 FP : 03f5fd48 SP : ffb00f2c
LB0: 01006c32 LT0: 01006c32 LC0: 0000fffe
LB1: 03fc68ce LT1: 03fc68c8 LC1: 00000000
B0 : 03f69fb8 L0 : 00000000 M0 : ffffffff I0 : 00000100
B1 : 03f6b8c8 L1 : 00000000 M1 : 00000000 I1 : 01000008
B2 : 0000000f L2 : 00000000 M2 : 00000000 I2 : 000001ff
B3 : 012d330d L3 : 00000000 M3 : 00000000 I3 : 0000003f
A0.w: 003db108 A0.x: 00000000 A1.w: 0000173f A1.x: 00000000
USP : 001ee000 ASTAT: 00000001
Hardware Trace:
0 Target : <0x03fc0620> { _bfin_panic + 0x0 }
Source : <0x03fc08e2> { _evt_default + 0x56 }
1 Target : <0x03fc088c> { _evt_default + 0x0 }
Source : <0x01006c32> /* unknown address */
2 Target : <0x01006c26> /* unknown address */
Source : <0x01006c16> /* unknown address */
3 Target : <0x01006bf4> /* unknown address */
Source : <0x01000058> /* unknown address */
4 Target : <0x01000034> /* unknown address */
Source : <0x010000c8> /* unknown address */
5 Target : <0x010000c0> /* unknown address */
Source : <0x01000030> /* unknown address */
6 Target : <0x0100002e> /* unknown address */
Source : <0x01000028> /* unknown address */
7 Target : <0x01000020> /* unknown address */
Source : <0x010000c8> /* unknown address */
8 Target : <0x010000c0> /* unknown address */
Source : <0x0100001c> /* unknown address */
9 Target : <0x01000000> /* unknown address */
Source : <0x03fd0a60> { _do_go + 0x60 }
10 Target : <0x03fd0a5a> { _do_go + 0x5a }
Source : <0x03fc7784> { _dcache_disable + 0x18 }
11 Target : <0x03fc776c> { _dcache_disable + 0x0 }
Source : <0x03fd0a56> { _do_go + 0x56 }
12 Target : <0x03fd0a52> { _do_go + 0x52 }
Source : <0x03fc7796> { _dcache_status + 0xe }
13 Target : <0x03fc7788> { _dcache_status + 0x0 }
Source : <0x03fd0a4e> { _do_go + 0x4e }
14 Target : <0x03fd0a4e> { _do_go + 0x4e }
Source : <0x03fc773c> { _icache_disable + 0x18 }
15 Target : <0x03fc7724> { _icache_disable + 0x0 }
Source : <0x03fd0a4a> { _do_go + 0x4a }
### ERROR ### Please RESET the board ###
QuoteReplyEditDelete
2009-04-09 15:48:19 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72477
The reason I'm loading uboot via serial is 'cause the uboot on this board has a broken network interface.
And yes, 9 is bigger than 4Meg, which is why I expressed the concern yesterday (on separate thread) that I didn't think there was enough memory on the board. Ram memory yes(64Meg, as you pointed out). But that does me little good when I want to flash the board, unless there is something I just don't get here (which is entirely possible given my inexperience with this platform and development environ.)
I've been following all the procedures as best I can and have finally come up with a Flash image that is too big for the target. So even after I get the uboot fixed, I still need to pare down the image. Not sure where to start.
QuoteReplyEditDelete
2009-04-09 16:24:56 Re: TFTP download stops
Mike Frysinger (UNITED STATES)
Message: 72478
hmm, that might be a feature ... there was a bug fixed related to IVG5 handling between the release and current trunk
i'd suggest you (1) use crc32 to verify the file transferred properly and (2) burn it into flash w/out using go and (3) use a hardware reset rather than software
QuoteReplyEditDelete
2009-04-09 16:26:26 Re: TFTP download stops
Mike Frysinger (UNITED STATES)
Message: 72479
if you want to write it into flash, then you'll have to remove things from the build. there really isnt any way around it.
you can try the FAQ (My uImage is too large to burn in my flash):
docs.blackfin.uclinux.org/doku.php?id=faq
QuoteReplyEditDelete
2009-04-10 08:48:11 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72506
OK. Thanks. I'll try to move forward with that approach.
QuoteReplyEditDelete
2009-04-10 16:37:00 Re: TFTP download stops
Jim Carstensen (UNITED STATES)
Message: 72520
This uboot seems to work OK on the bf537 stamp I am using...
u-boot-bf537-stamp-bypass-2008R1.5.bin
QuoteReplyEditDelete
2009-04-10 17:44:06 Re: TFTP download stops
Robin Getz (UNITED STATES)
Message: 72521
Jim:
Like I said - I shipped you one I was looking at some things - so the networking code was broken - sorry about that.
-Robin