Dziś zainstalowałem sobie Debiana 9 - wersja kernel: 4.9.0-1-amd64.
Jestem dość zielony w temacie, to pierwszy Linux z jakim mam styczność.
Mój sprzęt to:
Intel Core i5 6500
AMD RX480 4GB
AsRock H110m-HDV
Postanowiłem zainstalować sterowniki do karty graficznej. Debian okazał się nie być obsługiwany przez czerwonych, ale znalazłem coś takiego: https://linuxconfig.org/getting-the-rx- ... u-on-linux
Udało mi się dojść do punktu w którym trzeba zbudować pakiety jądra

Kod: Zaznacz cały
$ fakeroot make-kpkg --initrd --revision=1.0.AMDGPU kernel_image kernel_headers -j 5
Kod: Zaznacz cały
exec make kpkg_version=13.018 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=1.0.AMDGPU INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 13.018.
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
cp -f /usr/share/kernel-package/$file ./debian/; \
done
cp: nie można wykonać stat na '/usr/share/kernel-package/ChangeLog': Nie ma takiego pliku ani katalogu
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af /usr/share/kernel-package/$dir ./debian/; \
done
test -f debian/control || sed -e 's/=V/4.7.0-rc6/g' \
-e 's/=D/1.0.AMDGPU/g' -e 's/=A/amd64/g' \
-e 's/=SA//g' \
-e 's/=I//g' \
-e 's/=CV/4.7/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=R/initramfs-tools | linux-initramfs-tool,/g' /usr/share/kernel-package/Control > debian/control
test -f debian/changelog || sed -e 's/=V/4.7.0-rc6/g' \
-e 's/=D/1.0.AMDGPU/g' -e 's/=A/amd64/g' \
-e 's/=ST/linux/g' -e 's/=B/x86_64/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
/usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Wejście do katalogu '/home/kuba/linux'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make ARCH=x86_64 \
oldconfig;
make[2]: Wejście do katalogu '/home/kuba/linux'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
make[2]: Opuszczenie katalogu '/home/kuba/linux'
make ARCH=x86_64 prepare
make[2]: Wejście do katalogu '/home/kuba/linux'
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:677: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
scripts/kconfig/conf --silentoldconfig Kconfig
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:677: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
/*
Kbuild:45: polecenia dla obiektu 'kernel/bounds.s' nie powiodły się
make[3]: *** [kernel/bounds.s] Błąd 1
Makefile:1032: polecenia dla obiektu 'prepare0' nie powiodły się
make[2]: *** [prepare0] Błąd 2
make[2]: Opuszczenie katalogu '/home/kuba/linux'
debian/ruleset/targets/common.mk:194: polecenia dla obiektu 'debian/stamp/conf/kernel-conf' nie powiodły się
make[1]: *** [debian/stamp/conf/kernel-conf] Błąd 2
make[1]: Opuszczenie katalogu '/home/kuba/linux'
/usr/share/kernel-package/ruleset/minimal.mk:93: polecenia dla obiektu 'debian/stamp/conf/minimal_debian' nie powiodły się
make: *** [debian/stamp/conf/minimal_debian] Błąd 2
Failed to create a ./debian directory: at /usr/bin/make-kpkg line 970.

Moderowano: Proszę używać znaczników kodu.