WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore15.0 Beta  (Read 7913 times)

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1208
piCore15.0 Beta
« on: May 11, 2024, 12:53:19 PM »
Team Tiny Core is happy to announce the first beta release of piCore-15.0.  Both 32 and 64bit images are ready for download/testing.

rpi-kernel 6.6.47
gcc 13.2.0
binutils 2.42
glibc 2.39
busybox 1.36.1
micropython 1.19
openssl 3.2.0.

32bit - http://www.tinycorelinux.net/15.x/armhf/test_releases/RPi/piCore-15.0.0-beta3.zip  (This should run on all rpi boards)
64bit - http://www.tinycorelinux.net/15.x/aarch64/test_releases/RPi/piCore64-15.0.0-beta3.zip  (rpi zero2W, pi3, pi4, pi5)

A couple of notes:
  • armv6/7/7l repos have been replaced by an armhf repo, which contains 32 bit extensions
  • When using 32bit images, the pi4 and pi5 will use a 64bit kernel.  please make sure to look at uname if manually downloading kernel module extensions.
« Last Edit: September 01, 2024, 12:44:17 PM by Paul_123 »

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #1 on: May 16, 2024, 07:34:39 AM »
Hello, I am getting Illegal instruction error executing openvpn binary, on  RPi Model 1B.

I have also checked the md5 and it does match.

Code: [Select]
tc@box:~$ uname -a
Linux box 6.6.28-piCore #4 Thu Apr 18 22:44:37 EDT 2024 armv6l GNU/Linux
ldd /usr/local/sbin/openvpn
        libnsl.so.1 => /lib/libnsl.so.1 (0xb6ef5000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb6ee7000)
        liblzo2.so.2 => /usr/local/lib/liblzo2.so.2 (0xb6eb0000)
        liblz4.so.1 => /usr/local/lib/liblz4.so.1 (0xb6e80000)
        libssl.so.3 => /usr/local/lib/libssl.so.3 (0xb6dca000)
        libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0xb6af4000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6ee4000)
        libcap-ng.so.0 => /usr/local/lib/libcap-ng.so.0 (0xb6ad0000)
        libc.so.6 => /lib/libc.so.6 (0xb697b000)
        /lib/ld-linux-armhf.so.3 (0xb6fb8000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6968000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6ee1000)

tc@box:/mnt/mmcblk0p2/tce/optional$ md5sum openvpn.tcz
a91237244f981c189f83cd24ccc0070b  openvpn.tcz

tc@box:/mnt/mmcblk0p2/tce/optional$ cat openvpn.tcz.md5.txt
a91237244f981c189f83cd24ccc0070b  openvpn.tcz
« Last Edit: May 16, 2024, 07:48:06 AM by ovacikar »

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #2 on: May 16, 2024, 08:51:32 AM »
I compiled openvpn 2.6.10 myself using your build file and it worked fine. I guess there is a cross compiling problem in your build environment?

Code: [Select]
tc@box:~$ /usr/local/sbin/openvpn --version
OpenVPN 2.6.10 armv6l-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
library versions: OpenSSL 3.2.1 30 Jan 2024, LZO 2.10
Originally developed by James Yonan
Copyright (C) 2002-2024 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push='no' enable_comp_stub='no' enable_crypto_ofb_cfb='yes' enable_dco='no' enable_debug='yes' enable_dlopen='unknown' enable_dlopen_self='unknown' enable_dlopen_self_static='unknown' enable_fast_install='yes' enable_fragment='yes' enable_iproute2='no' enable_libtool_lock='yes' enable_lz4='yes' enable_lzo='yes' enable_management='yes' enable_pam_dlopen='no' enable_pedantic='no' enable_pkcs11='no' enable_plugin_auth_pam='no' enable_plugin_down_root='yes' enable_plugins='yes' enable_port_share='yes' enable_selinux='no' enable_shared='yes' enable_shared_with_static_runtimes='no' enable_small='no' enable_static='yes' enable_strict='no' enable_strict_options='no' enable_systemd='no' enable_werror='no' enable_win32_dll='yes' enable_wolfssl_options_h='yes' enable_x509_alt_username='no' with_aix_soname='aix' with_crypto_library='openssl' with_gnu_ld='yes' with_mem_check='no' with_openssl_engine='auto' with_sysroot='no'

