This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:maker-kit:mind-2-ai-maker-kit:troubleshooting:fix-ubuntu [2024/12/30 05:46] nick |
products:maker-kit:mind-2-ai-maker-kit:troubleshooting:fix-ubuntu [2025/02/20 22:01] (current) nick |
||
---|---|---|---|
Line 2: | Line 2: | ||
- | ====== Fix Ubuntu issues ====== | + | ====== Fix Ubuntu |
+ | |||
+ | <WRAP important > | ||
+ | This documentation is only applied for **Ubuntu 24.04.1**, if you use **Ubuntu | ||
+ | |||
+ | And we suggest you to use **Ubuntu 24.04.2** or newer version. | ||
+ | </ | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 26: | Line 33: | ||
Reboot and press '' | Reboot and press '' | ||
- | ===== Upgrade your system | + | ===== Upgrade your system ===== |
```shell | ```shell | ||
$ sudo apt update | $ sudo apt update | ||
$ sudo apt full-upgrade -y | $ sudo apt full-upgrade -y | ||
+ | $ sync | ||
+ | $ sudo reboot | ||
``` | ``` | ||
- | Follow | + | After reboot, follow |
```shell | ```shell | ||
- | $ cd /tmp | + | $ wget https:// |
- | $ wget https://kernel.ubuntu.com/ | + | $ wget https://security.ubuntu.com/ |
- | $ wget https://kernel.ubuntu.com/ | + | $ wget https://security.ubuntu.com/ |
- | $ wget https://kernel.ubuntu.com/ | + | $ wget https://security.ubuntu.com/ |
- | $ wget https://kernel.ubuntu.com/ | + | $ wget https://security.ubuntu.com/ |
- | $ sudo dpkg -i linux-*.deb | + | $ sudo dpkg -i /tmp/linux-*.deb |
``` | ``` | ||
Line 52: | Line 61: | ||
$ sudo apt update | $ sudo apt update | ||
$ sudo apt full-upgrade -y | $ sudo apt full-upgrade -y | ||
- | $ sync | + | ``` |
+ | |||
+ | The Ubuntu 24.04 repositories contain compute packages for various Intel graphics products. To install those packages, use the following commands: | ||
+ | |||
+ | ```shell | ||
+ | $ wget -qO - https:// | ||
+ | sudo gpg --yes --dearmor --output / | ||
+ | $ echo "deb [arch=amd64, | ||
+ | sudo tee / | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install -y libze-intel-gpu1 libze1 intel-opencl-icd clinfo intel-gsc | ||
+ | ``` | ||
+ | |||
+ | The commands listed above install all the essential packages needed for most users, aiming to minimize the installation of unnecessary packages. However, if you plan to use PyTorch, install '' | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt install -y libze-dev intel-ocloc | ||
+ | ``` | ||
+ | |||
+ | Add user to '' | ||
+ | |||
+ | ```shell | ||
+ | $ sudo gpasswd -a ${USER} render | ||
+ | $ newgrp render | ||
+ | $ sync | ||
+ | $ sudo reboot | ||
+ | ``` | ||
+ | |||
+ | After reboot, to verify that the kernel and compute drivers are installed and functional, run '' | ||
+ | |||
+ | ```shell | ||
+ | $ clinfo | grep " | ||
+ | Device Name | ||
+ | Device Name | ||
+ | Device Name | ||
+ | Device Name | ||
``` | ``` | ||
===== Fix Wi-Fi issue ===== | ===== Fix Wi-Fi issue ===== | ||
+ | |||
+ | ==== Download and install the Wi-Fi driver ==== | ||
+ | |||
+ | Follow the steps below to download the Wi-Fi driver: | ||
+ | |||
+ | ```shell | ||
+ | $ sudo apt update | ||
+ | $ sudo apt install -y git build-essential gcc-14 net-tools | ||
+ | $ cd ~/Downloads | ||
+ | $ git clone git:// | ||
+ | ``` | ||
+ | |||
+ | Build and install the Wi-Fi driver: | ||
+ | |||
+ | ```shell | ||
+ | $ cd ~/ | ||
+ | $ make defconfig-iwlwifi-public | ||
+ | $ make -j10 | ||
+ | $ sudo make install | ||
+ | $ sync | ||
+ | ``` | ||
==== Update the Wi-Fi firmware ==== | ==== Update the Wi-Fi firmware ==== | ||
Line 62: | Line 127: | ||
```shell | ```shell | ||
- | $ wget https:// | + | $ wget https:// |
- | $ wget https:// | + | $ wget https:// |
- | $ wget https:// | + | |
$ sudo cp / | $ sudo cp / | ||
$ sync | $ sync | ||
Line 81: | Line 145: | ||
```shell | ```shell | ||
$ sudo dmesg | grep iw | $ sudo dmesg | grep iw | ||
- | [sudo] password for khadas: | + | [ |
- | [ | + | [ 1.466183] iwlwifi-stack-public:release/ |
- | [ | + | [ |
- | [ | + | [ |
- | [ | + | [ |
- | [ | + | [ |
- | [ 2.157226] iwlwifi 0000: | + | [ |
- | [ | + | [ |
- | [ 2.574664] iwlwifi 0000: | + | [ 2.082992] iwlwifi 0000: |
- | [ 2.575630] iwlwifi 0000: | + | [ 2.101329] iwlwifi 0000: |
- | [ 2.593653] iwlwifi 0000: | + | [ 2.165121] iwlwifi 0000: |
- | [ 2.657680] iwlwifi 0000: | + | [ 2.245760] iwlwifi 0000: |
- | [ 2.727740] iwlwifi 0000: | + | [ |
- | [ | + | |
- | [ 3.781210] iwlwifi 0000: | + | |
``` | ``` | ||
Line 112: | Line 174: | ||
===== Fix Bluetooth issue ===== | ===== Fix Bluetooth issue ===== | ||
- | After you upgrade kernel to '' | + | After you upgrade kernel to '' |
===== Fix HDMI sound card issue ===== | ===== Fix HDMI sound card issue ===== | ||
- | After you upgrade kernel to '' | + | After you upgrade kernel to '' |
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | If you upgrade the kernel manually then you may need to [[# | ||
+ | ]] again to make the Wi-Fi work. | ||
===== In the end ===== | ===== In the end ===== | ||
- | All the above steps will not needed once the Ubuntu official release the new OS with kernel '' | + | <WRAP tip > |
+ | Ubuntu **24.04.2** already fixed all the issues above, you don't need to do anything if you use **24.04.2** or newer version. | ||
+ | </ | ||
+ | |||
+ | All the above steps will not needed once the Ubuntu official release the new OS with kernel '' | ||
+ | |||
+ | See also: | ||
+ | |||
+ | * [[https:// | ||