Armbian + KODI (Ubuntu\Debian) for SD & USB & eMMC

@chewitt : is this command correct to fetch your said branch source ?
git clone --single-branch --branch amlogic/v5.3/g12a-integ-5.4 https://github.com/superna9999/linux.git

I wonder why the expected result is as much as 6857977 source files…

EDIT: I finally used the download zip function from the web page : that took less time to proceed the 211484134 bytes of the zip file

https://github.com/chewitt/linux/commits/narmstrong-5.3-integ-rebase-chewitt is based on the branch you indicated but rebased to 5.3-rc4 and including a large collection of patches that LE requires for G12 and GX platforms (Neils integ branch is focussed on G12). Some of the extra patches are already submitted and merged for 5.4, while others are marked as WIP because they either need to be sent to the mailing list or depend on something else being merged first. I have shitty git habits so the branch has been rebased many times in the last few days as I acquire patches and clean commits up so they can be picked … and i’m not finished with it yet, but it’s usually in a working state (YMMV).

git clone -b narmstrong-5.3-integ-rebase-chewitt https://github.com/chewitt/linux

If you download the zip you have the files but no git history to troublshoot from. If it works, great. If it doesn’t work it’ll be impossible to figure out which commit caused the issue.

3 Likes

Ok, i managed to build something out of branch narmstrong-5.3-integ-rebase-chewitt of GitHub - chewitt/linux: Linux kernel source tree -- WARNING I REBASE MY BRANCHES! commit aea90d .
Using gcc-linaro-aarch64-linux-gnu-7.3.1-2018.05
and replacing chewitt’s arch/arm64/configs/defconfig (propably copy of fenix/packages/linux-mainline/configs/VIM1.config at master · numbqq/fenix · GitHub) w/ same file from khadas’ 5.0.4 kernel tree,
I’ve run, inside the docker env provided w/ fenix 0.7 …

source env/setenv.sh
cd build/linux-narmstrong-5.3-integ-rebase-chewitt
make ARCH=arm64 defconfig
make -j4 ARCH=arm64 CROSS_COMPILE=/home/khadas/fenix/build/gcc-linaro-aarch64-linux-gnu-7.3.1-2018.05/bin/aarch64-linux-gnu- Image dtbs modules

without errors,
NOTE: I applied no patch
so now, how to reinject/redo all resulting files into a running SD card built w/ your img @Spikerguy ? especially the uInitrd, zImage, etc… ?

http://paste.ubuntu.com/p/bg5btY36ST/ <= that’s the defconfig i’m using (not from fenix). It will be a bit spartan for a desktop distro, but it has all the Amlogic related options you’ll need. Note that both lima and panfrost are enabled in the config. The LE build-system auto-disables them for G12 images which use mali_kbase and leaves them enabled for GX images.

1 Like

Try to replace the files like the uImage in boot directory and lib directory and then try it.

I have put chewits branch only compiling. It takes long time for me to compile coz of qemu.

I hope it gets successful this time. I will test and let you if the image works.

thanks to @chewitt as I managed to have a booting manjaro using his kernel 5.3rc4 source code !
come get more details @ Manjaro Linux - Desktop Environment for KVIM1

1 Like

@balbes150 can you advice me on this?
I tried to compile the chewit’ss https://github.com/chewitt/linux/tree/narmstrong-5.3-integ-rebase-chewitt and superna9999’s GitHub - superna9999/linux at amlogic/v5.3/vim3
branch with your PKGBUILD but I am getting these above errors.

Please help when you are free.

I didn’t understand the question. Write in detail what you want to get.

I tried to compile kernel 5.3-rc4 from chewitts branch using your PKGBUILD Which I have been using for VIM1 with 5.0 and 5.2 kernel.

Getting the following errors

DEPMOD 5.3.0-rc1-1
/usr/sbin/ln: failed to create symbolic link ‘/build/pkg/linux5-3-vim1/lib/modules/5.3.0-1/extramodules’: No such file or directory
==> ERROR: A failure occurred in package_linux5-3-vim1().
Aborting…
==> !!! Package failed to build !!!
→ Cleaning build files from rootfs

Then I tired to comment the symbolic link command and tried still I get something similar.
This.

DEPMOD 5.3.0-rc1-1
depmod: ERROR: could not open directory /build/pkg/linux5-3-vim1/lib/modules/5.3.0-1: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
==> ERROR: A failure occurred in package_linux5-3-vim1().
Aborting…
==> !!! Package failed to build !!!
→ Cleaning build files from rootfs

I have checked the kernel name,version, release still this error.

New ver image Armbian 5.94 20190821.

3 Likes

Compiled your branch with this commit

Doesn’t seem to boot VIM3, will try again with neils commit and see if it boots.

Can you guide me on which last commit did you test booting the vim device?

I’ve booted VIM1 (and several other GXL devices) and VIM3 boards from that branch in its current state. LE packaging uses bootm and I’ve been using 0x1980000 as the load/entry address.

I am following balbes PKGBUIld and compiling branch. I am recompiling the rebase branch now as before i compiled the master branch. I think it was because of using master branch

Edit: forgot to ask you… The hdmi audio works for vim3 from your kernel? Is there any way to install Wi-Fi firmware?

I am testing with manjaro builds

I read this, So I am hoping it will boot fine and HDMI Audio should work :smiley:
Sounds good to me.

Now I have another question. Regarding the fbturbo driver. I have been using the follow since I starting compiling Manjaro for Vim1 but I dont know if they will still work smoothly with VIM3?

#Other device specific packages
#fbset
amlogic
#firmware-2-aml-0.1-1-aarch64
wpa_supplicant

#Video driver
xf86-video-fbturbo-git
#xf86-video-odroid-c2
#odroid-c2-libgl-x11
odroid-c2-libgl-fb
odroid-c2-libgl-headers

This is from the device profile which pull their respective drivers.So i had commented c2-libgl-x11 coz I found it to be slow as compared to the libgl-fb.

while fbturbo is better than the video-odroid-c2 for VIM1.
Is there any specific FB or gpu driver for VIM3?

No success with 2 of your committee. When trying to boot. Its stuck on khadas flash screen.
I have been following balbes kernel branch and it’s seems to load fine. Is there anything i need to change about the load entry address? How do I change it now as the img is ready.

It works for me. It works for @balbes150 who uses my sources. HDMI audio works if you add an alsa .conf and alsa mixer settings. Everything you need is in my LE repo … but I have little experience with Armbian and little time to learn … so it’s up to you to mix the ingredients and bake the cake.

1 Like

Will try this Thanks Alot.

What about gnome desktop on 5.3 kernel, what is the status of lima driver for Vim1, is it enabled by default when using this kernel?

According to my knowledge gnome desktop is very heavy for vim1 soc.
Regarding the lima it is enabled in my built but not sure about others.
To make full utilisation of the wip vpu driver and codec we need to get the latest mesa installed but still its wip, so we might have to wait till a full working vpu/hwa released.

The new version Armbiam 20190825 kernel 5.3.0. In this version the temperature display on G12 works.
For reasons not yet clear, the G12 has a conflict with this kernel with PULSEAUDIO. To turn the sound on models with G12 (s905x2 S922x a311d) you need to perform these steps.

  1. Remove package “pulseaudio”.
  2. Reboot the system.
  3. Once run the command “sudo /root/g12_sound.sh”.

When you remove the pulseaudio package, not volume control.
Alternatively, you can install the “pnmixer” package that works with ALSA.

Full-screen 1080p video playback from Youtube (Chromium) to VIM3 works at a temperature no higher than 55 (without a fan). :slight_smile:

1 Like