Hi Magnus, On Wed, Aug 6, 2008 at 5:19 AM, Magnus Lilja <[EMAIL PROTECTED]> wrote: > Add support for NAND and ethernet on the Freescale i.MX31 PDK (a.k.a. > 3DS) board. > > Booting from NAND is not supported yet so U-boot relies on some other > initial boot loader to set up SDRAM and clocks and copying U-boot to SDRAM. > > Signed-off-by: Magnus Lilja <[EMAIL PROTECTED]> > --- <snip> > +#define CONFIG_NETMASK 255.255.255.0 > +#define CONFIG_IPADDR 192.168.23.168 > +#define CONFIG_SERVERIP 192.168.23.2 Please remove default network parms > + > +#define CONFIG_EXTRA_ENV_SETTINGS > \ > + "bootargs_base=setenv bootargs console=ttymxc0,115200\0" \ > + "bootargs_nfs=setenv bootargs $(bootargs) root=/dev/nfs " \ > + "ip=dhcp nfsroot=$(serverip):$(nfsrootfs),v3,tcp\0" \ > + "bootcmd=run bootcmd_net\0" \ > + "bootcmd_net=run bootargs_base bootargs_mtd bootargs_nfs; " \ > + "tftpboot 0x80000000 uImage-mx31; bootm\0" > + > +#define CONFIG_DRIVER_SMC911X 1 > +#define CONFIG_DRIVER_SMC911X_BASE CS5_BASE > +#define CONFIG_DRIVER_SMC911X_32_BIT 1 > + > +/* > + * Miscellaneous configurable options > + */ > +#define CFG_LONGHELP /* undef to save memory */ > +#define CFG_PROMPT "uboot> " > +#define CFG_CBSIZE 256 /* Console I/O Buffer Size */ > +/* Print Buffer Size */ > +#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) > +#define CFG_MAXARGS 16 /* max number of command args */ > +#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */ > + > +#define CFG_MEMTEST_START PHYS_SDRAM_1 /* memtest works on */ > +#define CFG_MEMTEST_END 0x10000 > + > +#undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */ > + > +#define CFG_LOAD_ADDR 0x81000000 /* default load address */ > + > +#define CFG_HZ CONFIG_MX31_CLK32 > + > +#define CONFIG_CMDLINE_EDITING 1 > + > +#undef CONFIG_CMD_IMLS > + > +/*----------------------------------------------------------------------- > + * Stack sizes > + * > + * The stack sizes are set up in start.S using the settings below > + */ > +#define CONFIG_STACKSIZE (128 * 1024) /* regular stack */ > + > +/*----------------------------------------------------------------------- > + * Physical Memory Map > + */ > +#define CONFIG_NR_DRAM_BANKS 1 > +#define PHYS_SDRAM_1 CSD0_BASE > +#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024) > + > +/*----------------------------------------------------------------------- > + * FLASH and environment organization > + */ > +/* No NOR flash present */ > +#define CFG_NO_FLASH 1 > + > +/* > + * NAND flash > + */ > + > +#define NAND_MAX_CHIPS 1 > +#define CFG_MAX_NAND_DEVICE 1 > +#define CFG_NAND_BASE 0x40000000 > + > +/* > + * Place U-boot environment right after the U-boot code. > + */ > +#define CFG_ENV_IS_IN_NAND 1 > +#define CFG_ENV_OFFSET 0x40000 > +/* CFG_ENV_SIZE has to be a multiple of the NAND block size */ > +#define CFG_ENV_SIZE (128 * 1024) > + > +/* > + * JFFS2 partitions > + */ > +#undef CONFIG_JFFS2_CMDLINE > +#define CONFIG_JFFS2_DEV "nand0" > + > +#endif /* __CONFIG_H */ > + > -- > 1.5.2.4 > regards, Ben
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users