Difference between revisions of "Template:RockchipCommonLinuxTips/zh"
From FriendlyELEC WiKi
(updated by API) |
(updated by API) |
||
Line 23: | Line 23: | ||
====如何连接==== | ====如何连接==== | ||
使用adb时,与电脑相连接的端口与usb线刷的端口相同。 | 使用adb时,与电脑相连接的端口与usb线刷的端口相同。 | ||
+ | ===安装内核头文件=== | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | sudo dpkg -i /opt/archives/linux-headers-*.deb | ||
+ | </syntaxhighlight> | ||
+ | {{#switch: {{{1}}} | ||
+ | | RK3588 | ||
+ | ===更新内核到最新版本=== | ||
+ | 会更新内核到kernel和resource分区,同时更新内核模块: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | wget http://112.124.9.243/archives/rk3588/linux-image-latest.deb | ||
+ | sudo dpkg -i ./linux-image-latest.deb | ||
+ | sudo reboot | ||
+ | </syntaxhighlight> | ||
+ | 更新内核头文件: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | wget http://112.124.9.243/archives/rk3588/linux-headers-latest.deb | ||
+ | sudo dpkg -i ./linux-headers-latest.deb | ||
+ | </syntaxhighlight> | ||
+ | | #default = | ||
+ | }} |
Revision as of 04:24, 23 May 2024
Contents
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