Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rockpi4/radxa-apt

    ROCK Pi 4 >  Radxa APT

Introduction

Radxa APT is the Debian package repository maintained by Radxa to provide ROCK Pi and Rockchip vendor specific package.

Currently Radxa APT supports Debian Stretch, Debian Buster and Ubuntu Bionic, each distro has testing and stable repositories, choose one of below:

 export DISTRO=bionic-stable
 export DISTRO=bionic-testing      # update more frequently but maybe unstable
 export DISTRO=focal-stable
 export DISTRO=focal-testing       # update more frequently but maybe unstable
 export DISTRO=stretch-stable
 export DISTRO=stretch-testing     # update more frequently but maybe unstable
 export DISTRO=buster-stable
 export DISTRO=buster-testing      # update more frequently but maybe unstable

Add Radxa APT

 echo "deb http://apt.radxa.com/$DISTRO/ ${DISTRO%-*} main" | sudo tee -a /etc/apt/sources.list.d/apt-radxa-com.list

For Chinese users

You can use https://radxa-apt.aghost.cn instead of http://apt.radxa.com and apt.radxa.com to improve download speed. https://radxa-apt.aghost.cn is a mirror of Radxa APT. This server only has 5Mbps netowrk.

I do not make any guarantees about availability and update timeliness, only the content of the provided packages is consistent with the official ones.

By aghost<ggg17226@gmail.com>


中国大陆镜像


将http://apt.radxa.com或者apt.radxa.com替换为https://radxa-apt.aghost.cn使用。

radxa-apt.aghost.cn为个人对apt.radxa.com做的镜像站,仅有5mbps带宽,并且不对可用性以及更新及时性做任何保证,仅保证提供的包的内容与官方一致。

By aghost<ggg17226@gmail.com>


Get the pub key

 wget -O - apt.radxa.com/$DISTRO/public.key | sudo apt-key add -

Update

 sudo apt-get update && sudo apt-get upgrade

Install essential packages:

 sudo apt-get install rockchip-overlay

Install the latest u-boot

Type the following command.

 $ sudo apt-get install -y rockpi4b-rk-u-boot-latest

Screen shows

 ...
 You are currently running on board:
 ROCK PI 4B 
 There will be two steps that you have to confirm. One is upgrading bootloader on SPI Flash.
 The other is upgrading bootloader on eMMC or uSD card.
 
 Step one: upgrade bootloader on SPI Flash
 Boot device, SPI Flash, is not found. Make sure there is one SPI Flash on board.
 You can install package rockpi4-dtbo later manually and uncomment three lines in file /boot/hw_intfc.conf.
 intfc:uart4=off
 intfc:spi1=on
 intfc:dtoverlay=spi1-flash
 After restarting the Pi, execute command, /usr/local/sbin/rockpi4b_upgrade_bootloader.sh.

 Step two: upgrade bootloader on uSD card or eMMC.
 Boot device, uSD card or eMMC, is found. Would you like to upgrade bootloader on it?
 If yes, type Y/y. If no, type N/n.

Just type Y or y.

 y
 Backup bootloader on boot device (/dev/mmcblk1p2).
 8192+0 records in
 8192+0 records out
 4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.107356 s, 39.1 MB/s
 Overwrite bootloader to boot device (/dev/mmcblk1p2).
 2048+0 records in
 2048+0 records out
 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.140072 s, 7.5 MB/s
 Done.

Install the latest kernel

Now install the latest kernel package and module:

   sudo apt-get install linux-base
   sudo apt-get install linux-4.4-latest

After installation, check file /boot/extlinux/extlinux.conf. It lists all kernel version installed in ROCK Pi. The kernel corresponding to the first label is the newest version and the first boot option.

When want to boot your wanted kernel by default, add one line in file /boot/extlinux/extlinux.conf. The format is as follows:

   default <label name>

For example,

   default kernel-4.4.154-73-rockchip-00007-g155a65a

Save, sync and reboot. Now you boot into the new kernel.

Available packages

Notes

  • 1 Kernel

Each version of kernel includes three packages. For example.

 version: kernel-4.4.154-92-rockchip-g58d4b8d2fd3b
 ├── linux-firmware-image-4.4.154-92-rockchip-g58d4b8d2fd3b
 ├── linux-headers-4.4.154-92-rockchip-g58d4b8d2fd3b
 └── linux-image-4.4.154-92-rockchip-g58d4b8d2fd3b

When install linux-4.4-latst package, the corresponding version of the packages like linux-firmware-firmware*.deb, linux-headers*.deb and linux-image*.deb will also be installed. This situation applies to linux-4.4-rockpis-latst and linux-4.4-rockpin10-latst packages.

ROCK Pi S Kernel:

 ├── linux-image-4.4.143*
 ├── linux-firmware-image-4.4.143*
 └── linux-headers-4.4.143*

ROCK Pi 4 Kernel:

 ├── linux-image-4.4.154*
 ├── linux-firmware-image-4.4.154*
 └── linux-headers-4.4.154*

ROCK Pi N10 Kernel:

 ├── linux-image-4.4.167*
 ├── linux-firmware-image-4.4.167*
 └── linux-headers-4.4.167*
  • 2 rockchip-adbd

Available for ROCK Pi S.

When the kernel version of ROCK Pi S is newer than 4.4.143-46-rockchip, it is necessary to update the rockchip-adbd package to version at least 0.5.

  • 3 realtek-bt-firmware

Available for ROCK Pi E with RTL8723DU/RTL8821CU on board.

  • 4 rtl8723ds-firmware

Available for ROCK Pi S.

bionic-stable

 [Expand

bionic-testing

 [Expand

buster-stable

 [Expand

buster-testing

 [Expand

stretch-stable

 [Expand

stretch-testing

 [Expand

Change Log

Kernel packages

ROCK Pi 4
 [Expand
ROCK Pi E
 [Expand
ROCK Pi N10
 [Expand
ROCK Pi S
 [Expand