Porteus Kernel Builder

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#796 by Ed_P » 09 Feb 2020, 21:31

This doesn't work. :o :(
neko wrote:
12 Mar 2019, 13:18
[ operation of replacing vmlinuz & 000-kernel.xzm ]

Code: Select all

% su
# ls
64bit-kernel5.0.1-RTSX_USB.tar Porteus-CINNAMON-v4.0-x86_64-19.01.12.iso
# mkdir mnt
# mount -t iso9660 -o loop Porteus-CINNAMON-v4.0-x86_64-19.01.12.iso mnt
# mkdir NEW
# cp -a mnt/* NEW/.
# cp -a /mnt/.[0-9A-Za-z]* NEW/. 2>/dev/null
# umount -f mnt
# rm -fr mnt
#
# mkdir w
# cd w
# tar -xf ../64bit-kernel5.0.1-RTSX_USB.tar
# cd ../
# mv w/vmlinuz NEW/boot/syslinux/
# mv w/000-kernel.xzm NEW/porteus/base/
#
# mkisofs -o NEW.iso -v -l -J -joliet-long  -R -D -A Porteus -V Porteus \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/syslinux/isolinux.bin -c boot/syslinux/isolinux.boot NEW
# rm -fr NEW w
# ls 
64bit-kernel5.0.1-RTSX_USB.tar NEW.iso Porteus-CINNAMON-v4.0-x86_64-19.01.12.iso

Code: Select all

+ tar -xf ../64bit-ALL-kernel5.4.18.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
:x
I assume the problem is due to this.
neko wrote:
04 Feb 2020, 06:59
<1> XZM module that is created by "Porteus Kernel Builder" (crippled_sources, 000-kernel)
It can be a mksquashfs compressed with "Zstandard (zstd)" or with "XZ".
The default is "Zstandard (zstd)"
So what is the tar command's replacement code? :unknown:


-update-

The tar -z option doesn't resolve it.

Code: Select all

root@porteus:/tmp# tar -xfz /tmp/*.tar
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
root@porteus:/tmp# ls /tmp
64bit-ALL-kernel5.4.18.tar 
This doesn't help.

Code: Select all

