flash memory 커스텀 해보았습니다.
글쓴이: wkdjjywkd / 작성시간: 화, 2015/02/03 - 2:37오후
[ 0.850000] 5 ofpart partitions found on MTD device spi32766.0 [ 0.860000] Creating 5 MTD partitions on "spi32766.0": [ 0.870000] 0x000000000000-0x000000030000 : "u-boot" [ 0.890000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.900000] 0x000000040000-0x000000050000 : "factory" [ 0.910000] 0x000000050000-0x000000750000 : "firmware" [ 0.920000] 0x000000158387-0x000000750000 : "rootfs" [ 0.930000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.960000] mtd: device 4 (rootfs) set to be root filesystem [ 0.970000] mtd: partition "rootfs_data" created automatically, ofs=0x6a0000, len=0xb0000 [ 0.990000] 0x0000006a0000-0x000000750000 : "rootfs_data" [ 1.000000] 0x000000750000-0x0000007a0000 : "test"
위와같이 mtd를 이용하여 flash memory에 파티션을 설정하였습니다.
test쪽을 보시면 320k로 설정된것을 알 수 있고 부팅 후 df 명령어로 살펴보면
Filesystem Size Used Available Use% Mounted on rootfs 704.0K 212.0K 492.0K 30% / /dev/root 5.3M 5.3M 0 100% /rom tmpfs 30.1M 76.0K 30.1M 0% /tmp /dev/mtdblock5 704.0K 212.0K 492.0K 30% /overlay overlayfs:/overlay 704.0K 212.0K 492.0K 30% / tmpfs 512.0K 0 512.0K 0% /dev /dev/mtdblock6 320.0K 200.0K 120.0K 63% /mnt <--- test mount
320k로 할당 되었지만 마운트 시키니 120k만 사용가능한데.. 이렇게 되는 이유가 궁금합니다.
Forums:
댓글 달기