mkdir dev
cd dev
mknod watchdog c 10 130 //看门狗
mknod zero c 1 5
mknod full c 1 7
mknod kmem c 1 2
mknod mem c 1 1 //内存
mknod null c 1 3
mknod rtc c 10 135
mknod mtd0 c 90 0 //Memory Technology Device,MTD设备
mknod mtd1 c 90 1
mknod mtd2 c 90 2
mknod mtd3 c 90 3
mknod mtdblock0 b 31 0 //MTD块设备
mknod mtdblock1 b 31 1
mknod mtdblock2 b 31 2
mknod mtdblock3 b 31 3
chmod 600 mtd* //修改权限
mknod cuam0 c 205 16
mknod cuam1 c 205 17
mknod ttyp0 c 3 0 //终端设备
mknod ttyp1 c 3 1
mknod ttyp2 c 3 2
mknod ttyp3 c 3 3
mknod ttyp4 c 3 4
mknod ttyp5 c 3 5
mknod ttyp6 c 3 6
mknod ttyp7 c 3 7
mknod ttyp8 c 3 8
mknod ttyp9 c 3 9
mknod ttyAM0 c 204 16
mknod ttyAM1 c 204 17
ln -s ttyAM0 ttyS0 //链接
ln -s ttyAM1 ttyS1
mknod tty c 5 0
mknod console c 5 1 //控制台
mknod ptyp0 c 2 0
mknod ptyp1 c 2 1
mknod ptyp2 c 2 2
mknod ptyp3 c 2 3
mknod ptyp4 c 2 4
mknod ptyp5 c 2 5
mknod ptyp6 c 2 6
mknod ptyp7 c 2 7
mknod ptyp8 c 2 8
mknod ptyp9 c 2 9
mknod ram0 b 1 0 //ram设备
mknod ram1 b 1 1
mknod ram2 b 1 2
mknod ram3 b 1 3
chmod 660 ram*
评论1
最新资源