SliTaz SliTaz Forum

You are not logged in.

#51 2019-12-07 19:20:35

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

Re: Update kernel

@kultex

Yes, you're right. I suppressed it and linux-wireless too because I did a copy of the Next64 repository on my HD; it saves time when using tazlito.

This one should be better: https://send.firefox.com/download/6ffcc42542c86f9f/#gdY6YgoHA1Cj2kK7-gZJuw

Offline

#52 2019-12-08 23:46:07

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

Re: Update kernel

strange, I thought I already wrote an answer....

your iso has exact the same errors as the iso from alanyih

how do you make your iso?

with which tazlito commands?

Offline

#53 2019-12-09 07:35:34

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

Re: Update kernel

@ kultex

tazlito clean-distro

tazlito gen-distro my.list

Then changing some conf files (ie mirror)

In /home/slitaz/next64/distro/rootfs

find . -print | cpio -o -H newc | lzma e -si -so > ../rootfs.gz

cp -a the rootfs.gz in /home/slitaz/next64/distro/rootcd/boot

tazlito gen-iso

What are the errors?

I didn't test the ISO in Live mode, only the rootfs.gz in frugal; I just keep one 64bit computer here, and it's a UEFI. however, I'll try to creat a USB Live during the week.

Offline

#54 2019-12-09 08:09:59

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

Re: Update kernel

I use tazlito writeiso lzma - creates the rootfs.gz and then, there are errors

but the iso does not boot - ends with init error - error 2 - cant find init

EDIT: and you run it from cooking or next?

Offline

#55 2019-12-09 16:38:17

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

Re: Update kernel

tazlito-492 from Next64 in full installation

Offline

#56 2019-12-09 20:58:32

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

Re: Update kernel

I made a LiveUSB with tazusb on a FAT32 USB key:

[c]tazusb gen-iso2usb next64-justx+.iso /dev/sdb1[/c]

Then, in the Live, I

[*]copied refind_x64.efi in /efi/boot/bootx64.efi (should be in my ISO (203.9MB) but tazusb doesn't seem to copy it, I'll verify this)

[*]created a refind_linux.conf in /boot:

# refind_linux.conf
#
# CONFIGURATION FILE FOR rEFInd TO BOOT FROM THE SLITAZ LINUX KERNEL (>= 3.30)
#

"Next64"         "ro root=/dev/null kmap=fr-latin1 initrd=/boot/rootfs.gz"

In Setup [c]Secure boot= Disabled[/c] and [c]Boot priority order= USB HDD[/c]

At boot when rEFInd displays its menu, select the device and hit [Enter], next64-justx+ boots without any errors; only the same issue than boot in frugal from rootfs.gz, I'm quite sure something is missing in my ISO but I don't find what sad

I'm going to try to find a non-UEFI computer at work to see if the Live boots correctly from Syslinux.

I don't understand why there are errors at boot in Live and not in frugal.

Offline

#57 2019-12-09 21:52:28

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

Re: Update kernel

thx - I used tazusb writefs lzma - and my stick is ext4

I will try tomorrow gen-iso2usb

+ by the way - netsurf 3.9 is unuseable in next - to many segfaults

Offline

#58 2019-12-10 13:49:37

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

Re: Update kernel

There are no errors in Live booting

I have booted your iso in Live mode from the stick, but the modified rootfs.gz, produced by tazusb and tazlito and replacing the original rootfs.gz,  produce the kernel panic.

I hope, thats clear now - I am in non-UEFI mode / from my stick I can boot now 6 different linux from syslinux.....

it would be just cool, if I could remaster from the booted LIVE SliTaz next, whenever I do some changes / like I always did...

Offline

#59 2019-12-12 07:51:29

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

Re: Update kernel

startx VS. slim login manager

startx

tux@slitaz:~$ cat .xsession

# ~/.xsession: Start X window session manually on your system (startx).

#

. $HOME/.config/slitaz/applications.conf

Xorg &

#xterm &

#xpad &

exec $WINDOW_MANAGER

