Skip to content

Releases: amarula/bsp-rockchip

v1.3 BSP Images for ROC-RK3399-PC

08 Jun 19:54
Compare
Choose a tag to compare

Summary:

roc-rk3399-pc-spinor.img.xz is the image to be flashed onto SPI NOR. All the required information about programming spinor image is at [2].

Once programmed, define an environmental variable pwr_key and default it to false "f".
setenv pwr_key f
saveenv
reset (here button press is always bypassed).

to activate button press:
setenv pwr_key t
saveenv
power off the board completely and power-on. board require button press to continue boot.


roc-rk3399-pc-sdcard.img.xz is usual buildroot image which can be flashed to SD/EMMC/SSD/USB:

SD:
sudo dd if=roc-rk3399-pc-sdcard.img of=/dev/sdb status=progress
sync

EMMC:
emmc can be flashed either after booting from SD or SPI.
copy roc-rk3399-pc-sdcard.img.xz onto a usb drive or SD
mount corresponding drive to /mnt
find the corresponding dev file, which would be /dev/mmcblk1(please check: fdisk -l)

dd if=/mnt/roc-rk3399-pc-sdcard.img of=/dev/mmcblk1 status=progress
sync

update update grub.cfg manually by mounting the emmc boot partition.
mount /dev/mmcblk1p1 /media
vim /media/grub.cfg, change as per below.
linux /boot/Image earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk1p2 rw rootwait

SSD:
SSD can be flashed either after booting from SD, SPI or emmc.
copy roc-rk3399-pc-sdcard.img.xz onto a usb drive or SD
mount corresponding drive to /mnt
find the corresponding dev file, which would be /dev/nvme0n1(please check: fdisk -l)

dd if=/mnt/roc-rk3399-pc-sdcard.img of=/dev/nvme0n1 status=progress
sync

update grub.cfg manually by mounting the emmc boot partition.
mount /dev/nvme0n1p1 /media
vim /media/grub.cfg, change as per below.
linux /boot/Image earlycon=uart8250,mmio32,0xff1a0000 root=/dev/nvme0n1p2 rw rootwait

USB:
same as above.


FASTBOOT:
fastboot can be used to flash devices, here we flash emmc via fastboot

power on the board, the same cable acts as OTG (data)
halt at u-boot prompt:
mmc dev 0
gpt write mmc 0 $partitions

fastboot 0 (on target)
lsusb (on host), the device is detected as follows:
Bus 002 Device 023: ID 2207:330c

sudo fastboot -i 0x2207 flash loader1 idbloader.img
sudo fastboot -i 0x2207 flash loader2 u-boot.itb

poweroff, insert jumper, it will boot from MMC2.

please refer the wiki link[1].


Status, Updates & Fixes:

Fixed USB.
Mainlined usb 3.0 drivers for uboot
Mailined PCIe driver for uboot
Fixed NVMe SSD Issues and mainlined.
Added environment variable for button press.
Fixed 4K display
Fixed fastboot
RTC support added, to be mainlined.
Tested PoE.
Enabled RED led in linux.
Changed grub menu to suit the kernel version
Booted buildroot images with SD card, eMMC, SSD and USB disk
U-Boot, v2020.07: SD/eMMC/SPI-NOR boot support, HDMI out, fastboot, ums, leds
Linux, v5.5 Mainline

[2] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#distroot
[1] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#buildroot

u-boot source link:
https://github.com/amarula/u-boot-amarula/tree/roc-rk3399-pc-tpl

Bugs:

USB TYPE C0 is not getting detected in uboot and linux.

Ubuntu focal release for ROC-RK3399-PC v1.2

24 Mar 15:05
Compare
Choose a tag to compare

Summary:

buildroot

roc-rk3399-pc-sdcard.img.xz is usual buidroot image which can be flashed to SD. please refer the wiki link[1] for more information.

distroot

The process of installing distribution would require a spinor to boot via initramfs and program the distribution to any on board flash or secondary storage devices.
roc-rk3399-pc-spinor.img.xz for SPI NOR initramfs
roc-rk3399-pc-distroot.img.xz for Ubuntu focal distribution image available at [2]

All the required information about programming spinor and distribution image at [3]

Status, Updates & Fixes:
Fixed USB HOST1 in uboot.
Changed grub menu to suit the kernel version
Booted Ubuntu focal with LXDE distribution with SD card, eMMC and USB disk
U-Boot, v2020.01: SD/eMMC/SPI-NOR boot support, HDMI out, fastboot, ums, leds
Linux, v5.5 Mainline

[3] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#distroot
[2] https://bitbucket.org/amarula/distroot/src/master/roc-rk3399-pc-distroot.img.xz
[1] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#buildroot

Ubuntu focal release for ROC-RK3399-PC v1.1

13 Mar 21:40
Compare
Choose a tag to compare

Summary:

buildroot

roc-rk3399-pc-sdcard.img.xz is usual buidroot image which can be flashed to SD. please refer the wiki link[1] for more information.

distroot

The process of installing distribution would require a spinor to boot via initramfs and program the distribution to any on board flash or secondary storage devices.
roc-rk3399-pc-spinor.img.xz for SPI NOR initramfs
roc-rk3399-pc-distroot.img.xz for Ubuntu focal distribution image available at [2]

All the required information about programming spinor and distribution image at [3]

Status, Updates & Fixes:
Fixed HDMI crash on boot, displays with resolutions upto 3840x2160(4K) are
supported.
Fixed USB HOST1 port in initramfs.
Fixed USB Type C ports in initramfs and distro.
Updated/Added support to dd command for displaying periodic transfer statistics in busybox.
Fixed reboot in Linux and reset in u-boot.
Booted initramfs with SPI NOR boot
Booted Ubuntu focal with LXDE distribution with SD card, eMMC and USB disk
U-Boot, v2020.01: SD/eMMC/SPI-NOR boot support, HDMI out, fastboot, ums, leds
Linux, v5.5 Mainline

[3] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#distroot
[2] https://bitbucket.org/amarula/distroot/src/master/roc-rk3399-pc-distroot.img.xz
[1] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#buildroot

Ubuntu focal release for ROC-RK3399-PC

02 Feb 17:29
Compare
Choose a tag to compare

Summary:

  1. buildroot

    roc-rk3399-pc-sdcard.img.xz is usual buidroot image which can flash SD or eMMC. please refer the wiki link[1] for more information.

  2. distroot

    The process of installing distribution would require a spinor to boot via initramfs and program the distribution to any on board flash or secondary storage devices.

    • roc-rk3399-pc-spinor.img.xz for SPI NOR initramfs
    • roc-rk3399-pc-distroot.img.xz for Ubuntu focal distribution image available at [2]

    All the required information about programming spinor and distribution image at [3]

Status:

  • Booted initramfs with SPI NOR boot
  • Booted Ubuntu focal with LXDE distribution with SD card, eMMC and USB disk
  • U-Boot, v2020.01: SD/eMMC/SPI-NOR boot support, HDMI out, fastboot, ums, leds
  • Linux, v5.5 Mainline

[3] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#distroot
[2] https://bitbucket.org/amarula/distroot/src/master/roc-rk3399-pc-distroot.img.xz
[1] https://wiki.amarulasolutions.com/bsp/rockchip/rk3399/roc-rk3399-pc.html#buildroot