guest@porteus:~$ tar -I zstd -xf /tmp/*.tar
zstd: /*stdin*\: unsupported format 
tar: Child returned status 1
tar: Error is not recoverable: exiting now
guest@porteus:~$ 
:wall:

Nor this.

Code: Select all

guest@porteus:~$ tar  -axf  /tmp/*.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
guest@porteus:~$ 
Last edited by Ed_P on 10 Feb 2020, 00:09, edited 1 time in total.
Ed

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#797 by neko » 10 Feb 2020, 10:02

1. "Porteus Kernel Builder" was updated.
Version: 20.02.10

Kernel Version Line 5.6-rc was introduced. etc,.


2. Most recent version of build examples was updated.
Kernel Version: 5.6-rc1 <---- XZ version.

Note 1: AUFS patch "5.6" is not yet ready, and
AUFS patch "5.x-rcN-20200203" is not yet ready for kernel version 5.6-rc1.
[Patching error]

Code: Select all

# patch -p1 < ../../NG-aufs.patch
patching file Documentation/ABI/testing/debugfs-aufs
patching file Documentation/ABI/testing/sysfs-aufs
patching file Documentation/filesystems/aufs/README
patching file Documentation/filesystems/aufs/design/01intro.txt
patching file Documentation/filesystems/aufs/design/02struct.txt
patching file Documentation/filesystems/aufs/design/03atomic_open.txt
patching file Documentation/filesystems/aufs/design/03lookup.txt
patching file Documentation/filesystems/aufs/design/04branch.txt
patching file Documentation/filesystems/aufs/design/05wbr_policy.txt
patching file Documentation/filesystems/aufs/design/06dirren.dot
patching file Documentation/filesystems/aufs/design/06dirren.txt
patching file Documentation/filesystems/aufs/design/06fhsm.txt
patching file Documentation/filesystems/aufs/design/06mmap.txt
patching file Documentation/filesystems/aufs/design/06xattr.txt
patching file Documentation/filesystems/aufs/design/07export.txt
patching file Documentation/filesystems/aufs/design/08shwh.txt
patching file Documentation/filesystems/aufs/design/10dynop.txt
patching file fs/aufs/Kconfig
patching file fs/aufs/Makefile
patching file fs/aufs/aufs.h
patching file fs/aufs/branch.c
patching file fs/aufs/branch.h
patching file fs/aufs/conf.mk
patching file fs/aufs/cpup.c
patching file fs/aufs/cpup.h
patching file fs/aufs/dbgaufs.c
patching file fs/aufs/dbgaufs.h
patching file fs/aufs/dcsub.c
patching file fs/aufs/dcsub.h
patching file fs/aufs/debug.c
patching file fs/aufs/debug.h
patching file fs/aufs/dentry.c
patching file fs/aufs/dentry.h
patching file fs/aufs/dinfo.c
patching file fs/aufs/dir.c
patching file fs/aufs/dir.h
patching file fs/aufs/dirren.c
patching file fs/aufs/dirren.h
patching file fs/aufs/dynop.c
patching file fs/aufs/dynop.h
patching file fs/aufs/export.c
patching file fs/aufs/f_op.c
patching file fs/aufs/fhsm.c
patching file fs/aufs/file.c
patching file fs/aufs/file.h
patching file fs/aufs/finfo.c
patching file fs/aufs/fstype.h
patching file fs/aufs/hbl.h
patching file fs/aufs/hfsnotify.c
patching file fs/aufs/hfsplus.c
patching file fs/aufs/hnotify.c
patching file fs/aufs/i_op.c
patching file fs/aufs/i_op_add.c
patching file fs/aufs/i_op_del.c
patching file fs/aufs/i_op_ren.c
patching file fs/aufs/iinfo.c
patching file fs/aufs/inode.c
patching file fs/aufs/inode.h
patching file fs/aufs/ioctl.c
patching file fs/aufs/lcnt.h
patching file fs/aufs/loop.c
patching file fs/aufs/loop.h
patching file fs/aufs/magic.mk
patching file fs/aufs/module.c
patching file fs/aufs/module.h
patching file fs/aufs/mvdown.c
patching file fs/aufs/opts.c
patching file fs/aufs/opts.h
patching file fs/aufs/plink.c
patching file fs/aufs/poll.c
patching file fs/aufs/posix_acl.c
patching file fs/aufs/procfs.c
patching file fs/aufs/rdu.c
patching file fs/aufs/rwsem.h
patching file fs/aufs/sbinfo.c
patching file fs/aufs/super.c
patching file fs/aufs/super.h
patching file fs/aufs/sysaufs.c
patching file fs/aufs/sysaufs.h
patching file fs/aufs/sysfs.c
patching file fs/aufs/sysrq.c
patching file fs/aufs/vdir.c
patching file fs/aufs/vfsub.c
patching file fs/aufs/vfsub.h
patching file fs/aufs/wbr_policy.c
patching file fs/aufs/whout.c
patching file fs/aufs/whout.h
patching file fs/aufs/wkq.c
patching file fs/aufs/wkq.h
patching file fs/aufs/xattr.c
patching file fs/aufs/xino.c
patching file include/uapi/linux/aufs_type.h
patching file MAINTAINERS
Hunk #1 succeeded at 2919 (offset 42 lines).
patching file drivers/block/loop.c
patching file fs/dcache.c
patching file fs/fcntl.c
patching file fs/inode.c
Hunk #1 succeeded at 1687 with fuzz 2 (offset 7 lines).
patching file fs/namespace.c
patching file fs/read_write.c
patching file fs/splice.c
patching file fs/sync.c
patching file include/linux/fs.h
Hunk #2 succeeded at 1842 (offset -1 lines).
Hunk #3 succeeded at 1913 (offset -1 lines).
Hunk #4 succeeded at 2351 (offset 11 lines).
Hunk #5 succeeded at 2636 (offset 7 lines).
patching file include/linux/lockdep.h
patching file include/linux/mnt_namespace.h
patching file include/linux/splice.h
patching file kernel/locking/lockdep.c
patching file fs/Kconfig
Hunk #1 FAILED at 264.
1 out of 1 hunk FAILED -- saving rejects to file fs/Kconfig.rej
patching file fs/Makefile
Hunk #1 FAILED at 133.
1 out of 1 hunk FAILED -- saving rejects to file fs/Makefile.rej
patching file drivers/block/loop.c
patching file drivers/block/loop.h
patching file fs/aufs/f_op.c
Hunk #1 succeeded at 369 (offset 10 lines).
patching file fs/aufs/loop.c
Hunk #1 succeeded at 146 (offset 13 lines).
patching file fs/aufs/loop.h
Hunk #1 succeeded at 39 (offset 13 lines).
Hunk #2 succeeded at 51 (offset 13 lines).
patching file fs/aufs/super.c
Hunk #1 succeeded at 857 (offset 13 lines).
patching file include/linux/fs.h
Hunk #1 succeeded at 1979 (offset -1 lines).
patching file fs/proc/base.c
Hunk #1 succeeded at 2128 (offset 91 lines).
patching file fs/proc/nommu.c
patching file fs/proc/task_mmu.c
patching file fs/proc/task_nommu.c
patching file include/linux/mm.h
Hunk #1 succeeded at 1487 (offset -8 lines).
patching file include/linux/mm_types.h
Hunk #2 succeeded at 347 (offset 5 lines).
patching file kernel/fork.c
patching file mm/Makefile
Hunk #1 succeeded at 43 (offset 1 line).
patching file mm/filemap.c
Hunk #1 succeeded at 2653 (offset -22 lines).
patching file mm/mmap.c
Hunk #3 succeeded at 1833 (offset -4 lines).
Hunk #4 succeeded at 2663 (offset -4 lines).
Hunk #5 succeeded at 2682 (offset -4 lines).
Hunk #6 succeeded at 2874 (offset -4 lines).
Hunk #7 succeeded at 2949 (offset -4 lines).
Hunk #8 succeeded at 3260 (offset -4 lines).
patching file mm/nommu.c
patching file mm/prfile.c
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
Hunk #1 succeeded at 1693 with fuzz 2 (offset 4 lines).
patching file fs/namespace.c
patching file fs/notify/group.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/security.c
Hunk #1 succeeded at 1068 (offset 32 lines).
Hunk #2 succeeded at 1085 (offset 32 lines).
Hunk #3 succeeded at 1094 (offset 32 lines).
Hunk #4 succeeded at 1122 (offset 32 lines).
Hunk #5 succeeded at 1130 (offset 32 lines).
Hunk #6 succeeded at 1138 (offset 32 lines).
Hunk #7 succeeded at 1239 (offset 32 lines).
Hunk #8 succeeded at 1417 (offset 32 lines).
patching file include/linux/lockdep.h
patching file kernel/locking/lockdep.c
patching file kernel/locking/lockdep_internals.h
patching file fs/mount.h
patching file fs/namespace.c
Hunk #1 succeeded at 1254 (offset 8 lines).
patching file fs/proc_namespace.c
patching file include/linux/shmem_fs.h
Hunk #1 succeeded at 27 (offset 1 line).
patching file mm/shmem.c
Hunk #9 succeeded at 3445 (offset -4 lines).
Hunk #10 succeeded at 3543 (offset -4 lines).
Hunk #11 succeeded at 3602 (offset -4 lines).
Hunk #12 succeeded at 3626 (offset -4 lines).
Hunk #13 succeeded at 3668 (offset -4 lines).
Hunk #14 succeeded at 3781 (offset -4 lines).
Hunk #15 succeeded at 3930 (offset -4 lines).
patching file fs/inode.c
Hunk #1 succeeded at 893 (offset 1 line).
Hunk #2 succeeded at 907 (offset 1 line).
#
Note 2: kernel 5.6-rc config was updated from one of 5.5 by "make oldconfig" command with following spec.

Code: Select all

TIME namespace (TIME_NS) [Y/n/?] (NEW) Y
Boot config support (BOOT_CONFIG) [Y/n/?] (NEW) Y
Clear Busmaster bit on PCI bridges during ExitBootServices() (EFI_DISABLE_PCI_DMA) [N/y/?] (NEW) N
MPTCP: Multipath TCP (MPTCP) [N/y/?] (NEW) N
Virtual Sockets loopback transport (VSOCKETS_LOOPBACK) [M/n/?] (NEW) M
Netlink interface for ethtool (ETHTOOL_NETLINK) [Y/n/?] (NEW) Y
WireGuard secure network tunnel (WIREGUARD) [N/m/?] (NEW) N
Support for variants of the 16550A serial port (SERIAL_8250_16550A_VARIANTS) [N/y/?] (NEW) N
Intel Lynxpoint pinctrl and GPIO driver (PINCTRL_LYNXPOINT) [N/m/y/?] (NEW) N
Analog Devices ADM1177 and compatibles (SENSORS_ADM1177) [N/m/y/?] (NEW) m
Hard disk drives with temperature sensors (SENSORS_DRIVETEMP) [N/m/y/?] (NEW) N
MAX31730 temperature sensor (SENSORS_MAX31730) [N/m/y/?] (NEW) N
Maxim MAX20730, MAX20734, MAX20743 (SENSORS_MAX20730) [N/m/?] (NEW) N
Infineon XDPE122 family (SENSORS_XDPE122) [N/m/?] (NEW) N
MPS MP8859 regulator driver (REGULATOR_MP8859) [N/m/y/?] (NEW) N
Intel Data Accelerators support (INTEL_IDXD) [N/m/y/?] (NEW) N
PLX ExpressLane PEX Switch DMA Engine Support (PLX_DMA) [N/m/y/?] (NEW) N
DMA-BUF Userland Memory Heaps (DMABUF_HEAPS) [N/y/?] (NEW) N
exFAT fs support (STAGING_EXFAT_FS) [N/m/y/?] (NEW) y
enable discard support (STAGING_EXFAT_DISCARD) [Y/n/?] (NEW) y
enable delayed sync (STAGING_EXFAT_DELAYED_SYNC) [N/y/?] (NEW) y
enable kernel debug features via ioctl (STAGING_EXFAT_KERNEL_DEBUG) [N/y/?] (NEW) n
print debug messages (STAGING_EXFAT_DEBUG_MSG) [N/y/?] (NEW) n
Default codepage for exFAT (STAGING_EXFAT_DEFAULT_CODEPAGE) [437] (NEW) 
Default iocharset for exFAT (STAGING_EXFAT_DEFAULT_IOCHARSET) [utf8] (NEW) 
Intel Uncore frequency control driver (INTEL_UNCORE_FREQ_CONTROL) [N/m/y/?] (NEW) N
Enable Intel IOMMU scalable mode by default (INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON) [N/y/?] (NEW) N
Broadcom STB RESCAL reset controller (RESET_BRCMSTB_RESCAL) [N/y/?] (NEW) N
Intel EMMC PHY driver (PHY_INTEL_EMMC) [N/m/y/?] (NEW) N
Unified support for USB4 and Thunderbolt (USB4) [N/m/y/?] (NEW) N
Trusted Execution Environment support (TEE) [N/m/y/?] (NEW) N
F2FS compression feature (F2FS_FS_COMPRESSION) [N/y/?] (NEW) y
LZO compression support (F2FS_FS_LZO) [Y/n/?] (NEW) y
LZ4 compression support (F2FS_FS_LZ4) [Y/n/?] (NEW) y
NFS: Disable NFS UDP protocol support (NFS_DISABLE_UDP_SUPPORT) [Y/n/?] (NEW) y
NFSv4.2 inter server to server COPY (NFSD_V4_2_INTER_SSC) [N/y/?] (NEW) n
Export kernel pagetable layout to userspace via debugfs (PTDUMP_DEBUGFS) [N/y/?] (NEW) n
Note 3:
Patch for AUFS patching error.

Code: Select all

# diff fs/Kconfig ../new/
268a269
> source "fs/aufs/Kconfig"
#
# diff fs/Makefile ../new/
137a138
> obj-$(CONFIG_AUFS_FS)           += aufs/
#
Note 4: syntax error of "fs/aufs/procfs.c"

Code: Select all

fs/aufs/procfs.c: 関数 ‘au_procfs_init’ 内:
fs/aufs/procfs.c:159:23: エラー: 互換性のないポインタ型から 4 番目の ‘proc_create’ の引数に渡しています [-Werror=incompatible-pointer-types]
  159 |        au_procfs_dir, &au_procfs_plm_fop);
      |                       ^~~~~~~~~~~~~~~~~~
      |                       |
      |                       const struct file_operations *
In file included from fs/aufs/procfs.c:23:
./include/linux/proc_fs.h:64:24: 備考: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
      |                        ^~~~~~~~~~~
cc1: some warnings being treated as errors
Patch for syntax error of "fs/aufs/procfs.c"

Code: Select all

# diff fs/aufs/procfs.c  ../new
131a132
> /*
136a138,144
> */
> static const struct proc_ops au_procfs_plm_fop = {
> 	.proc_write		= au_procfs_plm_write,
> 	.proc_release	= au_procfs_plm_release
> /*	.owner		= THIS_MODULE */
> };
> 
#

