Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-11 Thread Neal Peacock
Answers in line.  Thanks
On Mar 9, 2014 11:34 AM, "hunter hu"  wrote:
>
> Hi Neal,
>
> Thanks for that.
>
> I have no idea about the magic signing value, I have 3 questions and
comments:
>
> 1> If I just use the original nandb.img which was dd out of the nand
itself, will that still be needed?

No but I think you will have to change at least one parameter.  I've got to
find my notes on it..

> 2> if I do create a magic signing value again, how would I do that?

Its in the tools directory of a linux-sunxi u-boot repo.

https://github.com/linux-sunxi/u-boot-sunxi/blob/sunxi/tools/mkenvimage.c

Again I've got some notes somewhere on how to use it.

> 3> would this why my previous lichee-dev u-boot.bin doesn't play well
with boot0/boot1? did I miss any magic value there?

There is a uboot signer in tools as well so maybe.  When booting from band
I stuck with the included Android u-boot.
>
> Thanks,
> -Hunter
>
>
> On Sunday, March 9, 2014 1:25:42 PM UTC-5, npeacock wrote:
>>
>> Hello,
>>
>> Seems like the structure was
>>
>> /dev/nandb < u-boot.env with magic signing value
>> /dev/nandc < the linux kernel, just dd copied on, make sure to clear
with zero in case yours its smaller
>> /dev/nandX < the root partition, which was defined in the u-boot.env, so
you could make it whatever you want, as long as it matches your env file.
If nandj is 5Gb then that is what I would use in my hacky approach.
>>
>> So is that more clear?  You'll need to put your linux kernel in nandc,
your adjusted uboot.env in nandb and your rootfs on a new partition on nandj
>>
>> I'll try to find the actual script and old images tonight.  I was having
a lot of trouble uploading large files and hadn't tried in awhile.
>>
>> Thanks.
>>
>> On 3/9/2014 11:07 AM, hunter hu wrote:
>>>
>>> Hi Neal,
>>>
>>> The link seems broken while I was trying to get the image: wget
http://pengpod.com/dl/images/pengpod1000-linaro-flashcard-2013.03.29.img.tar.gz
>>>
>>> However, I can set things up by following the same logic, but I need to
confirm one change, for nandb, what changes need to be made? I plan to edit
binary image out from my board, there are actually 2 entries for the
environment,
>>>
>>> one setup root=/dev/nandc
>>> the other setup root=/dev/nandd
>>>
>>> according to your notes, we will dd uImage into nandc, so say, if I
will use nandj (which is 5G in size) as the rootfs, should I change the
both nandc and nandd to nandj or just nandd to nandj?
>>>
>>> Thanks,
>>> -Hunter
>>>
>>> On Saturday, March 8, 2014 10:54:28 PM UTC-6, npeacock wrote:

 Here is a link for what I did on the PengPod where we used the
original u-boot from Android.
http://pengpod.com/pengwiki/index.php?title=Install_Linaro_to_the_internal_flash

 The only trick not listed was the u-boot environment had to be signed,
I can't remember the name of the tool but its in the u-boot repo.

 I think the first logo was displayed by boot1, before u-boot runs.


>
>
> Hi Timo,
>
> Thanks for the detailed answer to my questions, really appreciate
that.
>
> I have done the same thing, still I am stuck at the logo screen,
feels like there is something else is missing in my case.
>
> 1> I don't see any serial output from NAND boot, did you see anything
on the serial console if you were using serial output?
> 2> anyone knows if the logo has been displayed, does it imply that
u-boot.bin got loaded at all?
>
> I think in my case, the question is why u-boot.bin built from
sun5i_a13 with the CONFIG_BOOTCOMMAND modification doesn't print any output
at all?  in the common/main.c:
> 205 static inline int abortboot(int bootdelay)


