Armbian for Khadas EDGE (RK3399)

Tested latest image (5.88) and here is the result of armbianmonitor -u: http://ix.io/1MwH
The ethernet chip seems well recognized, but I was not able to make it work so I used an wifi usb stick.

Try to run the option with kernel 4.4.

Please check this version with the use of media script on EDGE-V. I am interested in how the full-screen video output on EDGE-V will work with the DTB that is included in the default image. On EDGE+Captain everything works without problems, including WiFi and BT (when you run the BT enable command).

DTS for Khadas EDGE \ EDGE-V appeared in the NEXT kernel sources :slight_smile:

I tried to build a system with NEXT kernel, but while the kernel does not start, maybe not all changes are still included in the kernel sources.

I downloaded your 4.4 5.88 image and here is the output of armbianmonitor -u: http://ix.io/1MAL
Ethernet works, but the wireless card seems detected but not able to connect to any wireless network. It is not visible in the desktop network widget and
sudo iwlist wlan0 scan returns:
wlan0 Interface doesn't support scanning.

@balbes150 maybe you missed it or it’s a known limitation… but with kernel 5.2 cpufreq support seems to be broken and all CPU cores clock with just 600 MHz: Performance comparison between the Edge-V and VIM3

The “default” “dev” images use the 4.4 kernel (with additional patches).

Hi @balbes150. Which kernel source tree do you use for your 5.2 kernel images? Is it literally the 5.2-rc6 tag in Linus’ mainline + the right device tree, or are there patches on top?

If you’re not using Linus’s mainline, would you be able to point me at either the patches or the source/git tree you are using?

I’d like to reproduce your existing, working kernel build here so I can work on fixing the ap6398s support with brcmfmac.

source kernel

https://github.com/150balbes/Build-Armbian/blob/master/config/sources/rk3399-tv.conf#L36

patch Patches for adding DTS are no longer needed, they are already in the kernel.

https://github.com/150balbes/Build-Armbian/tree/master/patch/kernel/rk3399-tv-next

2 Likes

Many thanks @balbes150!

The next branch of 5.2-rc6 has ethernet issue:

root@rk3399:/boot/dtb# dmesg | grep gmac
[   37.255874] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
[   37.257786] rk_gmac-dwmac fe300000.ethernet: phy regulator is not available yet, deferred probing
[   39.066840] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
[   39.066925] rk_gmac-dwmac fe300000.ethernet: clock input or output? (input).
[   39.066930] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28).
[   39.066935] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11).
[   39.066941] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no).
[   39.066972] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[   39.067653] rk_gmac-dwmac fe300000.ethernet: clock input from PHY
[   39.072662] rk_gmac-dwmac fe300000.ethernet: init for RGMII
[   39.075195] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[   39.075200] rk_gmac-dwmac fe300000.ethernet:         DWMAC1000
[   39.075205] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported
[   39.075208] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported
[   39.075211] rk_gmac-dwmac fe300000.ethernet: COE Type 2
[   39.075214] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported
[   39.075217] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported
[   39.075235] rk_gmac-dwmac fe300000.ethernet: Normal descriptors
[   39.075239] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
[   39.075241] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[   46.139405] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   51.550483] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   51.697026] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   51.711471] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   51.725332] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[   51.736555] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  347.547843] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  352.030023] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  352.044374] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  352.076412] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  352.090991] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  652.035955] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  652.057476] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  652.079330] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[  652.101245] rk_gmac-dwmac fe300000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

But the mainline kernel 5.2-rc6, the ethernet works well.

@balbes150

I would like to test Armbian.

I downloaded the last Armbian, there are three folders when I decompress it.
which to take to put at the root of the sd

are there any passwords to know?

on my computer I already use linux ubuntu 18.04.

it’s the same principle I guess.

thanks to you

You shouldn’t decompress the file but directly burn it to an sd card with balenaEtcher for example.

you have to use windows 10 or ubuntu 18.04?

balenaEtcher app can work on both Windows and Linux, it’s a java app :slight_smile:
You just write the *.img.xz file directly to a micro-sd card connected to a micro-sd card reader on your PC.

You might want to try this script afterwards.
It improves video playback and browser smoothness but I’m not sure if it works on all kernel versions and images and it’s still wip.

@balbes150
what is the login and passeword rk3399 edge v armbian?

thank you

All the Armbian images have the same initial password 1234 for root account. And you will ask to change the root password and add new user account for the first login.

1 Like

okai, thank you.

it’s better to use a usb keyboard.

Get a wireless airmouse like this, it works well for Android, Linux and PC if you don’t have one already.
https://www.gearbest.com/air-mouse/pp_009451637748.html?wid=1433363
https://www.gearbest.com/air-mouse/pp_009939434747.html?wid=1433363

1 Like

Hi. I did not succeed installed Armbian.I tried all the passwords. root -1234 ca does not want, I’ll see later.