LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 03-08-2023, 03:49 PM   #1
akschu
Member
 
Registered: Dec 2007
Posts: 96

Rep: Reputation: 39
Trying to make a slarm64-15.0 image for odroid_c4


Hello,

I'm trying to make a -15.0 image because I don't care for rolling release. I downloaded the image builder from https://gitlab.com/sndwvs/images_build_kit then tried this command:

Code:
ARCH=aarch64 NETWORKMANAGER=no DISTR=slarm64 DISTR_VERSION=15.0 BOARD_NAME=odroid_c4 KERNEL_SOURCE=legacy ./build.sh
I get:
Code:
1;36minfo| added        configuration file environment.conf
|info| added        configuration file build-packages.conf
|info| added        configuration file odroid_c4.conf
|info| added        configuration file meson-sm1.conf
|info| start        build slarm64 ARCH aarch64 images: core
then my console back. What are the commands to just download existing kernels and binaries and just make an image without rebuilding the whole thing?

Thanks,
schu
 
Old 03-09-2023, 12:25 PM   #2
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
Hello,

I'm trying to make a -15.0 image because I don't care for rolling release. I downloaded the image builder from https://gitlab.com/sndwvs/images_build_kit then tried this command:

Code:
ARCH=aarch64 NETWORKMANAGER=no DISTR=slarm64 DISTR_VERSION=15.0 BOARD_NAME=odroid_c4 KERNEL_SOURCE=legacy ./build.sh
I get:
Code:
1;36minfo| added        configuration file environment.conf
|info| added        configuration file build-packages.conf
|info| added        configuration file odroid_c4.conf
|info| added        configuration file meson-sm1.conf
|info| start        build slarm64 ARCH aarch64 images: core
then my console back. What are the commands to just download existing kernels and binaries and just make an image without rebuilding the whole thing?

Thanks,
schu
Thanks for the info, missing parameters DOWNLOAD_SOURCE_BINARIES=yes COMPILE_BINARIES=yes
 
1 members found this post helpful.
Old 03-10-2023, 05:26 PM   #3
akschu
Member
 
Registered: Dec 2007
Posts: 96

Original Poster
Rep: Reputation: 39
That got me a little further, but there is a bug in the build_images.sh script. Basically the system tries to parse html which is unreliable for every mirror. Here is a patch that passes the parsing off to lftp which works much better:

Code:
--- build_images.sh.orig	2023-03-10 12:45:57.934577143 -0900
+++ build_images.sh	2023-03-10 12:46:17.413870796 -0900
@@ -191,11 +191,7 @@
         category=$(echo $pkg | cut -f1 -d "/")
         pkg=$(echo $pkg | cut -f2 -d "/")
         if [[ ! -z ${pkg} ]];then
-            if [[ $USE_SLARM64_MIRROR == yes ]];then
-                PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | grep -oP '(?<=\"\>&nbsp;).*(?=\<\/a\>)' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))
-            else
-                PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | cut -f7 -d '>' | cut -f1 -d '<' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))
-            fi
+             PKG_NAME=($( lftp -e "cls -B -q && exit" ${url}/${category}/ | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))

             [[ $DISTR == crux* ]] && PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | cut -f7 -d '>' | cut -f1 -d '<' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))#.*(t.*z)" | sort -ur))
Once I did this, I was able to build an image.
 
Old 03-10-2023, 06:02 PM   #4
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
That got me a little further, but there is a bug in the build_images.sh script. Basically the system tries to parse html which is unreliable for every mirror. Here is a patch that passes the parsing off to lftp which works much better:

Code:
--- build_images.sh.orig	2023-03-10 12:45:57.934577143 -0900
+++ build_images.sh	2023-03-10 12:46:17.413870796 -0900
@@ -191,11 +191,7 @@
         category=$(echo $pkg | cut -f1 -d "/")
         pkg=$(echo $pkg | cut -f2 -d "/")
         if [[ ! -z ${pkg} ]];then
-            if [[ $USE_SLARM64_MIRROR == yes ]];then
-                PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | grep -oP '(?<=\"\>&nbsp;).*(?=\<\/a\>)' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))
-            else
-                PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | cut -f7 -d '>' | cut -f1 -d '<' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))
-            fi
+             PKG_NAME=($( lftp -e "cls -B -q && exit" ${url}/${category}/ | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))-.*(t.z)" | sort -ur))

             [[ $DISTR == crux* ]] && PKG_NAME=($(wget --no-check-certificate -q -O - ${url}/${category}/ | cut -f7 -d '>' | cut -f1 -d '<' | egrep -o "(^$(echo $pkg | sed 's/+/\\\+/g'))#.*(t.*z)" | sort -ur))
