SliTaz SliTaz Forum

You are not logged in.

#26 2019-11-23 05:45:52

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

xorg-server - intel / fbdev / vesa / xkbcomp       

(EE) intel: module ABI major version (23) doesn't match the server's version (24)

Unsupported high keycode 372 for name <I372> ignored

xorg-server                        1.19.3            x-window

    xorg-server                        1.20.1            x-window

Summary for: xorg-server 1.20.3

1.

(EE) intel: module ABI major version (23) doesn't match the server's version (24)
(EE) fbdev: module ABI major version (23) doesn't match the server's version (24)
(EE) vesa: module ABI major version (23) doesn't match the server's version (24)
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
2.

tux@slitaz:~$ grep -B 5 match /var/log/Xorg.0.log

[   195.476] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so

[   195.477] (II) Module intel: vendor="X.Org Foundation"

[   195.477]     compiled for 1.19.3, module version = 2.99.917

[   195.477]     Module class: X.Org Video Driver

[   195.477]     ABI class: X.Org Video Driver, version 23.0

[   195.478] (EE) intel: module ABI major version (23) doesn't match the server's version (24)

[   195.478] (EE) Failed to load module "intel" (module requirement mismatch, 0)

--

[   195.478] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so

[   195.478] (II) Module fbdev: vendor="X.Org Foundation"

[   195.478]     compiled for 1.19.3, module version = 0.5.0

[   195.478]     Module class: X.Org Video Driver

[   195.478]     ABI class: X.Org Video Driver, version 23.0

[   195.479] (EE) fbdev: module ABI major version (23) doesn't match the server's version (24)

[   195.479] (EE) Failed to load module "fbdev" (module requirement mismatch, 0)

--

[   195.479] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so

[   195.479] (II) Module vesa: vendor="X.Org Foundation"

[   195.479]     compiled for 1.19.3, module version = 2.4.0

[   195.479]     Module class: X.Org Video Driver

[   195.479]     ABI class: X.Org Video Driver, version 23.0

[   195.480] (EE) vesa: module ABI major version (23) doesn't match the server's version (24)

[   195.480] (EE) Failed to load module "vesa" (module requirement mismatch, 0)

tux@slitaz:~$

3.

tux@slitaz:~$ sudo X -version

X.Org X Server 1.20.1

X Protocol Version 11, Revision 0

Build Operating System: SliTaz GNU/Linux

Current Operating System: Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64

Kernel command line: root=/dev/null autologin screen=text

Build Date: 03 September 2018  06:01:18AM

Current version of pixman: 0.34.0

    Before reporting problems, check http://www.slitaz.org/

    to make sure that you have the latest version.

4.

tux@slitaz:~$ tazpkg -l | egrep 'server|video|xkbcomp'

xorg-server                        1.20.1            x-window
xorg-server-module-glamor          1.20.1            x-window
xorg-xf86-video-fbdev              0.5.0             x-window
xorg-xf86-video-intel              2.99.917          x-window
xorg-xf86-video-vesa               2.4.0             x-window
xorg-xkbcomp                       1.4.2             x-window

Offline

#27 2019-11-23 09:54:31

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Update kernel

@Alanyih

why use kernel-4.4.1 ?

No there  any motive to choice it, simple I'm a newmbie on a compilation kernel...

Only goal of my post is the upgrade seem not compatible with old version of slitaz, and this are not good for my opinion.

My kernel config proposal are simple example to make new kernel compatible.

That's it. smile

Offline

#28 2019-11-25 06:53:09

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

@gibor

Great ! simple && compatible

KISS - Keep It Simple Stupid

The KISS principle states that most systems work best

if they are kept simple rather than made complicated;

therefore, simplicity should be a key goal in design,

and unnecessary complexity should be avoided.

Offline

#29 2019-11-25 07:00:47

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

glxgears

Avg : 10481.648 FPS

Avg1:  8144.405 FPS

diff:  2337.243 FPS -      22.298 %

libglu-mesa                        9.0.0             x-window
        mesa17                             17.2.4            x-window
        mesa17-dri                         17.2.4            x-window
        xorg-server                        1.19.3            x-window
        xorg-server-module-glamor          1.19.3            x-window

    glu                                9.0.0             x-window
    mesa                               17.3.4            x-window
    mesa-dri                           17.3.4            x-window
    mesa-libwayland-egl                17.3.4            x-window
    xorg-server                        1.20.1            x-window
    xorg-server-module-glamor          1.20.1            x-window

Summary for: mesa 18.3.1
Summary for: xorg-server 1.20.3

tux@slitaz:~$ uname -a

Linux slitaz 4.14.16-slitaz #2 SMP Fri Feb 9 15:22:42 Europe 2018 x86_64 GNU/Linux