These patches are not guaranteed.


Thanks.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Porteus Kernel Builder

Post#798 by beny » 10 Feb 2020, 13:02

Ed_p unpack the iso with file roller or something like that put the file into the directory that you need and make a new iso with the inside script and try please:
guest@porteus:~$ uname -a
Linux porteus.example.net 5.5.2-porteus #1 SMP Wed Feb 5 09:32:27 UTC 2020 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux i have done an iso with cinnamont and the new kernel... work? the cd disc start too slow.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus Kernel Builder

Post#799 by Rava » 10 Feb 2020, 16:03

Hi neko,

with the correct xz compressed modules and the 5.4.18 kernel the 340.108 Nvidia driver compiled and ran okay.
Still, for now I cannot use it since only after compiling and testing the NVidia driver I realized that the kernel and/or 000-kernel failed to initialize the sound card. Any sound playing software was acting like sound was okay, not a single one gave an error.

This is what a "grep -i sound /var/log/messages" on the functioning 5.0rc1 with 5.1.15 kernel looks like

Code: Select all

Feb 10 16:30:02 porteus kernel: [    0.483608] Advanced Linux Sound Architecture Driver Initialized.
Feb 10 16:30:02 porteus kernel: [    0.848382]   No soundcards found.
Feb 10 16:30:05 porteus kernel: [   13.469859] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card1/input13
Feb 10 16:30:05 porteus kernel: [   13.470158] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card1/input14
Feb 10 16:30:05 porteus kernel: [   13.470470] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card1/input15
Feb 10 16:30:05 porteus kernel: [   13.470625] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/0000:01:00.1/sound/card1/input16
Feb 10 16:30:05 porteus kernel: [   14.115664] input: HDA Intel MID Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input18
Feb 10 16:30:05 porteus kernel: [   14.115801] input: HDA Intel MID Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input19
and here the grep with the no-sound 5.4.18 kernel:

