[Arm-netbook] Flashing the NAND

Marco Martin notmart at gmail.com
Fri Dec 6 09:10:46 GMT 2013


On Friday 06 December 2013, luke.leighton wrote:
> hi marco, welcome to the list, and thanks for agreeing to post these

thanks :)

>  https://github.com/cubieboard2/linux-sunxi/tree/sunxi-3.4-cb2-dev/drivers/
> block/sun7i_nand
> 
>  yep, there you go.  that's what i recall using [over 4 months ago]
> and i remember it working correctly.

ok, so i have a small update on this already: the driver is there and is 
working in the sunxi-3.4 branch, i built all the pieces in the kernel and i 
now have from
/dev/nanda to /dev/nandj
nanda is the boot partition, nandd seems the ext4 root, nande a 512m vfat 
partition, nandh and nandi empty ext4 ones, nandj a 2gb vfat one.
all the other seems to not be accessible

i suppose this layouthas to be maintained? (the space is very fragmented, 
doesn't let much storage space in the end

>  so there are several pieces to the puzzle:
> 
>  1) boot0 and boot1.  the GPL-compliant source for this has been
> tracked down.  it should be easy to find, let me know if you have any
> difficulties.

is it in https://github.com/linux-sunxi/sunxi-tools  ?

>  2) libnand-aware u-boot released by allwinner  this, again, should be
> easy to find, on hno's github u-boot repo and in several other places.
>  *quick search*... https://github.com/linux-sunxi/u-boot-sunxi/wiki  -
> ah, there you go - lichee-a20-dev branch.  that'll do.
> 
>  3) libnand-aware sunxi 3.4 kernel.  see above: that's at least one
> version that i know of which works (and i've tested on EOMA68-A20 CPU
> Cards).

yes, this seem to work..

will investigate on the other pieces of the puzzle


-- 
Marco Martin



More information about the arm-netbook mailing list