ektor
October 16, 2021, 4:51pm
1
When using krescue to install a distributor dint see Mankato Linux even though they have a build available. Can it be added?
It will be available in few days as we will release 21.10 today and still give @hyphop hyph The updated images for him to add to kresq.
2 Likes
hyphop
October 18, 2021, 3:43am
3
i have see only VIM2 VIM3 images
where VIM1 VIM3L Edge images ?
what a problem make arm64 universal images like other distros ?
hyphop
October 18, 2021, 5:44am
4
BTW: vim3l bugs
opened 05:43AM - 18 Oct 21 UTC
[ 70.521416] ieee80211 phy0: brcmf_dongle_roam: WLC_SET_ROAM_TRIGGER error (-5… 2)
[ 176.722871] sd-umoun[33428]: Failed to unmount /oldroot: Device or resource busy
[ 176.726942] sd-umoun[33429]: Failed to unmount /oldroot/dev/pts: Device or resource busy
[ 176.734588] sd-umoun[33430]: Failed to unmount /oldroot/dev: Device or resource busy
[ 176.742809] shutdown[1]: Failed to finalize file systems, ignoring.
[ 176.925580] SError Interrupt on CPU2, code 0xbf000002 -- SError
[ 176.925594] CPU: 2 PID: 33294 Comm: plymouthd Tainted: G C 5.14.12-1-MANJARO-ARM #1
[ 176.925597] Hardware name: Khadas VIM3 (DT)
[ 176.925599] pstate: 20000005 (nzCv daif -PAN -UAO -TCO BTYPE=--)
[ 176.925601] pc : meson_venc_hdmi_mode_set+0x5cc/0xc4c [meson_drm]
[ 176.925603] lr : meson_venc_hdmi_mode_set+0x160/0xc4c [meson_drm]
[ 176.925605] sp : ffff800012fab850
[ 176.925607] x29: ffff800012fab890 x28: 00000000000000b0 x27: 0000000000000058
[ 176.925617] x26: 0000000000000000 x25: ffff000003489c80 x24: ffff000003b06c90
[ 176.925623] x23: 0000000000001130 x22: 0000000000000000 x21: 000000000000000a
[ 176.925629] x20: 0000000000000002 x19: ffff000038312b80 x18: 0000000000006d88
[ 176.925635] x17: 0000000000006e00 x16: 0000000000000000 x15: 0000000000006d5c
[ 176.925641] x14: ffff800012306e00 x13: 0000000000004040 x12: 0000000000000008
[ 176.925647] x11: 0000000000000870 x10: 0000000000000f00 x9 : 00000000000008ca
[ 176.925652] x8 : 0000000000000000 x7 : 0870000011301008 x6 : 0000000000000000
[ 176.925658] x5 : ffff800009159698 x4 : 0000000000000008 x3 : ffff8000091596b8
[ 176.925664] x2 : 0000000000000048 x1 : ffff800012300000 x0 : ffff800012306d88
[ 176.925670] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 176.925673] CPU: 2 PID: 33294 Comm: plymouthd Tainted: G C 5.14.12-1-MANJARO-ARM #1
[ 176.925675] Hardware name: Khadas VIM3 (DT)
[ 176.925677] Call trace:
[ 176.925678] dump_backtrace+0x0/0x1d0
[ 176.925680] show_stack+0x18/0x24
[ 176.925681] dump_stack_lvl+0x68/0x84
[ 176.925683] dump_stack+0x18/0x34
[ 176.925684] panic+0x16c/0x344
[ 176.925686] nmi_panic+0x8c/0x90
[ 176.925687] arm64_serror_panic+0x78/0x84
[ 176.925689] do_serror+0x58/0x5c
[ 176.925691] el1h_64_error_handler+0x30/0x50
[ 176.925692] el1h_64_error+0x78/0x7c
[ 176.925694] meson_venc_hdmi_mode_set+0x5cc/0xc4c [meson_drm]
[ 176.925696] meson_venc_hdmi_encoder_mode_set+0x78/0x11c [meson_dw_hdmi]
[ 176.925698] drm_bridge_chain_mode_set+0x5c/0x84 [drm]
[ 176.925700] crtc_set_mode.constprop.0+0x15c/0x1a0 [drm_kms_helper]
[ 176.925702] drm_atomic_helper_commit_tail_rpm+0x40/0xa0 [drm_kms_helper]
[ 176.925704] commit_tail+0xa0/0x180 [drm_kms_helper]
[ 176.925706] drm_atomic_helper_commit+0x160/0x370 [drm_kms_helper]
[ 176.925708] drm_atomic_commit+0x4c/0x5c [drm]
[ 176.925710] drm_atomic_helper_set_config+0xd4/0x110 [drm_kms_helper]
[ 176.925712] drm_mode_setcrtc+0x1a4/0x670 [drm]
[ 176.925714] drm_ioctl_kernel+0xc0/0x110 [drm]
[ 176.925716] drm_ioctl+0x21c/0x45c [drm]
[ 176.925717] __arm64_sys_ioctl+0xa8/0xec
[ 176.925719] invoke_syscall+0x48/0x114
[ 176.925721] el0_svc_common+0xd4/0xfc
[ 176.925722] do_el0_svc+0x28/0x90
[ 176.925724] el0_svc+0x2c/0x54
[ 176.925725] el0t_64_sync_handler+0x1a4/0x1b0
[ 176.925727] el0t_64_sync+0x198/0x19c
[ 176.925773] Kernel Offset: disabled
[ 176.925776] CPU features: 0x00003051,00000846
[ 176.925777] Memory Limit: none
opened 06:09AM - 18 Oct 21 UTC
[ 1312.785431] watchdog: watchdog0: watchdog did not stop!
[ 1313.314745] watch… dog: watchdog0: watchdog did not stop!
[ 1313.387660] sd-umoun[2303]: Failed to unmount /oldroot: Device or resource busy
[ 1313.390629] sd-umoun[2304]: Failed to unmount /oldroot/dev/pts: Device or resource busy
[ 1313.399580] sd-umoun[2305]: Failed to unmount /oldroot/dev: Device or resource busy
[ 1313.406998] shutdown[1]: Failed to finalize file systems, ignoring.
[ 1313.558227] SError Interrupt on CPU4, code 0xbf000002 -- SError
[ 1313.558240] CPU: 4 PID: 2239 Comm: plymouthd Tainted: G C 5.14.12-1-MANJARO-ARM #1
[ 1313.558242] Hardware name: Khadas VIM3 (DT)
[ 1313.558243] pstate: 20000005 (nzCv daif -PAN -UAO -TCO BTYPE=--)
[ 1313.558246] pc : meson_venc_hdmi_mode_set+0x64c/0xc4c [meson_drm]
[ 1313.558248] lr : 0x6e38
[ 1313.558249] sp : ffff800012c53850
[ 1313.558250] x29: ffff800012c53890 x28: 00000000000000b0 x27: 0000000000000058
[ 1313.558258] x26: 0000000000000000 x25: ffff000000b47480 x24: ffff00001d097090
[ 1313.558262] x23: 0000000000001130 x22: 0000000000000000 x21: 000000000000000a
[ 1313.558266] x20: 0000000000000002 x19: ffff00001e6c1d00 x18: 0000000000006e34
[ 1313.558270] x17: 0000000000006e00 x16: 0000000000000000 x15: 0000000000006d5c
[ 1313.558274] x14: ffff800012306e00 x13: 0000000000004040 x12: 0000000000000008
[ 1313.558278] x11: 0000000000000870 x10: 0000000000000f00 x9 : 00000000000008ca
[ 1313.558282] x8 : 0000000000000000 x7 : 0870000011301008 x6 : 0000000000000000
[ 1313.558286] x5 : ffff800009159698 x4 : ffff800012306e34 x3 : ffff8000091596b8
[ 1313.558290] x2 : 0000000000000048 x1 : ffff800012300000 x0 : 0000000000000000
[ 1313.558294] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 1313.558295] CPU: 4 PID: 2239 Comm: plymouthd Tainted: G C 5.14.12-1-MANJARO-ARM #1
[ 1313.558297] Hardware name: Khadas VIM3 (DT)
[ 1313.558298] Call trace:
[ 1313.558299] dump_backtrace+0x0/0x1d0
[ 1313.558300] show_stack+0x18/0x24
[ 1313.558301] dump_stack_lvl+0x68/0x84
[ 1313.558302] dump_stack+0x18/0x34
[ 1313.558303] panic+0x16c/0x344
[ 1313.558304] nmi_panic+0x8c/0x90
[ 1313.558305] arm64_serror_panic+0x78/0x84
[ 1313.558306] do_serror+0x58/0x5c
[ 1313.558307] el1h_64_error_handler+0x30/0x50
[ 1313.558308] el1h_64_error+0x78/0x7c
[ 1313.558310] meson_venc_hdmi_mode_set+0x64c/0xc4c [meson_drm]
[ 1313.558311] meson_venc_hdmi_encoder_mode_set+0x78/0x11c [meson_dw_hdmi]
[ 1313.558312] drm_bridge_chain_mode_set+0x5c/0x84 [drm]
[ 1313.558314] crtc_set_mode.constprop.0+0x15c/0x1a0 [drm_kms_helper]
[ 1313.558315] drm_atomic_helper_commit_tail_rpm+0x40/0xa0 [drm_kms_helper]
[ 1313.558317] commit_tail+0xa0/0x180 [drm_kms_helper]
[ 1313.558318] drm_atomic_helper_commit+0x160/0x370 [drm_kms_helper]
[ 1313.558319] drm_atomic_commit+0x4c/0x5c [drm]
[ 1313.558321] drm_atomic_helper_set_config+0xd4/0x110 [drm_kms_helper]
[ 1313.558322] drm_mode_setcrtc+0x1a4/0x670 [drm]
[ 1313.558323] drm_ioctl_kernel+0xc0/0x110 [drm]
[ 1313.558324] drm_ioctl+0x21c/0x45c [drm]
[ 1313.558325] __arm64_sys_ioctl+0xa8/0xec
[ 1313.558326] invoke_syscall+0x48/0x114
[ 1313.558327] el0_svc_common+0xd4/0xfc
[ 1313.558328] do_el0_svc+0x28/0x90
[ 1313.558329] el0_svc+0x2c/0x54
[ 1313.558331] el0t_64_sync_handler+0x1a4/0x1b0
[ 1313.558332] el0t_64_sync+0x198/0x19c
[ 1313.558370] Kernel Offset: disabled
[ 1313.558372] CPU features: 0x00003051,00000846
[ 1313.558373] Memory Limit: none
again too much bugs
PS: any case ! i have see many good changes too ! new images suitable for MT decompression and can be easy installed via Krescue ! tnx
hyphop
October 18, 2021, 6:59am
5
Manjaro images installation from Krescue (new installation way)
1 Like
Will create new images for all the Khadas device this weekend.
Regarding the bugs we use mainline kernel with some patches.
I still cannot find a single kernel source for all amlogic devices, coz maintaining kernel pkg for individual manufacturer is becoming harder for me with my limited time.
I have not tested the new images yet, hopefully will do that this weekend.
hyphop:
again too much bugs
Please suggest fix for these bugs? Is there patches?
1 Like
hyphop
October 20, 2021, 12:19am
7
maybe later - at this moment
check our kernels
Hello
I am trying to make a pkg at Manjaro using Khadas patches only for Khadas devices called linux-khadas
I see these patches are very old.
These ones are all inter connected to each other. It would be better to keep working patches like it is kept in fenix source.
It will be helpful if you can share only the working patches for 5.15.2
Thanks.
@hyphop
Any progress on cleaning the patches and storing them in one place so other distros can pick it up?
hyphop
November 20, 2021, 1:49am
10
at this moment can try this one fenix/packages/linux-mainline/patches/5.16-rc1 at master · khadas/fenix · GitHub
PS: next time () we will create separate standalone repo for build kernel with patches for diff lines and binary packages for distros
1 Like
Thanks. Will try it tonight with 5.15 for now.
1 Like
Hey @hyphop
This patches are not just for upstream linux kernel but also for fenix package
From ec44f4737a306f57d150d9601933934d3eb16794 Mon Sep 17 00:00:00 2001
From: Nick Xie <nick@khadas.com>
Date: Mon, 12 Apr 2021 10:49:33 +0800
Subject: [PATCH 37/77] Revert "builddeb: Fix rootless build in setuid/setgid
directory"
This reverts commit d1889589a4f54b2d1d7075d608b596d6fcfd3d96.
---
scripts/package/builddeb | 2 --
1 file changed, 2 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 91a502bb97e8..1b11f8993629 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -45,8 +45,6 @@ create_package() {
chmod -R go-w "$pdir"
# in case we are in a restrictive umask environment like 0077
chmod -R a+rX "$pdir"
- # in case we build in a setuid/setgid directory
This file has been truncated. show original
From 5239a9c98c82b7943ccd19580dfcd0b94e0359ee Mon Sep 17 00:00:00 2001
From: Nick Xie <nick@khadas.com>
Date: Mon, 12 Apr 2021 10:50:02 +0800
Subject: [PATCH 38/77] Revert "builddeb: Enable rootless builds"
This reverts commit 3e8541803624678925a477a03e19e3c155b5fc12.
---
scripts/package/builddeb | 9 ++-------
scripts/package/mkdebian | 1 -
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 1b11f8993629..25a04f6369a6 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -26,7 +26,6 @@ if_enabled_echo() {
create_package() {
local pname="$1" pdir="$2"
- local dpkg_deb_opts
This file has been truncated. show original
From 44d585e0cde4f07d805c2025fd7161a1c1c03027 Mon Sep 17 00:00:00 2001
From: Nick Xie <nick@khadas.com>
Date: Sat, 10 Apr 2021 09:35:10 +0800
Subject: [PATCH 39/77] packaging 5.x with postinstall scripts
Signed-off-by: Nick Xie <nick@khadas.com>
---
arch/arm64/Makefile | 2 +-
scripts/package/builddeb | 164 +++++++++++++++++++++++++++++++++++----
scripts/package/mkdebian | 21 +++--
3 files changed, 166 insertions(+), 21 deletions(-)
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 1110d386f3b4..c809e6611099 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -146,7 +146,7 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
# Default target when executing plain make
boot := arch/arm64/boot
This file has been truncated. show original
From b3fc9a94144418d4217cb21d308e563e91b25a3e Mon Sep 17 00:00:00 2001
From: Nick Xie <nick@khadas.com>
Date: Thu, 20 Aug 2020 22:08:10 +0800
Subject: [PATCH 40/77] builddeb: update dtb file for SD images
Signed-off-by: Nick Xie <nick@khadas.com>
---
scripts/package/builddeb | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 27c49d4069a4..ca6b5fed48b3 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -50,8 +50,37 @@ create_package() {
EOF
cat >> $pdir/DEBIAN/postinst <<-EOF
+ #!/bin/bash
cd /boot
This file has been truncated. show original
While sure if this have anything to do with Khadas
From 1ef9a8393250881bc155ffee7bf9c97819386a96 Mon Sep 17 00:00:00 2001
From: Christian Hewitt <christianshewitt@gmail.com>
Date: Wed, 24 Jun 2020 12:41:46 +0000
Subject: [PATCH 25/77] arm64: dts: meson: add common SM1 ac2xx dtsi
Add a common dtsi for Android STB devices based on the Amlogic S905X3
(AC213/AC214) and S905D3 (AC201/AC202) reference designs. The dtsi is
loosely based on the existing SEI610 device-tree.
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
.../boot/dts/amlogic/meson-sm1-ac2xx.dtsi | 298 ++++++++++++++++++
1 file changed, 298 insertions(+)
create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi
new file mode 100644
index 000000000000..b3872983b5ce
--- /dev/null
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-ac2xx.dtsi
This file has been truncated. show original
Distro’s can ignore this one:
From 375c0b82b7133bb45f097bccb9c0980db89905e7 Mon Sep 17 00:00:00 2001
From: Artem Lapkin <art@khadas.com>
Date: Thu, 18 Nov 2021 10:48:17 +0800
Subject: [PATCH v3] Khadas: remove unsused dtb
Signed-off-by: Artem Lapkin <art@khadas.com>
---
arch/arm64/boot/dts/amlogic/Makefile | 53 -------------------------
arch/arm64/boot/dts/rockchip/Makefile | 56 ---------------------------
2 files changed, 109 deletions(-)
diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile
index 5148cd9e5146..1a766fbf5502 100644
--- a/arch/arm64/boot/dts/amlogic/Makefile
+++ b/arch/arm64/boot/dts/amlogic/Makefile
@@ -1,59 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-dtb-$(CONFIG_ARCH_MESON) += meson-axg-s400.dtb
-dtb-$(CONFIG_ARCH_MESON) += meson-axg-jethome-jethub-j100.dtb
-dtb-$(CONFIG_ARCH_MESON) += meson-g12a-radxa-zero.dtb
This file has been truncated. show original
Hello @hyphop
I am maintaining linux-khadas
kernel package using khadas patches.
Today I tried to compile 5.15.7 with your patches and it fails to patch as some patches are already present
Manjaro Linux GitLab
hyphop
December 9, 2021, 10:33am
14
just check every patch
maybe some already merged
maybe need rebase or sync some patches
PS: i will check it later and try to with last kernel …
It did compile fine now.
Thanks.
Build result can be found here
Manjaro Linux GitLab