On Mon, Jun 11, 2012 at 08:19:18PM +0200, Martin Mueller wrote:
> > This is how I flash my kirkwood device (0x62118 is the size of loaded
> > binary):
> >
> > tftpboot 0x0800000 u-boot.kwb
> > nand erase 0x0 0x70000 ; nand write 0x0800000 0x0 0x62118
> >
> > You should flash it on the beginning of the nand chip.
>
> Ok, I flashed the new uboot, here is the output:
>
> U-Boot 2012.04.01 (Jun 11 2012 - 19:41:27)
> Seagate FreeAgent DockStar
>
> SoC: Kirkwood 88F6281_A0
> DRAM: 128 MiB
> WARNING: Caches not enabled
> NAND: 256 MiB
> *** Warning - bad CRC, using default environment
>
> In: serial
> Out: serial
> Err: serial
> Net: egiga0
> 88E1116 Initialized on egiga0
> Hit any key to stop autoboot: 0
> DockStar>
Good. This means it works.
> It still can't boot my old image on the dockstar, so I suppose I need
> to flash a new one. It want's to bbot some ubi-stuff, which I don't
> seem to have. The build just produces jffs2 images. Where to go from
> here?
Do you have printenv output from old uboot?
I'll have to patch this part from original uboot to make it work out of the
box:
#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
"setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
"${x_bootcmd_usb}; bootm 0x6400000;"
#define CONFIG_MTDPARTS "orion_nand:1M(u-boot)," \
"1M@1M(second_stage_u-boot)," \
"3M@2M(kernel),32M@5M(rootfs),219M@37M(data) rw\0"
#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
"=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
"x_bootcmd_kernel=nand read 0x6400000 0x200000 0x300000\0" \
"x_bootcmd_usb=usb start\0" \
"x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
You should have uboot environment like above. Do you know how to do it yourself
or I need to write the commands?
Regards,
Luka
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel