[PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

Doug Brainard dbrainard at brainardinsight.com
Tue Feb 10 20:02:46 PST 2015


Sorry, this was more me not understanding "git send-email" the first
time and how to keep it only sending the latest commit.

Doug


On Tue, Feb 10, 2015 at 6:30 PM, Bo Shen <voice.shen at atmel.com> wrote:
> Hi Doug Brainard,
>
> On 02/10/2015 10:28 PM, Doug Brainard wrote:
>>
>> ---
>>   arch/arm/boards/sama5d4ek/env/config | 14 +++++++-------
>>   1 file changed, 7 insertions(+), 7 deletions(-)
>
>
> As this file will be totally discard in patch 2/2. So, I think no need to
> add this patch. And also it change the default boot setting to Android only.
>
>
>> diff --git a/arch/arm/boards/sama5d4ek/env/config
>> b/arch/arm/boards/sama5d4ek/env/config
>> index 1007345..ee86c07 100644
>> --- a/arch/arm/boards/sama5d4ek/env/config
>> +++ b/arch/arm/boards/sama5d4ek/env/config
>> @@ -11,16 +11,16 @@ ip=dhcp
>>   #eth0.serverip=a.b.c.d
>>
>>   # can be either 'nfs', 'tftp', 'nor' or 'nand'
>> -kernel_loc=nfs
>> +kernel_loc=nand
>>   # can be either 'net', 'nor', 'nand' or 'initrd'
>> -rootfs_loc=net
>> +rootfs_loc=nand
>>   # can be either 'nfs', 'tftp', 'nand' or empty
>> -oftree_loc=nfs
>> +oftree_loc=nand
>>
>>   # can be either 'jffs2' or 'ubifs'
>>   rootfs_type=ubifs
>>   rootfsimage=root.$rootfs_type
>> -ubiroot=rootfs
>> +ubiroot=system
>>
>>   # The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo
>>   kernelimage=zImage
>> @@ -29,14 +29,14 @@ kernelimage=zImage
>>   #kernelimage=Image.lzo
>>
>>   nand_device=atmel_nand
>>
>> -nand_parts="256k(at91bootstrap),512k(barebox)ro,256k(bareboxenv),256k(bareboxenv2),256k(spare),512k(oftree),6M(kernel),-(rootfs)"
>> -rootfs_mtdblock_nand=7
>>
>> +nand_parts="256k(at91bootstrap),512k(barebox)ro,256k(bareboxenv),256k(bareboxenv2),256k(spare),512k(oftree),6M(kernel),8M(recovery),176M(system),304M(userdata),-(cache)"
>> +rootfs_mtdblock_nand=10
>>
>>
>> m25p80_parts="64k(bootstrap),384k(barebox),256k(bareboxenv),256k(bareboxenv2),128k(oftree),-(updater)"
>>
>>   autoboot_timeout=3
>>
>> -bootargs="console=ttyS0,115200"
>> +bootargs="console=ttyS0,115200 ubi.mtd=8 ubi.mtd=9 init=/init
>> androidboot.hardware=sama5-pda androidboot.lcd=wvga"
>>
>>   # set a fancy prompt (if support is compiled in)
>>   PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m\n# "
>>
>
> Best Regards,
> Bo Shen



More information about the barebox mailing list