[PATCH 08/12] ARM omap4: Add pcm049 board support

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


On 04/11/2011 04:39 PM, Sascha Hauer wrote:
> This patch adds support for Phytecs pcm049 board
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  arch/arm/Makefile                             |    1 +
>  arch/arm/boards/pcm049/Makefile               |    1 +
>  arch/arm/boards/pcm049/board.c                |  200 +++++++++++++++++++
>  arch/arm/boards/pcm049/config.h               |    1 +
>  arch/arm/boards/pcm049/env/bin/nand_bootstrap |   31 +++
>  arch/arm/boards/pcm049/env/config             |   53 +++++
>  arch/arm/boards/pcm049/lowlevel.c             |  127 ++++++++++++
>  arch/arm/boards/pcm049/mux.c                  |  254 +++++++++++++++++++++++++
>  arch/arm/mach-omap/Kconfig                    |   11 +
>  9 files changed, 679 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/boards/pcm049/Makefile
>  create mode 100644 arch/arm/boards/pcm049/board.c
>  create mode 100644 arch/arm/boards/pcm049/config.h
>  create mode 100644 arch/arm/boards/pcm049/env/bin/nand_bootstrap
>  create mode 100644 arch/arm/boards/pcm049/env/config
>  create mode 100644 arch/arm/boards/pcm049/lowlevel.c
>  create mode 100644 arch/arm/boards/pcm049/mux.c
> 

[...]

> new file mode 100644
> index 0000000..e9258e1
> --- /dev/null
> +++ b/arch/arm/boards/pcm049/env/config
> @@ -0,0 +1,53 @@
> +#!/bin/sh
> +
> +machine=pcm049
> +eth0.serverip=
> +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
> +
> +# can be either 'jffs2' or 'ubifs'
> +rootfs_type=ubifs
> +rootfsimage=root-$machine.$rootfs_type
                    ^^^^^^^^^^^^^^^^^^^^^

you need to quote here:

${machine}.$rootfs_type

> +
> +# 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

dito

> +
> +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"
> +
> +nand_parts="128k(xload)ro,256k(barebox),128k(bareboxenv),2M(kernel),-(root)"
> +rootfs_mtdblock_nand=4
> +
> +# 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/08714ff5/attachment.sig>


More information about the barebox mailing list