chenzhe7811 发表于 2014-11-19 14:05:54

cb2的板子Nand问题

1、
cubieboard2 的相关 cb2-lubuntu-server-nand.img 镜像文件有没有 4G 版本的。现有的镜像烧写到板子上之后,

root@cubieboard-jit:~# ll /dev/nand*                                                                                                                                                         
brw-rw---- 1 root disk 93, 0 Jan1 00:00 /dev/nand
brw-rw---- 1 root disk 93, 1 Jan1 00:00 /dev/nanda
brw-rw---- 1 root disk 93, 2 Jan1 00:04 /dev/nandb
brw-rw---- 1 root disk 93, 3 Jan1 00:00 /dev/nandc
有三个分区,
root@cubieboard-jit:~# fdisk -l /dev/nanda                                                                                                                                                   

Disk /dev/nanda: 67 MB, 67108864 bytes
255 heads, 63 sectors/track, 8 cylinders, total 131072 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

   Device Boot      Start         End      Blocks   IdSystem
root@cubieboard-jit:~# fdisk -l /dev/nandb                                                                                                                                                   

Disk /dev/nandb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 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/nandb doesn't contain a valid partition table
root@cubieboard-jit:~# fdisk -l /dev/nandc                                                                                                                                                   

Disk /dev/nandc: 1753 MB, 1753219072 bytes
255 heads, 63 sectors/track, 213 cylinders, total 3424256 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: 0xffffffff

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

/dev/nandb分区用来存放rootfs,只有2G,而/dev/nandc分区根本没有使用,怎样能够把/dev/nandc的容量都划分到/dev/nandb里面呢?有没有这样的镜像文件?
即使使用 resize2fs /dev/nandb 命令,也只能扩展到2G。而我现在在TF卡上使用的rootfs已经达到 2.4 G的空间了,所以想烧到现有的Nand分区是不可能了。
-----------------------------------------------------------------------------------------------------
2、
使用 imgrepacker 工具制作镜像文件的时候, cb2-lubuntu-server-nand.img.dump目录下的 rootfs.fex 文件大小不能超过2G,否则就失败。
是不是imgrepacker 工具有此限制?还是需要更改哪些参数?

@allen 发表于 2014-11-19 16:26:59

本帖最后由 @allen 于 2014-11-19 16:28 编辑

http://forum.cubietech.com/forum.php?mod=viewthread&tid=3202

用nand-part 命令

或最新的img http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-nand-v2.0/

Jason 发表于 2014-11-21 22:31:26

Mark一下
页: [1]
查看完整版本: cb2的板子Nand问题