[PATCH 06/12] ARM omap4: panda board support

Marc Kleine-Budde mkl at pengutronix.de
Tue Apr 12 04:18:07 EDT 2011


On 04/11/2011 04:39 PM, Sascha Hauer wrote:
> This patch adds support for the TI omap4 panda board.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/Makefile                |    1 +
>  arch/arm/boards/panda/Makefile   |    1 +
>  arch/arm/boards/panda/board.c    |  230 ++++++++++++++++++++++++++++++++++
>  arch/arm/boards/panda/config.h   |    1 +
>  arch/arm/boards/panda/env/config |   45 +++++++
>  arch/arm/boards/panda/lowlevel.c |  121 ++++++++++++++++++
>  arch/arm/boards/panda/mux.c      |  257 ++++++++++++++++++++++++++++++++++++++
>  arch/arm/mach-omap/Kconfig       |    8 ++
>  8 files changed, 664 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/boards/panda/Makefile
>  create mode 100644 arch/arm/boards/panda/board.c
>  create mode 100644 arch/arm/boards/panda/config.h
>  create mode 100644 arch/arm/boards/panda/env/config
>  create mode 100644 arch/arm/boards/panda/lowlevel.c
>  create mode 100644 arch/arm/boards/panda/mux.c
> 

[...]

> diff --git a/arch/arm/boards/panda/env/config b/arch/arm/boards/panda/env/config
> new file mode 100644
> index 0000000..5c65d21
> --- /dev/null
> +++ b/arch/arm/boards/panda/env/config
> @@ -0,0 +1,45 @@
> +#!/bin/sh
> +
> +machine=panda
> +user=
> +
> +# use 'dhcp' to do dhcp in barebox and in kernel
> +# use 'none' if you want to skip kernel ip autoconfiguration
> +ip=dhcp
> +
> +# or set your networking parameters here
> +#eth0.ipaddr=a.b.c.d
> +#eth0.netmask=a.b.c.d
> +#eth0.gateway=a.b.c.d
> +#eth0.serverip=a.b.c.d
> +
> +# can be either 'nfs', 'tftp', 'nor' or 'nand'
> +kernel_loc=tftp
> +# can be either 'net', 'nor', 'nand' or 'initrd'
> +rootfs_loc=net
> +
> +# The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo
> +kernelimage_type=zimage
> +kernelimage=zImage-$machine
> +#kernelimage_type=uimage
> +#kernelimage=uImage-$machine
> +#kernelimage_type=raw
> +#kernelimage=Image-$machine
> +#kernelimage_type=raw_lzo
> +#kernelimage=Image-$machine.lzo
                      ^^^^^^^^^^^^

${machine}.lzo

> +
> +if [ -n $user ]; then
> +	kernelimage="$user"-"$kernelimage"
> +	nfsroot="$eth0.serverip:/home/$user/nfsroot/$machine"
> +	rootfsimage="$user"-"$rootfsimage"
> +else
> +	nfsroot="$eth0.serverip:/path/to/nfs/root"
> +fi
> +
> +autoboot_timeout=3
> +
> +bootargs="console=ttyO2,115200"
> +
> +# set a fancy prompt (if support is compiled in)
> +PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
> +

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20110412/4a787901/attachment.sig>


More information about the barebox mailing list