HOW-TO install Fedora Linux for any Khadas SBC

Any plans to fix to allow 4K displays?

its was allowed but i think 4K still not much usable (slow frame rate)

FIXED

  1. update krescue to last version
  2. curl -jkL https://raw.githubusercontent.com/khadas/krescue-scripts/master/scripts/ install/Fedora-Linux-install.sh | sh -s -

Changes:

  • splash logo added
  • wifi fw blobs added
Fedora 34 (Server Edition)
Kernel 5.11.12-300.fc34.aarch64 on an aarch64 (ttyAML0)

Web console: https://fedora:9090/ or https://192.168.11.151:9090/

fedora login: root
Password: 
[root@fedora ~]# 

2 Likes

install fedora via online scripts - more easy now

Krescue - online scripts - (beta testing)

Krescue - online scripts - Fedora 35 available

2 Likes

Fedora Improve bugs and other problems

Anyone who have problems with fedora plz submit all issues to bug-report https://bugzilla.redhat.com/ its very easy to improve your favorite distro by yourself

Examples

1 Like

FEDORA-2021-fdef34e26f has been pushed to the Fedora 35 testing repository.

Soon you’ll be able to install the update with the following command:
sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fdef34e26f
You can provide feedback for this update here:

FEDORA-2021-7de33b7016 has been pushed to the Fedora 34 testing repository.

Soon you’ll be able to install the update with the following command:
sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7de33b7016
You can provide feedback for this update here:

Last metadata expiration check: 0:07:01 ago on Thu 11 Nov 2021 12:00:42 AM EST.
Dependencies resolved.
================================================================================
 Package            Arch        Version               Repository           Size
================================================================================
Installing:
 kernel             aarch64     5.14.17-301.fc35      updates-testing      66 k
Installing dependencies:
 kernel-core        aarch64     5.14.17-301.fc35      updates-testing      39 M
 kernel-modules     aarch64     5.14.17-301.fc35      updates-testing      27 M

Transaction Summary
================================================================================
Install  3 Packages

Total download size: 66 M
Installed size: 137 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): kernel-5.14.17-301.fc35.aarch64.rpm       29 kB/s |  66 kB     00:02    
(2/3): kernel-modules-5.14.17-301.fc35.aarch64. 1.7 MB/s |  27 MB     00:15    
(3/3): kernel-core-5.14.17-301.fc35.aarch64.rpm 2.0 MB/s |  39 MB     00:19    
--------------------------------------------------------------------------------
Total                                           3.1 MB/s |  66 MB     00:21     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : kernel-core-5.14.17-301.fc35.aarch64                   1/3 
  Running scriptlet: kernel-core-5.14.17-301.fc35.aarch64                   1/3 
  Installing       : kernel-modules-5.14.17-301.fc35.aarch64                2/3 
  Running scriptlet: kernel-modules-5.14.17-301.fc35.aarch64                2/3 
  Installing       : kernel-5.14.17-301.fc35.aarch64                        3/3 
  Running scriptlet: kernel-core-5.14.17-301.fc35.aarch64                   3/3 

  Running scriptlet: kernel-5.14.17-301.fc35.aarch64                        3/3 
  Verifying        : kernel-5.14.17-301.fc35.aarch64                        1/3 
  Verifying        : kernel-core-5.14.17-301.fc35.aarch64                   2/3 
  Verifying        : kernel-modules-5.14.17-301.fc35.aarch64                3/3 

Installed:
  kernel-5.14.17-301.fc35.aarch64          kernel-core-5.14.17-301.fc35.aarch64 
  kernel-modules-5.14.17-301.fc35.aarch64 

Complete!

reboot

check new situation

[hyphop@fedora ~]$ cat /proc/asound/cards 
 0 [hdmisound      ]: simple-card - hdmi-sound
                      khadas-Edge-

HDMI sound already works - OK

2 Likes

That’s great news, thanks @hyphop

1 Like

@hyphop can we get these scripts to make images with legacy kernel ?

if u talking about vendor kernel from amlogic which used same in fenix ! maybe but not at this time …

1 Like

@hyphop
If i install Fedora using online script, and perform sudo dnf update, HDMI audio will work normally or do i still need to enable testing repos and upgrade the FEDORA-2021-7de33b7016/ FEDORA-2021-fdef34e26f

u can check but i think must be on next release

1 Like

wellcome to Fedora 36-1.5

Fedora Linux 36 (Server Edition)
Kernel 5.17.5-300.fc36.aarch64 on an aarch64 (ttyAML0)

Web console: https://fedora:9090/

fedora login: root

how to use it ? : absolutely easy just start online scripts inside krescue and install fedora by 2 minutes

Fist impressions

everything works well out of box all prev problems fixed :wink:

[hyphop@fedora ~]$ cat /proc/asound/cards
 0 [G12BKHADASVIM3L]: axg-sound-card - G12B-KHADAS-VIM3L
                      khadas-VIM3L-

but vim3l WiFi not very stable now :wink: common problem for latest mainline kernel -

[hyphop@fedora ~]$ dmesg | grep fm
[   21.834419] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[   21.837913] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac4359-sdio.khadas,vim3l.bin failed with error -2
[   21.840485] usbcore: registered new interface driver brcmfmac
[   21.845533] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac4359-sdio.khadas,vim3l.txt failed with error -2
[   24.148503] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[   24.149210] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   24.157922] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4359/9 wl0: Jan 19 2018 12:14:30 version 9.87.51.11.8 (a85e25e@shgit) (r) FWID 01-cb5aa0a5
[   24.177710] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -84
[   24.177733] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK
[   26.717520] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   26.771016] brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

prepareing this issue to bug-report

PS: wellcome to testing

3 Likes

@hyphop any plans to make VIM4 script ? :slightly_smiling_face:

yes we have this idea but for vim4 need replace original fedora kernel and gpu packages what no so easy and need time

PS: at this moment u can play your self and replace it by hands a test how its works

1 Like

Cool, i tried to install manually by talking a look at the normal script made for vim3.

I took into account that oowow was in the spi flash and didn’t overwrite it but forgot to check GPU packages.

I will test it some more later and post back here.

Cheers!

1 Like

@hyphop
Any plan to include latest fedora editions to script?

yes will be checked soon

Hi @hyphop

Any update? I want to use latest rolling Fedora on vim3 pro

Hello @Yasir_Javed
You can try an updated script here:

1 Like

Thanks a lot @Electr1 . Are you maintaining this script now? and further is there a way i can install this fedora on an SDCARD or USB as I already have a running OS (Manjaro on EMMC) but want to try some things in Fedora.

I am using mainline uboot on emmc so it always boots to USB if it detects an OS there and if not, it goes to my normal EMMC OS.

Your help is much appreciated.

PS. Also wouldnt there be needed some more changes here?