<p><br>
On May 11, 2012 5:19 AM, "David Given" <<a href="mailto:dg@cowlark.com">dg@cowlark.com</a>> wrote:<br>
><br>
> On 09/05/12 02:42, cnxsoft wrote:<br>
> [...]<br>
> > I also have 4GB NAND Flash (although it's more like 3800 MB) and I<br>
> > ordered with Deal extreme. I guess I used the dealextreme specs on my<br>
> > blog...<br>
><br>
> 4GB here, too.<br>
><br>
> The NAND driver appears to emulate a real block device, not an MTD<br>
> device --- most of the partitions contain ext4 file systems. My<br>
> partition table looks like:<br>
><br>
> Device Name Location+Length (512 byte sectors)<br>
> -------------------------------------------------------------------<br>
> /dev/nanda BOOTFS 00000800+00008000<br>
> /dev/nandb LROOTFS 00008800+00010000<br>
> /dev/nandc LSYSTEMFS 00018800+00080000<br>
> /dev/nandd LDATAFS 00098800+00300000<br>
> /dev/nande MISC 00398800+00000800<br>
> /dev/nandf LRECOVERYFS 00399000+00010000<br>
> /dev/nandg LCACHEFS 003a9000+00040000<br>
> /dev/nandh env 003e9000+00001000<br>
> /dev/nandi UDISK 003ea000 to end<br>
><br>
> BOOTFS is the boot partition, not dissimilar from /dev/mmcblk0p1<br>
> (although with more stuff in it). env is a uboot environment.<br>
><br>
> The partition table itself is stored at offset 0 in the flash device. As<br>
> you can see, it's not in any partition, and there I haven't found<br>
> anything like a raw device, which means it can't be edited...<br>
><br>
> The device driver code is in drivers/block/sun4i_nand/nfd; the low level<br>
> stuff including the wear levelling code is in<br>
> drivers/block/sun4i_nand/src. I have utterly no idea whether it's any<br>
> good. Anyone know why they didn't implement an mtdblock driver and use<br>
> yaffs2?<br>
well, the people working on nand in allwinner think MTD is an out of date technology. i have argued many times that we need a MTD nand driver. why a device driver should care about things like wear leveling?<br>
><br>
> --<br>
> ┌─── dg@cowlark.com ───── <a href="http://www.cowlark.com">http://www.cowlark.com</a> ─────<br>
> │<br>
> │ "Never attribute to malice what can be adequately explained by<br>
> │ stupidity." --- Nick Diamos (Hanlon's Razor)<br>
><br>
><br>
> _______________________________________________<br>
> arm-netbook mailing list <a href="mailto:arm-netbook@lists.phcomp.co.uk">arm-netbook@lists.phcomp.co.uk</a><br>
> <a href="http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook">http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook</a><br>
> Send large attachments to <a href="mailto:arm-netbook@files.phcomp.co.uk">arm-netbook@files.phcomp.co.uk</a><br>
</p>