Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
7d4450a9
Commit
7d4450a9
authored
15 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
mpc5121ads: add JFFS2 and MTDPARTS support; adjust flash map
Signed-off-by:
Wolfgang Denk
<
wd@denx.de
>
parent
1f1f82f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/configs/mpc5121ads.h
+38
-8
38 additions, 8 deletions
include/configs/mpc5121ads.h
with
38 additions
and
8 deletions
include/configs/mpc5121ads.h
+
38
−
8
View file @
7d4450a9
...
...
@@ -203,7 +203,8 @@
* NAND FLASH
* drivers/mtd/nand/mpc5121_nfc.c (rev 2 silicon only)
*/
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NAND
/* enable NAND support */
#define CONFIG_JFFS2_NAND
/* with JFFS2 on it */
#define CONFIG_NAND_MPC5121_NFC
#define CONFIG_SYS_NAND_BASE 0x40000000
...
...
@@ -367,23 +368,52 @@
#include
<config_cmd_default.h>
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_DATE
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
#define CONFIG_CMD_JFFS2
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
#define CONFIG_CMD_REGINFO
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_DATE
#undef CONFIG_CMD_FUSE
#define CONFIG_CMD_IDE
#define CONFIG_CMD_EXT2
#if defined(CONFIG_PCI)
#define CONFIG_CMD_PCI
#endif
#if defined(CONFIG_CMD_IDE)
/*
* Dynamic MTD partition support
*/
#define CONFIG_CMD_MTDPARTS
#define CONFIG_MTD_DEVICE
/* needed for mtdparts commands */
#define CONFIG_FLASH_CFI_MTD
#define MTDIDS_DEFAULT "nor0=fc000000.flash,nand0=mpc5121.nand"
/*
* NOR flash layout:
*
* FC000000 - FEABFFFF 42.75 MiB User Data
* FEAC0000 - FFABFFFF 16 MiB Root File System
* FFAC0000 - FFEBFFFF 4 MiB Linux Kernel
* FFEC0000 - FFEFFFFF 256 KiB Device Tree
* FFF00000 - FFFFFFFF 1 MiB U-Boot (up to 512 KiB) and 2 x * env
*
* NAND flash layout: one big partition
*/
#define MTDPARTS_DEFAULT "mtdparts=fc000000.flash:43776k(user)," \
"16m(rootfs)," \
"4m(kernel)," \
"256k(dtb)," \
"1m(u-boot);" \
"mpc5121.nand:-(data)"
#if defined(CONFIG_CMD_IDE) || defined(CONFIG_CMD_EXT2)
#define CONFIG_DOS_PARTITION
#define CONFIG_MAC_PARTITION
#define CONFIG_ISO_PARTITION
...
...
@@ -476,9 +506,9 @@
"fdt_addr_r=880000\0" \
"ramdisk_addr_r=900000\0" \
"u-boot_addr=FFF00000\0" \
"kernel_addr=FFC
4
0000\0" \
"kernel_addr=FF
A
C0000\0" \
"fdt_addr=FFEC0000\0" \
"ramdisk_addr=F
C04
0000\0" \
"ramdisk_addr=F
EAC
0000\0" \
"ramdiskfile=mpc5121ads/uRamdisk\0" \
"u-boot=mpc5121ads/u-boot.bin\0" \
"bootfile=mpc5121ads/uImage\0" \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment