![]() |
| Le forum de référence en programmation et développement. Articles, cours et tutoriels du débutant au chef de projet et DBA confirmé. | |||||||
|
|||||||
| Debian Vos questions sur la distribution Debian |
![]() |
|
|
Outils de la discussion |
|
|
#1 (permalink) |
|
Futur Membre du Club
![]() Date d'inscription: mai 2008
Messages: 37
|
Bonjour
Je voudrais faire démarrer les modules de ma carte réseaux au démarrage du script linuxrc (depuis un linux embarqué avec un noyau compilé et un fichier initrd pointant sur busybox ) il me met " no such device " qd j'essaye de faire ifup , ifdown , ect... Et mon probleme justement , c'est comment faire pour charger les modules de la carte qd je boot sur busybox ???????? Sachant que mon fichier initrd est limité à 5Mo , pas plus.. voici le script de la création du fichier initrd en question : *********************************************************************** #!/bin/bash # Housekeeping... rm -f /tmp/ramdisk.img rm -f /tmp/ramdisk.img.gz # Ramdisk Constants RDSIZE=4000 BLKSIZE=1024 # Create an empty ramdisk image dd if=/dev/zero of=/tmp/ramdisk.img bs=$BLKSIZE count=$RDSIZE # Make it an ext2 mountable file system /sbin/mke2fs -F -m 0 -b $BLKSIZE /tmp/ramdisk.img $RDSIZE # Mount it so that we can populate mount /tmp/ramdisk.img /mnt/initrd -t ext2 -o loop=/dev/loop0 # Populate the filesystem (subdirectories) mkdir /mnt/initrd/bin mkdir /mnt/initrd/sys mkdir /mnt/initrd/dev mkdir /mnt/initrd/proc # Grab busybox and create the symbolic links pushd /mnt/initrd/bin cp /usr/local/src/busybox-1.10.3/busybox . ln -s busybox ash ln -s busybox mount ln -s busybox echo ln -s busybox ls ln -s busybox cat ln -s busybox ps ln -s busybox dmesg ln -s busybox sysctl popd # Grab the necessary dev files cp -a /dev/console /mnt/initrd/dev cp -a /dev/ramdisk /mnt/initrd/dev cp -a /dev/ram0 /mnt/initrd/dev cp -a /dev/null /mnt/initrd/dev cp -a /dev/tty1 /mnt/initrd/dev cp -a /dev/tty2 /mnt/initrd/dev # Equate sbin with bin pushd /mnt/initrd ln -s bin sbin popd # Create the init file cat >> /mnt/initrd/linuxrc << EOF #!/bin/ash echo echo "Simple initrd is active" echo mount -t proc /proc /proc mount -t sysfs none /sys /bin/ash --login EOF chmod +x /mnt/initrd/linuxrc # Finish up... umount /mnt/initrd gzip -9 /tmp/ramdisk.img cp /tmp/ramdisk.img.gz /boot/ramdisk.img.gz *********************************************************************** voici la conf de ma carte et les infos nécessaires Dans le but de réaliser ceci mais avec le module de ma carte à charger, lors du chargerment de l'initrd et linuxrc depuis busybox http://www.loligrub.be/contrib/tle [...] de405.html Merci Bcp par avance DESOLEE POUR LA QUANTITE DES INFOS FOURNIS MAIS JE VEUX FOURNIR UN MAXIMUM D INFOS Cdt ****************************************************************************************** root:~# lspci root:~# 00:00.0 Host Bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev01) 00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PcNet32 LANCE] (rev10) ****************************************************************************************** rootlib/modules/2.6.25.9# ls build modules.dep modules.ofmap modules.symbols kernel modules.ieee1394map modules.order modules.usbmap modules.alias modules.inputmap modules.pcimap source modules.ccwmap modules.isapnpmap modules.seriomap ****************************************************************************************** rootlib/modules/2.6.25.9/vim modules.ieee1394map # ieee1394 module match_flags vendor_id model_id specifier_id version video1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000100 video1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000101 video1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000102 sbp2 0x0000000c 0x000000 0x000000 0x00609e 0x010483 dv1394 0x0000000c 0x000000 0x000000 0x00a02d 0x010001 raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x010001 raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000100 raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000101 raw1394 0x0000000c 0x000000 0x000000 0x00a02d 0x000102 eth1394 0x0000000c 0x000000 0x000000 0x00005e 0x000001 ****************************************************************************************** rootetc/~# vim modules.conf ## update-modules: end processing /etc/modutils/actions ### update-modules: start processing /etc/modutils/aliases # Aliases to tell insmod/modprobe which modules to use # Uncomment the network protocols you don't want loaded: # alias net-pf-1 off # Unix # alias net-pf-2 off # IPv4 # alias net-pf-3 off # Amateur Radio AX.25 # alias net-pf-4 off # IPX # alias net-pf-5 off # DDP / appletalk # alias net-pf-6 off # Amateur Radio NET/ROM # alias net-pf-9 off # X.25 # alias net-pf-10 off # IPv6 # alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP # alias net-pf-19 off # Acorn Econet # alias net-pf-20 off # ATM # alias net-pf-23 off # IRDA # alias net-pf-24 off # PPPoE # alias net-pf-25 off # WANrouter # alias net-pf-26 off # Llc # alias net-pf-31 off # Bluetooth alias binfmt-204 binfmt_aout alias binfmt-263 binfmt_aout alias binfmt-264 binfmt_aout alias binfmt-267 binfmt_aout alias binfmt-387 binfmt_aout alias bt-proto-0 l2cap alias bt-proto-2 sco alias bt-proto-3 rfcomm alias bt-proto-4 bnep alias bt-proto-5 cmtp alias bt-proto-6 hidp alias bt-proto-7 avdtp alias char-major-9 st alias char-major-10-1 psmouse alias char-major-10-134 apm alias char-major-10-135 rtc alias char-major-10-139 openprom alias char-major-10-144 nvram alias char-major-10-157 applicom alias char-major-10-175 agpgart alias char-major-10-181 toshiba alias char-major-10-183 hw_random alias char-major-10-184 microcode alias char-major-10-187 irnet alias char-major-10-189 ussp alias char-major-10-200 tun alias char-major-10-250 hci_vhci alias char-major-13 input alias char-major-13-0 joydev alias char-major-13-1 joydev alias char-major-13-2 joydev alias char-major-13-3 joydev alias char-major-13-32 mousedev alias char-major-13-33 mousedev alias char-major-13-34 mousedev alias char-major-13-35 mousedev alias char-major-13-63 mousedev alias char-major-13-64 evdev alias char-major-13-65 evdev alias char-major-13-66 evdev alias char-major-13-67 evdev alias char-major-19 cyclades alias char-major-20 cyclades alias char-major-21 sg alias char-major-22 pcxx alias char-major-23 pcxx alias char-major-27 ftape alias char-major-27 zftape alias char-major-34 scc alias char-major-35 tclmidi alias char-major-37 ide-tape alias char-major-48 riscom8 alias char-major-49 riscom8 alias char-major-57 esp alias char-major-58 esp alias char-major-63 kdebug alias char-major-67 coda alias char-major-75 specialix alias char-major-76 specialix alias char-major-81 bttv alias char-major-81 videodev alias char-major-83 vtx alias char-major-89 i2c-dev alias char-major-90 mtdchar alias char-major-96 pt alias char-major-97 pg alias char-major-99 ppdev alias char-major-107 3dfx alias char-major-109 lvm-mod alias char-major-108 ppp_generic alias char-major-116 snd alias char-major-161 ircomm-tty alias char-major-162 raw alias char-major-166 cdc_acm alias char-major-171 raw1394 alias char-major-180-48 scanner alias char-major-180 usbcore alias char-major-195 nvidia alias char-major-200 vxspec alias char-major-202 msr alias char-major-203 cpuid alias char-major-206 osst alias char-major-208 ussp alias char-major-227 tub3270 alias /dev/ppp ppp_generic alias tty-ldisc-3 ppp_async alias tty-ldisc-14 ppp_synctty alias ppp-compress-18 ppp_mppe alias ppp-compress-21 bsd_comp alias ppp-compress-24 ppp_deflate alias ppp-compress-26 ppp_deflate alias dummy0 dummy alias dummy1 dummy alias gre0 ip_gre alias iso9660 isofs alias plip0 plip alias plip1 plip alias slip0 slip alias slip1 slip alias tunl0 ipip alias usbdevfs usbcore alias cipcb0 cipcb alias cipcb1 cipcb alias cipcb2 cipcb alias cipcb3 cipcb # IPSEC alias xfrm-type-2-50 esp4 alias xfrm-type-2-51 ah4 alias xfrm-type-2-108 ipcomp alias xfrm-type-10-50 esp6 alias xfrm-type-10-51 ah6 alias xfrm-type-10-108 ipcomp6 # Crypto modules (see http://www.kerneli.org/) alias loop-xfer-gen-0 loop_gen alias loop-xfer-3 loop_fish2 alias loop-xfer-gen-10 loop_gen alias cipher-2 des alias cipher-3 fish2 alias cipher-4 blowfish alias cipher-6 idea alias cipher-7 serp6f alias cipher-8 mars6 alias cipher-11 rc62 alias cipher-15 dfc2 alias cipher-16 rijndael alias cipher-17 rc5 # IDE modules changed names in 2.4.22 if KERNEL_VER >= 2.4.22 alias ide-mod ide-core alias ide-probe-mod ide-detect endif ### update-modules: end processing /etc/modutils/aliases ### update-modules: start processing /etc/modutils/alsa-base # autoloader aliases alias char-major-116 snd alias char-major-14 soundcore alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 alias sound-slot-2 snd-card-2 alias sound-slot-3 snd-card-3 alias sound-slot-4 snd-card-4 alias sound-slot-5 snd-card-5 alias sound-slot-6 snd-card-6 alias sound-slot-7 snd-card-7 above sound-slot-0 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-1 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-2 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-3 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-4 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-5 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-6 snd-pcm-oss snd-mixer-oss snd-seq-oss above sound-slot-7 snd-pcm-oss snd-mixer-oss snd-seq-oss alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss # Load optional modules above their base modules above snd-pcm snd-pcm-oss above snd-mixer snd-mixer-oss above snd-seq snd-seq-oss snd-seq-midi above snd-emu10k1 snd-emu10k1-synth above snd-via82xx snd-seq above snd-rawmidi snd-seq-midi # Cause a script to be run after snd-*-synth module initialization post-install snd-emu8000-synth /lib/alsa/modprobe-post-install snd-emu8000-synth post-install snd-emu10k1-synth /lib/alsa/modprobe-post-install snd-emu10k1-synth # Cause a script to be run after card driver module initialization post-install snd-ad1816a /lib/alsa/modprobe-post-install snd-ad1816a post-install snd-ad1848 /lib/alsa/modprobe-post-install snd-ad1848 post-install snd-adlib /lib/alsa/modprobe-post-install snd-adlib post-install snd-ad1889 /lib/alsa/modprobe-post-install snd-ad1889 post-install snd-ali5451 /lib/alsa/modprobe-post-install snd-ali5451 post-install snd-als100 /lib/alsa/modprobe-post-install snd-als100 post-install snd-als300 /lib/alsa/modprobe-post-install snd-als300 post-install snd-als4000 /lib/alsa/modprobe-post-install snd-als4000 post-install snd-aoa /lib/alsa/modprobe-post-install snd-aoa post-install snd-aoa-fabric-layout /lib/alsa/modprobe-post-install snd-aoa-fabric-layout post-install snd-aoa-onyx /lib/alsa/modprobe-post-install snd-aoa-onyx post-install snd-aoa-tas /lib/alsa/modprobe-post-install snd-aoa-tas post-install snd-aoa-toonie /lib/alsa/modprobe-post-install snd-aoa-toonie post-install snd-aoa-soundbus /lib/alsa/modprobe-post-install snd-aoa-soundbus post-install snd-aoa-soundbus-i2s /lib/alsa/modprobe-post-install snd-aoa-soundbus-i2s post-install snd-armaaci /lib/alsa/modprobe-post-install snd-armaaci post-install snd-asihpi /lib/alsa/modprobe-post-install snd-asihpi post-install snd-atiixp /lib/alsa/modprobe-post-install snd-atiixp post-install snd-au1x00 /lib/alsa/modprobe-post-install snd-au1x00 post-install snd-au8810 /lib/alsa/modprobe-post-install snd-au8810 post-install snd-au8820 /lib/alsa/modprobe-post-install snd-au8820 post-install snd-au8830 /lib/alsa/modprobe-post-install snd-au8830 post-install snd-azt2320 /lib/alsa/modprobe-post-install snd-azt2320 post-install snd-azt3328 /lib/alsa/modprobe-post-install snd-azt3328 post-install snd-ca0106 /lib/alsa/modprobe-post-install snd-ca0106 post-install snd-cmi8330 /lib/alsa/modprobe-post-install snd-cmi8330 post-install snd-cmipci /lib/alsa/modprobe-post-install snd-cmipci post-install snd-cs4231 /lib/alsa/modprobe-post-install snd-cs4231 post-install snd-cs4232 /lib/alsa/modprobe-post-install snd-cs4232 post-install snd-cs4236 /lib/alsa/modprobe-post-install snd-cs4236 post-install snd-cs4281 /lib/alsa/modprobe-post-install snd-cs4281 post-install snd-cs46xx /lib/alsa/modprobe-post-install snd-cs46xx post-install snd-cs5535audio /lib/alsa/modprobe-post-install snd-cs5535audio post-install snd-darla20 /lib/alsa/modprobe-post-install snd-darla20 post-install snd-darla24 /lib/alsa/modprobe-post-install snd-darla24 post-install snd-dt019x /lib/alsa/modprobe-post-install snd-dt019x post-install snd-echo3g /lib/alsa/modprobe-post-install snd-echo3g post-install snd-emu10k1x /lib/alsa/modprobe-post-install snd-emu10k1x post-install snd-ens1370 /lib/alsa/modprobe-post-install snd-ens1370 post-install snd-ens1371 /lib/alsa/modprobe-post-install snd-ens1371 post-install snd-es1688 /lib/alsa/modprobe-post-install snd-es1688 post-install snd-es18xx /lib/alsa/modprobe-post-install snd-es18xx post-install snd-es1938 /lib/alsa/modprobe-post-install snd-es1938 post-install snd-es1968 /lib/alsa/modprobe-post-install snd-es1968 post-install snd-es968 /lib/alsa/modprobe-post-install snd-es968 post-install snd-fm801 /lib/alsa/modprobe-post-install snd-fm801 post-install snd-fm801-tea575x /lib/alsa/modprobe-post-install snd-fm801-tea575x post-install snd-gina20 /lib/alsa/modprobe-post-install snd-gina20 post-install snd-gina24 /lib/alsa/modprobe-post-install snd-gina24 post-install snd-gusclassic /lib/alsa/modprobe-post-install snd-gusclassic post-install snd-gusextreme /lib/alsa/modprobe-post-install snd-gusextreme post-install snd-gusmax /lib/alsa/modprobe-post-install snd-gusmax post-install snd-harmony /lib/alsa/modprobe-post-install snd-harmony post-install snd-hda-intel /lib/alsa/modprobe-post-install snd-hda-intel post-install snd-hdsp /lib/alsa/modprobe-post-install snd-hdsp post-install snd-hdspm /lib/alsa/modprobe-post-install snd-hdspm post-install snd-ice1712 /lib/alsa/modprobe-post-install snd-ice1712 post-install snd-ice1724 /lib/alsa/modprobe-post-install snd-ice1724 post-install snd-indigo /lib/alsa/modprobe-post-install snd-indigo post-install snd-indigodj /lib/alsa/modprobe-post-install snd-indigodj post-install snd-indigoio /lib/alsa/modprobe-post-install snd-indigoio post-install snd-intel8x0 /lib/alsa/modprobe-post-install snd-intel8x0 post-install snd-interwave /lib/alsa/modprobe-post-install snd-interwave post-install snd-interwave-stb /lib/alsa/modprobe-post-install snd-interwave-stb post-install snd-korg1212 /lib/alsa/modprobe-post-install snd-korg1212 post-install snd-layla20 /lib/alsa/modprobe-post-install snd-layla20 post-install snd-layla24 /lib/alsa/modprobe-post-install snd-layla24 post-install snd-maestro3 /lib/alsa/modprobe-post-install snd-maestro3 post-install snd-mia /lib/alsa/modprobe-post-install snd-mia post-install snd-miro /lib/alsa/modprobe-post-install snd-miro post-install snd-mixart /lib/alsa/modprobe-post-install snd-mixart post-install snd-mona /lib/alsa/modprobe-post-install snd-mona post-install snd-mpu401 /lib/alsa/modprobe-post-install snd-mpu401 post-install snd-msnd-pinnacle /lib/alsa/modprobe-post-install snd-msnd-pinnacle post-install snd-mtpav /lib/alsa/modprobe-post-install snd-mtpav post-install snd-mts64 /lib/alsa/modprobe-post-install snd-mts64 post-install snd-nm256 /lib/alsa/modprobe-post-install snd-nm256 post-install snd-opl3sa2 /lib/alsa/modprobe-post-install snd-opl3sa2 post-install snd-opti92x-ad1848 /lib/alsa/modprobe-post-install snd-opti92x-ad1848 post-install snd-opti92x-cs4231 /lib/alsa/modprobe-post-install snd-opti92x-cs4231 post-install snd-opti93x /lib/alsa/modprobe-post-install snd-opti93x post-install snd-pc98-cs4232 /lib/alsa/modprobe-post-install snd-pc98-cs4232 post-install snd-pcsp /lib/alsa/modprobe-post-install snd-pcsp post-install snd-pcxhr /lib/alsa/modprobe-post-install snd-pcxhr post-install snd-pdaudiocf /lib/alsa/modprobe-post-install snd-pdaudiocf post-install snd-pdplus /lib/alsa/modprobe-post-install snd-pdplus post-install snd-portman2x4 /lib/alsa/modprobe-post-install snd-portman2x4 post-install snd-powermac /lib/alsa/modprobe-post-install snd-powermac post-install snd-pxa2xx-ac97 /lib/alsa/modprobe-post-install snd-pxa2xx-ac97 post-install snd-pxa2xx-i2sound /lib/alsa/modprobe-post-install snd-pxa2xx-i2sound post-install snd-riptide /lib/alsa/modprobe-post-install snd-riptide post-install snd-rme32 /lib/alsa/modprobe-post-install snd-rme32 post-install snd-rme96 /lib/alsa/modprobe-post-install snd-rme96 post-install snd-rme9652 /lib/alsa/modprobe-post-install snd-rme9652 post-install snd-s3c2410 /lib/alsa/modprobe-post-install snd-s3c2410 post-install snd-sa11xx-uda1341 /lib/alsa/modprobe-post-install snd-sa11xx-uda1341 post-install snd-sb16 /lib/alsa/modprobe-post-install snd-sb16 post-install snd-sb8 /lib/alsa/modprobe-post-install snd-sb8 post-install snd-sbawe /lib/alsa/modprobe-post-install snd-sbawe post-install snd-serial-u16550 /lib/alsa/modprobe-post-install snd-serial-u16550 post-install snd-sgalaxy /lib/alsa/modprobe-post-install snd-sgalaxy post-install snd-sonicvibes /lib/alsa/modprobe-post-install snd-sonicvibes post-install snd-sscape /lib/alsa/modprobe-post-install snd-sscape post-install snd-sun-amd7930 /lib/alsa/modprobe-post-install snd-sun-amd7930 post-install snd-sun-cs4231 /lib/alsa/modprobe-post-install snd-sun-cs4231 post-install snd-sun-dbri /lib/alsa/modprobe-post-install snd-sun-dbri post-install snd-trident /lib/alsa/modprobe-post-install snd-trident post-install snd-usb-audio /lib/alsa/modprobe-post-install snd-usb-audio post-install snd-usb-usx2y /lib/alsa/modprobe-post-install snd-usb-usx2y post-install snd-vx222 /lib/alsa/modprobe-post-install snd-vx222 post-install snd-vxpocket /lib/alsa/modprobe-post-install snd-vxpocket post-install snd-wavefront /lib/alsa/modprobe-post-install snd-wavefront post-install snd-ymfpci /lib/alsa/modprobe-post-install snd-ymfpci # Prevent abnormal drivers from grabbing index 0 options snd-bt87x index=-2 options snd-cx88_alsa index=-2 options snd-atiixp-modem index=-2 options snd-intel8x0m index=-2 options snd-via82xx-modem index=-2 ### update-modules: end processing /etc/modutils/alsa-base ### update-modules: start processing /etc/modutils/alsa-base-blacklist # Uncomment these entries in order to blacklist unwanted modem drivers # alias snd-atiixp-modem off # alias snd-intel8x0m off # alias snd-via82xx-modem off ### update-modules: end processing /etc/modutils/alsa-base-blacklist ### update-modules: start processing /etc/modutils/linux-sound-base_noOSS alias ac97 off alias ac97_codec off alias ac97_plugin_ad1980 off alias ad1848 off alias ad1889 off alias adlib_card off alias aedsp16 off alias ali5455 off alias btaudio off alias cmpci off alias cs4232 off alias cs4281 off alias cs461x off alias cs46xx off alias emu10k1 off alias es1370 off alias es1371 off alias esssolo1 off alias forte off alias gus off alias i810_audio off alias kahlua off alias mad16 off alias maestro off alias maestro3 off alias maui off alias mpu401 off alias nm256_audio off alias opl3 off alias opl3sa off alias opl3sa2 off alias pas2 off alias pss off alias rme96xx off alias sb off alias sb_lib off alias sgalaxy off alias sonicvibes off alias sound off alias sscape off alias trident off alias trix off alias uart401 off alias uart6850 off alias via82cxxx_audio off alias v_midi off alias wavefront off alias ymfpci off alias ac97_plugin_wm97xx off alias ad1816 off alias audio off alias awe_wave off alias dmasound_core off alias dmasound_pmac off alias harmony off alias sequencer off alias soundcard off alias usb-midi off ### update-modules: end processing /etc/modutils/linux-sound-base_noOSS ### update-modules: start processing /etc/modutils/paths # This file contains a list of paths that modprobe should scan, # beside the ones that are compiled into the modutils tools # themselves. ### update-modules: end processing /etc/modutils/paths ### update-modules: start processing /etc/modutils/arch/i386 alias parport_lowlevel parport_pc alias char-major-10-144 nvram alias binfmt-0064 binfmt_aout alias char-major-10-135 rtc ### update-modules: end processing /etc/modutils/arch/i386 ****************************************************************************************** |
|
|
|
![]() |
![]() |
||
Chargement modules de la carte réseaux
|
||
| Outils de la discussion | |
|
|