hunter hu
2014-03-03 19:42:17 UTC
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
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 linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.