Code: Select all

Feb 10 16:26:07 porteus kernel: [    0.499252] Advanced Linux Sound Architecture Driver Initialized.
Feb 10 16:26:07 porteus kernel: [    0.858938]   No soundcards found.
Is there anything else I could grep for in the /var/log/messages to hopefully get the issue solved and get sound running using kernel 5.4.18?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#800 by Ed_P » 10 Feb 2020, 16:28

beny wrote:
10 Feb 2020, 13:02
Ed_p unpack the iso with file roller or something like that
The problem is not an iso file it's a tar file neko created, I suspect using the new zstd standard. 64bit-ALL-kernel5.4.18.tar
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#801 by Ed_P » 10 Feb 2020, 18:22

Well, well, well, well. well. The problem is not the tar command, tar -axf works fine, IF the wget file download works.

The link to the .tar file points to a mediafire.com page but the actual file download is on a download1646.mediafire.com page which can only be accessed by a browser, so mediafire can open an ad page when the download is run, but wget doesn't support that option.

So, your script works fine neko. The problem is not your's, it's mine. :sorry: Actually it's mediafire's but I created the wget code. :hammer:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus Kernel Builder

Post#802 by Rava » 10 Feb 2020, 22:01

Ed_P wrote:
10 Feb 2020, 16:28
The problem is not an iso file it's a tar file neko created, I suspect using the new zstd standard. 64bit-ALL-kernel5.4.18.tar
Indeed, you need to have xz-64bit-ALL-kernel5.4.18.tar when you use xz compressed modules.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Porteus Kernel Builder

