cropped-forum.png

論壇總覽 MP500系列微型電腦討論區 請協助提供MP510的kernal header與source檔案 回覆至:請協助提供MP510的kernal header與source檔案

#1479
Huang Jia-Bin
管理員
    @jb

    MP510-50之Linux Kernel已更新 5.15.112-mp510n+,Kernel Source亦同樣更新:

    $ sudo apt update
    $ sudo apt install linux-image-5.15.112-mp510n+
    $ sudo apt install linux-headers-5.15.112-mp510n+
    

    下載Kernel source

    $ apt-get source linux-upstream_5.15.112-mp510n+
    

    n 代表 native build,在build驅動程式時,使用 native build kernel 問題比較少。

    因爲Kernel Source比較佔硬碟空間,Repository自動保持最新版本,而把老的版本清除掉。Image則會保留以前的版本。

    因爲 Kernel是用clang build,而不是使用gcc,所以build驅動程式時 make 請加上 CC=clang。

    $ make CC=clang