[U-Boot] [PATCH-ARM] Add support for Embest SBC2440-II Board

Ben Warren biggerbadderben at gmail.com
Tue May 26 06:13:04 CEST 2009


Hi Kevin,

kevin.morfitt at fearnside-systems.co.uk wrote:
> Implementation based on the existing u-boot support for S3C2410-based boards. u-boot programmed into NOR flash.
>
> Tested on an SBC2440-II Board using tftp to copy the files from a server and programming them into NAND flash.
>
> MAKEALL used to build all LIST_ARM9 targets only - no other architectures built as the changes only affect ARM9-based boards.
>
> Signed-off-by: Kevin Morfitt <kevin.morfitt at fearnside-systems.co.uk>
>   
<snip>
> --- /dev/null
> +++ b/include/configs/sbc2440ii.h
> @@ -0,0 +1,252 @@
> +/*
> + * (C) Copyright 2002
> + * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
> + * Marius Groeger <mgroeger at sysgo.de>
> + * Gary Jennejohn <gj at denx.de>
> + * David Mueller <d.mueller at elsoft.ch>
> + *
> + * Modified for the friendly-arm SBC-2410X by
> + * (C) Copyright 2005
> + * JinHua Luo, GuangDong Linux Center, <luo.jinhua at gd-linux.com>
> + *
> + * Modified for the Embest SBC2440-II by
> + * (C) Copyright 2009
> + * Kevin Morfitt, Fearnside Systems Ltd, <kevin.morfitt at fearnside-systems.co.uk>
> + *
> + * Configuation settings for the friendly-arm SBC-2410X board.
> + *
> + * See file CREDITS for list of people who contributed to this
> + * project.
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#ifndef __CONFIG_H
> +#define __CONFIG_H
> +
> +
> +#define CONFIG_IDENT_STRING	" for Embest SBC2440-II"
> +
> +/*
> + * If we are developing, we might want to start armboot from ram
> + * so we MUST NOT initialize critical regs like mem-timing ...
> + */
> +#undef CONFIG_SKIP_LOWLEVEL_INIT	/* undef for developing */
> +
> +/*
> + * High Level Configuration Options
> + * (easy to change)
> + */
> +#define CONFIG_ARM920T		1	/* This is an ARM920T Core	*/
> +#define CONFIG_S3C2440		1	/* in a SAMSUNG S3C2440 SoC     */
> +#define CONFIG_SBC2440II	1	/* on an Embest SBC-2440-II Board  */
> +
> +/*
> + * input clock of PLL - the SBC2440-II has 12MHz input clock
> + */
> +#define CONFIG_SYS_CLK_FREQ	12000000
> +
> +
> +#define USE_920T_MMU		1
> +#undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff */
> +
> +/*
> + * Size of malloc() pool
> + */
> +#define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + 128*1024)
> +/*
> + * size in bytes reserved for initial data
> + */
> +#define CONFIG_SYS_GBL_DATA_SIZE	128
> +
> +/*
> + * Hardware drivers
> + */
> +#define CONFIG_DRIVER_CS8900	1	/* we have a CS8900 on-board */
> +#define CS8900_BASE		0x19000300
> +#define CS8900_BUS16		1 /* the Linux driver does accesses as shorts */
> +
> +/*
> + * select serial console configuration
> + */
> +#define CONFIG_S3C24X0_SERIAL
> +#define CONFIG_SERIAL1          1	/* we use SERIAL 1 on SBC2440-II */
> +
> +/************************************************************
> + * RTC
> + ************************************************************/
> +#define CONFIG_RTC_S3C24X0	1
> +
> +/* allow to overwrite serial and ethaddr */
> +#define CONFIG_ENV_OVERWRITE
> +
> +#define CONFIG_BAUDRATE		115200
> +
> +
> +/*
> + * BOOTP options
> + */
> +#define CONFIG_BOOTP_BOOTFILESIZE
> +#define CONFIG_BOOTP_BOOTPATH
> +#define CONFIG_BOOTP_GATEWAY
> +#define CONFIG_BOOTP_HOSTNAME
> +
> +
> +/*
> + * Command line configuration.
> + */
> +#include <config_cmd_default.h>
> +
> +#define CONFIG_CMD_ASKENV
> +#define CONFIG_CMD_CACHE
> +#define CONFIG_CMD_DATE
> +#define CONFIG_CMD_ELF
> +
> +#define CONFIG_CMD_PING
> +#define CONFIG_CMD_DHCP
> +#define CONFIG_CMD_NAND
> +#define CONFIG_JFFS2_NAND
> +#define CONFIG_CMD_MTDPARTS
> +#define CONFIG_CMD_JFFS2
> +#define CONFIG_JFFS2_CMDLINE
> +#define MTDIDS_DEFAULT		"nand0=sbc2440-II-nand"
> +#define MTDPARTS_DEFAULT \
> +	"mtdparts=sbc2440-II-nand:2m(kernel),62m(rootfs)"
> +#define CONFIG_EXTRA_ENV_SETTINGS	"autostart=yes"
> +
> +#define CONFIG_BOOTDELAY		3
> +#define CONFIG_BOOTARGS \
> +"noinitrd root=/dev/mtdblock1 rootfstype=jffs2 init=/linuxrc console=ttySAC0"
> +#define CONFIG_ETHADDR			08:00:3e:26:0a:5b
> +#define CONFIG_NETMASK			255.255.255.0
> +#define CONFIG_IPADDR			192.168.0.69
> +#define CONFIG_GATEWAYIP		192.168.0.1
> +#define CONFIG_SERVERIP			192.168.0.70
>   
Please remove all of these network-related parameters.
 <snip>

regards,
Ben


More information about the U-Boot mailing list