>  206 {
>  207 int abort = 0;
>  208
>  209 #ifdef CONFIG_MENUPROMPT
>  210 printf(CONFIG_MENUPROMPT);
>  211 #else
>  212 printf("Hit any key to stop autoboot: %2d ", bootdelay);
>  213 #endif
>
> would always print "Hit any key to stop autoboot:", even if something
went wrong later? but I saw nothing from console, (UART1 that is I am using
and good with SD boot).
>
> Still baffled, :-(
>
> Regards,
> -Hunter
>
>
>
> On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote:
>>
>> Hi Patrick,
>>
>> > Looks to me like this is loading script.bin and uImage from nanda.
>>
>> thanks for pointing this out, you're of course right! nandb contains
>> my root filesystem, nanda is the boot partition.
>>
>> On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood 
wrote:
>> >
>> > Looks to me like this is loading script.bin and uImage from nanda.
>> >
>> > --
>> > You received this message because you are subscribed to a topic in
the Google Groups "linux-sunxi" group.
>> > To unsubscribe from this topic, visit
https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe.
>> > To unsubscribe from this group and all of its topics, send an
email to 

Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-09 Thread hunter hu
Hi Neal,

Thanks for that.

I have no idea about the magic signing value, I have 3 questions and 
comments:

1> If I just use the original nandb.img which was dd out of the nand 
itself, will that still be needed?
2> if I do create a magic signing value again, how would I do that?
3> would this why my previous lichee-dev u-boot.bin doesn't play well with 
boot0/boot1? did I miss any magic value there?

Thanks,
-Hunter

On Sunday, March 9, 2014 1:25:42 PM UTC-5, npeacock wrote:
>
>  Hello,
>
> Seems like the structure was 
>
> /dev/nandb < u-boot.env with magic signing value
> /dev/nandc < the linux kernel, just dd copied on, make sure to clear with 
> zero in case yours its smaller
> /dev/nandX < the root partition, which was defined in the u-boot.env, so 
> you could make it whatever you want, as long as it matches your env file.  
> If nandj is 5Gb then that is what I would use in my hacky approach.
>
> So is that more clear?  You'll need to put your linux kernel in nandc, 
> your adjusted uboot.env in nandb and your rootfs on a new partition on nandj
>
> I'll try to find the actual script and old images tonight.  I was having a 
> lot of trouble uploading large files and hadn't tried in awhile.
>
> Thanks.
>
> On 3/9/2014 11:07 AM, hunter hu wrote:
>  
> Hi Neal, 
>
>  The link seems broken while I was trying to get the image: wget 
> http://pengpod.com/dl/images/pengpod1000-linaro-flashcard-2013.03.29.img.tar.gz
>
>  However, I can set things up by following the same logic, but I need to 
> confirm one change, for nandb, what changes need to be made? I plan to edit 
> binary image out from my board, there are actually 2 entries for the 
> environment,
>
>  one setup root=/dev/nandc
> the other setup root=/dev/nandd
>
>  according to your notes, we will dd uImage into nandc, so say, if I will 
> use nandj (which is 5G in size) as the rootfs, should I change the both 
> nandc and nandd to nandj or just nandd to nandj?
>
>  Thanks,
> -Hunter
>
> On Saturday, March 8, 2014 10:54:28 PM UTC-6, npeacock wrote: 
>>
>>  Here is a link for what I did on the PengPod where we used the original 
>> u-boot from Android.  
>> http://pengpod.com/pengwiki/index.php?title=Install_Linaro_to_the_internal_flash
>>  
>>
>> The only trick not listed was the u-boot environment had to be signed, I 
>> can't remember the name of the tool but its in the u-boot repo.
>>
>> I think the first logo was displayed by boot1, before u-boot runs.
>>
>>
>>  
>>
>> Hi Timo, 
>>
>>  Thanks for the detailed answer to my questions, really appreciate that.
>>
>>  I have done the same thing, still I am stuck at the logo screen, feels 
>> like there is something else is missing in my case.
>>
>>  1> I don't see any serial output from NAND boot, did you see anything 
>> on the serial console if you were using serial output?
>> 2> anyone knows if the logo has been displayed, does it imply that 
>> u-boot.bin got loaded at all?
>>
>>I think in my case, the question is why u-boot.bin built from 
>> sun5i_a13 with the CONFIG_BOOTCOMMAND modification doesn't print any output 
>> at all?  in the common/main.c:
>>   205 static inline int abortboot(int bootdelay) 
>> 
>>   
>>  206 {
>>  207 int abort = 0;  
>>  208 
>>  209 #ifdef CONFIG_MENUPROMPT
>>  210 printf(CONFIG_MENUPROMPT);
>>  211 #else
>>  212 printf("Hit any key to stop autoboot: %2d ", bootdelay);
>>  213 #endif
>>  
>>  would always print "Hit any key to stop autoboot:", even if something 
>> went wrong later? but I saw nothing from console, (UART1 that is I am using 
>> and good with SD boot).
>>
>>  Still baffled, :-(
>>
>>  Regards,
>> -Hunter 
>>
>>  
>>
>> On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote: 
>>>
>>> Hi Patrick, 
>>>
>>> > Looks to me like this is loading script.bin and uImage from nanda. 
>>>
>>> thanks for pointing this out, you're of course right! nandb contains 
>>> my root filesystem, nanda is the boot partition. 
>>>
>>> On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood  
>>> wrote: 
>>> > 
>>> > Looks to me like this is loading script.bin and uImage from nanda. 
>>> > 
>>> > -- 
>>> > You received this message because you are subscribed to a topic in the 
>>> Google Groups "linux-sunxi" group. 
>>> > To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe. 
>>> > To unsubscribe from this group and all of its topics, send an email to 
>>> linux-sunxi...@googlegroups.com. 
>>> > For more options, visit https://groups.google.com/d/optout. 
>>>
>>  -- 
>> 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...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>   -- 
> You rece

Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-09 Thread Neal Peacock

Hello,

Seems like the structure was

/dev/nandb < u-boot.env with magic signing value
/dev/nandc < the linux kernel, just dd copied on, make sure to clear 
with zero in case yours its smaller
/dev/nandX < the root partition, which was defined in the u-boot.env, so 
you could make it whatever you want, as long as it matches your env 
file.  If nandj is 5Gb then that is what I would use in my hacky approach.


So is that more clear?  You'll need to put your linux kernel in nandc, 
your adjusted uboot.env in nandb and your rootfs on a new partition on nandj


I'll try to find the actual script and old images tonight.  I was having 
a lot of trouble uploading large files and hadn't tried in awhile.


Thanks.

On 3/9/2014 11:07 AM, hunter hu wrote:

Hi Neal,

The link seems broken while I was trying to get the image: wget 
http://pengpod.com/dl/images/pengpod1000-linaro-flashcard-2013.03.29.img.tar.gz


However, I can set things up by following the same logic, but I need 
to confirm one change, for nandb, what changes need to be made? I plan 
to edit binary image out from my board, there are actually 2 entries 
for the environment,


one setup root=/dev/nandc
the other setup root=/dev/nandd

according to your notes, we will dd uImage into nandc, so say, if I 
will use nandj (which is 5G in size) as the rootfs, should I change 
the both nandc and nandd to nandj or just nandd to nandj?


Thanks,
-Hunter

On Saturday, March 8, 2014 10:54:28 PM UTC-6, npeacock wrote:

Here is a link for what I did on the PengPod where we used the
original u-boot from Android.

http://pengpod.com/pengwiki/index.php?title=Install_Linaro_to_the_internal_flash




The only trick not listed was the u-boot environment had to be
signed, I can't remember the name of the tool but its in the
u-boot repo.

I think the first logo was displayed by boot1, before u-boot runs.





Hi Timo,

Thanks for the detailed answer to my questions, really appreciate
that.

I have done the same thing, still I am stuck at the logo screen,
feels like there is something else is missing in my case.

1> I don't see any serial output from NAND boot, did you see
anything on the serial console if you were using serial output?
2> anyone knows if the logo has been displayed, does it imply
that u-boot.bin got loaded at all?

I think in my case, the question is why u-boot.bin built from
sun5i_a13 with the CONFIG_BOOTCOMMAND modification doesn't print
any output at all?  in the common/main.c:
|
205 static inline int abortboot(int bootdelay)
 206 {
 207 int abort = 0;
 208
 209 #ifdef CONFIG_MENUPROMPT
 210 printf(CONFIG_MENUPROMPT);
 211 #else
 212 printf("Hit any key to stop autoboot: %2d ", bootdelay);
 213 #endif
|

would always print "Hit any key to stop autoboot:", even if
something went wrong later? but I saw nothing from console,
(UART1 that is I am using and good with SD boot).

Still baffled, :-(

Regards,
-Hunter



On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote:

Hi Patrick,

> Looks to me like this is loading script.bin and uImage from
nanda.

thanks for pointing this out, you're of course right! nandb
contains
my root filesystem, nanda is the boot partition.

On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood
 wrote:
>
> Looks to me like this is loading script.bin and uImage from
nanda.
>
> --
> You received this message because you are subscribed to a
topic in the Google Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe
.

> To unsubscribe from this group and all of its topics, send
an email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout
.

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout
.


--
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/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"li

Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-09 Thread hunter hu
Hi Neal,

The link seems broken while I was trying to get the image: wget 
http://pengpod.com/dl/images/pengpod1000-linaro-flashcard-2013.03.29.img.tar.gz

However, I can set things up by following the same logic, but I need to 
confirm one change, for nandb, what changes need to be made? I plan to edit 
binary image out from my board, there are actually 2 entries for the 
environment,

one setup root=/dev/nandc
the other setup root=/dev/nandd

according to your notes, we will dd uImage into nandc, so say, if I will 
use nandj (which is 5G in size) as the rootfs, should I change the both 
nandc and nandd to nandj or just nandd to nandj?

Thanks,
-Hunter

On Saturday, March 8, 2014 10:54:28 PM UTC-6, npeacock wrote:
>
>  Here is a link for what I did on the PengPod where we used the original 
> u-boot from Android.  
> http://pengpod.com/pengwiki/index.php?title=Install_Linaro_to_the_internal_flash
>  
>
> The only trick not listed was the u-boot environment had to be signed, I 
> can't remember the name of the tool but its in the u-boot repo.
>
> I think the first logo was displayed by boot1, before u-boot runs.
>
>
>  
>
> Hi Timo, 
>
>  Thanks for the detailed answer to my questions, really appreciate that.
>
>  I have done the same thing, still I am stuck at the logo screen, feels 
> like there is something else is missing in my case.
>
>  1> I don't see any serial output from NAND boot, did you see anything on 
> the serial console if you were using serial output?
> 2> anyone knows if the logo has been displayed, does it imply that 
> u-boot.bin got loaded at all?
>
>I think in my case, the question is why u-boot.bin built from 
> sun5i_a13 with the CONFIG_BOOTCOMMAND modification doesn't print any output 
> at all?  in the common/main.c:
>   205 static inline int abortboot(int bootdelay) 
> 
>   
>  206 {
>  207 int abort = 0;  
>  208 
>  209 #ifdef CONFIG_MENUPROMPT
>  210 printf(CONFIG_MENUPROMPT);
>  211 #else
>  212 printf("Hit any key to stop autoboot: %2d ", bootdelay);
>  213 #endif
>  
>  would always print "Hit any key to stop autoboot:", even if something 
> went wrong later? but I saw nothing from console, (UART1 that is I am using 
> and good with SD boot).
>
>  Still baffled, :-(
>
>  Regards,
> -Hunter 
>
>  
>
> On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote: 
>>
>> Hi Patrick, 
>>
>> > Looks to me like this is loading script.bin and uImage from nanda. 
>>
>> thanks for pointing this out, you're of course right! nandb contains 
>> my root filesystem, nanda is the boot partition. 
>>
>> On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood  
>> wrote: 
>> > 
>> > Looks to me like this is loading script.bin and uImage from nanda. 
>> > 
>> > -- 
>> > You received this message because you are subscribed to a topic in the 
>> Google Groups "linux-sunxi" group. 
>> > To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe. 
>> > To unsubscribe from this group and all of its topics, send an email to 
>> linux-sunxi...@googlegroups.com. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>  -- 
> 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...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
>  

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Neal Peacock
Here is a link for what I did on the PengPod where we used the original 
u-boot from Android. 
http://pengpod.com/pengwiki/index.php?title=Install_Linaro_to_the_internal_flash 



The only trick not listed was the u-boot environment had to be signed, I 
can't remember the name of the tool but its in the u-boot repo.


I think the first logo was displayed by boot1, before u-boot runs.





Hi Timo,

Thanks for the detailed answer to my questions, really appreciate that.

I have done the same thing, still I am stuck at the logo screen, feels 
like there is something else is missing in my case.


1> I don't see any serial output from NAND boot, did you see anything 
on the serial console if you were using serial output?
2> anyone knows if the logo has been displayed, does it imply that 
u-boot.bin got loaded at all?


I think in my case, the question is why u-boot.bin built from 
sun5i_a13 with the CONFIG_BOOTCOMMAND modification doesn't print any 
output at all?  in the common/main.c:

|
205 static inline int abortboot(int bootdelay)
 206 {
 207   int abort = 0;
 208
 209 #ifdef CONFIG_MENUPROMPT
 210   printf(CONFIG_MENUPROMPT);
 211 #else
 212   printf("Hit any key to stop autoboot: %2d ", bootdelay);
 213 #endif
|

would always print "Hit any key to stop autoboot:", even if something 
went wrong later? but I saw nothing from console, (UART1 that is I am 
using and good with SD boot).


Still baffled, :-(

Regards,
-Hunter



On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote:

Hi Patrick,

> Looks to me like this is loading script.bin and uImage from nanda.

thanks for pointing this out, you're of course right! nandb contains
my root filesystem, nanda is the boot partition.

On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood > wrote:
>
> Looks to me like this is loading script.bin and uImage from nanda.
>
> --
> You received this message because you are subscribed to a topic
in the Google Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe
.

> To unsubscribe from this group and all of its topics, send an
email to linux-sunxi...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout
.

--
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/d/optout.


--
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Patrick Wood
Oh, I see it is uart1. Did you build uboot to use uart1 for console?

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Patrick Wood
Is your serial debug port on uart0?

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread hunter hu
Hi Timo,

Thanks for the detailed answer to my questions, really appreciate that.

I have done the same thing, still I am stuck at the logo screen, feels like 
there is something else is missing in my case.

1> I don't see any serial output from NAND boot, did you see anything on 
the serial console if you were using serial output?
2> anyone knows if the logo has been displayed, does it imply that 
u-boot.bin got loaded at all?

I think in my case, the question is why u-boot.bin built from sun5i_a13 
with the CONFIG_BOOTCOMMAND modification doesn't print any output at all? 
 in the common/main.c:
205 static inline int abortboot(int bootdelay) 

  
 206 {
 207 int abort = 0;  
 208 
 209 #ifdef CONFIG_MENUPROMPT
 210 printf(CONFIG_MENUPROMPT);
 211 #else
 212 printf("Hit any key to stop autoboot: %2d ", bootdelay);
 213 #endif

would always print "Hit any key to stop autoboot:", even if something went 
wrong later? but I saw nothing from console, (UART1 that is I am using and 
good with SD boot).

Still baffled, :-(

Regards,
-Hunter 



On Saturday, March 8, 2014 1:07:44 PM UTC-6, Timo Schmiade wrote:
>
> Hi Patrick, 
>
> > Looks to me like this is loading script.bin and uImage from nanda. 
>
> thanks for pointing this out, you're of course right! nandb contains 
> my root filesystem, nanda is the boot partition. 
>
> On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood 
> > 
> wrote: 
> > 
> > Looks to me like this is loading script.bin and uImage from nanda. 
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> Google Groups "linux-sunxi" group. 
> > To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe. 
> > To unsubscribe from this group and all of its topics, send an email to 
> linux-sunxi...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Timo Schmiade
Hi Patrick,

> Looks to me like this is loading script.bin and uImage from nanda.

thanks for pointing this out, you're of course right! nandb contains
my root filesystem, nanda is the boot partition.

On Sat, Mar 8, 2014 at 3:24 PM, Patrick Wood  wrote:
>
> Looks to me like this is loading script.bin and uImage from nanda.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe.
> To unsubscribe from this group and all of its topics, send an email to 
> linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Patrick Wood
Looks to me like this is loading script.bin and uImage from nanda.

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-08 Thread Timo Schmiade
Hi Hunter,

> 1> which board did you build for your tablet?

make CROSS_COMPILE=arm-linux-gnueabihf- sun4i

> 2> what modifications have you made, you said with header modifications?

In the file include/configs/sun4i.h, I modified the CONFIG_BOOTCOMMANDdefine:

#define CONFIG_BOOTCOMMAND \
  "setenv bootargs "   \
"root=/dev/nandb " \
"console=ttyS0,115200 "\
"console=tty0 "\
"rootfstype=ext4 " \
"ro "  \
"quiet; "  \
  "fatload nand 0 0x4300 script.bin; " \
  "fatload nand 0 0x4800 uImage; " \
  "bootm 0x4800\0"

> 3> Anything regarding DRAM settings needed? we needed  a dram file in our
sunxi branch.

I didn't make any other modifications to u-boot. Please be aware that this
is a hobby project for me :)

> 4> where in the code does it indicate to configure where we put uImage
and script.bin?

Should be answered by 2, i.e. root directory of /dev/nandb in my case. I
think the approach of hard-coding the locations and devices into u-boot is
a bad one, but at the time I was investigating, it seemed to be the only
one that worked. Although I read there were efforts made to unify the
lichee-dev branch with its master.

Kind regards,

Timo

On Mon, Mar 3, 2014 at 6:11 AM, hunter hu  wrote:
>
> Hi Timo,
> I had the same issue I could not make the NAND boot work. With the
u-boot.bin from lichee-dev branch, my tablet stuck at the logo screen:
> 1> which board did you build for your tablet?
> 2> what modifications have you made, you said with header modifications?
> 3> Anything regarding DRAM settings needed? we needed  a dram file in our
sunxi branch.
> 4> where in the code does it indicate to configure where we put uImage
and script.bin?
> Great thanks in advance,
> -Hunter
>
> On Tuesday, September 24, 2013 4:34:55 PM UTC-5, timo.s...@gmail.comwrote:
>>
>> Finally made it!
>>
>> While looking at the modifications I made for u-boot, I realized that
script.bin and uImage belong to the same folder, i.e. the root folder of
the bootloader partition. Moving uImage, the system now boots perfectly
fine.
>>
>> Thanks for all your input!
>>
>> Timo
>
> --
> You received this message because you are subscribed to a topic in the
Google Groups "linux-sunxi" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/linux-sunxi/omgs3skJYDI/unsubscribe.
> To unsubscribe from this group and all of its topics, send an email to
linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/d/optout.


Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-02 Thread hunter hu
Hi Timo,

I had the same issue I could not make the NAND boot work. With the 
u-boot.bin from lichee-dev branch, my tablet stuck at the logo screen:

1> which board did you build for your tablet?
2> what modifications have you made, you said with header modifications?
3> Anything regarding DRAM settings needed? we needed  a dram file in our 
sunxi branch.
4> where in the code does it indicate to configure where we put uImage and 
script.bin?

Great thanks in advance,
-Hunter

On Tuesday, September 24, 2013 4:34:55 PM UTC-5, timo.s...@gmail.com wrote:
>
> Finally made it!
>
> While looking at the modifications I made for u-boot, I realized that 
> script.bin and uImage belong to the same folder, i.e. the root folder of 
> the bootloader partition. Moving uImage, the system now boots perfectly 
> fine.
>
> Thanks for all your input!
>
> Timo
>

-- 
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.