/dev 대신 /proc/devices에 나타나는 장치를 어떻게 마운트합니까?

/dev 대신 /proc/devices에 나타나는 장치를 어떻게 마운트합니까?

저는 SoM의 Phytec 데모 보드에 있는 Phytec i.MX6 ULL SoM에서 실행되는 기본 Linux 배포판을 사용하고 있습니다. SD 카드에서 파일을 복사할 수 있어야 합니다.

데모 보드의 SD 카드 슬롯에 있는 SD 카드에서 SoM NAND를 플래시했기 때문에 SD 카드 하드웨어가 좋은 것으로 알고 있습니다. 이제 NAND에서 부팅하고 OS 부팅 후 SD 카드에서 읽기를 시도합니다.

mmc*부팅할 때 장치 가 없습니다 dev.

$ ls -l /dev | grep mmc
(no result)

그러나 SD 카드는 다음을 통해 분명히 볼 수 있습니다 /proc/devices.

$ cat /proc/devices
.
.
.
Block devices:
.
.
.
179 mmc
.
.
.

/dev데이터에서 항목을 생성하는 방법이 있습니까 /proc/devices? 인터넷 검색에 따르면 해당 명령을 사용해야 할 것 같지만 mknod방법을 모르겠습니다.

- 편집하다 -

젠장, 이제 알아낸 것 같아. 기반https://programmer.group/manual-creation-of-device-nodes-under-dev-in-linux.html나는 그랬다:

mknod /dev/mmcblk0 b 179 0
mknod /dev/mmcblk0p1 b 179 1
mount /dev/mmcblk0p1 /mnt/

하지만 오류가 발생합니다.

mount: /mnt: /dev/mmcblk0p1 is not a valid block device.

-- 편집 2 --

@user414777

만약 내가한다면:

ls /sys/block

알겠어요

loop0@     loop3@     loop6@     mtdblock1@ mtdblock4@ ram10@     ram13@     ram2@      ram5@      ram8@
loop1@     loop4@     loop7@     mtdblock2@ ram0@      ram11@     ram14@     ram3@      ram6@      ram9@
loop2@     loop5@     mtdblock0@ mtdblock3@ ram1@      ram12@     ram15@     ram4@      ram7@

mmc내 안에는 없어/sys/block

devtmpfs나는 이것에 익숙하지 않기 때문에 계속 읽을 것입니다 .

-- 편집 3 --

/dev/block내 합계 /sys/dev/블록 의 내용은 다음과 같습니다 .

$ ls -l /dev/block

lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:0 -> ../ram0
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:1 -> ../ram1
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:10 -> ../ram10
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:11 -> ../ram11
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:12 -> ../ram12
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:13 -> ../ram13
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:14 -> ../ram14
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 1:15 -> ../ram15
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:2 -> ../ram2
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:3 -> ../ram3
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:4 -> ../ram4
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:5 -> ../ram5
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:6 -> ../ram6
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:7 -> ../ram7
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:8 -> ../ram8
lrwxrwxrwx    1 root     root             7 Jan  1 00:16 1:9 -> ../ram9
lrwxrwxrwx    1 root     root            12 Jan  1 00:16 31:0 -> ../mtdblock0
lrwxrwxrwx    1 root     root            12 Jan  1 00:16 31:1 -> ../mtdblock1
lrwxrwxrwx    1 root     root            12 Jan  1 00:16 31:2 -> ../mtdblock2
lrwxrwxrwx    1 root     root            12 Jan  1 00:16 31:3 -> ../mtdblock3
lrwxrwxrwx    1 root     root            12 Jan  1 00:16 31:4 -> ../mtdblock4
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:0 -> ../loop0
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:1 -> ../loop1
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:2 -> ../loop2
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:3 -> ../loop3
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:4 -> ../loop4
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:5 -> ../loop5
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:6 -> ../loop6
lrwxrwxrwx    1 root     root             8 Jan  1 00:16 7:7 -> ../loop7

$ ls -l /sys/dev/block

lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:0 -> ../../devices/virtual/block/ram0/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:1 -> ../../devices/virtual/block/ram1/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:10 -> ../../devices/virtual/block/ram10/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:11 -> ../../devices/virtual/block/ram11/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:12 -> ../../devices/virtual/block/ram12/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:13 -> ../../devices/virtual/block/ram13/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:14 -> ../../devices/virtual/block/ram14/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:15 -> ../../devices/virtual/block/ram15/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:2 -> ../../devices/virtual/block/ram2/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:3 -> ../../devices/virtual/block/ram3/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:4 -> ../../devices/virtual/block/ram4/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:5 -> ../../devices/virtual/block/ram5/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:6 -> ../../devices/virtual/block/ram6/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:7 -> ../../devices/virtual/block/ram7/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:8 -> ../../devices/virtual/block/ram8/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 1:9 -> ../../devices/virtual/block/ram9/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 31:0 -> ../../devices/soc0/soc/1806000.gpmi-nand/mtd/mtd0/mtdblock0/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 31:1 -> ../../devices/soc0/soc/1806000.gpmi-nand/mtd/mtd1/mtdblock1/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 31:2 -> ../../devices/soc0/soc/1806000.gpmi-nand/mtd/mtd2/mtdblock2/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 31:3 -> ../../devices/soc0/soc/1806000.gpmi-nand/mtd/mtd3/mtdblock3/
lrwxrwxrwx    1 root     root             0 Jan  1 00:17 31:4 -> ../../devices/soc0/soc/1806000.gpmi-nand/mtd/mtd4/mtdblock4/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:0 -> ../../devices/virtual/block/loop0/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:1 -> ../../devices/virtual/block/loop1/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:2 -> ../../devices/virtual/block/loop2/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:3 -> ../../devices/virtual/block/loop3/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:4 -> ../../devices/virtual/block/loop4/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:5 -> ../../devices/virtual/block/loop5/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:6 -> ../../devices/virtual/block/loop6/
lrwxrwxrwx    1 root     root             0 Jan  1 00:16 7:7 -> ../../devices/virtual/block/loop7/

난 없는 것 같아/sys/dev/block/179:0

관련 정보