Arif Ali
bde4c9ced6
will try to add to the build process somehow to create the initrd.gz from this directory
63 lines
1.8 KiB
Bash
Executable File
63 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#mtd nodes
|
|
mkdir -m 0777 /dev/mtd
|
|
mknod -m 0666 /dev/mtd/mtd0 c 90 0
|
|
mknod -m 0666 /dev/mtd/mtd0ro c 90 1
|
|
mknod -m 0666 /dev/mtd/mtd1 c 90 2
|
|
mknod -m 0666 /dev/mtd/mtd1ro c 90 3
|
|
mknod -m 0666 /dev/mtd/mtd2 c 90 4
|
|
mknod -m 0666 /dev/mtd/mtd2ro c 90 5
|
|
mknod -m 0666 /dev/mtd/mtd3 c 90 6
|
|
mknod -m 0666 /dev/mtd/mtd3ro c 90 7
|
|
mknod -m 0666 /dev/mtd/mtd4 c 90 8
|
|
mknod -m 0666 /dev/mtd/mtd4ro c 90 9
|
|
mknod -m 0666 /dev/mtd/mtd5 c 90 10
|
|
mknod -m 0666 /dev/mtd/mtd5ro c 90 11
|
|
mknod -m 0666 /dev/mtd/mtd6 c 90 12
|
|
mknod -m 0666 /dev/mtd/mtd6ro c 90 13
|
|
mknod -m 0666 /dev/mtd/mtd7 c 90 14
|
|
mknod -m 0666 /dev/mtd/mtd7ro c 90 15
|
|
|
|
#block nodes
|
|
mkdir -m 0777 /dev/block
|
|
mknod -m 0666 /dev/block/loop0 b 7 0
|
|
mknod -m 0666 /dev/block/loop1 b 7 1
|
|
mknod -m 0666 /dev/block/loop2 b 7 2
|
|
|
|
#mtd block nodes
|
|
mknod -m 0666 /dev/block/mtdblock0 b 31 0
|
|
mknod -m 0666 /dev/block/mtdblock1 b 31 1
|
|
mknod -m 0666 /dev/block/mtdblock2 b 31 2
|
|
mknod -m 0666 /dev/block/mtdblock3 b 31 3
|
|
mknod -m 0666 /dev/block/mtdblock4 b 31 4
|
|
mknod -m 0666 /dev/block/mtdblock5 b 31 5
|
|
mknod -m 0666 /dev/block/mtdblock6 b 31 6
|
|
mknod -m 0666 /dev/block/mtdblock7 b 31 7
|
|
|
|
#sd block nodes
|
|
mknod -m 0666 /dev/block/mmcblk0 b 179 0
|
|
mknod -m 0666 /dev/block/mmcblk0p1 b 179 1
|
|
mknod -m 0666 /dev/block/mmcblk0p2 b 179 2
|
|
mknod -m 0666 /dev/block/mmcblk0p3 b 179 3
|
|
mknod -m 0666 /dev/block/mmcblk0p4 b 179 4
|
|
|
|
#dev nodes
|
|
mkdir -m 0777 /dev/input
|
|
mknod -m 0644 /dev/input/event0 c 13 64
|
|
mknod -m 0644 /dev/input/event1 c 13 65
|
|
mknod -m 0644 /dev/input/event2 c 13 66
|
|
mknod -m 0644 /dev/input/event3 c 13 67
|
|
|
|
mknod -m 0666 /dev/null c 1 3
|
|
mknod -m 0444 /dev/zero c 1 5
|
|
mknod -m 0644 /dev/ppp0 c 108 0
|
|
mknod -m 0644 /dev/smd0 c 253 0
|
|
mknod -m 0644 /dev/smd1 c 253 1
|
|
|
|
#camera nodes
|
|
mkdir /dev/msm_camera
|
|
mknod /dev/msm_camera/control0 c 250 0
|
|
mknod /dev/msm_camera/config0 c 250 1
|
|
mknod /dev/msm_camera/frame0 c 250 2
|