tux@slitaz:~$ file /lib/libc-2.26.so

/lib/libc-2.26.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped

tux@slitaz:~$ vblank_mode=0 glxgears

ATTENTION: default value of option vblank_mode overridden by environment.

52742 frames in 5.0 seconds = 10548.254 FPS

52307 frames in 5.0 seconds = 10461.278 FPS

52310 frames in 5.0 seconds = 10461.818 FPS

52277 frames in 5.0 seconds = 10455.245 FPS

Avg: 10481.648 FPS

(10548.254+10461.278+10461.818+10455.245)/4= 10481.648

VS.

tux@slitaz:~$ uname -a

Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64 GNU/Linux

tux@slitaz:~$ file /lib/libc-2.26.so

/lib/libc-2.26.so: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped

tux@slitaz:~$ vblank_mode=0 glxgears

ATTENTION: default value of option vblank_mode overridden by environment.

40455 frames in 5.0 seconds = 8090.896 FPS

40529 frames in 5.0 seconds = 8105.724 FPS

40327 frames in 5.0 seconds = 8065.400 FPS

41578 frames in 5.0 seconds = 8315.600 FPS

Avg1: 8144.405 FPS

(8090.896+8105.724+8065.400+8315.600)/4= 8144.405

diff: 2337.243 FPS -       22.298 %

10481.648-8144.405= 2337.243 FPS

(10481.648-8144.405)/10481.648*100= 22.298 %

[attachment=48121,2886]

Offline

#30 2019-11-27 14:17:56

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

mc - Unable to load 'default' skin.

               +------------ Error -------------+
                       |                                |
                       | Unable to load 'default' skin. |
                       |  Default skin has been loaded  |
                       |                                |
                       +--------------------------------+

Update:

tux@slitaz:~$ grep DEPENDS /var/lib/tazpkg/installed/mc/receipt

DEPENDS="glib libssh2 ncurses"

Fixed

# tazpkg -gi mc-noarch

----

tux@slitaz:~$ mc

sfs_init(): Warning: file /etc/mc/sfs.ini not found

Warning: cannot open /usr/libexec/mc/extfs.d directory

Warning: cannot load codepages list

tux@slitaz:~$ uname -a

Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64 GNU/Linux

tux@slitaz:~$ tazpkg -l | grep ^mc

mc                                 4.8.21            system-tools

tux@slitaz:~$ tazpkg -lf mc

Installed files by "mc"

================================================================================

/usr/bin/mc

/usr/bin/mcdiff

/usr/bin/mcedit

/usr/bin/mcview

/usr/libexec/mc/cons.saver

================================================================================

5 files

Offline

#31 2019-11-27 14:21:25

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

cookutils - uname

can't open '/home/slitaz/wok/linux/receipt'

Linux slitaz -slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64 GNU/Linux

tux@slitaz:~$ uname -a

/bin/uname: .: line 8: can't open '/home/slitaz/wok/linux/receipt'

Linux slitaz -slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64 GNU/Linux

tux@slitaz:~$ ls -l /home/slitaz/wok/linux/receipt

ls: /home/slitaz/wok/linux/receipt: No such file or directory

tux@slitaz:~$ ls /home

tux

tux@slitaz:~$ cat /bin/uname

#!/bin/sh

# uname - special "fake" wrapper for using inside SliTaz cooker chroot.

# Although SliTaz cooker *host arch* is 64-bit, SliTaz *target arch* may be

# 32-bit and some configuration tools using uname could be improperly configured.

# This also applies to the kernel versions of the host and the target systems.

. /etc/slitaz/cook.conf

kernel_version=$(. /home/slitaz/wok/linux/receipt; echo $VERSION)

uname_r=$(/bin/busybox uname -r)

/bin/busybox uname $@ | sed "s|x86_64|$ARCH|g; s|$uname_r|$kernel_version-slitaz|g"

tux@slitaz:~$

Offline

#32 2019-11-27 14:49:55

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

Dropbear - daemons.conf

Starting SSH server: Dropbear...                                     [ Failed ]

# Dropbear SSH server options.

DROPBEAR_OPTIONS="-w -g -b /etc/dropbear/banner"      ??

tux@slitaz:~$ uname -a

Linux slitaz 4.17.7-slitaz #2 SMP Sat Jul 21 03:23:55 UTC 2018 x86_64 GNU/Linux

tux@slitaz:~$ sudo /etc/init.d/dropbear start

Starting SSH server: Dropbear...                                     [ Failed ]

tux@slitaz:~$ ls -l /etc/dropbear/

total 4

-rw-r--r--    1 root     root            66 Mar 23  2018 banner

-rw-r--r--    1 root     root             0 Jul 20  2018 dropbear_dss_host_key

-rw-r--r--    1 root     root             0 Jul 20  2018 dropbear_ecdsa_host_key

