228 lines
5.1 KiB
Bash
228 lines
5.1 KiB
Bash
#!/bin/bash
|
|
|
|
# Create FIFO devices
|
|
|
|
mknod /dev/initctl p
|
|
|
|
|
|
#Create character devices
|
|
mknod /dev/mem c 1 1
|
|
mknod /dev/kmem c 1 2
|
|
mknod /dev/null c 1 3
|
|
mknod /dev/port c 1 4
|
|
mknod /dev/zero c 1 5
|
|
mknod /dev/tty0 c 4 0
|
|
mknod /dev/tty1 c 4 1
|
|
mknod /dev/ttyS0 c 4 64
|
|
mknod /dev/ttyS1 c 4 65
|
|
mknod /dev/tty c 5 0
|
|
mknod /dev/console c 5 1
|
|
mknod /dev/ppp c 108 0
|
|
mknod /dev/printer0 c 180 0
|
|
mknod /dev/urandom c 1 9
|
|
mknod /dev/i2c-0 c 89 0
|
|
mknod /dev/mtd0 c 90 0
|
|
mknod /dev/mtd1 c 90 2
|
|
mknod /dev/mtd2 c 90 4
|
|
mknod /dev/mtd3 c 90 6
|
|
mknod /dev/mtd4 c 90 8
|
|
mknod /dev/ubi0 c 254 0
|
|
mknod /dev/ubi_ctrl c 10 63
|
|
mknod /dev/random c 1 8
|
|
mknod /dev/hwrandom c 10 183
|
|
mknod /dev/ptm c 128 1
|
|
mkdir /dev/pts/
|
|
mknod /dev/pts/0 c 136 0
|
|
mknod /dev/pts/1 c 136 1
|
|
|
|
#DPI
|
|
mknod /dev/detector c 190 0
|
|
#DPI
|
|
|
|
# Create Broadcom specific devices
|
|
mknod /dev/dect c 197 0
|
|
mknod /dev/dectdbg c 197 1
|
|
mknod /dev/dectshim c 198 0
|
|
mknod /dev/fbond c 204 0
|
|
mknod /dev/bcmatm0 c 205 0
|
|
mknod /dev/brcmboard c 206 0
|
|
mknod /dev/bcmvdsl0 c 207 0
|
|
mknod /dev/bcmadsl0 c 208 0
|
|
mknod /dev/bcmadsl1 c 208 1
|
|
mknod /dev/bcmendpoint0 c 209 0
|
|
mknod /dev/bcmaal20 c 210 0
|
|
mknod /dev/bcmles0 c 211 0
|
|
mknod /dev/bcm c 212 0
|
|
mknod /dev/bounce c 213 0
|
|
mknod /dev/pmon c 214 0
|
|
mknod /dev/bdmf_shell c 215 0
|
|
mknod /dev/rgs_logger c 216 0
|
|
mknod /dev/pcmshim0 c 217 0
|
|
mknod /dev/ac97 c 222 0
|
|
mknod /dev/slac c 223 0
|
|
mknod /dev/bcmprof c 224 0
|
|
mknod /dev/si3215 c 225 0
|
|
mknod /dev/bcmatmb0 c 226 0
|
|
mknod /dev/p8021ag0 c 227 0
|
|
mknod /dev/bcmxtmcfg0 c 228 0
|
|
mknod /dev/bcmomcipm c 231 0
|
|
mknod /dev/pktcmf c 232 0
|
|
mknod /dev/spu c 233 0
|
|
mknod /dev/bcmmoca0 c 234 0
|
|
mknod /dev/bcmmoca10 c 234 1
|
|
mknod /dev/bcmmoca1 c 234 1
|
|
mknod /dev/bcm_user_ploam c 235 0
|
|
mknod /dev/bcm_omci c 236 0
|
|
mknod /dev/bcm_ploam c 237 0
|
|
mknod /dev/bcmvlan c 238 0
|
|
mknod /dev/laser_dev c 239 0
|
|
mknod /dev/pwrmngt c 240 0
|
|
mknod /dev/bcmfap c 241 0
|
|
mknod /dev/fcache c 242 0
|
|
mknod /dev/ingqos c 243 0
|
|
mknod /dev/bpm c 244 0
|
|
mknod /dev/bcmarl c 245 0
|
|
mknod /dev/chipinfo c 246 0
|
|
mknod /dev/epon_stack_shell c 247 0
|
|
mknod /dev/bcmepon c 247 0
|
|
mknod /dev/bcm_user_tod c 248 0
|
|
mknod /dev/gmac c 249 0
|
|
mknod /dev/tms c 250 0
|
|
mknod /dev/bcmrdpa c 251 0
|
|
mknod /dev/pktrunner c 252 0
|
|
mknod /dev/otp c 253 0
|
|
mknod /dev/ext_bonding c 255 0
|
|
mknod /dev/buzzz c 253 0
|
|
mknod /dev/capi20 c 68 0
|
|
mknod /dev/isdninfo c 45 255
|
|
mknod /dev/ippp0 c 45 128
|
|
mknod /dev/ippp1 c 45 129
|
|
mknod /dev/isdnctrl0 c 45 64
|
|
mknod /dev/isdnctrl c 45 64
|
|
mknod /dev/isdn c 45 0
|
|
mknod /dev/linux-uk-proxy c 125 0
|
|
mknod /dev/linux-user-bde c 126 0
|
|
|
|
|
|
# Create block devices
|
|
|
|
mknod /dev/ram0 b 1 0
|
|
mknod /dev/ram1 b 1 1
|
|
mknod /dev/ram2 b 1 2
|
|
mknod /dev/ram3 b 1 3
|
|
ln -s ram1 /dev/ram
|
|
|
|
mknod /dev/mtdblock0 b 31 0
|
|
mknod /dev/mtdblock1 b 31 1
|
|
mknod /dev/mtdblock2 b 31 2
|
|
mknod /dev/mtdblock3 b 31 3
|
|
mknod /dev/mtdblock4 b 31 4
|
|
mknod /dev/mtdblock5 b 31 5
|
|
mknod /dev/mtdblock6 b 31 6
|
|
mknod /dev/mtdblock7 b 31 7
|
|
mknod /dev/mtdblock8 b 31 8
|
|
mknod /dev/mtdblock9 b 31 9
|
|
|
|
|
|
# USB Mass Storage Devices
|
|
mknod /dev/sda b 8 0
|
|
mknod /dev/sda1 b 8 1
|
|
mknod /dev/sda2 b 8 2
|
|
mknod /dev/sda3 b 8 3
|
|
mknod /dev/sda4 b 8 4
|
|
mknod /dev/sda5 b 8 5
|
|
mknod /dev/sda6 b 8 6
|
|
mknod /dev/sda7 b 8 7
|
|
mknod /dev/sda8 b 8 8
|
|
mknod /dev/sda9 b 8 9
|
|
mknod /dev/sdb b 8 16
|
|
mknod /dev/sdb1 b 8 17
|
|
mknod /dev/sdb2 b 8 18
|
|
mknod /dev/sdb3 b 8 19
|
|
mknod /dev/sdb4 b 8 20
|
|
mknod /dev/sdb5 b 8 21
|
|
mknod /dev/sdb6 b 8 22
|
|
mknod /dev/sdb7 b 8 23
|
|
mknod /dev/sdb8 b 8 24
|
|
mknod /dev/sdb9 b 8 25
|
|
mknod /dev/sdc b 8 32
|
|
mknod /dev/sdc1 b 8 33
|
|
mknod /dev/sdc2 b 8 34
|
|
mknod /dev/sdc3 b 8 35
|
|
mknod /dev/sdc4 b 8 36
|
|
mknod /dev/sdc5 b 8 37
|
|
mknod /dev/sdc6 b 8 38
|
|
mknod /dev/sdc7 b 8 39
|
|
mknod /dev/sdc8 b 8 40
|
|
mknod /dev/sdc9 b 8 41
|
|
mknod /dev/sdd b 8 48
|
|
mknod /dev/sdd1 b 8 49
|
|
mknod /dev/sdd2 b 8 50
|
|
mknod /dev/sdd3 b 8 51
|
|
mknod /dev/sdd4 b 8 52
|
|
mknod /dev/sde b 8 64
|
|
mknod /dev/sde1 b 8 65
|
|
mknod /dev/sde2 b 8 66
|
|
mknod /dev/sde3 b 8 67
|
|
mknod /dev/sde4 b 8 68
|
|
mknod /dev/sdf b 8 80
|
|
mknod /dev/sdf1 b 8 81
|
|
mknod /dev/sdf2 b 8 82
|
|
mknod /dev/sdf3 b 8 83
|
|
mknod /dev/sdf4 b 8 84
|
|
mknod /dev/sdg b 8 96
|
|
mknod /dev/sdg1 b 8 97
|
|
mknod /dev/sdg2 b 8 98
|
|
mknod /dev/sdg3 b 8 99
|
|
mknod /dev/sdg4 b 8 100
|
|
mknod /dev/sdh b 8 112
|
|
mknod /dev/sdh1 b 8 113
|
|
mknod /dev/sdh2 b 8 114
|
|
mknod /dev/sdh3 b 8 115
|
|
mknod /dev/sdh4 b 8 116
|
|
|
|
# USB Serial
|
|
mknod /dev/ttyUSB0 c 188 0
|
|
mknod /dev/ttyUSB1 c 188 1
|
|
mknod /dev/ttyUSB2 c 188 2
|
|
mknod /dev/ttyUSB3 c 188 3
|
|
mknod /dev/ttyUSB4 c 188 4
|
|
mknod /dev/ttyUSB5 c 188 5
|
|
mknod /dev/ttyUSB6 c 188 6
|
|
mknod /dev/ttyUSB7 c 188 7
|
|
mknod /dev/ttyUSB8 c 188 8
|
|
mknod /dev/ttyUSB9 c 188 9
|
|
|
|
# USB CDC_WDM
|
|
mknod /dev/cdc-wdm0 c 180 176
|
|
mknod /dev/cdc-wdm1 c 180 177
|
|
mknod /dev/cdc-wdm2 c 180 178
|
|
|
|
# USB CDC-ACM
|
|
mknod /dev/ttyACM0 c 166 0
|
|
mknod /dev/ttyACM1 c 166 1
|
|
mknod /dev/ttyACM2 c 166 2
|
|
mknod /dev/ttyACM3 c 166 3
|
|
mknod /dev/ttyACM4 c 166 4
|
|
mknod /dev/ttyACM5 c 166 5
|
|
mknod /dev/ttyACM6 c 166 6
|
|
mknod /dev/ttyACM7 c 166 7
|
|
mknod /dev/ttyACM8 c 166 8
|
|
mknod /dev/ttyACM9 c 166 9
|
|
|
|
# USB HSO
|
|
mknod /dev/ttyHS0 c 254 0
|
|
mknod /dev/ttyHS1 c 254 1
|
|
mknod /dev/ttyHS2 c 254 2
|
|
mknod /dev/ttyHS3 c 254 3
|
|
mknod /dev/ttyHS4 c 254 4
|
|
mknod /dev/ttyHS5 c 254 5
|
|
mknod /dev/ttyHS6 c 254 6
|
|
mknod /dev/ttyHS7 c 254 7
|
|
mknod /dev/ttyHS8 c 254 8
|
|
mknod /dev/ttyHS9 c 254 9
|
|
|
|
# LTE Qualcomm D19Q1
|
|
mknod /dev/qcqmi0 c 253 0
|
|
mknod /dev/qcqmi1 c 253 1
|
|
mknod /dev/qcqmi2 c 253 2 |