Author: darkstar

GT King Pro-Ubuntu 21.10 Impish Indri Firmware with Panfrost-5.14.15 Kernel

[Copy link]

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-18 00:28:53 | Show all posts
Hi @darkstar,

Not sure this will interest you.

FYI, the kernel-5.15.33 by @ophub and/or @unifreq https://github.com/ophub/kernel/tree/main/pub/stable does not require the chainloader u-boot.ext to boot on GT King Pro.  
Reply Support Not support

Use magic Report

6

Threads

205

Posts

1909

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1909
 Author| Post time 2022-04-18 05:00:49 | Show all posts
JFL replied at 2022-04-18 00:28
Hi @darkstar,

Not sure this will interest you.

Hi JFL,

Did you try it on my impish firmware?
Reply Support Not support

Use magic Report

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-18 13:26:45 | Show all posts
Edited by JFL at 2022-04-18 21:39
darkstar replied at 2022-04-18 05:00
Hi JFL,

Did you try it on my impish firmware?

Hi @darkstar,

I have only tried it on @ophub firmware (Jammy) with kernel-5.15.34-flippy-71+o.  Installed on a USB and it works.  It can boot without u-boot.ext and it can boot from any of the USB 3.0 Port or on USB OTG port.  It reboot and shutdown normally.  It uses uInitrd and zImage.  https://github.com/ophub/amlogic-s9xxx-armbian/issues/236.  Different from Manjaro-Arm method.
Kernel-5.15.34-flipply-71+o can also boot with the chainloader u-boot.ext on USB OTG Port only just like what we are used to.

The kernel package is very different from the usual linux-image-xxx-xxx.deb format that I know. For example 5.15.34.tar.gz , it have the following files:

boot-5.15.33-flippy-71+.tar.gz
dtb-amlogic-5.15.34-flippy-71+o.tar.gz
header-5.15.34-flippy-71+o.tar.gz
modules-5.15.34-flippy-71+o.tar.gz

It is not in the format that I am familiar with how to install on your impish firmware or on Khadas-Vim3-Gnome-Focal firmware.
Edit:
Hi @darkstar,

To update the @ophub kernel the command is:

sudo armbian-update 5.15.34

"armbian-update" is a bash script located in /usr/sbin

"armbian-update" bash script can be found here:

https://github.com/ophub/amlogic ... sbin/armbian-update


Question: if I copy this armbian-update bash script to /usr/sbin on another linux firmware (example khadas-vim3-gnome-focal) it will be able to install ophub kernel?
Reply Support Not support

Use magic Report

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-19 01:35:32 | Show all posts
Edited by JFL at 2022-04-19 01:38

Hi @darkstar,

Update on ophub kernel-5.15.34-flippy-71+o. it should also work on your Impish firmware.

Installed this kernel on http://dl.khadas.com/Firmware/VIM3/Ubuntu/SD_USB/VIM3_Ubuntu-gnome-focal_Linux-5.16-rc2_arm64_SD-USB_V1.0.10-220108.img.xz firmware and it boot up without u-boot.ext.

First copy armbian-update bash script to /usr/sbin
and copy ophub-release to /etc folder without this file "armbian-update" will not proceed.  Can manually create one to trick the bash script:
I actually copy from ophub Jammy firmware and edit it to reflect "focal" and Kernel_Version='5.16-rc2'
cat /etc/ophub-release
VERSION_CODEID='ubuntu'
VERSION_CODENAME='focal'
FDTFILE='meson-g12b-gtking-pro.dtb'
UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/'
ANDROID_UBOOT='/usr/lib/u-boot/'
SOC='s922x-reva'
PACKAGED_DATE='2022-04-03'
KERNEL_VERSION='5.16-rc2'
K510='1'
After "sudo armbian-update 5.15.34"

khadas@Khadas:~$ cat /etc/ophub-release
VERSION_CODEID='ubuntu'
VERSION_CODENAME='focal'
FDTFILE='meson-g12b-gtking-pro.dtb'
UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/'
ANDROID_UBOOT='/usr/lib/u-boot/'
SOC='s922x-reva'
PACKAGED_DATE='2022-04-03'
KERNEL_VERSION='5.15.34'
K510='1'


khadas@Khadas:~$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.34-flippy-71+o (root@univm25) (Ubuntu clang version 14.0.0-1ubuntu1, Ubuntu LLD 14.0.0) #103 SMP PREEMPT Thu Apr 14 11:38:55 CST 2022
[    0.000000] Machine model: Beelink GT-King Pro
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000e0800000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool




Reply Support Not support

Use magic Report

6

Threads

205

Posts

1909

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1909
 Author| Post time 2022-04-19 16:51:54 | Show all posts