tux@slitaz:~$ ps

[..]

2091 root       0:00 /sbin/getty 115200 38400 9600 4800 2400 ttyS0

2149 messageb   0:00 /usr/bin/dbus-daemon --system

2153 tux        0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autos

2155 root       0:00 /usr/libexec/Xorg

2178 tux        0:00 pcmanfm --desktop

2179 tux        0:00 lxpanel --profile slitaz

2183 tux        0:00 dbus-launch --sh-syntax --exit-with-session

2184 tux        0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --prin

2195 tux        0:00 /usr/libexec/menu-cache/menu-cached /home/tux/.cache/menu

2213 tux        0:00 sakura --sync --geometry 80x24 -t SliTaz next64

2215 tux        0:00 gnome-pty-helper

2216 tux        0:00 /bin/sh

2217 tux        0:00 ps

tux@slitaz:~$ pstree -p

init(1)-+-dbus-daemon(2149)
        |-dbus-daemon(2184)
        |-dbus-launch(2183)
        |-getty(2087)
        |-getty(2088)
        |-getty(2089)
        |-getty(2090)
        |-getty(2091)
        |-httpd(1945)
        |-klogd(1463)
        |-lxpanel(2179)-+-{gmain}(2187)
        |               `-{menu-cache-io}(2196)
        |-menu-cached(2195)---{gmain}(2198)
        |-pcmanfm(2178)-+-{gmain}(2188)
        |               |-{pool}(2222)
        |               `-{pool}(2223)
        |-sakura(2213)-+-gnome-pty-helpe(2215)
        |              |-sh(2216)---pstree(2221)
        |              `-{gmain}(2214)
        |-sh(2084)
        |-sh(2083)---openbox(2153)---Xorg(2155)---{InputThread}(2169)
        |-syslogd(1442)
        |-udevd(1350)
        `-udhcpc(2005)
tux@slitaz:~$

VS.

slim login manager

tux@slitaz:~$ cat .xinitrc

# ~/.xinitrc: Executed by Slim/LXDM login manager to startx X session.

# You can use F1 with Slim to change your window manager or configure

# it permanently with your personal applications.conf file.

#

. $HOME/.config/slitaz/applications.conf

tazbox mkmenu

[ "$1" ] && WINDOW_MANAGER="$1"

EXEC="exec ck-launch-session dbus-launch --sh-syntax --exit-with-session"

LOG="/dev/null" ; X=$LOG ; ERR=$X

case "$WINDOW_MANAGER" in
    openbox|lxde*|icewm*|xfce4|compiz|karmen|dwm|fluxbox*|razor*|mate*)
        $EXEC ${WINDOW_MANAGER%-session}-session ;;
    enlightenment)
        $EXEC enlightenment_start ;;
    kde)    $EXEC startkde ;;
    lxqt)    $EXEC startlxqt ;;
    *)    $EXEC $WINDOW_MANAGER ;;
esac    2>>$ERR >>$X

tux@slitaz:~$ ps

PID   USER     TIME   COMMAND

    1 root       0:13 init

[..]

2007 root       0:00 /sbin/udhcpc -b -T 1 -A 12 -i eth0 -p /var/run/udhcpc.eth

2039 messageb   0:00 /usr/bin/dbus-daemon --system

2148 root       0:00 /usr/bin/slim -d

2154 root       0:00 /usr/libexec/Xorg -auth /var/run/slim.auth vt07

2163 root       0:00 /usr/sbin/console-kit-daemon --no-daemon

2169 polkitd    0:00 /usr/lib/polkit-1/polkitd --no-debug

2174 tux        0:00 ck-launch-session dbus-launch --sh-syntax --exit-with-ses

2217 tux        0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autos

2220 tux        0:00 dbus-launch --sh-syntax --exit-with-session openbox-sessi

2221 tux        0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --prin

2234 tux        0:00 /usr/lib/gvfsd

2239 tux        0:00 /usr/lib/gvfsd-fuse /var/run/user/1000/gvfs -f -o big_wri

