I think the approach would be the same (and please correct me if it's not):
once you have a working SD environment you can do something like the following
$this->bbcode_second_pass_code('', '
# assuming /dev/nandb is your rootfs partition
mount /dev/nandb /mnt
# copy over your working env
rsync -aH --exclude-from=exclude-file / /mnt
# just as precaution
sync
# clean up and shutdown
umount /mnt
shutdown -h now
# remove your SD card
')
the exclude-file would be something like
$this->bbcode_second_pass_code('', '
/dev/*
/home/*
/media/*
/mnt/*
/proc/*
/run/*
/sys/*
/tmp/*
/var/cache/*
/var/log/*
/var/log.hdd/*
')
The difference is with the $this->bbcode_second_pass_code('', 'nand-part') tool for
A20 from sunxi that is not that updated so you might want to checkout in your SD card
the Patrick Wood updated version which has fixes and gotchas over the old sunxi version.
Once you've got that, you need a proper
u-boot with propers
script.bin and relative
uImage and here I've no idea which one would be the best since I've never tried any of them.
a list of active developers uploading useful stuff about Cubie where you can find under patwood the hwpack for CB 2 (script and uImage) but I don't know which nand bin is suitable/best for cubieboard 2 ... you might want to ask in
their forum thought, they are quite helpful