JFL replied at 2022-04-19 01:35
Hi @darkstar,

Update on ophub kernel-5.15.34-flippy-71+o. it should also work on your Impish firmwa ...

I think this file seems like second stage bootloader.

UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
Reply Support Not support

Use magic Report

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-19 21:00:36 | Show all posts
Edited by JFL at 2022-04-19 21:11
darkstar replied at 2022-04-19 16:51
I think this file seems like second stage bootloader.

UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin' ...

Hi @darkstar,

Based on my experience, it does not use the second stage bootloader.  The initial boot up screen does NOT have the usual second stage boot loader verbose, the available RAM now show 3.26GB (just like Manjaro-Arm Bootscript) and you can boot up on any of the USB 3.0 Ports not only on USB OTG Port.

I rename the second stage bootloader to u-boot.ext-backup so it is NOT in use and it boot up.  If I switch back to linux-image-amlogic-mainline kernel I need the second stage bootloader u-boot.ext or lese it will NOT boot.


The ophub-release file is generated based on which image/firmware you use from ophub firmware.  I use gtkingpro-reva firmware.
From ophub:
At present, the kernel of 5.15 has a TEXT_OFFSET patch, which is the same as 5.4 and can be used without u-boot. The simple understanding is that it is the same as the previous 5.4.

Reply Support Not support

Use magic Report

0

Threads

8

Posts

86

Credits

Member

Rank: 2

Credits
86
Post time 2022-04-20 21:52:00 From the mobile phone | Show all posts
darkstar replied at 2022-04-16 20:54
you dont need to change anything, just follow instructşons on first post.

Thanks for the advice.  Finally, I started the device.  For now, I have two questions: 1 / How to extend the system partition because I have about 200mb of free space, even though the usb drive has 64gb?  The output sound is not working or not active.  The sound from the bluetooth device is there.  2 / How to activate the sound on hdmi?  the adapter / audio output device is not visible.
Reply Support Not support

Use magic Report

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-21 01:22:04 | Show all posts
pspablo replied at 2022-04-20 21:52
Thanks for the advice.  Finally, I started the device.  For now, I have two questions: 1 / How to  ...
1 / How to extend the system partition because I have about 200mb of free space, even though the usb drive has 64gb?
You can use "gparted" or "disks" utility to increase the partition.

Reply Support Not support

Use magic Report

0

Threads

8

Posts

86

Credits

Member

Rank: 2

Credits
86
Post time 2022-04-25 00:08:55 From the mobile phone | Show all posts
Thank you.  Partition widened but no sound via HDMI.  Can you advise something?
Reply Support Not support

Use magic Report

4

Threads

350

Posts

1234

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1234
Post time 2022-04-26 13:11:36 | Show all posts
Edited by JFL at 2022-04-26 15:42
pspablo replied at 2022-04-25 00:08
Thank you.  Partition widened but no sound via HDMI.  Can you advise something?

check your g12_sound.sh settings.  If looks like this then uncomment the OLD CONF and Comment Out NEW CONF :

no sound via HDMI.  Can you advise something?

From:
# Amlogic G12 HDMI to PCM0 - OLD CONF
#  mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 1'
#  mixer $card 'FRDDR_A SRC 1 EN' on
#  mixer $card 'TDMOUT_B SRC SEL' 'IN 0'
#  mixer $card 'TOHDMITX I2S SRC' 'I2S B'
#  mixer $card 'TOHDMITX' on

# Amlogic G12 HDMI to PCM0 - NEW CONF
   mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 0'
   mixer $card 'FRDDR_A SRC 1 EN' on
   mixer $card 'TDMOUT_A SRC SEL' 'IN 0'
   mixer $card 'TOHDMITX' on
   mixer $card 'TOHDMITX I2S SRC' 'I2S A'
To:
# Amlogic G12 HDMI to PCM0 - OLD CONF
  mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 1'
  mixer $card 'FRDDR_A SRC 1 EN' on
  mixer $card 'TDMOUT_B SRC SEL' 'IN 0'
  mixer $card 'TOHDMITX I2S SRC' 'I2S B'
  mixer $card 'TOHDMITX' on

# Amlogic G12 HDMI to PCM0 - NEW CONF
#   mixer $card 'FRDDR_A SINK 1 SEL' 'OUT 0'
#   mixer $card 'FRDDR_A SRC 1 EN' on
#   mixer $card 'TDMOUT_A SRC SEL' 'IN 0'
#   mixer $card 'TOHDMITX' on
#   mixer $card 'TOHDMITX I2S SRC' 'I2S A'

Reply Support Not support

Use magic Report

You have to log in before you can reply Login | Sign up

Points Rules

Quick Reply To Top Return to the list