Jump to content

Adding the edge kernel to Rock 2F/2A


Go to solution Solved by Werner,

Recommended Posts

Posted (edited)

Armbian image placed on internal soldered eMMC 64GB - only one issue now aic8800 not supported yet by kernel 7.0-rc6 so no wifi 😕

No PCI as no PCI slots... also no HDMI... Experimental image based on Kwiboo repo dispo here.

image.png.fc473ec8b23f0541175e61c688f5d67d.png

Edited by D roZDi
Posted

apply this patch for a working wifi:

 

diff --git a/extensions/radxa-aic8800.sh b/extensions/radxa-aic8800.sh
index e3e99eaa8..7ab721353 100644
--- a/extensions/radxa-aic8800.sh
+++ b/extensions/radxa-aic8800.sh
@@ -10,7 +10,7 @@ function extension_finish_config__install_kernel_headers_for_aic8800_dkms() {

 function post_install_kernel_debs__install_aic8800_dkms_package() {

-       if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 6.20; then
+       if linux-version compare "${KERNEL_MAJOR_MINOR}" ge 7.1; then
                display_alert "Kernel version is too recent" "skipping aic8800 dkms for kernel v${KERNEL_MAJOR_MINOR}" "warn"
                return 0
        fi

Posted (edited)

It is not working with this patch because offcially AIC8800 is not supported in kernel > 7.0-rc6 plus in my image Wifi was initially disabled ;)

With new image it is better:

 

image.png.77eeb54066564cf4a23429aed2a13564.png

 

I made a small fix to make it running with some commands as root:

```
# unzip AIC_FIX.zip
# mkdir -p /lib/modules/$(uname -r)/kernel/drivers/net/wireless/aic8800
# cp aic_btusb.ko aic_load_fw.ko aic8800_fdrv.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/aic8800/
# depmod -a
# cat /etc/modules-load.d/aic8800.conf
aic_load_fw
aic8800_fdrv
aic_btusb
# cp -r aic8800_fw /lib/firmware/
# cp -pr aic8800_fw/USB/aic8800D80/ /lib/firmware/
# modprobe aic_load_fw
# modprobe aic8800_fdrv
# modprobe aic_btusb
# lsmod |grep -i aic
aic_btusb              57344  0
aic8800_fdrv          626688  0
cfg80211             1200128  1 aic8800_fdrv
aic_load_fw            86016  1 aic8800_fdrv

```

 

 

 

 

R4.jpg

 

 

Please also remember as it is experimental and all you do it is on your own risk :)

 

HDMI is not working and we need some code first, I guess for this part: CONFIG_PHY_ROCKCHIP_INNO_HDMI_QP

Edited by D roZDi
Posted (edited)

Radxa Rock 2A Kernel version 7.1: link

Radxa Rock 2A AIC_FIX_7.1: link

Still no HDMI QP support

 

Please also remember as it is experimental and all you do it is on your own risk :)

 

 

Edited by D roZDi
Posted (edited)

To be honnest, try my image above... including fix for aic8800 :)

Or try this one compiled for Radxa Rock 2F - only uboot changed ;) but not tested as I have no board...

Edited by D roZDi
Posted (edited)
amdgpu

this one is crucial. nouveau and radeon could be useful but the first one is for nvidia cards (I don't have any to test) and the second one is useful for very old cards mainly. But I'll try passing them through to a VM, for this I don't need any modules other than IOMMU working

 

Just tried your image for Rock 2F, it boots.

Edited by humanus
update
Posted (edited)

Here you are as you wished but check out or download individually due to  "Possible missing firmware /lib/firmware/amdgpu/"

Edited by D roZDi
Posted (edited)

Here's 

lspci -vvv

with an older Radeon:

https://paste.armbian.com/zisezuqoza.yaml

and boot UART log (it boots but no display is visible)

https://paste.armbian.com/asizofulux.sql

 

Here's the same with Radeon RX 550:

https://paste.armbian.com/ovinibafux.yaml

The kernel complained about missing firmware (for polaris11), which actually was not missing. I had to regenerate initramfs using initramfsctl. After regenerating, the board stopped booting with the card connected:

https://paste.armbian.com/qitiwiwoge.yaml

 

Not sure how useful lsusb would be.

 

So it's not super stable yet. I saw that you made these modules built-in. This is not necessary, selecting [M] is enough because then they can be loaded or unloaded (to try passing the card through to a VM I need to blacklist the module, which doesn't work for built-in modules). This is something I can try to do to get display output.

 

Oh and WiFi isn't detected at all but that's probably not a surprise. 

Edited by humanus
bad hastebins

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines