Difference between revisions of "Template:RockchipCommonLinuxTips"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Common Operations on Linux Systems==
+
==Common Linux-based operating system operations==
 
===Using ADB on Linux Systems===
 
===Using ADB on Linux Systems===
 
====Enabling ADB in Buildroot System====
 
====Enabling ADB in Buildroot System====
Line 23: Line 23:
 
====How to Connect====
 
====How to Connect====
 
When using ADB, the port connected to the computer is the same as the USB flashing port.
 
When using ADB, the port connected to the computer is the same as the USB flashing port.
 +
===Install Kernel Headers===
 +
<syntaxhighlight lang="bash">
 +
sudo dpkg -i /opt/archives/linux-headers-*.deb
 +
</syntaxhighlight>
 +
{{#switch: {{{1}}}
 +
| rk3588 =
 +
===Update Kernel to Latest Version===
 +
This will update the kernel to the latest version and update the kernel and resource partitions, as well as the kernel modules:
 +
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
 +
wget <nowiki>http://112.124.9.243</nowiki>/archives/{{{1}}}/linux-image-$(uname -r)-latest.deb<br>
 +
sudo dpkg -i ./linux-image-latest.deb<br>
 +
sudo reboot
 +
</div>
 +
Update the kernel headers:
 +
<div style="border:1px solid #d8d8d8; padding-top:5px; padding-right:10px; padding-bottom:5px; padding-left:10px; background-color:#f8f8f8;">
 +
wget <nowiki>http://112.124.9.243</nowiki>/archives/{{{1}}}/linux-headers-$(uname -r)-latest.deb<br>
 +
sudo dpkg -i ./linux-headers-latest.deb
 +
</div>
 +
You can visit <nowiki>http://112.124.9.243</nowiki>/archives/{{{1}}} to see which kernel deb packages are available.
 +
| #default =
 +
}}

Latest revision as of 06:08, 23 May 2024

1 Common Linux-based operating system operations

1.1 Using ADB on Linux Systems

1.1.1 Enabling ADB in Buildroot System

Enable on Startup

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

Enable Temporarily

usbdevice-wrapper start

1.1.2 Enabling ADB in Ubuntu and Debian Systems

Enable on Startup

sudo systemctl enable usbdevice
sudo reboot

Enable Temporarily

usbdevice-wrapper start

1.1.3 How to Connect

When using ADB, the port connected to the computer is the same as the USB flashing port.

1.2 Install Kernel Headers

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