ldd /usr/local/sbin/openvpn
        libresolv.so.2 => /lib/libresolv.so.2 (0xb6eab000)
        liblzo2.so.2 => /usr/local/lib/liblzo2.so.2 (0xb6e70000)
        liblz4.so.1 => /usr/local/lib/liblz4.so.1 (0xb6e40000)
        libssl.so.3 => /usr/local/lib/libssl.so.3 (0xb6d8a000)
        libcrypto.so.3 => /usr/local/lib/libcrypto.so.3 (0xb6ab4000)
        libcap-ng.so.0 => /usr/local/lib/libcap-ng.so.0 (0xb6a90000)
        libc.so.6 => /lib/libc.so.6 (0xb693b000)
        /lib/ld-linux-armhf.so.3 (0xb6f69000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6928000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6ea8000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6ea5000)
« Last Edit: May 16, 2024, 08:55:53 AM by ovacikar »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11493
Re: piCore15.0 Beta
« Reply #3 on: May 16, 2024, 09:12:00 AM »
Hi ovacikar
Just an observation about the version you compiled:
libnsl.so.1  no longer shows up as a dependency.


Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #4 on: May 16, 2024, 09:45:50 AM »
I do have this library:

Code: [Select]
sudo find / -name libnsl*
/lib/libnsl.so.1
« Last Edit: May 16, 2024, 09:48:34 AM by ovacikar »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11493
Re: piCore15.0 Beta
« Reply #5 on: May 16, 2024, 09:57:48 AM »
Hi ovacikar
Yes, but it no longer shows up when you run:
Code: [Select]
ldd /usr/local/sbin/openvpn

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #6 on: May 16, 2024, 10:16:31 AM »
Yes the first ldd is the broken one downloaded from repository

Second ldd is the working one I compiled myself on native host.

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1208
Re: piCore15.0 Beta
« Reply #7 on: May 16, 2024, 10:31:23 AM »
Thanks for the report.  I can confirm the problem, let me dig into whats going on.

« Last Edit: May 16, 2024, 10:15:39 PM by Paul_123 »

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1208
Re: piCore15.0 Beta
« Reply #8 on: May 16, 2024, 10:32:18 PM »
Should be fixed,  Building on a 64bit kernel takes a little more precaution.   It was strip that was messing up the binary.

libnsl had nothing to do with the problem.  is depreciated in glibc, but we still enable it for nfs support.

Offline mortegai

  • Jr. Member
  • **
  • Posts: 55
Re: piCore15.0 Beta
« Reply #9 on: May 17, 2024, 03:36:31 AM »
Have you recompiled all the tcz extensions for aarch64?
They are all different from version 14.x

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1208
Re: piCore15.0 Beta
« Reply #10 on: May 17, 2024, 06:36:51 AM »
No, they were resquashed with a 16k page size.  The kernel for the pi5 uses a 16k page, and could not open the extensions with the old 4k page.  14.x did not use this kernel for the pi5.

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #11 on: May 17, 2024, 10:11:29 AM »
Should be fixed,  Building on a 64bit kernel takes a little more precaution.   It was strip that was messing up the binary.

libnsl had nothing to do with the problem.  is depreciated in glibc, but we still enable it for nfs support.

Thanks , reinstalled openvpn works fine now.

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Disk activity led behaviour during boot
« Reply #12 on: May 19, 2024, 08:52:17 AM »
Hello, on previous piCore versions the disk activity led would blink rapidly during boot, so I could tell my headless Rpi is booting fine.

on 15.0 the led does not blink rapidly, it stays on during the boot process then turns off when disk activity ends.

I ended up adding this line to my bootlocal.sh to give me the same visual clue that boot process has completed:

Code: [Select]
echo heartbeat | sudo tee /sys/class/leds/ACT/trigger

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 691
Re: piCore15.0 Beta
« Reply #13 on: May 19, 2024, 02:16:30 PM »
Maybe you can change that in the device tree.

Offline ovacikar

  • Newbie
  • *
  • Posts: 39
Re: piCore15.0 Beta
« Reply #14 on: May 19, 2024, 04:31:16 PM »
Reassigning the disk activity LED to heartbeat ended up being a better solution. This could be implemented in final picore release.
« Last Edit: May 19, 2024, 04:34:02 PM by ovacikar »