-rw-r--r--    1 root     root             0 Jul 20  2018 dropbear_rsa_host_key

tux@slitaz:~$ sudo rm -f /etc/dropbear/*key

tux@slitaz:~$ sudo /etc/init.d/dropbear start

Generating Dropbear rsa key...                                       [ Done ]

Generating Dropbear dss key...                                       [ Done ]

Generating Dropbear ecdsa key...                                     [ Done ]

Starting SSH server: Dropbear...                                     [ Done ]

tux@slitaz:~$ ls -l /etc/dropbear/

total 16

-rw-r--r--    1 root     root            66 Mar 23  2018 banner

-rw-------    1 root     root           458 Nov 25 11:37 dropbear_dss_host_key

-rw-------    1 root     root           140 Nov 25 11:37 dropbear_ecdsa_host_key

-rw-------    1 root     root           805 Nov 25 11:37 dropbear_rsa_host_key

tux@slitaz:~$ ssh root@127.0.0.1

Host '127.0.0.1' is not in the trusted hosts file.

(ecdsa-sha2-nistp256 fingerprint sha1!! e3:94:50:9e:f5:7d:65:6c:63:61:4f:ac:41:7c:9c:bf:6e:82:34:22)

Do you want to continue connecting? (y/n) y

root@127.0.0.1's password:

root@slitaz:~# cat /etc/daemons.conf

# Domain name server options.

DNSD_OPTIONS="-d"

# Tftp daemon options.

TFTPD_OPTIONS="-r /boot"

# DBUS daemon options.

DBUS_OPTIONS="--system"

# wpa_supplicant daemon options

WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf; echo $WIFI_INTERFACE)"

root@slitaz:~#

Offline

#33 2019-11-28 10:27:20

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

slitaz-toolchain

libmpfr.so.4: cannot open shared object file: No such file or directory

GNU C11 (SliTaz64) version 7.3.0 (x86_64-slitaz-linux)

    compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version none

warning: MPFR header version 3.1.5 differs from library version 4.0.1.

warning: MPC header version 1.0.3 differs from library version 1.1.0.

1.

root@slitaz:~# echo 'int main() { return 0; }' > test.c

2.

root@slitaz:~# gcc -v -o test.o test.c

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/lto-wrapper

Target: x86_64-slitaz-linux

Configured with: ../configure --enable-languages=c,c++,objc,fortran --disable-multilib --disable-bootstrap --with-system-zlib --with-pkgversion=SliTaz64 --build=x86_64-slitaz-linux --host=x86_64-slitaz-linux

Thread model: posix

gcc version 7.3.0 (SliTaz64)

COLLECT_GCC_OPTIONS='-v' '-o' 'test.o' '-mtune=generic' '-march=x86-64'

/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/ccltXq0x.s

/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

3.

root@slitaz:~# ls -l /usr/lib/libmpfr*

lrwxrwxrwx    1 root     root            16 Nov 24 09:26 /usr/lib/libmpfr.so -> libmpfr.so.6.0.1

lrwxrwxrwx    1 root     root            16 Nov 24 09:26 /usr/lib/libmpfr.so.6 -> libmpfr.so.6.0.1

-rwxr-xr-x    1 root     root        430480 Aug 11  2018 /usr/lib/libmpfr.so.6.0.1

root@slitaz:~# ln -s /usr/lib/libmpfr.so.6.0.1 /usr/lib/libmpfr.so.4

4.

root@slitaz:~# gcc -v -o test.o test.c

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/lto-wrapper

Target: x86_64-slitaz-linux

Configured with: ../configure --enable-languages=c,c++,objc,fortran --disable-multilib --disable-bootstrap --with-system-zlib --with-pkgversion=SliTaz64 --build=x86_64-slitaz-linux --host=x86_64-slitaz-linux

Thread model: posix

gcc version 7.3.0 (SliTaz64)

COLLECT_GCC_OPTIONS='-v' '-o' 'test.o' '-mtune=generic' '-march=x86-64'

/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/cca3awNX.s

GNU C11 (SliTaz64) version 7.3.0 (x86_64-slitaz-linux)

    compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version none

warning: MPFR header version 3.1.5 differs from library version 4.0.1.

warning: MPC header version 1.0.3 differs from library version 1.1.0.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=65536

ignoring nonexistent directory "/usr/local/include"

ignoring nonexistent directory "/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../x86_64-slitaz-linux/include"

#include "..." search starts here:

#include <...> search starts here:

/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/include

/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/include-fixed

/usr/include

End of search list.

GNU C11 (SliTaz64) version 7.3.0 (x86_64-slitaz-linux)

    compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version none

warning: MPFR header version 3.1.5 differs from library version 4.0.1.

warning: MPC header version 1.0.3 differs from library version 1.1.0.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=65536

Compiler executable checksum: e8abc0a243e1de7ed2f388dead27f036

COLLECT_GCC_OPTIONS='-v' '-o' 'test.o' '-mtune=generic' '-march=x86-64'

as -v --64 -o /tmp/cciAhQBR.o /tmp/cca3awNX.s

GNU assembler version 2.29 (x86_64-slitaz-linux) using BFD version (GNU Binutils) 2.29

COMPILER_PATH=/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/:/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/:/usr/libexec/gcc/x86_64-slitaz-linux/:/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/:/usr/lib/gcc/x86_64-slitaz-linux/

LIBRARY_PATH=/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/:/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../:/lib/:/usr/lib/

COLLECT_GCC_OPTIONS='-v' '-o' 'test.o' '-mtune=generic' '-march=x86-64'

/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/collect2 -plugin /usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-slitaz-linux/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccAgm2qL.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o test.o /usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../lib/crt1.o /usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-slitaz-linux/7.3.0/crtbegin.o -L/usr/lib/gcc/x86_64-slitaz-linux/7.3.0 -L/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../.. /tmp/cciAhQBR.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-slitaz-linux/7.3.0/crtend.o /usr/lib/gcc/x86_64-slitaz-linux/7.3.0/../../../../lib/crtn.o

COLLECT_GCC_OPTIONS='-v' '-o' 'test.o' '-mtune=generic' '-march=x86-64'

5.

root@slitaz:~# file test.o

test.o: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped

root@slitaz:~#

Offline

#34 2019-11-28 13:23:10

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

Thankx Aleksej

# blkid slitaz-next64-20191127.iso

slitaz-next64-20191127.iso: UUID="2019-11-27-09-16-15-00" LABEL="SliTaz LiveCD" TYPE="iso9660" PTUUID="5dde3edf" PTTYPE="dos"

based on  http://mirror1.slitaz.org/packages/next64

openbox with slim autologin.

pcmanfm :  “Edit as Root” OK.

“Open Folder As Root” failed.

slitaz-next64-20191127.iso    96 MB

http://tiny.cc/41jxgz

slitaz-next64-20191127.md5

http://tiny.cc/yckxgz

Offline

#35 2019-11-28 19:13:14

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Update kernel

Much better than what I managed to do! I still have so much to learn ...

It seems like I do not need to buil my justX ISO anymore smile

Just a question alanyih: why a bzImage and a bzImage64 in the ISO?

Offline

#36 2019-11-29 15:06:12

HGT
Administrator
From: Germany
Registered: 2016-03-25
Posts: 170

Re: Update kernel

I installed from slitaz-next64-20191127.iso into a partition of a disk and can boot with GRUB2.

To me this seems to be a very good base for an upcoming SliTaz 6.0.

I should like to concentrate on wok-next and help to reduce the number of broken packages.

As I prefer to cook packages in a private wok on my local machine before transfering recipes and stuff to the official wok, I tried to setup the cookutils in this new installed SliTaz, but cook setup fails.

Can someone give me some hints how to setup cookutils and a private wok-next?

Offline

#37 2019-12-04 08:24:08

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

tazlito - make_bzImage_hardlink() / alloc_uefi_part()

# isolinux/syslinux first tries the '64' suffix with a 64bits cpu.

# mv vmlinuz-4.17.7-slitaz  vmlinuz-4.17.7-slitaz64

ls: /mnt/next64/efi/boot/rootfs.gz: No such file or directory

1.

next64 - vmlinuz-4.17.7-slitaz

tux@slitaz:~$ file -k /media/cdrom/boot/vmlinuz-4.17.7-slitaz

/media/cdrom/boot/vmlinuz-4.17.7-slitaz: Linux kernel x86 boot executable bzImage, version 4.17.7-slitaz (root@tank) #2 SMP Sat Jul 21 03:23:55 UTC 2018, RO-rootFS, swap_dev 0x3, Normal VGA12- DOS/MBR boot sector DOS/MBR boot sector PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows12- data

2.

tux@slitaz:~$ grep -A 24 'isolinux\.conf'  /usr/bin/tazlito

# isolinux.conf doesn't know the kernel version.

# We name the kernel image 'bzImage'.

# isolinux/syslinux first tries the '64' suffix with a 64bits cpu.


make_bzImage_hardlink() {
    if [   -e ${1:-.}/vmlinuz*slitaz ]; then
        rm -f ${1:-.}/bzImage 2>/dev/null
        ln    ${1:-.}/vmlinuz*slitaz ${1:-.}/bzImage
    fi
    if [   -e ${1:-.}/vmlinuz*slitaz64 ]; then
        rm -f ${1:-.}/bzImage64 2> /dev/null
        ln    ${1:-.}/vmlinuz*slitaz64 ${1:-.}/bzImage64

    fi
}

create_iso() {
    cd $2
    deduplicate

    rm -rf $2/boot/grub*
    make_bzImage_hardlink $2/boot
    alloc_uefi_part $(ls -r $2/boot/vmlinuz*slitaz*)

    cat > /tmp/cdsort$$ <<EOT
tux@slitaz:~$
3.

tux@slitaz:~$ grep -A 20 -B 2 ^alloc_uefi_part  /usr/bin/tazlito

# allocate efi.img stub to share EFI files in the EFI boot partition

alloc_uefi_part()
{
    local basedir=$(dirname "$1")/..
    local clusters=$({
    [ -d $basedir/efi ] &&
        find $basedir/efi -type f -exec stat -c "%s" {} \;
    while [ -s "$1" ]; do
        local efifile
        case "$1" in
        *taz)    efifile=bootia32.efi ;;
        *taz64) efifile=bootx64.efi ;;

        esac
        if [ ! -s $basedir/efi/boot/$efifile ] &&
           [ $(get $((0x82)) "$1") == $((0x4550)) ]; then
            stat -c "%s" "$1"
            mkdir -p $basedir/efi/boot 2> /dev/null
            ln "$1" $basedir/efi/boot/$efifile
        fi
        shift
    done; } | awk '{ n+=int(($1+2047)/2048) } END { print n }')
    [ ${clusters:-0} -eq 0 ] && return
    local dclust=$( (cd $basedir; find efi -type d 2>/dev/null) | awk '
tux@slitaz:~$
4.

vmlinuz-4.17.7-slitaz64

tux@slitaz:/home/slitaz/next64/distro$ ls -l rootcd/boot/vmlinuz*

-rw-r--r--    2 root     root       3879568 Dec  4 08:54 rootcd/boot/vmlinuz-4.17.7-slitaz64

tux@slitaz:/home/slitaz/next64/distro$ sudo tazlito gen-iso

[..]

Image is ready: slitaz-next64-1575471495.iso

tux@slitaz:/home/slitaz/next64/distro$ sudo mount -o loop slitaz-next64-1575471495.iso /mnt/next64

mount: /mnt/next64: WARNING: device write-protected, mounted read-only.

tux@slitaz:/home/slitaz/next64/distro$ ls -lR /mnt/next64

/mnt/next64:

total 12

drwxr-xr-x    3 root     root          2048 Dec  4 14:58 boot

drwxr-xr-x    3 root     root          2048 Dec  1 00:40 efi

-rw-r--r--    1 root     root          4922 Sep 18 22:14 index.html

-rw-r--r--    1 root     root          1191 Dec  4 14:58 md5sum

-rw-r--r--    1 root     root           811 Sep 18 22:14 README

/mnt/next64/boot:

total 102228

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 bzImage64

-rw-r--r--    1 root     root        344033 Dec  4 08:57 ipxe.exe

drwxr-xr-x    2 root     root          2048 Dec  4 14:58 isolinux

-rw-r--r--    1 root     root          3946 Dec  4 08:57 linld.com

-rw-r--r--    1 root     root         44920 Dec  4 08:57 memtest.exe

-rw-r--r--    1 root     root      96525470 Dec  4 08:53 rootfs.gz

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 vmlinuz-4.17.7-slitaz64

/mnt/next64/boot/isolinux:

total 3957

-r--r--r--    1 root     root          2048 Dec  4 14:58 boot.cat

-rw-r--r--    1 root     root         17121 Nov 19 01:43 c32box.c32

-rw-r--r--    1 root     root       3897344 Dec  4 14:58 efi.img

-rw-r--r--    1 root     root           857 Nov 19 01:43 help.en

-rw-r--r--    1 root     root           875 Nov 19 01:43 help.fr

-rw-r--r--    1 root     root          3718 Nov 19 01:43 i18n.cfg

-rw-r--r--    1 root     root         24576 Dec  4 08:59 isolinux.bin

-rw-r--r--    1 root     root          1311 Dec  4 08:52 isolinux.cfg

-rw-r--r--    1 root     root          1436 Nov 19 01:43 kbd

-rw-r--r--    1 root     root          1000 Nov 19 01:43 opts.en

-rw-r--r--    1 root     root          1118 Nov 19 01:43 opts.fr

-rw-r--r--    1 root     root         23795 Mar  4  2018 splash.jpg

-rw-r--r--    1 root     root         74570 Nov 19 01:43 vesamenu.c32

/mnt/next64/efi:

total 2

drwxr-xr-x    2 root     root          2048 Dec  4 08:59 boot

/mnt/next64/efi/boot:

total 3790

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 bootx64.efi

-rw-r--r--    1 root     root            51 Dec  1 00:40 linux.cmdline

VS.

vmlinuz-4.17.7-slitaz

tux@slitaz:/home/slitaz/next64/distro$ ls -l rootcd/boot/vmlinuz*

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 rootcd/boot/vmlinuz-4.17.7-slitaz

tux@slitaz:/home/slitaz/next64/distro$ sudo tazlito gen-iso

[..]

Image is ready: slitaz-next64-1575472082.iso

tux@slitaz:/home/slitaz/next64/distro$ sudo mount -o loop slitaz-next64-1575472082.iso  /mnt/next64-2

mount: /mnt/next64-2: WARNING: device write-protected, mounted read-only.

tux@slitaz:/home/slitaz/next64/distro$ ls -lR /mnt/next64-2

/mnt/next64-2:

total 12

drwxr-xr-x    3 root     root          2048 Dec  4 15:08 boot

drwxr-xr-x    3 root     root          2048 Dec  1 00:40 efi

-rw-r--r--    1 root     root          4922 Sep 18 22:14 index.html

-rw-r--r--    1 root     root          1190 Dec  4 15:08 md5sum

-rw-r--r--    1 root     root           811 Sep 18 22:14 README

/mnt/next64-2/boot:

total 102228

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 bzImage

-rw-r--r--    1 root     root        344033 Dec  4 08:57 ipxe.exe

drwxr-xr-x    2 root     root          2048 Dec  4 15:08 isolinux

-rw-r--r--    1 root     root          3946 Dec  4 08:57 linld.com

-rw-r--r--    1 root     root         44920 Dec  4 08:57 memtest.exe

-rw-r--r--    1 root     root      96525470 Dec  4 08:53 rootfs.gz

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 vmlinuz-4.17.7-slitaz

/mnt/next64-2/boot/isolinux:

total 3957

-r--r--r--    1 root     root          2048 Dec  4 15:08 boot.cat

-rw-r--r--    1 root     root         17121 Nov 19 01:43 c32box.c32

-rw-r--r--    1 root     root       3897344 Dec  4 15:08 efi.img

-rw-r--r--    1 root     root           857 Nov 19 01:43 help.en

-rw-r--r--    1 root     root           875 Nov 19 01:43 help.fr

-rw-r--r--    1 root     root          3718 Nov 19 01:43 i18n.cfg

-rw-r--r--    1 root     root         24576 Dec  4 15:01 isolinux.bin

-rw-r--r--    1 root     root          1311 Dec  4 08:52 isolinux.cfg

-rw-r--r--    1 root     root          1436 Nov 19 01:43 kbd

-rw-r--r--    1 root     root          1000 Nov 19 01:43 opts.en

-rw-r--r--    1 root     root          1118 Nov 19 01:43 opts.fr

-rw-r--r--    1 root     root         23795 Mar  4  2018 splash.jpg

-rw-r--r--    1 root     root         74570 Nov 19 01:43 vesamenu.c32

/mnt/next64-2/efi:

total 2

drwxr-xr-x    2 root     root          2048 Dec  4 15:08 boot

/mnt/next64-2/efi/boot:

total 3790

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 bootia32.efi

-rw-r--r--    1 root     root            51 Dec  1 00:40 linux.cmdline

tux@slitaz:/home/slitaz/next64/distro$

5.

tux@slitaz:/home/slitaz/next64/distro$ tazpkg -l | grep tazlito

tazlito                            492               base-system

tux@slitaz:/home/slitaz/next64/distro$ ls -l /mnt/next64/efi/boot/rootfs.gz

ls: /mnt/next64/efi/boot/rootfs.gz: No such file or directory

VS.

slitaz-rolling-core64.iso

tux@slitaz:/home/slitaz/next64/distro$ sudo mount -o loop ~/Downloads/slitaz-rolling-core64.iso /mnt/core64

mount: /mnt/core64: WARNING: device write-protected, mounted read-only.

tux@slitaz:/home/slitaz/next64/distro$ ls -l /mnt/core64/efi/boot

total 50626

-rw-r--r--    3 root     root       3806640 Nov 18 11:29 bootx64.efi

-rw-r--r--    1 root     root            51 Dec  1 00:40 linux.cmdline

-rw-r--r--    2 root     root      48033380 Dec  1 00:40 rootfs.gz

tux@slitaz:/home/slitaz/next64/distro$

Offline

#38 2019-12-04 10:14:58

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Update kernel

# cat /etc/slitaz-version

SliTaz GNU/Linux - 5.0-RC4 20191201

# tazlito extract-iso slitaz-next64-20191127.iso

# tazlito gen-iso

# mount -o loop,ro /home/slitaz/5.0/distro/slitaz-5.0.iso /media/cdrom

# ls /media/cdrom/efi/boot/

bootia32.efi   bootx64.efi    linux.cmdline  rootfs.gz

# tazlito | head -n 3

SliTaz Live Tool - Version: 520

# /home/slitaz/5.0/distro/rootfs/usr/bin/tazlito  | head -n 3

SliTaz Live Tool - Version: 492

http://hg.slitaz.org/wok-next/rev/4d6ac6a0b65f

Offline

#39 2019-12-04 12:55:14

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

# ls /media/cdrom/efi/boot/

bootia32.efi bootx64.efi linux.cmdline rootfs.gz

tux@slitaz:/home/slitaz/next64/distro$ tazlito | head -n 3

SliTaz Live Tool - Version: 520

tux@slitaz:/home/slitaz/next64/distro$ ls -l /mnt/next64-3/efi/boot

total 98053

-rw-r--r--    3 root     root       3879568 Dec  4 08:54 bootx64.efi

-rw-r--r--    1 root     root            51 Dec  1 00:40 linux.cmdline

-rw-r--r--    2 root     root      96525470 Dec  4 08:53 rootfs.gz

tux@slitaz:/home/slitaz/next64/distro$ ls -l /mnt/next64-3/boot/isolinux/efi.img

-rw-r--r--    1 root     root     100618240 Dec  4 20:45 /mnt/next64-3/boot/isolinux/efi.img

tux@slitaz:/home/slitaz/next64/distro$

Offline

#40 2019-12-04 15:05:10

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

hard link

@Ceel

why a bzImage and a bzImage64 in the ISO?

tazlito - make_bzImage_hardlink() / alloc_uefi_part()

http://forum.slitaz.org/topic/update-kernel-1/page/3#post-48159

hard link

http://forum.slitaz.org/topic/slitaz-uefi#post-46366

The first ISO test run fails, and shows bootia32.efi and bzImage.

Therefore, I made hard links bzImage64, bootx64.efi and rootfs.gz, and then regenerated the ISO.

hard link

/media/cdrom/boot:

total 105633

-rw-r--r--    5 root     root       3879568 Nov 27 08:51 bzImage

-rw-r--r--    5 root     root       3879568 Nov 27 08:51 bzImage64

-rw-r--r--    5 root     root       3879568 Nov 27 08:51 vmlinuz-4.17.7-slitaz

/media/cdrom/efi/boot:

total 101842

-rw-r--r--    5 root     root       3879568 Nov 27 08:51 bootia32.efi

-rw-r--r--    5 root     root       3879568 Nov 27 08:51 bootx64.efi

----

/media/cdrom/boot:

-rw-r--r--    2 root     root      96525470 Nov 27 08:50 rootfs.gz

/media/cdrom/efi/boot:

-rw-r--r--    2 root     root      96525470 Nov 27 08:50 rootfs.gz

Offline

#41 2019-12-04 20:39:54

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Update kernel

@alanyih

# tazlito extract-iso slitaz-next64-20191127.iso

# ls /home/slitaz/5.0/distro/rootcd/efi/boot/ /home/slitaz/5.0/distro/rootcd/boot/

/home/slitaz/5.0/distro/rootcd/boot/:

bzImage                rootfs.gz

isolinux               vmlinuz-4.17.7-slitaz

/home/slitaz/5.0/distro/rootcd/efi/boot/:

bootx64.efi

tazlito assume that vmlinuz-4.17.7-slitaz is a 32 bits kernel and create the bootia32.efi link.

Rename it to vmlinuz-4.17.7-slitaz64

Offline

#42 2019-12-05 12:36:32

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

@Bellard

># tazlito extract-iso slitaz-next64-20191127.iso

># ls /home/slitaz/5.0/distro/rootcd/efi/boot/ /home/slitaz/5.0/distro/rootcd/boot/

>/home/slitaz/5.0/distro/rootcd/boot/:

>bzImage rootfs.gz

>isolinux vmlinuz-4.17.7-slitaz

>/home/slitaz/5.0/distro/rootcd/efi/boot/:

>bootx64.efi

tazlito retains bzImage and bootx64.efi

why not choose bzImage and bootia32.efi?

# mount -o loop,ro slitaz-next64-20191127.iso /media/cdrom

/media/cdrom/boot:

-rw-r--r-- 5 root root 3879568 Nov 27 08:51 bzImage

-rw-r--r-- 5 root root 3879568 Nov 27 08:51 bzImage64

-rw-r--r-- 5 root root 3879568 Nov 27 08:51 vmlinuz-4.17.7-slitaz

/media/cdrom/efi/boot:

-rw-r--r-- 5 root root 3879568 Nov 27 08:51 bootia32.efi

-rw-r--r-- 5 root root 3879568 Nov 27 08:51 bootx64.efi

>tazlito assume that vmlinuz-4.17.7-slitaz is a

>32 bits kernel and create the bootia32.efi link.

>Rename it to vmlinuz-4.17.7-slitaz

I understand what you mean. 

When building slitaz-next64-20191127.iso, I didn't know "make_bzImage_hardlink() and alloc_uefi_part()".

# isolinux/syslinux first tries the '64' suffix with a 64bits cpu.

# mv vmlinuz-4.17.7-slitaz vmlinuz-4.17.7-slitaz64

4.

vmlinuz-4.17.7-slitaz64

bzImage64

vmlinuz-4.17.7-slitaz64

bootx64.efi

VS.

vmlinuz-4.17.7-slitaz

bzImage

vmlinuz-4.17.7-slitaz

bootia32.efi

Offline

#43 2019-12-05 19:54:22

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Update kernel

@Bellard   tazlito has an error

root@slitaz:/home/tux/Downloads# tazpkg -i tazlito-523.tazpkg

/usr/libexec/tazpkg/install: line 428: can't open tazlito-523.tazpkg: no such file

/usr/libexec/tazpkg/install: .: line 428: can't open './receipt'

and the packages are not updated

root@slitaz:/home/tux/Downloads# tazpkg search tazlito

Search result for "tazlito"

==============================================================================

Installed packages

------------------------------------------------------------------------------

tazlito                 523               base-system

==============================================================================

1 installed package found for "tazlito"

Available packages

------------------------------------------------------------------------------

tazlito                 492               base-system

==============================================================================

1 available package found for "tazlito"

I had to download from here

http://cook.slitaz.org/next/tazlito

Offline

#44 2019-12-05 20:30:47

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Update kernel

in general the iso fro alanyih works very well, but I have the problem, to save my changes.

all rootfs.gz produced with tazusb writefs lzma, lazlito writeiso lzma 492 + 523 end up with kernel panic.

I cant install to harddisk, because I need the windows there and I have not enough space on the mmc, so I need to boot from USB.

Until now, everything I need for my laptop works - beside tazusb or tazlito the only error is with pm-suspend - I just can run it as root, even the flgas are set to be executed by the user.

Offline

#45 2019-12-05 22:21:46

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Update kernel

@HGT

you can see in the logs the history

http://cook.slitaz.org/next/linux/log/1532167713

why Aleksej changed back to 4.14, I have no idea

cook is no more synchronized with mirror

http://cook.slitaz.org/next/linux/download

and I think, you cannot setup cook on next to many errors, but this has be answered by somebody else

Offline

#46 2019-12-05 23:30:00

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Update kernel

Hi there,

> cook is no more synchronized with mirror

Cook of the SliTaz Next never synchronized with the mirror in the automatic mode (like you can see in the Cook of the SliTaz Rolling). I always transferred files manually (if I recall correctly, with something like rsync).

Offline

#47 2019-12-06 01:24:57

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: Update kernel

@kultex

root@slitaz:/home/tux/Downloads# tazpkg -i tazlito-523.tazpkg

/usr/libexec/tazpkg/install: line 428: can't open tazlito-523.tazpkg: no such file

Try:

root@slitaz:~# tazpkg -i /home/tux/Downloads/tazlito-523-any.tazpkg --forced

Installation of package "tazlito"

================================================================================

SliTaz Live Tool

--------------------------------------------------------------------------------

Copying package...                                                   [ Done ]

Extracting package...                                                [ Done ]

Remember modified packages...                                        [ Done ]

Saving configuration files...                                        [ Done ]

Installing package...                                                [ Done ]

Removing all tmp files...                                            [ Done ]

Update system databases...                                           [ Done ]

================================================================================

Package "tazlito" (523) is installed.

root@slitaz:~# tazlito | head -n 3

SliTaz Live Tool - Version: 523

Offline

#48 2019-12-06 18:34:59

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Update kernel

I all the time get the error installing with forced or without, but it installs correct - I checked

but no luck to boot - it ends up all the time with an init error - does not find the init (Error2)

Pascal, do you have an idea? The problem is, I can only work and test frugal from stick, when I am in the train and have some free time. Should I upload the created rootfs.gz?

And tazusb ends all the time with a hex-code error

Offline

#49 2019-12-07 00:25:03

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Update kernel

@ kultex

Here is the link to download my justX flavour ISO:

https://send.firefox.com/download/2b5c71460f62412a/#shHnEzGk_0fNkGfa03L8uw

(will expire on 2019-12-14 00:00).

I think I'll have time to pack the LXlauncher flavour tomorrow.

Offline

#50 2019-12-07 17:17:31

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: Update kernel

@Ceel thx very much, but please can you add linux-ethernet to the flavor - I dont care justX or LXlauncher

Like this its quite unuseable

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.66 MiB (Peak: 1.77 MiB) ]