Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Gogolator on January 04, 2016, 10:45:28 PM

Title: A20 Olinuxion Micro NAND bad geometry
Post by: Gogolator on January 04, 2016, 10:45:28 PM
I want to install Debian on NAND in A20-Micro. But when i make
tar -xzOf nand_part.gz | dd of=/dev/nand
sync
reboot

mkfs.vfat /dev/nanda

The result is "mkfs.fat 3.0.28 (2015-05-16)  unable to get drive geometry, using default 255/63"
When I make "fdisk /dev/nand -l", I don't have any partition!

I think, is a problem of CHS parameter on NAND.
Can you tell me what CHS parameter, have on your NAND?



Title: Re: A20 Olinuxion Micro NAND bad geometry
Post by: MBR on January 24, 2016, 09:43:38 PM
The NAND memory is seen in the Linux as a MTD device and these dont have a geometry. Thend don't even have partitions, becasue there are bad blocks that may appear even at the very start of the device. See the kernel documntation of the MTD subsystem, or maybe a nice article at http://free-electrons.com/blog/managing-flash-storage-with-linux/ (http://free-electrons.com/blog/managing-flash-storage-with-linux/). You will aslo need to look arount at this forum about the instaling Debian on internal NAND flash, because the process is a bit different than booting from a SD card.
Title: Re: A20 Olinuxion Micro NAND bad geometry
Post by: LubOlimex on January 26, 2016, 03:44:44 PM
Please check this wiki article: https://www.olimex.com/wiki/How_to_install_Debian_to_NAND (https://www.olimex.com/wiki/How_to_install_Debian_to_NAND)

Best regards,
Lub/OLIMEX