Template:RockchipCommonLinuxTips/zh

From FriendlyELEC WiKi
Revision as of 03:25, 30 October 2024 by Tzs (Talk | contribs) (updated by API)

Jump to: navigation, search

1 Linux操作系统的常见操作

1.1 Linux系统下使用adb

1.1.1 buildroot系统下开启adb功能

开机自动开启

mv /etc/init.d/K50usbdevice.sh /etc/init.d/S50usbdevice.sh
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 安装内核头文件

安装位于/opt/archives目录下的deb文件:

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

在线下载并更新内核头文件:

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

可以访问 http://112.124.9.243/archives/{{{1}}} 查看有哪些内核deb包。