[PATCH] pcm038: increase size of barebox partition

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 15 15:55:27 EDT 2012


On Thu, Mar 15, 2012 at 01:46:46PM +0100, Teresa Gámez wrote:
> The image built with pcm038_defconfig is >256k so increase
> the size of the barebox partition.
> 

Applied, thanks.

Sascha

> Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
> ---
>  arch/arm/boards/pcm038/env/config |    5 +++--
>  arch/arm/boards/pcm038/pcm038.c   |   12 ++++++++----
>  2 files changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/boards/pcm038/env/config b/arch/arm/boards/pcm038/env/config
> index eb0f9c1..b1a5f42 100644
> --- a/arch/arm/boards/pcm038/env/config
> +++ b/arch/arm/boards/pcm038/env/config
> @@ -40,11 +40,12 @@ autoboot_timeout=3
>  
>  bootargs="console=ttymxc0,115200"
>  
> -nor_parts="256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)"
> +nor_parts="512k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)"
>  rootfs_mtdblock_nor=3
>  
> -nand_parts="256k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)"
> +nand_parts="512k(barebox)ro,128k(bareboxenv),2M(kernel),-(root)"
>  rootfs_mtdblock_nand=7
> +nand_device="mxc_nand"
>  
>  # set a fancy prompt (if support is compiled in)
>  PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
> diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c
> index 8dd6521..58dacae 100644
> --- a/arch/arm/boards/pcm038/pcm038.c
> +++ b/arch/arm/boards/pcm038/pcm038.c
> @@ -274,16 +274,20 @@ static int pcm038_devices_init(void)
>  	case GPCR_BOOT_16BIT_NAND_2k:
>  	case GPCR_BOOT_16BIT_NAND_512:
>  	case GPCR_BOOT_8BIT_NAND_512:
> -		devfs_add_partition("nand0", 0x00000, 0x40000, PARTITION_FIXED, "self_raw");
> +		devfs_add_partition("nand0", 0x00000, 0x80000,
> +					PARTITION_FIXED, "self_raw");
>  		dev_add_bb_dev("self_raw", "self0");
>  
> -		devfs_add_partition("nand0", 0x40000, 0x20000, PARTITION_FIXED, "env_raw");
> +		devfs_add_partition("nand0", 0x80000, 0x100000,
> +					PARTITION_FIXED, "env_raw");
>  		dev_add_bb_dev("env_raw", "env0");
>  		envdev = "NAND";
>  		break;
>  	default:
> -		devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0");
> -		devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0");
> +		devfs_add_partition("nor0", 0x00000, 0x80000,
> +					PARTITION_FIXED, "self0");
> +		devfs_add_partition("nor0", 0x80000, 0x100000,
> +					PARTITION_FIXED, "env0");
>  		protect_file("/dev/env0", 1);
>  
>  		envdev = "NOR";
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list