Added DKMS Drivers for Broadcom

This commit is contained in:
2021-11-10 15:54:21 +01:00
parent e87f065256
commit c5d18ac19c
6 changed files with 128 additions and 16 deletions

1
.gitignore vendored
View File

@@ -11,5 +11,6 @@ binary
build.log
live-image*
binary.modified_timestamps
Testing.nmconnection
*.deb
*.iso

95
.vscode/tasks.json vendored Normal file
View 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"
},
]
}

View File

@@ -14,6 +14,10 @@ install_buildenv: # Install packages required to build the image
download_extra: #For downloading extra's for iso (not needed/tested)
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)
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=i386 lb clean --all
make -f Makefile.extra clean
rm -f config/hooks/normal/0899-install-dkms-drivers.chroot
clean_iso: #Removes genereated iso's
rm -f Custom-image-amd64.iso Custom-image-i386.iso

View File

@@ -2,8 +2,6 @@
# live-build configuration script
# see 'man lb config'
#Add "linux-headers" to linux-packages when using nvidia driver
lb config noauto \
--apt-recommends false \
--apt-indices false \

View File

@@ -106,19 +106,6 @@ xserver-xorg-video-intel
xfonts-base
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
systemd
#os-prober
@@ -130,6 +117,8 @@ libpam-systemd
#Section: Firmwares
firmware-linux-free
firmware-linux-nonfree
firmware-b43-installer
firmware-b43legacy-installer
amd64-microcode
intel-microcode

View 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