WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Core v16.0  (Read 2586 times)

Offline Uncle Warthog

  • Newbie
  • *
  • Posts: 13
Re: Tiny Core v16.0
« Reply #15 on: April 02, 2025, 03:52:28 PM »
Juanito & Rich,

I'm seeing the /proc/cmdline there as well; if I'd thought about it a little more, I'd have realized that's what it was.  I still don't see any errors in the terminal used to lauch apps though.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15094
Re: Tiny Core v16.0
« Reply #16 on: April 03, 2025, 04:26:13 AM »
So far I've been unable to find the problem, which occurs with x86_64 (and aarch64), but not with x86 (which has not moved to fltk-1.4).

tce-load and tce-setup are identical in x86 and x86_64 (aarch64 is still using the previous versions)
Reverting to the previous versions of tce-load and tce-setup does not help.
Reverting to the previous version of apps does not help

If I revert to the fltk-1.3 version of apps with x86_64 (and aarch64) then onboot maintenance works as expected.

Is this somehow a problem created by compiling apps against fltk-1.4?

Edit: building apps against fltk-1.3 and fltk-1.4 with x86 (and armhf), both work.

Something to do with apps and 64-bit?
« Last Edit: April 03, 2025, 06:48:52 AM by Juanito »

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 339
Re: Tiny Core v16.0
« Reply #17 on: April 03, 2025, 06:42:03 PM »
Before we think about recompiling the kernel, you might want to ask the kernel people why the patch wasn't included?

OK, I'll ask there on the weekend. I figured I'd better test the patch myself before doing that, so I compiled the TC16 kernel with the patch applied, and sure enough it no longer reboots at start-up on my 486s. It does need >16MB of RAM now too though, since on the laptop the boot fails later when it runs out of memory (with error messages though).

Also that kernel boots on my VIA C7-M system. Maybe because I used GCC v12 to build it instead of the newer GCC Juanito used (GCC v14). I haven't tested for hangs during use (that might need rebuilding glibc with an older GCC version too?). I'm not suggesting TC16 revert to older GCC, just posting my observations.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12054
Re: Tiny Core v16.0
« Reply #18 on: April 04, 2025, 12:58:43 PM »
Hi Juanito
... Something to do with apps and 64-bit?
No, something to do with apps and a "comparing ints of different signedness"
warning that I fixed incorrectly.

I changed this:
Code: [Select]
if ( sloc == string::npos ) {
to this:
Code: [Select]
if ( (unsigned)sloc == string::npos ) {
When it should have been this:
Code: [Select]
if ( (long unsigned)sloc == string::npos ) {
I'll push the fix to git.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12054
Re: Tiny Core v16.0
« Reply #19 on: April 04, 2025, 02:31:29 PM »
Hi Juanito
I pushed the fix to git.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15094
Re: Tiny Core v16.0
« Reply #20 on: April 05, 2025, 03:49:36 AM »
tc-16.x reposted and release notes adjusted

Offline nikovuksan

  • Newbie
  • *
  • Posts: 4
Re: Tiny Core v16.0
« Reply #21 on: April 10, 2025, 08:10:42 PM »
I want to thank you for your work and such a wonderful system. I use the 64-bit version on a very old Packard Bell Mx52-B016 laptop with an AMD Athlon64 TK-55 dual-core processor at 1.8 GHz, 2 GB of RAM, and a traditional 160 GB hard drive. I usually use Slackware, but on this device, TinyCore runs much more smoothly. I only fall short of using the latest version of Firefox, as I use the latest version of Brave by editing brave-browser.tcz with squashfs-tools with the latest version of Brave for amd64. I also use the latest version of yt-dlp to play YouTube or Twitch videos on mpv with xclip (so I can play up to 720p60). My favorite window manager on this system is icewm, and it runs perfectly. Again, thank you so much for such wonderful work. During the days when the Onboot in the Apps application wasn’t working, I took the opportunity to learn how to edit onboot.lst.. There is always a way to fix things in TinyCore. Wonderful system concept. Best regards.
My native language is Spanish; I used a translator. I hope what I wanted to say can be understood.
« Last Edit: April 10, 2025, 08:34:27 PM by nikovuksan »

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 585
  • Good software needn't be big!
Re: Tiny Core v16.0
« Reply #22 on: April 11, 2025, 05:37:14 PM »
I'm still running the RC.   :-[  Guess it's time to upgrade!  :D

I've not seen the new version release announced on DistroWatch yet.  Maybe they will eventually notice, but if the Core team would like a quicker shot of publicity, someone in the Core team should reach out to DW and let them know!   8)

Offline thane

  • Hero Member
  • *****
  • Posts: 708
Re: Tiny Core v16.0
« Reply #23 on: April 19, 2025, 05:47:09 PM »
After burning the TinyCorePure64-16.0.iso file to DVD, I get a "failed in waitforX" error when trying to boot from the DVD on my elderly AMD box.

The 15.0.iso DVD boots ok.

As suggested by people who had this issue with earlier versions of TC, I tried loading the Xorg.7.7 extension (tce-load -wi Xorg.7.7). This gave a server error indicating that the md5 file could not be found.

Any suggestions appreciated!

Thane

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12054
Re: Tiny Core v16.0
« Reply #24 on: April 19, 2025, 10:37:33 PM »
Hi thane
I checked the repo, Xorg-7.7.tcz.md5.txt is present.
The md5.txt files for all dependencies in Xorg-7.7.tcz.tree are also present.
Is it possible you actually entered  tce-load -wi Xorg.7.7  instead of  tce-load -wi Xorg-7.7 ?

Offline thane

  • Hero Member
  • *****
  • Posts: 708
Re: Tiny Core v16.0
« Reply #25 on: April 20, 2025, 05:04:18 AM »
Hi Rich, that was the issue [bangs head]. Thanks.

Offline thane

  • Hero Member
  • *****
  • Posts: 708
Re: Tiny Core v16.0
« Reply #26 on: April 20, 2025, 02:22:06 PM »
False alarm anyway. Think there was something flaky about the DVD. When I burned the ISO to another DVD it booted to the desktop fine. After install the USB boot failed with the waitforX error, but I was able to correct that by installing Xorg-7.7 and the appropriate video extension.

Thanks again for the help!

Thane

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 339
Re: Tiny Core v16.0
« Reply #27 on: April 25, 2025, 07:11:44 PM »
Before we think about recompiling the kernel, you might want to ask the kernel people why the patch wasn't included?
OK, I'll ask there on the weekend.

They settled on this patch which fixes booting on 486. I can't work out how to track progress towards that being merged with the main kernel source tree. I gather there are later stages of review and I don't know if you'd want to wait for that.

Though the patch works with later kernel versions, I had to manually make the small changes to arch/x86/kernel/cpu/microcode/amd.c in the kernel v6.12.11 sources because something had changed which meant "patch" couldn't find the location for the new changes.

The TC kernel does need more than 16MB RAM now, although I built a smaller kernel with things like SMP, ACPI, and NFS support disabled and it boots fine on that 486 laptop with 16MB RAM.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1369
Re: Tiny Core v16.0
« Reply #28 on: April 25, 2025, 09:13:50 PM »
It would get merged in this repo once approved and back ported.  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/?h=linux-6.12.y

Is there much value in rebuilding TC for this, with the whole 16mb issue?  Or are these devices stuck with custom kernels from here?

Offline nikovuksan

  • Newbie
  • *
  • Posts: 4
Re: Tiny Core v16.0
« Reply #29 on: April 25, 2025, 09:26:28 PM »
I created a script with the help of Copilot to update the version of brave-browser.tcz (you need to have it installed beforehand) to the latest version available on GitHub (release). I hope it’s useful!

Code: [Select]
#!/bin/sh

# Variables
EXECDIR=/tmp/brave-build/usr/local/bin/brave.com/brave
TEMP_DIR=/tmp/brave-build
OUTPUT_DIR=/etc/sysconfig/tcedir/optional
GITHUB_API_URL="https://api.github.com/repos/brave/brave-browser/releases/latest"
FILE_PREFIX="brave-browser-"
FILE_SUFFIX="-linux-amd64.zip"
SHA_SUFFIX="-linux-amd64.zip.sha256"

# Comprobar dependencias
for cmd in curl wget unsquashfs unzip mksquashfs shasum; do
    if ! command -v $cmd > /dev/null; then
        echo "Error: La herramienta '$cmd' no está instalada. Por favor, instálala antes de continuar."
        exit 1
    fi
done

# Borrar directorio preexistente
rm -rf $TEMP_DIR

# Descomprimir tcz original y borrar contenido dentro de $EXECDIR
cp -f /etc/sysconfig/tcedir/optional/brave-browser.tcz /tmp
unsquashfs -d /tmp/brave-build/ /tmp/brave-browser.tcz
rm -rf $EXECDIR/*
rm -f /tmp/brave-browser.tcz
cd $TEMP_DIR

# Obtener la última versión desde la API de GitHub
LATEST_VERSION=$(curl -s $GITHUB_API_URL | grep "tag_name" | sed 's/.*"v\([0-9.]*\)".*/\1/')

# Crear la URL de descarga del archivo y su SHA256
BRAVE_URL="https://github.com/brave/brave-browser/releases/download/v$LATEST_VERSION/${FILE_PREFIX}${LATEST_VERSION}${FILE_SUFFIX}"
SHA_URL="https://github.com/brave/brave-browser/releases/download/v$LATEST_VERSION/${FILE_PREFIX}${LATEST_VERSION}${SHA_SUFFIX}"

# Descargar la última versión de Brave  y el archivo .sha256
wget -O brave-browser.zip $BRAVE_URL
if [ ! -f brave-browser.zip ]; then
    echo "Error: No se pudo descargar el archivo desde $BRAVE_URL"
    exit 1
fi

wget -O brave-browser.zip.sha256 $SHA_URL
if [ ! -f brave-browser.zip.sha256 ]; then
    echo "Error: No se pudo descargar el archivo SHA256 desde $SHA_URL"
    exit 1
fi

# Verificar la suma SHA256
echo "Verificando la suma SHA256..."
CHECKSUM=$(shasum -a 256 brave-browser.zip | awk '{print $1}')
EXPECTED_CHECKSUM=$(cat brave-browser.zip.sha256 | awk '{print $1}')

if [ "$CHECKSUM" != "$EXPECTED_CHECKSUM" ]; then
    echo "Error: La suma SHA256 no coincide. Descarga corrupta."
    exit 1
fi
echo "Suma SHA256 verificada correctamente."

# Extraer los archivos del paquete .zip
unzip brave-browser.zip -d $EXECDIR
rm -f brave-browser.zip

# Crear el paquete .tcz
mksquashfs $TEMP_DIR brave-browser.tcz -noappend
if [ ! -f brave-browser.tcz ]; then
    echo "Error: No se generó el archivo brave-browser.tcz"
    exit 1
fi

# Verificar permisos de escritura en el directorio de salida
if [ ! -w $OUTPUT_DIR ]; then
    echo "Error: No tienes permisos para escribir en $OUTPUT_DIR"
    exit 1
fi

# Comprobar si el archivo .tcz existe
if [ ! -f brave-browser.tcz ]; then
    echo "Error: No se generó el archivo brave-browser.tcz"
    exit 1
fi

# Mover el paquete al directorio de TinyCore
mv -f brave-browser.tcz $OUTPUT_DIR

# Limpiar el directorio temporal
rm -rf $TEMP_DIR

echo "El paquete brave-browser.tcz  version $LATEST_VERSION ha sido creado y se copio en $OUTPUT_DIR"

    [Edit]: Added code tags.  Rich
« Last Edit: April 25, 2025, 09:47:03 PM by Rich »