Post#803 by Ed_P » 11 Feb 2020, 01:28

The name wouldn't matter Rava the problem was caused by this in my script.

Code: Select all

 wget http://www.mediafire.com/file/458qo82hb6h6hq6/64bit-ALL-kernel5.4.18.tar -P /tmp/rc2 > /dev/null 2>&1
It downloaded something named 64bit-ALL-kernel5.4.18.tar it just wasn't the 64bit-ALL-kernel5.4.18.tar file! See my posting above yours.
Ed

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#804 by neko » 12 Feb 2020, 00:24

Most recent version of build examples was updated.
=== XZ version ===
Kernel Version: 5.5.3, 5.4.19, 4.19.103


Please refer to the top article of this thread.
Porteus Kernel Builder


Thanks.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#805 by neko » 12 Feb 2020, 07:15

@Ed_P

1. [09 Feb 202] "CARD READER" driver
Thank you for your test report.
I have forgotten the issue.

Now I check kernel 5.6-rc1.
There is not "kernel/drivers/misc/cardreader/rtsx_pci.ko" nor "kernel/drivers/misc/cardreader/rtsx_pci.ko".
But the version 5.6-rc1 config is
CONFIG_MISC_RTSX_PCI=y
CONFIG_MMC_REALTEK_PCI=y
I am afraid the new kernel doesn't work on a card reader.