Once I did this, I was able to build an image.
this is not because of this, but because the link did not have a folder with slarm64-15.0
 
Old 03-10-2023, 07:43 PM   #5
akschu
Member
 
Registered: Dec 2007
Posts: 96

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by sndwvs View Post
this is not because of this, but because the link did not have a folder with slarm64-15.0
I was trying to use my own mirror and it wouldn't work either way because my apache doesn't format in a way the script understands. The default is for https://dl.slarm64.org/slackware/ but before yesterday that didn't have the slarm64-15.0 directory in it so that didn't work either.

At any rate, I still recommend using lftp as it's not as fragile.

Thanks,
schu
 
Old 03-11-2023, 04:23 AM   #6
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
I was trying to use my own mirror and it wouldn't work either way because my apache doesn't format in a way the script understands. The default is for https://dl.slarm64.org/slackware/ but before yesterday that didn't have the slarm64-15.0 directory in it so that didn't work either.

At any rate, I still recommend using lftp as it's not as fragile.

Thanks,
schu
schu thanks, for the tip added the change.
 
Old 03-11-2023, 11:48 PM   #7
akschu
Member
 
Registered: Dec 2007
Posts: 96

Original Poster
Rep: Reputation: 39
Onto the next issue. My system (slackware64-15.0 x86_64) can build a legacy image for the c4 just fine, however the kernel doesn't boot. I get this on the console: https://www.icloud.com/iclouddrive/0...LDw#IMG%5F3496

So, I figure I'll try the next kernel and that fails to compile with this error:

Code:
  DTC     arch/arm64/boot/dts/amlogic/meson-a1-ad401.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j110-rev-2.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j100.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-i2cA.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j110-rev-3.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-s400.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-i2cB.dtbo
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-uartA.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-uartC.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-w1-gpio.dtbo
  DTC     arch/arm64/boot/dts/rockchip/px30-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2-of10.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-tanix-tx5max.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-w1AB-gpio.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-u200.dtb
  MKIMAGE arch/arm64/boot/dts/amlogic/overlay/meson-fixup.scr
/bin/sh: line 1: mkimage: command not found
make[3]: *** [scripts/Makefile.lib:463: arch/arm64/boot/dts/amlogic/overlay/meson-fixup.scr] Error 127
make[3]: *** Waiting for unfinished jobs....
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-evb.dtb
From what I can tell, mkimage doesn't come in any standard slackware package. I think it's looking for one in the build.

Any ideas why this is failing? I'd sure like a stable image based on slackware64-15.0 that I can use long term.

Thanks
 
Old 03-12-2023, 04:01 AM   #8
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
Onto the next issue. My system (slackware64-15.0 x86_64) can build a legacy image for the c4 just fine, however the kernel doesn't boot. I get this on the console: https://www.icloud.com/iclouddrive/0...LDw#IMG%5F3496

So, I figure I'll try the next kernel and that fails to compile with this error:

Code:
  DTC     arch/arm64/boot/dts/amlogic/meson-a1-ad401.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j110-rev-2.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j100.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-i2cA.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-jethome-jethub-j110-rev-3.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-axg-s400.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-i2cB.dtbo
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-uartA.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-uartC.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-w1-gpio.dtbo
  DTC     arch/arm64/boot/dts/rockchip/px30-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-ctouch2-of10.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-tanix-tx5max.dtb
  DTC     arch/arm64/boot/dts/amlogic/overlay/meson-w1AB-gpio.dtbo
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-u200.dtb
  MKIMAGE arch/arm64/boot/dts/amlogic/overlay/meson-fixup.scr
/bin/sh: line 1: mkimage: command not found
make[3]: *** [scripts/Makefile.lib:463: arch/arm64/boot/dts/amlogic/overlay/meson-fixup.scr] Error 127
make[3]: *** Waiting for unfinished jobs....
  DTC     arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dtb
  DTC     arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dtb
  DTC     arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-evb.dtb
From what I can tell, mkimage doesn't come in any standard slackware package. I think it's looking for one in the build.

Any ideas why this is failing? I'd sure like a stable image based on slackware64-15.0 that I can use long term.

Thanks
yes and no, mkimage should be used from tools/ (kernel dir), try to find it there and try to execute if it works, then add the path to it to PATH (x86_64 was not tested).
assemble another option on the odroid board itself.

or build the u-boot-tools package

Last edited by sndwvs; 03-12-2023 at 04:04 AM.
 
Old 03-13-2023, 07:42 PM   #9
akschu
Member
 
Registered: Dec 2007
Posts: 96

Original Poster
Rep: Reputation: 39
New problem.

This repository vanished:

https://github.com/morrownr/8821cu-20210118/

So, the fix:

