summaryrefslogtreecommitdiff
path: root/target/linux/kirkwood
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-02-15 23:53:09 +0000
committerLuka Perkov <luka@openwrt.org>2014-02-15 23:53:09 +0000
commit0b0357b50eb313a2ba1f40cb4fecfa790be37b42 (patch)
tree60f49d59d26b8404561bf4faf9b61cca27b08916 /target/linux/kirkwood
parent0c25f159fd44c20c13a37148ff91b283c307dcfe (diff)
downloadmtk-20170518-0b0357b50eb313a2ba1f40cb4fecfa790be37b42.zip
mtk-20170518-0b0357b50eb313a2ba1f40cb4fecfa790be37b42.tar.gz
mtk-20170518-0b0357b50eb313a2ba1f40cb4fecfa790be37b42.tar.bz2
kirkwood: update support for ib62x0
The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot environment if OpenWrt's uboot package is used. In order to flash the image run following commands in uboot shell: nand erase 0x200000 0xfe00000 ubi part root ; ubi remove rootfs ; ubi create rootfs tftpboot 0x800000 openwrt-kirkwood-ib62x0-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset Signed-off-by: Luka Perkov <luka@openwrt.org> Tested-by: Luka Perkov <luka@openwrt.org> CC: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39592
Diffstat (limited to 'target/linux/kirkwood')
-rw-r--r--target/linux/kirkwood/patches-3.10/110-ib62x0.patch26
1 files changed, 15 insertions, 11 deletions
diff --git a/target/linux/kirkwood/patches-3.10/110-ib62x0.patch b/target/linux/kirkwood/patches-3.10/110-ib62x0.patch
index 3659b95..5ac9972 100644
--- a/target/linux/kirkwood/patches-3.10/110-ib62x0.patch
+++ b/target/linux/kirkwood/patches-3.10/110-ib62x0.patch
@@ -17,33 +17,37 @@
serial@12000 {
status = "okay";
};
-@@ -64,19 +65,18 @@
+@@ -64,19 +65,23 @@
partition@0 {
label = "u-boot";
- reg = <0x0000000 0x100000>;
+ reg = <0x0000000 0xe0000>;
++ };
++
++ partition@e0000 {
++ label = "u-boot environment";
++ reg = <0xe0000 0x100000>;
};
-- partition@100000 {
+ partition@100000 {
- label = "uImage";
- reg = <0x0100000 0x600000>;
-+ partition@e0000 {
-+ label = "u-boot environment";
-+ reg = <0xe0000 0x100000>;
++ label = "second stage u-boot";
++ reg = <0x100000 0x200000>;
};
- partition@700000 {
-+ partition@100000 {
++ partition@200000 {
label = "root";
- reg = <0x0700000 0xf900000>;
-+ reg = <0x100000 0xff00000>;
++ reg = <0x200000 0xfe00000>;
};
-
};
};
-@@ -84,6 +84,7 @@
+@@ -84,6 +89,7 @@
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
@@ -51,7 +55,7 @@
button@1 {
label = "USB Copy";
linux,code = <133>;
-@@ -95,6 +96,7 @@
+@@ -95,6 +101,7 @@
gpios = <&gpio0 28 1>;
};
};
@@ -59,7 +63,7 @@
gpio-leds {
compatible = "gpio-leds";
-@@ -112,12 +114,11 @@
+@@ -112,12 +119,11 @@
gpios = <&gpio0 27 0>;
};
};
@@ -73,7 +77,7 @@
};
&mdio {
-@@ -131,6 +132,7 @@
+@@ -131,6 +137,7 @@
&eth0 {
status = "okay";