2. [09 Feb 202], [10 Feb 2020, 16:28] TAR file problem ----> [10 Feb 2020, 18:22] (You answered it by yourself. Thanks.)
Please confirm the 64bit-ALL-kernel5.4.18.tar as followed.

Code: Select all

# md5sum 64bit-ALL-kernel5.4.18.tar
fb4629a2731a6e3af8493510ac8619ba  64bit-ALL-kernel5.4.18.tar
#
# file 64bit-ALL-kernel5.4.18.tar
64bit-ALL-kernel5.4.18.tar: POSIX tar archive (GNU)
I think that "TAR" command error is not depending on the compression of contents.
Therefore "TAR" file might be broken.


3 [11 Feb 2020] Downloader from Mediafire
I use the script "mediafire".

Code: Select all

#!/bin/sh
ARG=$1
TARGET=${ARG##*/}

wget -c --no-check-certificate $ARG --output-document=${TARGET}.html
ADRS=`grep "http://download" ${TARGET}.html |cut -d "'" -f 2|cut -d '"' -f 2`;
rm ${TARGET}.html
#echo $ADRS
wget -c --no-check-certificate $ADRS --output-document=$TARGET
if [ -f $TARGET ]
then
	md5sum $TARGET
else
	echo "0 $TARGET"
fi
Note:
The file address that is gotten from Mediafire is "http://www.mediafire.com/file/NNNNN/Upl ... eName/file".

But I release the file address that was uploaded on Mediafire without tailer "/file".
(This address format is an old Mediafire style).

This shell script treates the address without tailer "/file".

Thanks.

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#806 by neko » 12 Feb 2020, 07:39

@beny

Code: Select all

$ uname -a
Linux porteus.example.net 5.5.2-porteus #1 SMP Wed Feb 5 09:32:27 UTC 2020 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux
$
i have done an iso with cinnamont and the new kernel... work?
the cd disc start too slow.

My environment:

Code: Select all

# uname -a
Linux porteus 5.6.0-rc1-porteus #1 SMP Mon Feb 10 11:02:04 UTC 2020 x86_64 GNU/Linux
#
My Boot from HD, please refer to ArchLinux packages manager for Porteus (Post by neko #75910)

I don't have a CD device in my PC.
If you have changed a kernel config in order to speed up CD-boot, would you tell me the result.


Thank you

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#807 by neko » 12 Feb 2020, 11:42

@Rava
=== "Mo sound problem" ===
I have tested 2 kernel versions.

ISO:
Porteus-OPENBOX-v5.0rc1-x86_64.iso
WEB:
chromium.xzm

kernel: 5.1.17

Code: Select all

# grep sound /var/log/messages
Feb 12 18:00:08 porteus kernel: [    0.892768]   No soundcards found.
Feb 12 18:00:09 porteus kernel: [    9.641629] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:0e.0/sound/card0/input7
Feb 12 18:00:09 porteus kernel: [    9.642215] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:0e.0/sound/card0/input8
Feb 12 18:00:09 porteus kernel: [    9.642723] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input9
Feb 12 18:00:09 porteus kernel: [    9.642842] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input10
Feb 12 18:00:09 porteus kernel: [    9.643819] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input11
Feb 12 18:00:09 porteus kernel: [    9.643981] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input12
Feb 12 18:00:09 porteus kernel: [    9.644068] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input13
#
activate chromium.xzm.
play youtube with sound.
OK

kernel: 5.4.18

Code: Select all

# grep sound /var/log/messages
Feb 12 18:10:17 porteus kernel: [    0.829639]   No soundcards found.
Feb 12 18:10:17 porteus kernel: [    4.581034] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:0e.0/sound/card0/input7
Feb 12 18:10:17 porteus kernel: [    4.581109] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:0e.0/sound/card0/input8
Feb 12 18:10:17 porteus kernel: [    4.581171] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input9
Feb 12 18:10:17 porteus kernel: [    4.581235] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input10
Feb 12 18:10:17 porteus kernel: [    4.581296] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input11
Feb 12 18:10:17 porteus kernel: [    4.581359] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input12
Feb 12 18:10:17 porteus kernel: [    4.581420] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:0e.0/sound/card0/input13
#
activate chromium.xzm.
play youtube with sound.
OK

--------------------------------
The kernel difference of yours and mine is "5.4.18 built with NVidia driver" and "5.4.18 built without NVidia driver".

Excuse me for analyzing no more deep.
I have no knowledge on NVidia.


Thanks.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus Kernel Builder

Post#808 by Rava » 12 Feb 2020, 22:42

neko wrote:
12 Feb 2020, 11:42
The kernel difference of yours and mine is "5.4.18 built with NVidia driver" and "5.4.18 built without NVidia driver".

Excuse me for analyzing no more deep.
I have no knowledge on NVidia.
As you can see here Porteus 5.0rc1 NVidia 340.108 driver for older hardware (Post by Rava #75952) the NVidia driver and the sound work okay with the 5.4.19 kernel. So all is well that ends well, I still have no clue why the sound won't work with k5.4.18. It also not worked when I ran the 5.4.18 kernel without the Nvidia driver.
Cheers!
Yours Rava

User avatar
evergreen
Shogun
Shogun
Posts: 201
Joined: 27 Mar 2016, 16:58
Distribution: Porteus x86_64
Location: Argentine, Patagonia
Contact:

Porteus Kernel Builder

Post#809 by evergreen » 12 Feb 2020, 23:06

Hello,

Today I have updated to Kernel 5.6.0 rc1 and I noticed that when I am booting the new Kernel in Porteus.

I got this message

hwclock iopl() port access failed: function not implemented
AMD A8-7410, APU AMD Radeon R5 Graphics M330

neko
DEV Team
DEV Team
Posts: 2109
Joined: 09 Feb 2013, 09:55
Distribution: APorteus-FVWM-ja-x86_64.iso
Location: japan

Porteus Kernel Builder

Post#810 by neko » 13 Feb 2020, 11:05

@evergreen
Thank you for your report on kernel 5.6-rc1.

The error message is generated from hwclock.
I have seen the hwclock-cmos.c.

But I can't understand the problem.
If you know something on kernel 5.6-rc1 config, would you tell me.


Thanks.
---------------------------------------------------------
[util-linux/sys-utils/hwclock-cmos.c]

Code: Select all

# if defined(HAVE_IOPL)
static int i386_iopl(const int level)
{
	return iopl(level);
}
# else
static int i386_iopl(const int level __attribute__ ((__unused__)))
{
	extern int ioperm(unsigned long from, unsigned long num, int turn_on);
	return ioperm(clock_ctl_addr, 2, 1);
}
# endif

static int get_permissions_cmos(void)
{
	int rc;

	rc = i386_iopl(3);
	if (rc == IOPL_NOT_IMPLEMENTED) {
		warnx(_("ISA port access is not implemented"));
	} else if (rc != 0) {
		warn(_("iopl() port access failed"));
	}
	return rc;
}

Post Reply