[oe-commits] org.oe.dev u-boot_1.3.1.bb: add mtdparts support for mpc8313e-rdb
jeremy_laine commit
oe at amethyst.openembedded.net
Fri Apr 11 16:50:43 UTC 2008
u-boot_1.3.1.bb: add mtdparts support for mpc8313e-rdb
Author: jeremy_laine at openembedded.org
Branch: org.openembedded.dev
Revision: 85a2f16fc0d263698947f31a1f50694c14d86e70
ViewMTN: http://monotone.openembedded.org/revision/info/85a2f16fc0d263698947f31a1f50694c14d86e70
Files:
1
packages/u-boot/u-boot-1.3.1/mpc8313e-rdb-mtdparts.patch
packages/u-boot/u-boot_1.3.1.bb
Diffs:
#
# mt diff -r35fd623c105c7e1623fe4439e73e0e330116a43a -r85a2f16fc0d263698947f31a1f50694c14d86e70
#
#
#
# add_file "packages/u-boot/u-boot-1.3.1/mpc8313e-rdb-mtdparts.patch"
# content [12ba74ed825293b32ed7b8b4676d5d133dd26c44]
#
# patch "packages/u-boot/u-boot_1.3.1.bb"
# from [146fc7fff1c04aa2f88d874a7a7ca0f258bc4f59]
# to [33ac513192e4695c4ea43a787d866c98c2a011ef]
#
============================================================
--- packages/u-boot/u-boot-1.3.1/mpc8313e-rdb-mtdparts.patch 12ba74ed825293b32ed7b8b4676d5d133dd26c44
+++ packages/u-boot/u-boot-1.3.1/mpc8313e-rdb-mtdparts.patch 12ba74ed825293b32ed7b8b4676d5d133dd26c44
@@ -0,0 +1,35 @@
+diff -urN u-boot-1.3.1.orig/include/configs/MPC8313ERDB.h u-boot-1.3.1/include/configs/MPC8313ERDB.h
+--- u-boot-1.3.1.orig/include/configs/MPC8313ERDB.h 2007-12-06 10:21:19.000000000 +0100
++++ u-boot-1.3.1/include/configs/MPC8313ERDB.h 2008-04-11 18:37:41.000000000 +0200
+@@ -326,7 +326,7 @@
+ */
+ #ifndef CFG_RAMBOOT
+ #define CFG_ENV_IS_IN_FLASH 1
+- #define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000)
++ #define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x60000)
+ #define CFG_ENV_SECT_SIZE 0x10000 /* 64K(one sector) for env */
+ #define CFG_ENV_SIZE 0x2000
+
+@@ -357,6 +357,7 @@
+ #define CONFIG_CMD_PING
+ #define CONFIG_CMD_DHCP
+ #define CONFIG_CMD_I2C
++#define CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_MII
+ #define CONFIG_CMD_DATE
+ #define CONFIG_CMD_PCI
+@@ -368,6 +369,14 @@
+
+ #define CONFIG_CMDLINE_EDITING 1
+
++/*
++ * JFFS2 partitions (mtdparts command line support)
++ */
++#define CONFIG_JFFS2_CMDLINE
++#define CONFIG_JFFS2_NAND
++#define MTDIDS_DEFAULT "nor0=physmap-flash.0,nand0=nand0"
++#define MTDPARTS_DEFAULT "mtdparts=physmap-flash.0:384k(uboot),64k(env)"
++
+
+ /*
+ * Miscellaneous configurable options
============================================================
--- packages/u-boot/u-boot_1.3.1.bb 146fc7fff1c04aa2f88d874a7a7ca0f258bc4f59
+++ packages/u-boot/u-boot_1.3.1.bb 33ac513192e4695c4ea43a787d866c98c2a011ef
@@ -2,8 +2,11 @@ DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE = "-1"
+PR = "r1"
+
SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \
file://mpc8313e-rdb-autoboot.patch;patch=1 \
+ file://mpc8313e-rdb-mtdparts.patch;patch=1 \
file://mpc8313e-rdb-nand.patch;patch=1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
More information about the Openembedded-commits
mailing list