Code:
--- overall.sh.orig	2023-03-13 17:25:43.248863921 -0700
+++ overall.sh	2023-03-13 17:26:17.678615382 -0700
@@ -297,7 +297,7 @@

         # Wireless drivers for Realtek RTL8811CU and RTL8821C chipsets
         #SOURCES+=('https://github.com/brektrou/rtl8821CU|rtl8811cu|master:commit:2bebdb9a35c1d9b6e6a928e371fa39d5fcec8a62')
-        SOURCES+=('https://github.com/morrownr/8821cu-20210118|rtl8811cu|main::')
+        SOURCES+=('https://github.com/morrownr/8821cu-20210916|rtl8811cu|main::')

         # Wireless drivers for Realtek 8188EU 8188EUS and 8188ETV chipsets
         SOURCES+=('https://github.com/aircrack-ng/rtl8188eus|rtl8188eu|v5.3.9::')
 
Old 03-14-2023, 01:11 PM   #10
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
New problem.

This repository vanished:

https://github.com/morrownr/8821cu-20210118/

So, the fix:

Code:
--- overall.sh.orig	2023-03-13 17:25:43.248863921 -0700
+++ overall.sh	2023-03-13 17:26:17.678615382 -0700
@@ -297,7 +297,7 @@

         # Wireless drivers for Realtek RTL8811CU and RTL8821C chipsets
         #SOURCES+=('https://github.com/brektrou/rtl8821CU|rtl8811cu|master:commit:2bebdb9a35c1d9b6e6a928e371fa39d5fcec8a62')
-        SOURCES+=('https://github.com/morrownr/8821cu-20210118|rtl8811cu|main::')
+        SOURCES+=('https://github.com/morrownr/8821cu-20210916|rtl8811cu|main::')

         # Wireless drivers for Realtek 8188EU 8188EUS and 8188ETV chipsets
         SOURCES+=('https://github.com/aircrack-ng/rtl8188eus|rtl8188eu|v5.3.9::')
akschu, thanks a lot, fixed.
 
Old 03-15-2023, 04:37 PM   #11
akschu
Member
 
Registered: Dec 2007
Posts: 96

Original Poster
Rep: Reputation: 39
another thing I'm trying to figure out. Suppose I don't want a 6.2.y kernel. Can I compile with a 5.15.y kernel?

I tried:

ARCH=aarch64 NETWORKMANAGER=no DISTR_SOURCE=http://mirrors.aptalaska.net/slackware/slarm64 DISTR=slarm64 DISTR_VERSION=15.0 BOARD_NAME=odroid_c4 KERNEL_SOURCE=next DOWNLOAD_SOURCE_BINARIES=yes COMPILE_BINARIES=yes KERNEL=next KERNEL_BRANCH=linux-5.15.y ./build.sh

But I get:

Code:
|----------- delimiter ----------- "download" "linux-next" -----------|
HEAD is now at fbe1871b5 Linux 6.2.6
error: pathspec 'linux-5.15.y' did not match any file(s) known to git
Thanks
 
Old 03-16-2023, 12:56 PM   #12
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,917

Rep: Reputation: Disabled
Quote:
Originally Posted by akschu View Post
another thing I'm trying to figure out. Suppose I don't want a 6.2.y kernel. Can I compile with a 5.15.y kernel?

I tried:

ARCH=aarch64 NETWORKMANAGER=no DISTR_SOURCE=http://mirrors.aptalaska.net/slackware/slarm64 DISTR=slarm64 DISTR_VERSION=15.0 BOARD_NAME=odroid_c4 KERNEL_SOURCE=next DOWNLOAD_SOURCE_BINARIES=yes COMPILE_BINARIES=yes KERNEL=next KERNEL_BRANCH=linux-5.15.y ./build.sh

But I get:

Code:
|----------- delimiter ----------- "download" "linux-next" -----------|
HEAD is now at fbe1871b5 Linux 6.2.6
error: pathspec 'linux-5.15.y' did not match any file(s) known to git
Thanks
if the directory in source/linux-next has not been deleted, you must first delete it.
but do not forget that patches are only suitable for the branch that is configured.

Last edited by sndwvs; 03-16-2023 at 12:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Booting Ras Pi4 4/8G with Slarm64 Image jimtabor slarm64 6 06-09-2022 12:01 AM
[SOLVED] Slarm64 / Xfce / Blueman / PyGObject - GUI seems broken? shelldweller Slackware - ARM 9 02-20-2020 10:25 AM
Installing slarm64 on a Raspberry PI 4 akschu Slackware - ARM 0 01-04-2020 09:44 PM
slarm64 no wifi kermitdafrog8 Slackware - ARM 45 09-27-2019 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration