On Nov 30, 2012, at 3:57 AM, Luka Perkov wrote:
> On Wed, Nov 28, 2012 at 08:01:55PM -0500, Jay Carlson wrote:
>>> Sorry it took me a while to test your patch. I applied it to trunk
>>> r33391 and can confirm, that uboot works fine on my dockstar when
>>> installed as primary bootloader to flash.
>>
>> It doesn't work on mine--in fact, it bricks it--but this may be a
>> documentation bug.
>
> I'm sorry that you have bricked your device...
It's OK--I have a couple extras. If it was really important I would have
stopped when the instructions failed to install it as a second stage. I've been
doing embedded Linux for so long I can't remember if this is a first or second
brick. :-)
>> write.e 0x800000 0x000000 0x40000
>>
>> which really does not sound right, since u-boot is 0x594c8 bytes long. What
>> is the procedure for flashing the new uboot as primary, and is it intended to
>> work as a secondary?
>
> It won't work as secondary, you must use it as primary.
>
> This is how I flash it on my kirkwood boards:
>
> tftpboot 0x0800000 u-boot.kwb
> nand erase 0x0 0x${filesize}
> nand write 0x0800000 0x0 0x${filesize}
Cool. One of us should update the wiki.
>> There's also both .img and .kwb files. I'm not sure what the difference is.
>> (Since I've got original dockstars, I won't be serial booting the .kwb
>> apparently :-)
>
> You only need .kwb file.
http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/kirkwood/generic/
shows both, although I can't figure out why on casual examination. They aren't
built when I do a board-specific build at least. Are there stale files on the
buildbots?
> Do you have JTAG adapter?
Luckily I have a J-Link in a box somewhere, and a Bus Pirate. What I need is to
build a connector, and I haven't gotten to that yet. Uh, plus figure out which
version of OpenOCD is the stable, working version for the platform--that's been
a problem before.
Jay
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel