LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Making sense of NAND memory in embedded device (https://www.linuxquestions.org/questions/linux-hardware-18/making-sense-of-nand-memory-in-embedded-device-4175485141/)

littlebigman 11-19-2013 09:01 AM

Making sense of NAND memory in embedded device
 
Hello

To get back up and running after the PSU blew up, I successfully installed Debian7 on a SheevaPlug on a 4GB SD card.

However, since this device has a 512MB NAND flash memory, I'd rather install the OS there.

But this newbie needs to understand what is wrong with it, and how to access it:

Code:

# fdisk -l
Disk /dev/mtdblock0: 1 MB, 1048576 bytes
255 heads, 63 sectors/track, 0 cylinders, total 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 4 MB, 4194304 bytes
255 heads, 63 sectors/track, 0 cylinders, total 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xee020f10

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 531 MB, 531628032 bytes
255 heads, 63 sectors/track, 64 cylinders, total 1038336 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes
4 heads, 16 sectors/track, 120768 cylinders, total 7729152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000332e9

        Device Boot      Start        End      Blocks  Id  System
/dev/mmcblk0p1  *        2048      440319      219136  83  Linux
/dev/mmcblk0p2          440320    7286783    3423232  83  Linux
/dev/mmcblk0p3        7288830    7727103      219137    5  Extended
/dev/mmcblk0p5        7288832    7727103      219136  82  Linux swap / Solaris

Why all those "Disk /dev/mtdblockX doesn't contain a valid partition table" messages?

Thanks for any hint.

nanmu 11-20-2013 02:40 AM

i sorry, Although I very want to help you, i have no idea

littlebigman 11-20-2013 04:39 AM

No problem.

NAND flash memory is different from regular mass storage devices. More infos can be found through "cat /proc/mtd".

It appears that the Debian installer doesn't support installing directly to a NAND flash memory directly: It must first be installed onto an SD/USB keydrive, booted from there, and then copied onto the NAND flash memory.

Maybe other Linux installers are able to do this.


All times are GMT -5. The time now is 09:41 AM.