由买买提看人间百态

topics

全部话题 - 话题: mtdblock4
(共0页)
S*A
发帖数: 7142
1
首先这是同一个 flash device 被按区划分成几个小块。
就像 sda 包含 sda1 sda2 ... 一样
dmesg:
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on "Physically mapped flash":
0x000000000000-0x000000040000 : "cfe"
0x000000040000-0x0000007e0000 : "linux"
0x00000011a800-0x0000007e0000 : "rootfs"
0x000000300000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x000000800000 : "nvram"
这个是每个 mtd 的大小。注意 nvram 永远在最后而且大小是 128K.
rootfs data 有 5M.
root@OpenWrt:~# cat /proc/partitions
major minor #bl... 阅读全帖
t*********u
发帖数: 26311
2
来自主题: Hardware版 - 怎么看rootfs是不是64M?
关键是哪个是
/dev/root 30.8M 30.8M 0 100% /
devtmpfs 124.8M 0 124.8M 0% /dev
tmpfs 124.9M 704.0K 124.2M 1% /tmp
/dev/mtdblock4 62.8M 1.7M 61.0M 3% /jffs
w*s
发帖数: 7227
3
this is an embedded board,
if i nfs boot from /home/user1/fs, it boots fine.
Then i "sudo cp -Ra /home/user1/fs /home/wds",
then try to nfs boot from /home/wds/fs, it says
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available
partitions:
1f00 128 mtdblock0 (driver?)
1f01 1664 mtdblock1 (driver?)
1f02 256 mtdblock2 (driver?)
1f03 3072 mtdblock3 (driver?)
1f04 3072 mtdblock4 ... 阅读全帖
(共0页)