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
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
# ln -s /usr/lib/libmpfr.so.6.0.1 /usr/lib/libmpfr.so.4
1.
root@slitaz:~# tazpkg -s busybox-boot
root@slitaz:~# tazpkg -s busybox-boot
Search result for "busybox-boot"
================================================================================
Installed packages
--------------------------------------------------------------------------------
================================================================================
0 installed packages found for "busybox-boot"
================================================================================
Installed packages
--------------------------------------------------------------------------------
================================================================================
0 installed packages found for "busybox-boot"
Available packages
--------------------------------------------------------------------------------
================================================================================
0 available packages found for "busybox-boot"
--------------------------------------------------------------------------------
================================================================================
0 available packages found for "busybox-boot"
2.
root@slitaz:~# get-linux-source
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://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
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://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
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
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 @@
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
-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
@@ -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:~#
+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 http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://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
[..]
root@slitaz:~# get-linux-source
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://www.kernel.org (147.75.46.191:443)
Connecting to mirrors.edge.kernel.org (147.75.95.133:443)
Connecting to http://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
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
$ 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
$ 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
$ make tazpkg
See /usr/src/linux-4.17.7/README
----
root@slitaz:~#
----
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:~#
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:~#