Added DKMS Drivers for Broadcom
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,5 +11,6 @@ binary
|
|||||||
build.log
|
build.log
|
||||||
live-image*
|
live-image*
|
||||||
binary.modified_timestamps
|
binary.modified_timestamps
|
||||||
|
Testing.nmconnection
|
||||||
*.deb
|
*.deb
|
||||||
*.iso
|
*.iso
|
||||||
95
.vscode/tasks.json
vendored
Normal file
95
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build IMG all architectures",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build IMG amd64",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make build_amd64",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build IMG i386",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make build_amd64",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build IMG all architectures W DKMS",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make enable_DKMS build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build IMG amd64 W DKMS",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make enable_DKMS build_amd64",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build IMG i386 W DKMS",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make enable_DKMS build_amd64",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Clean",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make clean",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"id": "BuildVariant",
|
||||||
|
"description": "Wich Variant shoud be build",
|
||||||
|
"type": "promptString"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "pickString",
|
||||||
|
"id": "Distro",
|
||||||
|
"description": "Wich Distro shoud be used",
|
||||||
|
"options": [
|
||||||
|
"Debian",
|
||||||
|
"Alpine",
|
||||||
|
"OtherTesting"
|
||||||
|
],
|
||||||
|
"default": "Debian"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
6
Makefile
6
Makefile
@@ -14,6 +14,10 @@ install_buildenv: # Install packages required to build the image
|
|||||||
download_extra: #For downloading extra's for iso (not needed/tested)
|
download_extra: #For downloading extra's for iso (not needed/tested)
|
||||||
make -f Makefile.extra
|
make -f Makefile.extra
|
||||||
|
|
||||||
|
#Current dkms drivers: Broadcom-STA
|
||||||
|
enable_DKMS: #Add customizations to enable dkms drivers
|
||||||
|
cp -r config_DKMS/* config
|
||||||
|
|
||||||
#Add 'download_extra' to build without third party software/dotfiles (not needed/tested)
|
#Add 'download_extra' to build without third party software/dotfiles (not needed/tested)
|
||||||
build: prep_buildenv install_buildenv build_amd64 build_i386 clean_env #Runs build for all architectures
|
build: prep_buildenv install_buildenv build_amd64 build_i386 clean_env #Runs build for all architectures
|
||||||
|
|
||||||
@@ -37,6 +41,8 @@ clean_env: #Clear all caches and archives
|
|||||||
sudo TargetArch=amd64 lb clean --all
|
sudo TargetArch=amd64 lb clean --all
|
||||||
sudo TargetArch=i386 lb clean --all
|
sudo TargetArch=i386 lb clean --all
|
||||||
make -f Makefile.extra clean
|
make -f Makefile.extra clean
|
||||||
|
rm -f config/hooks/normal/0899-install-dkms-drivers.chroot
|
||||||
|
|
||||||
clean_iso: #Removes genereated iso's
|
clean_iso: #Removes genereated iso's
|
||||||
rm -f Custom-image-amd64.iso Custom-image-i386.iso
|
rm -f Custom-image-amd64.iso Custom-image-i386.iso
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
# live-build configuration script
|
# live-build configuration script
|
||||||
# see 'man lb config'
|
# see 'man lb config'
|
||||||
|
|
||||||
#Add "linux-headers" to linux-packages when using nvidia driver
|
|
||||||
|
|
||||||
lb config noauto \
|
lb config noauto \
|
||||||
--apt-recommends false \
|
--apt-recommends false \
|
||||||
--apt-indices false \
|
--apt-indices false \
|
||||||
|
|||||||
@@ -106,19 +106,6 @@ xserver-xorg-video-intel
|
|||||||
xfonts-base
|
xfonts-base
|
||||||
hwdata
|
hwdata
|
||||||
|
|
||||||
#Section nvidiaDriver
|
|
||||||
#nvidia-driver
|
|
||||||
##if ARCHITECTURES amd64
|
|
||||||
#linux-headers-amd64
|
|
||||||
##endif
|
|
||||||
##if ARCHITECTURES i386
|
|
||||||
#linux-headers-686:i386
|
|
||||||
##endif
|
|
||||||
#module-assistant
|
|
||||||
#dkms
|
|
||||||
#build-essential
|
|
||||||
|
|
||||||
|
|
||||||
#Section: Kernel/boot/init
|
#Section: Kernel/boot/init
|
||||||
systemd
|
systemd
|
||||||
#os-prober
|
#os-prober
|
||||||
@@ -130,6 +117,8 @@ libpam-systemd
|
|||||||
#Section: Firmwares
|
#Section: Firmwares
|
||||||
firmware-linux-free
|
firmware-linux-free
|
||||||
firmware-linux-nonfree
|
firmware-linux-nonfree
|
||||||
|
firmware-b43-installer
|
||||||
|
firmware-b43legacy-installer
|
||||||
amd64-microcode
|
amd64-microcode
|
||||||
intel-microcode
|
intel-microcode
|
||||||
|
|
||||||
|
|||||||
23
config_DKMS/hooks/normal/0899-install-dkms-drivers.chroot
Executable file
23
config_DKMS/hooks/normal/0899-install-dkms-drivers.chroot
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#!/bin/sh
|
||||||
|
echo "I: running $0"
|
||||||
|
|
||||||
|
#Install Kernel headers
|
||||||
|
if [ -f "/usr/bin/x86_64" ] ; then
|
||||||
|
apt install linux-headers-amd64 -y
|
||||||
|
else
|
||||||
|
apt install linux-headers-686-pae:i386 -y
|
||||||
|
fi
|
||||||
|
#Install General dkms support
|
||||||
|
apt install -y dkms
|
||||||
|
|
||||||
|
#Install Broadcom sta Dkms Driver
|
||||||
|
apt install -y broadcom-sta-dkms
|
||||||
|
|
||||||
|
#Note for potential NvidiaDriver packages
|
||||||
|
#nvidia-driver
|
||||||
|
#module-assistant
|
||||||
|
#build-essential
|
||||||
|
|
||||||
|
#Cleanup unnecessary build tools after install
|
||||||
|
apt purge -y linux-headers* linux-kbuild* linux-compiler-gcc-10-x86
|
||||||
Reference in New Issue
Block a user