Re: [linux-sunxi] [PATCH 4/4] sun5i board config: fix up default boot commands

2014-01-12 Thread Luc Verhaegen
On Sun, Jan 12, 2014 at 04:58:48PM +0100, Luc Verhaegen wrote:
> Ok.
> 
> * http://linux-sunxi.org/Android pulls in 
> https://github.com/matson-hall/manifest.git which makes no mention of 
> u-boot-sunxi. And i've looked in the manifests in the branches.
> 
> * http://linux-sunxi.org/A20-Cubieboard/Building_your_own_Android_image
> is just a 4GB tarball, so it pulls in nothing.
> 
> * http://linux-sunxi.org/Building_Android_TV_image uses 
> https://github.com/matson-hall/manifest which again makes no mention of 
> u-boot-sunxi or u-boot. And i have looked in the manifests in the 
> branches.

According to Turl, he pretty much is the only user of 
u-boot-sunxi/lichee-dev and android. Everyone else seems to just use the 
allwinner sdk directly.

He suggested adding a define CONFIG_CMD_ANDROID or something, and some 
new board targets which have _android appended, which imho is a very 
good solution for this.

But i cannot go and waste another X days on asking questions and 
figuring out how to build and install android and put it on NAND, just 
to test this. I have been on enough of a tangent the last few weeks 
already, and the RecentChanges page on linux-sunxi.org should speak for 
itself.

The above patch is tested, and is now fully documented in 
http://linux-sunxi.org/Installing_to_NAND#Booting, and it will help out 
anyone who wants to install a standard linux to NAND.

Turl is the only user of u-boot-sunxi/lichee-dev on android, his 
workflow is not documented, and he only very rarely updates u-boot for 
nand for android. Imho, whenever he gets round to updating his u-boot 
again, or when he gets a new device, he should implement the _android 
targets.

My A13 tablet with a full linux on NAND is not going anywhere and the 
result can be tested easily. Failing that, there is a nice detailed 
howto there for how to test this on a full linux. It should take anyone 
who has worked through the manual build howto before an hour max.

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] [PATCH 4/4] sun5i board config: fix up default boot commands

2014-01-12 Thread Luc Verhaegen
On Sun, Jan 12, 2014 at 04:40:18PM +0100, Michal Suchanek wrote:
> On 12 January 2014 15:51, Luc Verhaegen  wrote:
> >
> > Which BSPs? I cannot find anything related on our wiki. TBH, if such
> > users of the lichee-dev u-boot branch exist and they haven't bothered
> > putting anything in our wiki, why should we bother with not breaking
> > them?
> >
> > Luc Verhaegen.
> 
> There are at least 3 android tutorials on sunxi wiki. I did not manage
> to build a working image with any of them but you can't say there
> aren't any. And since they are going to be installed on NAND they need
> the lychee u-boot, right?

Ok.

* http://linux-sunxi.org/Android pulls in 
https://github.com/matson-hall/manifest.git which makes no mention of 
u-boot-sunxi. And i've looked in the manifests in the branches.

* http://linux-sunxi.org/A20-Cubieboard/Building_your_own_Android_image
is just a 4GB tarball, so it pulls in nothing.

* http://linux-sunxi.org/Building_Android_TV_image uses 
https://github.com/matson-hall/manifest which again makes no mention of 
u-boot-sunxi or u-boot. And i have looked in the manifests in the 
branches.

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] [PATCH 4/4] sun5i board config: fix up default boot commands

