--- target/linux/mpc85xx/image/Makefile | 6 +- .../mpc85xx/patches/200-p1010-dts-typo-fix.patch | 11 +++ .../mpc85xx/patches/210-p1010-flash-layout.patch | 85 ++++++++++++++++++++ target/linux/mpc85xx/profiles/100-mpc854x.mk | 17 ++++ target/linux/mpc85xx/profiles/200-p1010rdb.mk | 17 ++++ 5 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 target/linux/mpc85xx/patches/200-p1010-dts-typo-fix.patch create mode 100644 target/linux/mpc85xx/patches/210-p1010-flash-layout.patch create mode 100644 target/linux/mpc85xx/profiles/100-mpc854x.mk create mode 100644 target/linux/mpc85xx/profiles/200-p1010rdb.mk
diff --git a/target/linux/mpc85xx/image/Makefile b/target/linux/mpc85xx/image/Makefile index a5d1acb..1d2ac85 100644 --- a/target/linux/mpc85xx/image/Makefile +++ b/target/linux/mpc85xx/image/Makefile @@ -7,15 +7,17 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/image.mk -DTS_TARGETS = mpc8548cds +DTS_TARGETS = mpc8548cds p1010rdb define Image/Prepare cp $(LINUX_DIR)/arch/powerpc/boot/zImage $(KDIR)/zImage + cp $(LINUX_DIR)/arch/powerpc/boot/uImage $(KDIR)/uImage endef define Image/BuildKernel cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage - $(foreach dts,$(DTS_TARGETS),$(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(LINUX_DIR)/arch/powerpc/boot/dts/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt) + cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage + $(foreach dts,$(DTS_TARGETS),$(LINUX_DIR)/scripts/dtc/dtc -I dts -O dtb $(LINUX_DIR)/arch/powerpc/boot/dts/$(dts).dts > $(BIN_DIR)/$(IMG_PREFIX)-$(dts).fdt;) endef define Image/Build/ext2 diff --git a/target/linux/mpc85xx/patches/200-p1010-dts-typo-fix.patch b/target/linux/mpc85xx/patches/200-p1010-dts-typo-fix.patch new file mode 100644 index 0000000..ca8968e --- /dev/null +++ b/target/linux/mpc85xx/patches/200-p1010-dts-typo-fix.patch @@ -0,0 +1,11 @@ +--- a/arch/powerpc/boot/dts/p1010rdb.dtsi ++++ b/arch/powerpc/boot/dts/p1010rdb.dtsi +@@ -196,7 +196,7 @@ + }; + + tbi-phy@3 { +- device-type = "tbi-phy"; ++ device_type = "tbi-phy"; + reg = <0x3>; + }; + }; diff --git a/target/linux/mpc85xx/patches/210-p1010-flash-layout.patch b/target/linux/mpc85xx/patches/210-p1010-flash-layout.patch new file mode 100644 index 0000000..6101628 --- /dev/null +++ b/target/linux/mpc85xx/patches/210-p1010-flash-layout.patch @@ -0,0 +1,85 @@ +Index: linux-3.3/arch/powerpc/boot/dts/p1010rdb.dtsi +=================================================================== +--- linux-3.3.orig/arch/powerpc/boot/dts/p1010rdb.dtsi 2012-03-20 08:05:17.933326897 +0100 ++++ linux-3.3/arch/powerpc/boot/dts/p1010rdb.dtsi 2012-03-20 08:12:32.520395523 +0100 +@@ -44,19 +44,19 @@ + partition@40000 { + /* 256KB for DTB Image */ + reg = <0x00040000 0x00040000>; +- label = "NOR DTB Image"; ++ label = "dtb"; + }; + + partition@80000 { + /* 7 MB for Linux Kernel Image */ + reg = <0x00080000 0x00700000>; +- label = "NOR Linux Kernel Image"; ++ label = "linux"; + }; + + partition@800000 { + /* 20MB for JFFS2 based Root file System */ + reg = <0x00800000 0x01400000>; +- label = "NOR JFFS2 Root File System"; ++ label = "rootfs"; + }; + + partition@1f00000 { +@@ -64,7 +64,7 @@ + /* 512KB for u-boot Bootloader Image */ + /* 512KB for u-boot Environment Variables */ + reg = <0x01f00000 0x00100000>; +- label = "NOR U-Boot Image"; ++ label = "u-boot"; + read-only; + }; + }; +@@ -144,32 +144,32 @@ + /* 1MB for u-boot Bootloader Image */ + /* 1MB for Environment */ + reg = <0x0 0x00100000>; +- label = "SPI Flash U-Boot Image"; ++ label = "u-boot"; + read-only; + }; + + partition@100000 { +- /* 512KB for DTB Image */ +- reg = <0x00100000 0x00080000>; +- label = "SPI Flash DTB Image"; ++ /* 64KB U-boot env */ ++ reg = <0x00100000 0x00010000>; ++ label = "u-boot env"; + }; + +- partition@180000 { +- /* 4MB for Linux Kernel Image */ +- reg = <0x00180000 0x00400000>; +- label = "SPI Flash Linux Kernel Image"; ++ partition@110000 { ++ /* dtb */ ++ reg = <0x00110000 0x00010000>; ++ label = "dtb"; + }; + +- partition@580000 { +- /* 4MB for Compressed RFS Image */ +- reg = <0x00580000 0x00400000>; +- label = "SPI Flash Compressed RFSImage"; ++ partition@120000 { ++ /* whole image */ ++ reg = <0x00120000 0x006F0000>; ++ label = "linux"; + }; + +- partition@980000 { +- /* 6.5MB for JFFS2 based RFS */ +- reg = <0x00980000 0x00680000>; +- label = "SPI Flash JFFS2 RFS"; ++ partition@2B0000 { ++ /* squashfs + jffs2 */ ++ reg = <0x002b0000 0x08550000>; ++ label = "rootfs"; + }; + }; + }; diff --git a/target/linux/mpc85xx/profiles/100-mpc854x.mk b/target/linux/mpc85xx/profiles/100-mpc854x.mk new file mode 100644 index 0000000..dd2d396 --- /dev/null +++ b/target/linux/mpc85xx/profiles/100-mpc854x.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/mpc854x + NAME:=MPC854x (default) + PACKAGES:= +endef + +define Profile/mpc8548/Description + Package set for MPC854x based boards +endef +$(eval $(call Profile,mpc854x)) + diff --git a/target/linux/mpc85xx/profiles/200-p1010rdb.mk b/target/linux/mpc85xx/profiles/200-p1010rdb.mk new file mode 100644 index 0000000..fcc2d4a --- /dev/null +++ b/target/linux/mpc85xx/profiles/200-p1010rdb.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/p1010rdb + NAME:=Freescael P1010RDB Reference Board + PACKAGES:= +endef + +define Profile/p1010rdb/Description + Package set for Freescale P1010RDB Reference Board +endef +$(eval $(call Profile,p1010rdb)) + -- 1.7.4.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel