Hi,
what is the state of the kirkwood targets in openwrt trunk? At the
moment I'm trying to get an Segate GoFlex Home running with trunk.
I had it previously running with atitude adjustment and wanted to to
upgrade it to trunk.
Since it seems ubifs is the new way to go, I flashed a new u-boot
namely the openwrt-kirkwood-goflexhome-u-boot.kwb. It was missing the
bootz command support, so I had to change 200-openwrt-config.patch
since it didn't include "openwrt-kirkwood-common.h" for the goflex.
diff --git a/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
b/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
index 0e84d3b..92e2b75 100644
--- a/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
+++ b/package/boot/uboot-kirkwood/patches/200-openwrt-config.patch
@@ -108,3 +108,12 @@
+#include "openwrt-kirkwood-common.h"
+
#endif /* _CONFIG_SHEEVAPLUG_H */
+--- a/include/configs/goflexhome.h
b/include/configs/goflexhome.h
+@@ -133,4 +133,6 @@
+ #define CONFIG_RTC_MV
+ #endif /* CONFIG_CMD_DATE */
+
++#include "openwrt-kirkwood-common.h"
++
+ #endif /* _CONFIG_GOFLEXHOME_H */
After flashing the rootfs:
GoFlexHome> nand erase.part root
NAND erase.part: device 0 offset 0x70, size 0xf90
Skipping bad block at 0x0d92
Erasing at 0xffe -- 100% complete.
OK
GoFlexHome> ubi part root
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: empty MTD device detected
UBI: attached mtd1 (name "mtd=2", size 249 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 1991, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 1948, total reserved PEBs: 43, PEBs reserved for bad PEB
handling: 39
GoFlexHome> ubi create rootfs
No size specified -> Using max size (251338752)
Creating dynamic volume rootfs of size 251338752
GoFlexHome> tftpboot 0x80 dd-gfh/openwrt-kirkwood-goflexhome-rootfs.ubifs
Using egiga0 device
TFTP from server 10.10.10.3; our IP address is 10.10.10.6
Filename 'dd-gfh/openwrt-kirkwood-goflexhome-rootfs.ubifs'.
Load address: 0x80
Loading: #
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
529.3 KiB/s
done
Bytes transferred = 7612416 (742800 hex)
GoFlexHome> ubi write 0x80 rootfs 0x742800
7612416 bytes written to volume rootfs
GoFlexHome> ubifsmount ubi:rootfs
GoFlexHome> ubifsls
3848 Mon Feb 29 13:56:58 2016 bin
160 Sun Feb 28 13:21:54 2016 dev
3256 Sun Feb 28 13:21:54 2016 etc
1720 Sun Feb 28 13:21:54 2016 lib
160 Sun Feb 28 13:21:54 2016 mnt
224 Mon Feb 29 13:56:58 2016 rom
160 Mon Feb 29 13:56:59 2016 tmp
160 Sun Feb 28 13:21:54 2016 sys
4 Mon Feb 29 13:56:58 2016 var
416 Sun Feb 28 13:21:54 2016 usr
160 Sun Feb 28 13:21:54 2016 www
608 Mon Feb 29 13:59:33 2016 boot
160 Sun Feb 28 13:21:54 2016 proc
3024 Mon Feb 29 13:56:58 2016 sbin
160 Sun Feb 28 13:21:54 2016 root