2014-01-12 Thread Michal Suchanek
On 12 January 2014 15:51, Luc Verhaegen  wrote:
> On Sun, Jan 12, 2014 at 03:36:51PM +0100, Michal Suchanek wrote:
>> On 9 January 2014 21:18, Luc Verhaegen  wrote:
>> > They should now be actually useful, and the howtos will be updated.
>> >
>> > Also, it might be a good idea to add this to the sun4i config as well.
>> >
>> > Signed-off-by: Luc Verhaegen 
>> > ---
>> >  include/configs/sun5i_a13.h |   16 +---
>> >  1 files changed, 9 insertions(+), 7 deletions(-)
>> >
>> > diff --git a/include/configs/sun5i_a13.h b/include/configs/sun5i_a13.h
>> > index 70c2f0e..06780c5 100644
>> > --- a/include/configs/sun5i_a13.h
>> > +++ b/include/configs/sun5i_a13.h
>> > @@ -182,18 +182,20 @@
>> > "bootdelay=3\0" \
>> > "bootcmd=run setargs boot_normal\0" \
>> > "console=ttyS0,115200\0" \
>> > -   "nand_root=/dev/nandd\0" \
>> > -   "mmc_root=/dev/mmcblk0p4\0" \
>> > +   "nand_root=/dev/nandb\0" \
>> > "init=/init\0" \
>> > "loglevel=8\0" \
>> > -   "setargs=setenv bootargs console=${console} root=${nand_root}" \
>> > +   "setargs=setenv bootargs console=${console} root=${nand_root} 
>> > rootwait" \
>> > "init=${init} loglevel=${loglevel}\0" \
>> > -   "boot_normal=nand read 5000 boot; boota 5000\0" \
>> > -   "boot_recovery=nand read 5000 recovery; boota 5000\0" \
>> > -   "boot_fastboot=fastboot\0"
>> > +   "boot_normal=fatload nand 0 0x4300 script.bin;fatload nand 0 
>> > 0x4800 linux/uImage;bootm 0x4800\0"
>> > +
>> >
>> >  #define CONFIG_BOOTDELAY   1
>> > -#define CONFIG_BOOTCOMMAND "nand read 5000 boot;boota 5000"
>> > +#define CONFIG_BOOTCOMMAND \
>> > +   "fatload nand 0 0x4300 script.bin;" \
>> > +   "fatload nand 0 0x4800 linux/uImage;" \
>> > +   "bootm 0x4800"
>> > +
>> >  #define CONFIG_SYS_BOOT_GET_CMDLINE
>> >  #define CONFIG_AUTO_COMPLETE
>> >
>> > --
>>
>> Did you check that the Android BSPs? The default seems to be geared
>> towards Android and changing it might further break the already badly
>> broken Android kits.
>
> Which BSPs? I cannot find anything related on our wiki. TBH, if such
> users of the lichee-dev u-boot branch exist and they haven't bothered
> putting anything in our wiki, why should we bother with not breaking
> them?
>
> Luc Verhaegen.

There are at least 3 android tutorials on sunxi wiki. I did not manage
to build a working image with any of them but you can't say there
aren't any. And since they are going to be installed on NAND they need
the lychee u-boot, right?

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] [PATCH 4/4] sun5i board config: fix up default boot commands

