This version of uboot loads the entire partition into RAM, not the uImage 
file.  You need a modified uboot that can be set up more like the one 
that's used on SD cards: http://www.cubieforums.com/index.php?topic=511.0

Pat

On Monday, March 3, 2014 4:00:55 PM UTC-5, hunter hu wrote:
>
> Thanks Patrick,
>
> Does this mean I don't need to change the default 50000000 at all?
>
> My intention is to load Linux instead of Android from NAND and following 
> this sunxi wiki: http://linux-sunxi.org/Installing_to_NAND.
>
> What changes need to be made in the uboot env besides the /dev/nandd -> 
> /dev/nandb?
>
> -Hunter
>
> On Monday, March 3, 2014 2:45:21 PM UTC-6, Patrick Wood wrote:
>>
>> That's not the nand read address; that's the RAM address where the nand 
>> read command stores data read from nand.  The last argument (boot, 
>> recovery) is the nand partition name where it's reading data.
>>
>> This is how an android kernel+initrd is loaded.
>>
>> On Monday, March 3, 2014 2:42:17 PM UTC-5, hunter hu wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to boot from NAND, and using Allwinner lichee-dev branch, in 
>>> the sun5i_a13.h header, there is a section of hard coded environment setup 
>>> like this:
>>>
>>> 81 #define CONFIG_EXTRA_ENV_SETTINGS \
>>> 182     "bootdelay=3\0" \
>>> 183     "bootcmd=run setargs boot_normal\0" \
>>> 184     "console=ttyS0,115200\0" \
>>> 185     "nand_root=/dev/nandd\0" \
>>> 186     "mmc_root=/dev/mmcblk0p4\0" \
>>> 187     "init=/init\0" \
>>> 188     "loglevel=8\0" \
>>> 189     "setargs=setenv bootargs console=${console} root=${nand_root}" \
>>> 190     "init=${init} loglevel=${loglevel}\0" \
>>> 191     "boot_normal=nand read 50000000 boot; boota 50000000\0" \
>>> 192     "boot_recovery=nand read 50000000 recovery; boota 50000000\0" \
>>> 193     "boot_fastboot=fastboot\0"
>>>
>>> My question is: how do I find the nand read address of my own instead of 
>>> default 50000000?
>>>
>>> My nand-part on the tablet looks like:
>>>
>>>   9 mbr: version 0x00000100, magic softw311
>>>  10 2 partitions
>>>  11 partition  1: class =         DISK, name =         boot, partition 
>>> start =    32768, partition size =    52768 user_type=0
>>>  12 partition  2: class =         DISK, name =         root, partition 
>>> start =    85536, partition size = 15479264 user_type=0
>>>  
>>> Is that the start of nandb which is 85536 x 512 = 43794432 ?
>>>
>>> I also need to change /dev/nandd to /dev/nandb because I boot from the 
>>> second partition /dev/nandb, correct?
>>>
>>> Any hints are greatly appreciated,
>>>
>>> Cheers,
>>> -Hunter
>>>
>>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to