More package rename updates (wasn't sure about Gentoo, so I left it). Code fence for the Ubuntu script.

Michael
2025-08-17 19:20:46 -04:00
parent 571aceeb32
commit 25fe126359

@@ -20,7 +20,7 @@ This assumes you have already followed the Fedora steps. You will need to verify
- Install needed packages: `# dnf install dkms`
- Make a directory to work from: `# mkdir /usr/src/facetimehd-0.1`
- Change into the git repo dir: `$ cd bcwc_pcie`
- Change into the git repo dir: `$ cd facetimehd`
- Copy files over: `# cp -r * /usr/src/facetimehd-0.1/`
- Change into that dir: `# cd /usr/src/facetimehd-0.1/`
- Clear out previous compile: `# make clean`
@@ -60,42 +60,44 @@ All the steps are the same as Debian. (The only difference is that the firmware.
## Ubuntu installation script
This may be used as an alternative to the manual installation steps described above. Works on Ubuntu 16.04. To be placed outside the `bcwc_pcie` folder. Run with `bash script.sh`
This may be used as an alternative to the manual installation steps described above. Works on Ubuntu 16.04. To be placed outside the `facetimehd` folder. Run with `bash script.sh`
#!/bin/bash
```sh
#!/bin/bash
cd facetimehd/firmware
cd facetimehd/firmware
printf "Compiling firmware\n";
make
printf "done\n\n";
printf "Compiling firmware\n";
make
printf "done\n\n";
printf "Installing firmware\n";
sudo make install
printf "done\n\n";
printf "Installing firmware\n";
sudo make install
printf "done\n\n";
cd ..
cd ..
printf "Compiling driver\n";
make
printf "done\n\n";
printf "Compiling driver\n";
make
printf "done\n\n";
printf "Installing driver\n";
sudo make install
printf "done\n\n";
printf "Installing driver\n";
sudo make install
printf "done\n\n";
printf "Running depmod\n";
sudo depmod
printf "done\n\n";
printf "Running depmod\n";
sudo depmod
printf "done\n\n";
printf "modprobe remove bdc_pci (if it exists)\n";
sudo modprobe -remove --quiet bdc_pci
printf "done\n\n";
printf "modprobe remove bdc_pci (if it exists)\n";
sudo modprobe -remove --quiet bdc_pci
printf "done\n\n";
printf "Loading driver\n";
sudo modprobe facetimehd
printf "done\n\n";
printf "Loading driver\n";
sudo modprobe facetimehd
printf "done\n\n";
```
If `sudo modprobe facetimehd` fails, run `dmesg`. If you get `facetimehd: version magic '4.13.0-37-generic SMP mod_unload ' should be '4.13.0-38-generic SMP mod_unload '`, or similar, you may manually edit the file via `sudo vim /lib/modules/4.13.0-38-generic/extra/facetimehd.ko` and replace `vermagic=4.13.0-37-generic SMP mod_unload` with `vermagic=4.13.0-38-generic SMP mod_unload`. Then you may be able to `sudo modprobe facetimehd` without any issues.
@@ -111,14 +113,14 @@ Also: Don't forget to add a file /etc/modprobe.d/blacklist-facetimehd.conf with
`blacklist bdc_pci` to prevent bdc_pci from being auto-loaded.
## Setting up DKMS (auto-compile on kernal update)
## Setting up DKMS (auto-compile on kernel update)
This assumes you have already followed the Debian/Ubuntu deb package steps. You will need to verify `dkms.conf` that the module name `facetimehd` and version number `0.1` are correct and either update the `dkms.conf` or adjust the instructions where `-m` and `-v` are used.
- Install needed packages: `# apt install debhelper dkms`
- Remove old package if installed: `# dpkg -r bcwc-pcie `
- Make a directory to work from: `# mkdir /usr/src/facetimehd-0.1`
- Change into the git repo dir: `$ cd bcwc_pcie`
- Change into the git repo dir: `$ cd facetimehd`
- Copy files over: `# cp -r * /usr/src/facetimehd-0.1/`
- Change into that dir: `# cd /usr/src/facetimehd-0.1/`
- Remove any previous debs and backups: `# rm backup-*tgz bcwc-pcie_*deb`