2014-01-12 Thread Luc Verhaegen
On Sun, Jan 12, 2014 at 03:36:51PM +0100, Michal Suchanek wrote:
> On 9 January 2014 21:18, Luc Verhaegen  wrote:
> > They should now be actually useful, and the howtos will be updated.
> >
> > Also, it might be a good idea to add this to the sun4i config as well.
> >
> > Signed-off-by: Luc Verhaegen 
> > ---
> >  include/configs/sun5i_a13.h |   16 +---
> >  1 files changed, 9 insertions(+), 7 deletions(-)
> >
> > diff --git a/include/configs/sun5i_a13.h b/include/configs/sun5i_a13.h
> > index 70c2f0e..06780c5 100644
> > --- a/include/configs/sun5i_a13.h
> > +++ b/include/configs/sun5i_a13.h
> > @@ -182,18 +182,20 @@
> > "bootdelay=3\0" \
> > "bootcmd=run setargs boot_normal\0" \
> > "console=ttyS0,115200\0" \
> > -   "nand_root=/dev/nandd\0" \
> > -   "mmc_root=/dev/mmcblk0p4\0" \
> > +   "nand_root=/dev/nandb\0" \
> > "init=/init\0" \
> > "loglevel=8\0" \
> > -   "setargs=setenv bootargs console=${console} root=${nand_root}" \
> > +   "setargs=setenv bootargs console=${console} root=${nand_root} 
> > rootwait" \
> > "init=${init} loglevel=${loglevel}\0" \
> > -   "boot_normal=nand read 5000 boot; boota 5000\0" \
> > -   "boot_recovery=nand read 5000 recovery; boota 5000\0" \
> > -   "boot_fastboot=fastboot\0"
> > +   "boot_normal=fatload nand 0 0x4300 script.bin;fatload nand 0 
> > 0x4800 linux/uImage;bootm 0x4800\0"
> > +
> >
> >  #define CONFIG_BOOTDELAY   1
> > -#define CONFIG_BOOTCOMMAND "nand read 5000 boot;boota 5000"
> > +#define CONFIG_BOOTCOMMAND \
> > +   "fatload nand 0 0x4300 script.bin;" \
> > +   "fatload nand 0 0x4800 linux/uImage;" \
> > +   "bootm 0x4800"
> > +
> >  #define CONFIG_SYS_BOOT_GET_CMDLINE
> >  #define CONFIG_AUTO_COMPLETE
> >
> > --
> 
> Did you check that the Android BSPs? The default seems to be geared
> towards Android and changing it might further break the already badly
> broken Android kits.

Which BSPs? I cannot find anything related on our wiki. TBH, if such 
users of the lichee-dev u-boot branch exist and they haven't bothered 
putting anything in our wiki, why should we bother with not breaking 
them?

Luc Verhaegen.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [linux-sunxi] [PATCH 4/4] sun5i board config: fix up default boot commands

2014-01-12 Thread Michal Suchanek
On 9 January 2014 21:18, Luc Verhaegen  wrote:
> They should now be actually useful, and the howtos will be updated.
>
> Also, it might be a good idea to add this to the sun4i config as well.
>
> Signed-off-by: Luc Verhaegen 
> ---
>  include/configs/sun5i_a13.h |   16 +---
>  1 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/include/configs/sun5i_a13.h b/include/configs/sun5i_a13.h
> index 70c2f0e..06780c5 100644
> --- a/include/configs/sun5i_a13.h
> +++ b/include/configs/sun5i_a13.h
> @@ -182,18 +182,20 @@
> "bootdelay=3\0" \
> "bootcmd=run setargs boot_normal\0" \
> "console=ttyS0,115200\0" \
> -   "nand_root=/dev/nandd\0" \
> -   "mmc_root=/dev/mmcblk0p4\0" \
> +   "nand_root=/dev/nandb\0" \
> "init=/init\0" \
> "loglevel=8\0" \
> -   "setargs=setenv bootargs console=${console} root=${nand_root}" \
> +   "setargs=setenv bootargs console=${console} root=${nand_root} 
> rootwait" \
> "init=${init} loglevel=${loglevel}\0" \
> -   "boot_normal=nand read 5000 boot; boota 5000\0" \
> -   "boot_recovery=nand read 5000 recovery; boota 5000\0" \
> -   "boot_fastboot=fastboot\0"
> +   "boot_normal=fatload nand 0 0x4300 script.bin;fatload nand 0 
> 0x4800 linux/uImage;bootm 0x4800\0"
> +
>
>  #define CONFIG_BOOTDELAY   1
> -#define CONFIG_BOOTCOMMAND "nand read 5000 boot;boota 5000"
> +#define CONFIG_BOOTCOMMAND \
> +   "fatload nand 0 0x4300 script.bin;" \
> +   "fatload nand 0 0x4800 linux/uImage;" \
> +   "bootm 0x4800"
> +
>  #define CONFIG_SYS_BOOT_GET_CMDLINE
>  #define CONFIG_AUTO_COMPLETE
>
> --

Did you check that the Android BSPs? The default seems to be geared
towards Android and changing it might further break the already badly
broken Android kits.

Thanks

Michal

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.