2252 tux        0:00 pcmanfm --desktop

2253 tux        0:00 lxpanel --profile slitaz

2264 tux        0:00 /usr/lib/gvfsd-metadata

2271 tux        0:00 /usr/libexec/menu-cache/menu-cached /var/run/user/1000/me

2279 tux        0:00 /usr/lib/gvfs-udisks2-volume-monitor

2283 root       0:00 /usr/libexec/udisks2/udisksd

2309 tux        0:00 /usr/lib/gvfs-gphoto2-volume-monitor

2314 tux        0:00 /usr/lib/gvfs-mtp-volume-monitor

2319 tux        0:00 /usr/lib/gvfsd-trash --spawner :1.1 /org/gtk/gvfs/exec_sp

2325 root       0:00 /sbin/getty 38400 tty1

2326 root       0:00 /sbin/getty 38400 tty2

2327 root       0:00 /sbin/getty 38400 tty3

2328 root       0:00 /sbin/getty 38400 tty4

2329 root       0:00 /sbin/getty 38400 tty5

2330 root       0:00 /sbin/getty 38400 tty6

2331 root       0:00 /sbin/getty 115200 38400 9600 4800 2400 ttyS0

2346 tux        0:00 sakura --sync --geometry 80x24 -t SliTaz next64

2349 tux        0:00 gnome-pty-helper

2350 tux        0:00 /bin/sh

2354 tux        0:00 ps

tux@slitaz:~$ pstree -p

init(1)-+-console-kit-dae(2163)-+-{console-kit-dae}(2167)
        |                       |-{gdbus}(2166)
        |                       |-{gmain}(2164)
        |                       `-{vt_thread_start}(2170)
        |-dbus-daemon(2039)
        |-dbus-daemon(2221)
        |-dbus-launch(2220)
        |-getty(2325)
        |-getty(2326)
        |-getty(2327)
        |-getty(2328)
        |-getty(2329)
        |-getty(2330)
        |-getty(2331)
        |-gvfs-gphoto2-vo(2309)-+-{gdbus}(2312)
        |                       `-{gmain}(2310)
        |-gvfs-mtp-volume(2314)-+-{gdbus}(2317)
        |                       `-{gmain}(2315)
        |-gvfs-udisks2-vo(2279)-+-{gdbus}(2281)
        |                       `-{gmain}(2280)
        |-gvfsd(2234)-+-gvfsd-trash(2319)-+-{gdbus}(2321)
        |             |                   `-{gmain}(2320)
        |             |-{gdbus}(2236)
        |             `-{gmain}(2235)
        |-gvfsd-fuse(2239)-+-{gdbus}(2244)
        |                  |-{gmain}(2243)
        |                  |-{gvfs-fuse-sub}(2249)
        |                  |-{gvfsd-fuse}(2241)
        |                  `-{gvfsd-fuse}(2242)
        |-gvfsd-metadata(2264)-+-{gdbus}(2266)
        |                      `-{gmain}(2265)
        |-httpd(1933)
        |-klogd(1465)
        |-lxpanel(2253)-+-{gdbus}(2258)
        |               |-{gmain}(2257)
        |               `-{menu-cache-io}(2272)
        |-menu-cached(2271)-+-{gdbus}(2277)
        |                   `-{gmain}(2276)
        |-pcmanfm(2252)-+-{gdbus}(2256)
        |               |-{gmain}(2255)
        |               |-{pool}(2358)
        |               `-{pool}(2359)
        |-polkitd(2169)-+-{gdbus}(2178)
        |               |-{gmain}(2177)
        |               |-{polkitd}(2180)
        |               `-{polkitd}(2182)
        |-sakura(2346)-+-gnome-pty-helpe(2349)
        |              |-sh(2350)---pstree(2357)
        |              |-{gdbus}(2348)
        |              `-{gmain}(2347)
        |-slim(2148)-+-Xorg(2154)---{InputThread}(2161)
        |            `-ck-launch-sessi(2174)---openbox(2217)-+-{gdbus}(2232)
        |                                                    `-{gmain}(2231)
        |-syslogd(1444)
        |-udevd(1352)
        |-udhcpc(2007)
        `-udisksd(2283)-+-{cleanup}(2306)
                        |-{gdbus}(2286)
                        |-{gmain}(2284)
                        `-{probing-thread}(2287)
tux@slitaz:~$

Offline

#60 2019-12-13 22:03:15

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

Re: Update kernel

@ kultex,

OK, clear.

I think I found where the problem comes from : in /usr/bin/tazusb, add lib64 at line 486.

[c]for dir in /bin /etc /init /sbin /var /dev /lib /lib64 /root /usr /opt[/c]

Now the rootfs.gz I rebuild with tazusb boots without kernel panic.

Maybe there will be other lines to modify; I just have a look at the writefs function.

And maybe in others scripts too.

Offline

#61 2019-12-14 13:26:51

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

Re: Update kernel

excellent - perfect - I have a strange keyboard and some errors - but it works......

thanks a lot

Offline

#62 2019-12-15 23:34:37

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

Re: Update kernel

I made a rootfs.gz with all the packages I would do in a minimal iso - no gtk3 needed.

Only installed - not configured. What is installed, you find in /var/log/slitaz/tazpkg.log

create ~/.config/openbox/autostart file and start whatever you want - like "tint2 &" or "conky &"

I left netsurf on 3.8 - 3.9 has still segfaults

and what would be cool - if we get mpv video player (https://mpv.io/)

Problems are:

spacefm does not start, because of a wrong x265.so file (I want to replace pcmanfm, because we dont need all the udisk stuff - udevil is more lightwight)

pm-suspend is working, but only as root - I just quick checked all the permissoins and they are all set to execute as user....

main problem is the mismatch of xorg with the drivers - only modsetting works - I attach the file (alanyih already mentioned it)

https://we.tl/t-BD8kKmFw8J - the download is until 22.12. or 23.12 (they dont tell when)

EDIT: forgot md5sum:  bfad7d334f26de39331ae3e8691b7c8b

Offline

#63 2019-12-25 18:23:35

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

Re: Update kernel

next version of rootfs.gz

this time I started with the iso of alanyih, because I did not find the error, that x does not start straight....

still no sucess with spacefm, but I will continue

I attach the necesarry config files from .config/openbox/autostart & .config/tint2/tint2rc - just remove the .txt

desktop.jpg shows how the desktop looks like

the rootfs.gz can be downloaded here  https://drive.google.com/drive/folders/1TjrnPWn9xH37eiYkfQHQGcqN3DR1gXLq?usp=sharing

EDIT: I changed now to a shared google drive folder - so it will not be deleted

[attachment=48280,2902]

Offline

#64 2019-12-31 06:56:02

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

Re: Update kernel

spacefm - libx264 & libx265

libx265.so.116: cannot open shared object file: No such file or directory

libx264.so.148: cannot open shared object file: No such file or directory

download libx264-265.tar.xz and extract to /usr/lib

# tar tvf libx264-265.tar.xz

-rwxrwxrwx root/root    892528 2018-02-27 12:06:41 libx264.so.148

-rwxrwxrwx root/root   4658320 2018-04-11 12:36:39 libx265.so.116

# tar xJvf /path-to/libx264-265.tar.xz -C /usr/lib

libx264-265.tar.xz  933K

http://tiny.cc/stj6hz

[attachment=48309,2909]

Offline

#65 2020-01-03 08:56:12

mini536
Member
Registered: 2020-01-03
Posts: 2

Re: Update kernel

#kultex Can you make and share a iso file which include your latest progress on kernel update with us?thx

Offline

#66 2020-01-03 20:53:37

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

Re: Update kernel

@mini536

I cannot make a iso file,  because tazlito in next is broken - I can save my changes only with tazusb. So you can start with the iso of alanyih - you will find it on page 3 of this thread, make a bootable usb, use home=sdxx change his rootfs.gz with my rootfs.gz and also change all my config files in /home/tux.

I dont know, when I can continue, because I have 2 theater premieres until 4. of february. Whenever I will have some time, I will continue, but maybe just after 04. 02.

@alanyih   thanks for solving spacefm

Offline

#67 2020-01-26 13:02:17

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

Re: Update kernel

linux-source - get-linux-source

Unable to find package "busybox-boot" in the mirrored packages list.

/usr/bin/get-linux-source: line 42: can't open slitaz/patches: no such file

cp: can't stat 'slitaz/config': No such file or directory

SOURCES_REPOSITORY=$SLITAZ_DIR/$SLITAZ_VERSION/src

cp -a /usr/src/kernel-patches/slitaz /usr/src/linux-$VERSION

# tazpkg -gi linux-source bc elfutils-dev openssl-dev

# ln -s /usr/lib/libmpfr.so.6.0.1 /usr/lib/libmpfr.so.4

1.

root@slitaz:~# tazpkg -s busybox-boot

Search result for "busybox-boot"

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

Installed packages

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

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

0 installed packages found for "busybox-boot"

Available packages

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

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

0 available packages found for "busybox-boot"

2.

root@slitaz:~# get-linux-source

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

linux-4.17.tar.xz    100% |*******************************| 99771k  0:00:00 ETA

/usr/bin/get-linux-source: line 42: can't open slitaz/patches: no such file

cp: can't stat 'slitaz/config': No such file or directory

----

To modify the kernel configuration:

$ cd /usr/src/linux-4.17.7

$ make menuconfig

3.

root@slitaz:~# ls /usr/src

linux                   linux-4.17.7
kernel-patches          linux-4.17

root@slitaz:~# ls -a /usr/src/linux-4.17
.                       LICENSES                ipc
..                      MAINTAINERS             kernel
.clang-format           Makefile                lib
.cocciconfig            README                  mm
.get_maintainer.ignore  arch                    net
.gitattributes          block                   samples
.gitignore              certs                   scripts
.mailmap                crypto                  security
COPYING                 drivers                 sound
CREDITS                 firmware                tools
Documentation           fs                      usr
Kbuild                  include                 virt
Kconfig                 init

root@slitaz:~# ls -a /usr/src/linux-4.17.7
.                          config
..                         copy_modules.sh
aufs-patches               gztazmod.sh
aufs4-base.patch           install_module_headers.sh
aufs4-mmap.patch           linux-4.17.7.patch
aufs4-standalone.patch     list_modules.sh
bootloader.sh              make-tazpkg.u
buildtaz                   patches
check_modules.sh           url
root@slitaz:~#
4.

root@slitaz:~# ls -l /next64/src

total 99772

-rw-r--r--    1 root     root     102165892 Jan 19 21:40 linux-4.17.tar.xz

5.

root@slitaz:~# diff /usr/bin/get-linux-source-orig /usr/bin/get-linux-source

--- /usr/bin/get-linux-source-orig

+++ /usr/bin/get-linux-source

@@ -2,7 +2,7 @@

source /etc/slitaz/slitaz.conf

-SOURCES_REPOSITORY=$SLITAZ_DIR/$SLITAZ_VERSION/src

+SOURCES_REPOSITORY=$SLITAZ_HOME/$SLITAZ_VERSION/src

VERSION=4.17.7

url=$(cat /usr/src/kernel-patches/slitaz/url | sed "s/-${VERSION:0:3}.tar/-$VERSION.tar/")

@@ -26,7 +26,8 @@

     tar -xf $SOURCES_REPOSITORY/$(basename $url)

fi

-cp -a /usr/src/kernel-patches/slitaz /usr/src/linux-$VERSION

+mv /usr/src/linux-4.17 /usr/src/linux-4.17.7

+cp -a /usr/src/kernel-patches/slitaz /usr/src/linux-$VERSION/.

# Add tazpkg support

if [ -d "/usr/src/linux-$VERSION/scripts/package" ]; then

root@slitaz:~#

6.

root@slitaz:~# get-linux-source

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

Connecting to www.kernel.org (147.75.46.191:443)

Connecting to mirrors.edge.kernel.org (147.75.95.133:443)

linux-4.17.tar.xz    100% |*******************************| 99771k  0:00:00 ETA

patching file scripts/package/Makefile

Hunk #1 succeeded at 100 with fuzz 2.

Hunk #2 succeeded at 160 (offset 1 line).

Apply linux-4.17.7.patch

patching file Documentation/ABI/stable/sysfs-bus-vmbus

[..]

Apply aufs4-standalone.patch

patching file fs/dcache.c

patching file fs/exec.c

patching file fs/fcntl.c

patching file fs/file_table.c

patching file fs/inode.c

patching file fs/namespace.c

patching file fs/notify/group.c

patching file fs/notify/mark.c

patching file fs/open.c

patching file fs/read_write.c

patching file fs/splice.c

patching file fs/sync.c

patching file fs/xattr.c

patching file kernel/locking/lockdep.c

patching file kernel/task_work.c

patching file security/commoncap.c

patching file security/device_cgroup.c

patching file security/security.c

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/kconfig/conf.o

  YACC    scripts/kconfig/zconf.tab.c

  LEX     scripts/kconfig/zconf.lex.c

  HOSTCC  scripts/kconfig/zconf.tab.o

  HOSTLD  scripts/kconfig/conf

scripts/kconfig/conf  --oldconfig Kconfig

#

# configuration written to .config

#

scripts/kconfig/conf  --syncconfig Kconfig

  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h

  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h

  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h

  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h

  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h

  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h

  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h

  HOSTCC  scripts/basic/bin2c

  HOSTCC  arch/x86/tools/relocs_32.o

  HOSTCC  arch/x86/tools/relocs_64.o

  HOSTCC  arch/x86/tools/relocs_common.o

  HOSTLD  arch/x86/tools/relocs

  CHK     include/config/kernel.release

  UPD     include/config/kernel.release

  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h

  WRAP    arch/x86/include/generated/uapi/asm/poll.h

  WRAP    arch/x86/include/generated/asm/dma-contiguous.h

  WRAP    arch/x86/include/generated/asm/early_ioremap.h

  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h

  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h

  CHK     include/generated/uapi/linux/version.h

  UPD     include/generated/uapi/linux/version.h

  CHK     include/generated/utsrelease.h

  UPD     include/generated/utsrelease.h

  CC      kernel/bounds.s

  CHK     include/generated/bounds.h

  UPD     include/generated/bounds.h

  CHK     include/generated/timeconst.h

  UPD     include/generated/timeconst.h

  CC      arch/x86/kernel/asm-offsets.s

  CHK     include/generated/asm-offsets.h

  UPD     include/generated/asm-offsets.h

  CALL    scripts/checksyscalls.sh

  DESCEND  objtool

  HOSTCC   /usr/src/linux-4.17.7/tools/objtool/fixdep.o

  HOSTLD   /usr/src/linux-4.17.7/tools/objtool/fixdep-in.o

  LINK     /usr/src/linux-4.17.7/tools/objtool/fixdep

  CC       /usr/src/linux-4.17.7/tools/objtool/exec-cmd.o

  CC       /usr/src/linux-4.17.7/tools/objtool/help.o

  CC       /usr/src/linux-4.17.7/tools/objtool/pager.o

  CC       /usr/src/linux-4.17.7/tools/objtool/parse-options.o

  CC       /usr/src/linux-4.17.7/tools/objtool/run-command.o

  CC       /usr/src/linux-4.17.7/tools/objtool/sigchain.o

  CC       /usr/src/linux-4.17.7/tools/objtool/subcmd-config.o

  LD       /usr/src/linux-4.17.7/tools/objtool/libsubcmd-in.o

  AR       /usr/src/linux-4.17.7/tools/objtool/libsubcmd.a

  GEN      /usr/src/linux-4.17.7/tools/objtool/arch/x86/lib/inat-tables.c

  CC       /usr/src/linux-4.17.7/tools/objtool/arch/x86/decode.o

  LD       /usr/src/linux-4.17.7/tools/objtool/arch/x86/objtool-in.o

  CC       /usr/src/linux-4.17.7/tools/objtool/builtin-check.o

  CC       /usr/src/linux-4.17.7/tools/objtool/builtin-orc.o

  CC       /usr/src/linux-4.17.7/tools/objtool/check.o

  CC       /usr/src/linux-4.17.7/tools/objtool/orc_gen.o

  CC       /usr/src/linux-4.17.7/tools/objtool/orc_dump.o

  CC       /usr/src/linux-4.17.7/tools/objtool/elf.o

  CC       /usr/src/linux-4.17.7/tools/objtool/special.o

  CC       /usr/src/linux-4.17.7/tools/objtool/objtool.o

  CC       /usr/src/linux-4.17.7/tools/objtool/libstring.o

  CC       /usr/src/linux-4.17.7/tools/objtool/str_error_r.o

  LD       /usr/src/linux-4.17.7/tools/objtool/objtool-in.o

  LINK     /usr/src/linux-4.17.7/tools/objtool/objtool

  HOSTCC  scripts/genksyms/genksyms.o

  YACC    scripts/genksyms/parse.tab.c

  HOSTCC  scripts/genksyms/parse.tab.o

  LEX     scripts/genksyms/lex.lex.c

  YACC    scripts/genksyms/parse.tab.h

  HOSTCC  scripts/genksyms/lex.lex.o

  HOSTLD  scripts/genksyms/genksyms

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/modpost.o

  CC      scripts/mod/devicetable-offsets.s

  CHK     scripts/mod/devicetable-offsets.h

  UPD     scripts/mod/devicetable-offsets.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/mod/sumversion.o

  HOSTLD  scripts/mod/modpost

  HOSTCC  scripts/kallsyms

  HOSTCC  scripts/pnmtologo

  HOSTCC  scripts/conmakehash

  HOSTCC  scripts/sortextable

  HOSTCC  scripts/asn1_compiler

  HOSTCC  scripts/extract-cert

----

To modify the kernel configuration:

$ cd /usr/src/linux-4.17.7

$ make menuconfig

To build the kernel and the modules:

$ cd /usr/src/linux-4.17.7

$ make bzImage && make modules

To install the new kernel and the modules:

$ make modules_install

$ cp -a arch/x86/boot/bzImage /boot/vmlinuz-4.17.7-slitaz

To make a Slitaz package with the new kernel and the modules:

$ make tazpkg

See /usr/src/linux-4.17.7/README

----

root@slitaz:~#

7.

root@slitaz:~# ls -l /home/slitaz/next64/src

total 99772

-rw-r--r--    1 root     root     102165892 Jan 20 08:32 linux-4.17.tar.xz

root@slitaz:~#

Offline

#68 2020-02-27 07:29:49

mini536
Member
Registered: 2020-01-03
Posts: 2

Re: Update kernel

@alanyih Can you make a new iso which contains your latest progress?thx

Offline

#69 2020-03-02 04:26:18

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

Re: Update kernel

@mini536

Try:

slitaz-next64-20191127.iso 96 MB

http://tiny.cc/41jxgz

slitaz-next64-20191127.md5

http://tiny.cc/yckxgz

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

Offline

#70 2020-03-30 16:12:17

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

Re: Update kernel

Hi all. Back at Next64 after a few months of interruption.

Wanted to recompile the kernel. I follow alanyih modifications in the get-linux-source script but when I type

[c]

cd /usr/src/linux-4.17.7

root@slitaz:/usr/src/linux-4.17.7# make menuconfig

make: *** No rule to make target 'menuconfig'.  Stop.

[/c]

What am I doing wrong?

Offline

#71 2020-04-04 23:04:53

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

Re: Update kernel

@Ceel

please post your output

# get-linux-source

# ls -al /usr/src/linux-4.17.7

Offline

#72 2020-04-07 10:07:45

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

Re: Update kernel

Hi alanyih,

Thanks for your help.

[c]root@slitaz:/home/tux# ls -al /usr/src/linux-4.17.7

total 976

drwxrwxr-x   26 root     root          4096 Apr  7 10:01 .

drwxr-xr-x    4 root     root          4096 Apr  7 10:01 ..

drwxrwxr-x   26 root     root          4096 Jun  3  2018 arch

drwxrwxr-x    3 root     root          4096 Apr  7 10:01 block

-rw-r--r--    1 root     root          7253 Apr  7 10:01 .cache.mk

drwxrwxr-x    2 root     root          4096 Jun  3  2018 certs

-rw-rw-r--    1 root     root         13060 Jun  3  2018 .clang-format

-rw-rw-r--    1 root     root            59 Jun  3  2018 .cocciconfig

-rw-r--r--    1 root     root        166845 Apr  7 10:01 .config

-rw-rw-r--    1 root     root           423 Jun  3  2018 COPYING

-rw-rw-r--    1 root     root         98651 Jun  3  2018 CREDITS

drwxrwxr-x    4 root     root          4096 Apr  7 10:01 crypto

drwxrwxr-x  119 root     root         12288 Jun  3  2018 Documentation

drwxrwxr-x  136 root     root          4096 Jun  3  2018 drivers

drwxrwxr-x    2 root     root          4096 Jun  3  2018 firmware

drwxrwxr-x   73 root     root          4096 Apr  7 10:01 fs

-rw-rw-r--    1 root     root            31 Jun  3  2018 .get_maintainer.ignore

-rw-rw-r--    1 root     root            30 Jun  3  2018 .gitattributes

-rw-rw-r--    1 root     root          1498 Jun  3  2018 .gitignore

drwxrwxr-x   27 root     root          4096 Jun  3  2018 include

drwxrwxr-x    2 root     root          4096 Jun  3  2018 init

drwxrwxr-x    2 root     root          4096 Jun  3  2018 ipc

-rw-rw-r--    1 root     root          2245 Jun  3  2018 Kbuild

-rw-rw-r--    1 root     root           287 Jun  3  2018 Kconfig

drwxrwxr-x   17 root     root          4096 Apr  7 10:01 kernel

drwxrwxr-x   13 root     root         12288 Apr  7 10:01 lib

drwxrwxr-x    5 root     root          4096 Jun  3  2018 LICENSES

lrwxrwxrwx    1 root     root            21 Apr  7 10:01 linux-4.17.7 -> /usr/src/linux-4.17.7

-rw-rw-r--    1 root     root          9395 Jun  3  2018 .mailmap

-rw-rw-r--    1 root     root        453173 Apr  7 10:01 MAINTAINERS

-rw-rw-r--    1 root     root         62438 Apr  7 10:01 Makefile

drwxrwxr-x    3 root     root          4096 Apr  7 10:01 mm

drwxrwxr-x   68 root     root          4096 Apr  7 10:01 net

-rw-rw-r--    1 root     root           800 Jun  3  2018 README

drwxrwxr-x   28 root     root          4096 Jun  3  2018 samples

drwxrwxr-x   14 root     root          4096 Jun  3  2018 scripts

drwxrwxr-x   10 root     root          4096 Apr  7 10:01 security

drwxr-xr-x    2 root     root          4096 Apr  7 09:54 slitaz

drwxrwxr-x   25 root     root          4096 Jun  3  2018 sound

drwxrwxr-x   32 root     root          4096 Jun  3  2018 tools

drwxrwxr-x    2 root     root          4096 Jun  3  2018 usr

drwxrwxr-x    4 root     root          4096 Jun  3  2018 virt

root@slitaz:/home/tux# [/c][c][/c]

Offline

#73 2020-04-07 23:35:33

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

Re: Update kernel

@Ceel

please check

patching file security/device_cgroup.c

patching file security/security.c

arch/x86/Makefile:184: *** Compiler lacks asm-goto support..  Stop.

----

To modify the kernel configuration:

$ cd /usr/src/linux-4.17.7

$ make menuconfig

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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