Projet: Compilation du kernel pour 256 cartes et 768khz de bande passante avec les utilitaires alsa!
version 18.04
A lancer en sudo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
#!/bin/bash sudo modprobe snd-aloop echo snd-aloop >> /etc/modules echo " " >> /etc/modprobe.d/alsa-base.conf echo "#Addition for loopback" >> /etc/modprobe.d/alsa-base.conf echo "options snd-aloop \\" >> /etc/modprobe.d/alsa-base.conf echo "index=10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32 \\" >> /etc/modprobe.d/alsa-base.conf echo "id=lp0,lp1,lp2,lp3,lp4,lp5,lp6,lp7,lp8,lp9,lp10,lp11,lp12,lp13,lp14,lp15,lp16,lp17,lp18,lp19,lp20,lp21,lp22 \\" >> /etc/modprobe.d/alsa-base.conf echo "enable=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 \\" >> /etc/modprobe.d/alsa-base.conf echo "pcm_substreams=2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 /" >> /etc/modprobe.d/alsa-base.conf add-apt-repository -y universe echo 'deb-src http://archive.ubuntu.com/ubuntu bionic main universe' >> /etc/apt/source.list apt-get update && sudo apt-get upgrade -y apt-get install -y libtool automake flex kernel-wedge build-essential fakeroot libncurses5-dev ccache kernel-package libncurses5-dev fakeroot wget bzip2 libssl-dev gawk libudev-dev ocl-icd-opencl-dev libpci-dev libelf-dev libusb-* dpkg-dev screen kernel-wedge git linux-headers-4.15.0-38-generic linux-headers-4.15.0-38-lowlatency git flex bison bc libssl-dev gawk libudev-dev ocl-icd-opencl-dev libpci-dev libelf-dev python2.7 libncurses-dev fakeroot kernel-wedge binfmt-support ksh lsscsi binfmt-support libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libsepol1-dev libattr1-dev libblkid-dev libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libselinux1-dev libsepol1-dev uuid-dev debugedit libarchive13 libdw1 liblua5.2-0 liblzo2-2 libnspr4 libnss3 librpm8 librpmbuild8 librpmio8 librpmsign8 rpm rpm-common rpm2cpio spl-dkms asciidoc default-jdk mkdir /tmp/megamod cd /tmp/megamod git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git cd ubuntu-bionic sed -i 's/SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_192000,/SNDRV_PCM_RATE_CONTINUOUS,/g' ./sound/drivers/aloop.c sed -i 's/192000/768000/g' ./sound/drivers/aloop.c grep -rnl './' -e "CONFIG_SND_MAX_CARDS=32" | xargs -i@ sed -i 's/CONFIG_SND_MAX_CARDS=32/CONFIG_SND_MAX_CARDS=256/g' @ fakeroot debian/rules clean fakeroot debian/rules binary dpkg -i linux*4.15.0-*.deb mkdir /usr/src/alsa cd /usr/src/alsa git clone git://git.alsa-project.org/alsa-lib.git alsa-lib cd /usr/src/alsa/alsa-lib ./gitcompile --with-max-cards=256 mkdir -p ~/libasound/usr/lib/x86_64-linux-gnu mv /usr/lib/libasound* ~/libasound/usr/lib/ mv /usr/lib/x86_64-linux-gnu/libasound* ~/libasound/usr/lib/x86_64-linux-gnu make install cp /usr/lib/libasound* /usr/lib/x86_64-linux-gnu/ cd /usr/src/alsa git clone git://git.alsa-project.org/alsa-utils.git alsa-utils cd /usr/src/alsa/alsa-utils ./gitcompile --with-max-cards=256 make install |
version 20.04
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
sudo add-apt-repository -y universe sudo apt-get update sudo apt-get install -y dwarves pkg-config kernel-wedge default-jdk asciidoc python-docutils libcap-dev bison cmake cmake-data debconf-utils icu-devtools libicu-dev libjsoncpp1 librhash0 libxml2-dev debhelper flex dpkg-dev alsa-base alsa-utils libasound2-dev git build-essential kernel-package fakeroot libncurses5-dev libssl-dev ccache libelf-dev zlib1g-dev libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf sudo adduser `whoami` audio sudo nano /etc/modules #ajouter à la fin: snd-aloop sudo shutdown -r now sudo modprobe snd-aloop screen mkdir ~/megamod cd ~/megamod git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git cd ubuntu-focal sed -i 's/SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_192000,/SNDRV_PCM_RATE_CONTINUOUS,/g' ./sound/drivers/aloop.c sed -i 's/192000/768000/g' ./sound/drivers/aloop.c grep -rnl './' -e "CONFIG_SND_MAX_CARDS=32" | xargs -i@ sed -i 's/CONFIG_SND_MAX_CARDS=32/CONFIG_SND_MAX_CARDS=256/g' @ echo "do_enforce_all = false" > debian.master/rules.d/hooks.mk fakeroot debian/rules clean fakeroot debian/rules binary sudo dpkg -i ../linux*5.4.0-*.deb sudo systemctl disable hv-kvp-daemon.service sudo shutdown -r now sudo nano /etc/modprobe.d/alsa-base.conf #ajouter à la fin: options snd-aloop index=10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 id=lp0,lp1,lp2,lp3,lp4,lp5,lp6,lp7,lp8,lp9,lp10,lp11,lp12,lp13,lp14,lp15,lp16,lp17,lp18,lp19,lp20,lp21,lp22,lp23,lp24,lp25,lp26,lp27,lp28,lp29,lp30,lp31,lp32,lp33,lp34,lp35 enable=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 pcm_substreams=2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 sudo shutdown -r now sudo su sudo mkdir /usr/src/alsa cd /usr/src/alsa git clone git://git.alsa-project.org/alsa-lib.git alsa-lib git clone git://git.alsa-project.org/alsa-utils.git alsa-utils cd /usr/src/alsa/alsa-lib ./gitcompile --with-max-cards=256 mkdir -p ~/libasound/usr/lib/x86_64-linux-gnu mv /usr/lib/libasound* ~/libasound/usr/lib/ mv /usr/lib/x86_64-linux-gnu/libasound* ~/libasound/usr/lib/x86_64-linux-gnu make install cp /usr/lib/libasound* /usr/lib/x86_64-linux-gnu/ cd /usr/src/alsa/alsa-utils ./gitcompile --with-max-cards=256 make install sed -i 's/defaults.namehint.showall off/defaults.namehint.showall on/g' /usr/share/alsa/alsa.conf sed -i 's/defaults.namehint.extended off/defaults.namehint.extended on/g' /usr/share/alsa/alsa.conf cd /tmp wget https://www.f4htb.fr/downloads/alsacap.tgz tar -zxvf alsacap.tgz cd alsacap make sudo make install |