Changeset 111f2c6 in clfs-embedded


Ignore:
Timestamp:
May 4, 2011, 4:09:50 AM (14 years ago)
Author:
Andrew Bradford <bradfa@…>
Branches:
master
Children:
3590aa2
Parents:
ba47a78
Message:

Updated mdev.conf using Alpine Linux config

Obtained mdev.conf from Alpine Linux project from:
http://git.alpinelinux.org/cgit/aports.git/plain/main/busybox-initscripts/mdev.conf?h=2.1-stable
Modified slightly to fit our environment. Tested quickly on a
BeagleBoard-xM.

Used Alpine Linux as base because of mailing list thread:
http://lists.busybox.net/pipermail/busybox/2009-November/070889.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/bootscripts/common/mdev.xml

    rba47a78 r111f2c6  
    3434<screen os="b"><?dbfo keep-together="auto"?><userinput>cat &gt; ${CLFS}/etc/mdev.conf&lt;&lt; "EOF"
    3535<literal># /etc/mdev/conf
    36 # Symlinks:
    37 # Syntax: %s -> %s
    38 
    39 MAKEDEV -> ../sbin/MAKEDEV
    40 /proc/core -> kcore
    41 fd -> /proc/self/fd
    42 mcdx -> mcdx0
    43 radio -> radio0
    44 ram -> ram1
    45 sbpcd -> sbpcd0
    46 sr0 -> scd0
    47 sr1 -> scd1
    48 sr10 -> scd10
    49 sr11 -> scd11
    50 sr12 -> scd12
    51 sr13 -> scd13
    52 sr14 -> scd14
    53 sr15 -> scd15
    54 sr16 -> scd16
    55 sr2 -> scd2
    56 sr3 -> scd3
    57 sr4 -> scd4
    58 sr5 -> scd5
    59 sr6 -> scd6
    60 sr7 -> scd7
    61 sr8 -> scd8
    62 sr9 -> scd9
    63 stderr -> fd/2
    64 stdin -> fd/0
    65 stdout -> fd/1
    66 
    67 # Uncomment the following 4 lines to enable video output
    68 #vbi -> vbi0
    69 #vcs -> vcs0
    70 #vcsa -> vcsa0
    71 #video -> video0
    7236
    7337# Devices:
     
    7539# devices user:group mode
    7640
    77 null 0:0 777
    78 zero 0:0 666
     41# null does already exist; therefore ownership has to be changed with command
     42null    root:root 0666  @chmod 666 $MDEV
     43zero    root:root 0666
     44grsec   root:root 0660
     45full    root:root 0666
    7946
    80 urandom 0:0 444
     47random  root:root 0666
     48urandom root:root 0444
     49hwrandom root:root 0660
    8150
    82 console 0:5 0600
    83 fd0 0:11 0660
    84 hdc 0:6 0660
    85 kmem 0:9 000
    86 mem 0:9 0640
    87 port 0:9 0640
    88 ptmx 0:5 0660
    89 tun[0-9]* 0:0 0640 =net/
     51# console does already exist; therefore ownership has to be changed with command
     52#console        root:tty 0600   @chmod 600 $MDEV &amp;&amp; mkdir -p vc &amp;&amp; ln -sf ../$MDEV vc/0
     53console root:tty 0600 @mkdir -pm 755 fd &amp;&amp; cd fd &amp;&amp; for x in 0 1 2 3 ; do ln -sf /proc/self/fd/$x $x; done
    9054
    91 sda* 0:6 0660
    92 sdb* 0:6 0660
    93 hda* 0:6 0660
    94 hdb* 0:6 0660
     55fd0     root:floppy 0660
     56kmem    root:root 0640
     57mem     root:root 0640
     58port    root:root 0640
     59ptmx    root:tty 0666
    9560
    96 tty 0:5 0660
    97 tty0* 0:5 0660
    98 tty1* 0:5 0660
    99 tty2* 0:5 0660
    100 tty3* 0:5 0660
    101 tty4* 0:5 0660
    102 tty5* 0:5 0660
    103 tty6* 0:5 0660
     61# ram.*
     62ram([0-9]*)     root:disk 0660 >rd/%1
     63loop([0-9]+)    root:disk 0660 >loop/%1
     64sd[a-z].*       root:disk 0660 */lib/mdev/usbdisk_link
     65hd[a-z][0-9]*   root:disk 0660 */lib/mdev/ide_links
     66md[0-9]         root:disk 0660
    10467
    105 ttyS* 0:20 640</literal>
     68tty             root:tty 0666
     69tty[0-9]        root:root 0600
     70tty[0-9][0-9]   root:tty 0660
     71ttyS[0-9]*      root:tty 0660
     72pty.*           root:tty 0660
     73vcs[0-9]*       root:tty 0660
     74vcsa[0-9]*      root:tty 0660
     75
     76ttyLTM[0-9]     root:dialout 0660 @ln -sf $MDEV modem
     77ttySHSF[0-9]    root:dialout 0660 @ln -sf $MDEV modem
     78slamr           root:dialout 0660 @ln -sf $MDEV slamr0
     79slusb           root:dialout 0660 @ln -sf $MDEV slusb0
     80fuse            root:root  0666
     81
     82# dri device
     83card[0-9]       root:video 0660 =dri/
     84
     85# alsa sound devices and audio stuff
     86pcm.*           root:audio 0660 =snd/
     87control.*       root:audio 0660 =snd/
     88midi.*          root:audio 0660 =snd/
     89seq             root:audio 0660 =snd/
     90timer           root:audio 0660 =snd/
     91
     92adsp            root:audio 0660 >sound/
     93audio           root:audio 0660 >sound/
     94dsp             root:audio 0660 >sound/
     95mixer           root:audio 0660 >sound/
     96sequencer.*     root:audio 0660 >sound/
     97
     98# misc stuff
     99agpgart         root:root 0660  >misc/
     100psaux           root:root 0660  >misc/
     101rtc             root:root 0664  >misc/
     102
     103# input stuff
     104event[0-9]+     root:root 0640 =input/
     105mice            root:root 0640 =input/
     106mouse[0-9]      root:root 0640 =input/
     107ts[0-9]         root:root 0600 =input/
     108
     109# v4l stuff
     110vbi[0-9]        root:video 0660 >v4l/
     111video[0-9]      root:video 0660 >v4l/
     112
     113# dvb stuff
     114dvb.*           root:video 0660 */lib/mdev/dvbdev
     115
     116# load drivers for usb devices
     117usbdev[0-9].[0-9]       root:root 0660 */lib/mdev/usbdev
     118usbdev[0-9].[0-9]_.*    root:root 0660
     119
     120# net devices
     121tun[0-9]*       root:root 0600 =net/
     122tap[0-9]*       root:root 0600 =net/
     123
     124# zaptel devices
     125zap(.*)         root:dialout 0660 =zap/%1
     126dahdi!(.*)      root:dialout 0660 =dahdi/%1
     127
     128# raid controllers
     129cciss!(.*)      root:disk 0660 =cciss/%1
     130ida!(.*)        root:disk 0660 =ida/%1
     131rd!(.*)         root:disk 0660 =rd/%1
     132
     133sr[0-9]         root:cdrom 0660 @ln -sf $MDEV cdrom
     134
     135# hpilo
     136hpilo!(.*)      root:root 0660 =hpilo/%1
     137
     138# xen stuff
     139xvd[a-z]        root:root 0660 */lib/mdev/xvd_links</literal>
    106140EOF</userinput></screen>
    107141
Note: See TracChangeset for help on using the changeset viewer.