Difference between revisions of "Template:RockchipCommonLinuxTips/zh"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
(updated by API)
Line 30: Line 30:
 
会更新内核到kernel和resource分区,同时更新内核模块:
 
会更新内核到kernel和resource分区,同时更新内核模块:
 
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
 
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
wget http://112.124.9.243/archives/{{{1}}}/linux-image-latest.deb<br>
+
wget http://112.124.9.243/archives/{{{1}}}/linux-image-$(uname -r)-latest.deb<br>
 
sudo dpkg -i ./linux-image-latest.deb<br>
 
sudo dpkg -i ./linux-image-latest.deb<br>
 
sudo reboot
 
sudo reboot
Line 36: Line 36:
 
更新内核头文件:
 
更新内核头文件:
 
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
 
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
wget http://112.124.9.243/archives/{{{1}}}/linux-headers-latest.deb<br>
+
wget http://112.124.9.243/archives/{{{1}}}/linux-headers-$(uname -r)-latest.deb<br>
 
sudo dpkg -i ./linux-headers-latest.deb
 
sudo dpkg -i ./linux-headers-latest.deb
 
</div>
 
</div>

Revision as of 05:47, 23 May 2024

1 Linux操作系统的常见操作

1.1 Linux系统下使用adb

1.1.1 buildroot系统下开启adb功能

开机自动开启

mv /etc/init.d/K50usbdevice /etc/init.d/S50usbdevice
reboot

临时开启

usbdevice-wrapper start

1.1.2 ubuntu和debian系统下开启adb功能

开机自动开启

sudo systemctl enable usbdevice
sudo reboot

临时开启

usbdevice-wrapper start

1.1.3 如何连接

使用adb时,与电脑相连接的端口与usb线刷的端口相同。

1.2 安装内核头文件

sudo dpkg -i /opt/archives/linux-headers-*.deb

1.3 更新内核到最新版本

会更新内核到kernel和resource分区,同时更新内核模块:

wget http://112.124.9.243/archives/{{{1}}}/linux-image-$(uname -r)-latest.deb
sudo dpkg -i ./linux-image-latest.deb
sudo reboot

更新内核头文件:

wget http://112.124.9.243/archives/{{{1}}}/linux-headers-$(uname -r)-latest.deb
sudo dpkg -i ./linux-headers-latest.deb