LibreELEC for Khadas EDGE (RK3399)

There is no Khadas Edge V5. It’s Edge-V.

Khadas Edge is an expandable Rockchip RK3399 board with goldfinger.
Khadas Captain is the carrier board for Khadas Edge.
Khadas Edge-V is a Khadas VIM form factor Rockchip RK3399 board.

You can find the comparisons here: https://dl.khadas.com/Hardware/Edge/Specs/Edge_Comparisons.pdf

1 Like

Get rid of very outdated systems. :slight_smile:
All modern systems have not copied anything for a long time to run. On the RK3399 platform, to choose which DTB will be used, you need to edit the file “/extlinux/extlinux.conf”. Change the name in this file to be used. You can see the list of available files in the /dtb directory on the recorded media. This principle is common for LE and Armbian.

Oh, I see. So I don’t actually need the .dtb file, I just need to reference it in the extlinux.conf? Very cool, I will try that. How difficult is it to build LibreELEC with the mainline patch @mo123 referred to?

Hmm, I set the extlinux.conf file to FDT /dtb/rk3399-khadas-edge-v.dtb in your LibreELEC-RK3399.arm-9.1-devel-20190607091142-a41fdf1-khadas-edge.img image, but unfortunately it won’t boot now.

Ok, I made some progress! I stole rk3399-khadas-edgev-linux.dtb from Armbian_5.88_Rk3399-tv_Ubuntu_bionic_default_4.4.154_20190612.img and placed it in dtb/ directory, edited extlinux.conf to match, and now the network is stable and it sees /dev/nvme0, which is all great! I just need to figure out how to make LibreELEC mount it at boot and I should be good to go. Thanks again for all your effort @balbes150!

Edit: Seems I spoke a little too soon. Seems inconsistent whether the network is bad or not, but I did at least get the NVMe to show up and auto-mount. (For future Googlers, just needed to copy /usr/lib/udev/rules.d/95-udevil-mount.rules to /storage/.config/udev.rules.d/ and add “nvme*” to the harddisk lines 6 and 13.)

Also, it runs very hot. I wonder if it’s overheating and that’s what is causing the bad network performance?

Do you have a radiator and a fan, plastic case ?

Just the heatsink at the moment. The heat doesn’t seem to be the issue, since the Armbian image also runs hot to the touch, but has no network problems (consistently got >75 MB/s transferring via NFS to the m.2 SSD). Not sure what’s going on with the LE image and it’s hard to get any logs off the device because, for example, if I run dmesg, it causes SSH to hang.

To work correctly, you need not only DTB, but the kernel itself to change to LE. I plan to do this for the next version. I’m busy with other urgent work now.

1 Like

Oh I see. I’ll await your excellent work then. My project doesn’t require networking after initial setup, so now that I’ve got the m.2 working I’m in pretty good shape.

Edit: I’m not sure what the difference is, but on your images I have the network problems in both Armbian (Armbian_5.88_Rk3399-tv_Ubuntu_bionic_default_4.4.154_20190612.img) and LE (LibreELEC-RK3399.arm-9.1-devel-20190607091142-a41fdf1-khadas-edge.img). However, using Ubuntu from the downloads page (Edge_Ubuntu-server-bionic_Linux-4.4_arm64_SD-USB_V20181115.img), I have no issues. I’m going to try stealing the DTB from that image instead of Armbian to see if it makes any difference.

Edit2: No difference…

1 Like

I am testing the network on EDGE+Capitan+Gigabit network, no problems found. It is possible to EDGE-V other configuration is needed (another DTB). Which hub do you use ?

I’m not sure what you mean by ‘hub’ - but I have the Edge-V SBC.

A hub is a device where all the cables of a wired network are connected. In a home network, this role can be performed by a router with a built-in hub for several ports of a wired network.

Oh, sure. I have various switches. I’ve tried a NetGear Gigabit switch, an Ubiquiti EdgeSwitch, a Cisco Small Business managed switch, and an Ubiquiti in-wall AP. Also, they all work just fine with the Edge-V when I run the Edge_Ubuntu-server-bionic_Linux-4.4_arm64_SD-USB_V20181115.img image, so it seems to be something specific to the Armbian / LE images on the Edge-V that are the problem.

@balbes150 is there anything I can do to help test the Edge-V with your images?

Maybe I need a separate DTB setting for EDGE-V. I’m still busy with other work.
Maybe @Frank can check the DTB options on the EDGE-V.

Hi @microdude, Is your network problem Ethernet or WiFi ? Thanks.

It’s actually both, but I’m intending on using Ethernet.

Hi @microdude , I will check it today.

Ok, if there’s anything I can do to help please let me know!

Hi @microdude, I check it just now, I can download files using ethernet, and it’s not slow.So can you tell me about your situation, whether you can’t surf the Internet or if you can’t surf the Internet slowly or otherwise.Thanks.