

ovacikar
Members-
Posts
14 -
Joined
-
Last visited
-
Need Kernel source for linux-image-current-sunxi64 6.12.20
ovacikar replied to ovacikar's topic in Orange Pi Zero 2
I tried with the orangepi's own debian bookworm server image , and the module installed fine with the kernel.org source code and linux-headers deb package they included in /opt folder -
Need Kernel source for linux-image-current-sunxi64 6.12.20
ovacikar replied to ovacikar's topic in Orange Pi Zero 2
I still get the format error with the compile.sh generated kernel source , along with this dmesg error: modprobe: ERROR: could not insert 'module': Exec format error .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time -
Need Kernel source for linux-image-current-sunxi64 6.12.20
ovacikar replied to ovacikar's topic in Orange Pi Zero 2
This 3rd party module needs both kernel headers and kernel source. The Makefile bundled with the code applies patches to an existing kernel module source code and compiles it. I ran the build script on a separate debian vm and created a tarball of the source tree. i will try to transfer it to the opi later today. -
Need Kernel source for linux-image-current-sunxi64 6.12.20
ovacikar replied to ovacikar's topic in Orange Pi Zero 2
I set the version in userpatches/lib.config , then executed this: ./compile.sh BOARD=orangepizero2 BRANCH=current kernel-config KERNEL_BTF=no KERNEL_GIT=full and when the kernel menu came up, just exited to shell. Is this the kernel source directory I can point the compiler script of the module ? /build/cache/sources/linux-kernel-worktree/6.12__sunxi64__arm64$ ls arch COPYING defconfig fs io_uring Kconfig LICENSES mm rust security usr block CREDITS Documentation include ipc kernel MAINTAINERS net samples sound virt certs crypto drivers init Kbuild lib Makefile README scripts tools -
Hi, I need linux kernel source to compile a custom module. The one I downloaded from kernel.org did not work, got module format error, indicating the kernel is different. i did not have this problem compiling the same module for Armbian lepotato (amlogic) Where do I get the kernel source for my Orangepi Zero 2? Linux orangepizero2 6.12.20-current-sunxi64 #1 SMP Sat Mar 22 19:54:28 UTC 2025 aarch64 GNU/Linux linux-headers-current-sunxi64/bookworm,now 25.2.3 arm64 [installed] Armbian Linux current headers 6.12.20-current-sunxi64 linux-image-current-sunxi64/bookworm,now 25.2.3 arm64 [installed] Armbian Linux current kernel image 6.12.20-current-sunxi64
-
SOLVED: sshd ignores ListenAddress (due to ssh.socket service)
ovacikar replied to ovacikar's topic in Orange Pi Zero 2
Investigating the "TriggeredBy: ● ssh.socket" line on this machine, I found a Ubuntu article and disabled ssh.socket service. This appears to be present in armbian debian release only. A Google search for "bookworm ssh.socket" only results with another armbian user reporting it on a community build version of another board. -
Using Orange Pi zero 2 Debian bookworm minimal 24.5.1 image , I have disabled Network manager and enabled ifupdown service with static IP configuration. Linux orangepizero2 6.6.31-current-sunxi64 #1 SMP Fri May 17 10:02:40 UTC 2024 aarch64 GNU/Linux Trying to restrict ssh to listen on IP assigned to end0 only, but it is ignoring the ListenAddress 192.168.8.1:22 directive. It listens on all interfaces, which I do not want. sudo service ssh status ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; disabled; preset: enabled) Active: active (running) since Thu 2024-05-30 16:10:42 UTC; 22s ago TriggeredBy: ● ssh.socket Docs: man:sshd(8) man:sshd_config(5) Process: 1362 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Main PID: 1363 (sshd) Tasks: 1 (limit: 932) Memory: 1.3M CPU: 231ms CGroup: /system.slice/ssh.service └─1363 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups" May 30 16:10:41 orangepizero2 systemd[1]: Starting ssh.service - OpenBSD Secure Shell server... May 30 16:10:42 orangepizero2 sshd[1363]: debug3: already daemonized May 30 16:10:42 orangepizero2 sshd[1363]: debug3: oom_adjust_setup May 30 16:10:42 orangepizero2 systemd[1]: Started ssh.service - OpenBSD Secure Shell server. May 30 16:10:42 orangepizero2 sshd[1363]: debug1: Set /proc/self/oom_score_adj from 0 to -1000 May 30 16:10:42 orangepizero2 sshd[1363]: debug2: fd 3 setting O_NONBLOCK May 30 16:10:42 orangepizero2 sshd[1363]: Server listening on :: port 22.
-
Yes , this fixed the memory . Thanks ! I can no longer edit the post subject - to mark it solved.
-
Where was I supposed to apply this, /boot/armbianEnv.txt ? so far no luck, memtotal 882 MB again https://paste.armbian.com/ereciriyon
-
Thanks, I am in a change freeze now on stable 6.1 kernel , will revisit after Apr 8th.
-
It does not let me roll back kernel, but offers me a newer kernel. I could just flash the image again and freeze the armbian kernel upgrades to stay on 6.1 ?
-
I have flashed the last 23.8 bookworm lite image to my lepotato 1GB model, and it launched with 927 MB total memory. running apt update ; apt upgrade ; reboot it drops to 862M How can I reclaim the remaining memory? This is mostly a headless server i do not need any GPU. just basic hdmi output for troubleshooting purposes. before: Welcome to Armbian 23.8.1 Bookworm with Linux 6.1.50-current-meson64 System load: 8% Up time: 4 min Memory usage: 13% of 927M IP: CPU temp: 48°C Usage of /: 4% of 29G After: Welcome to Armbian 24.2.1 Bookworm with Linux 6.6.16-current-meson64 System load: 19% Up time: 1 min Memory usage: 13% of 862M IP: