Tiny Core Base > Final Releases

Tiny Core v16.0

<< < (6/9) > >>

thane:
Hi Rich, that was the issue [bangs head]. Thanks.

thane:
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

CNK:

--- Quote from: CNK on April 03, 2025, 06:42:03 PM ---
--- Quote from: Juanito on April 01, 2025, 01:57:45 AM ---Before we think about recompiling the kernel, you might want to ask the kernel people why the patch wasn't included?

--- End quote ---
OK, I'll ask there on the weekend.

--- End quote ---

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.

Paul_123:
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?

nikovuksan:
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: ---#!/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"
--- End code ---

    [Edit]: Added code tags.  Rich

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version