# Custom kernel (linuxNN-vd)

**URL:** <https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [July 28, 2020, 3:13pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200 "2020-07-28T15:13:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [July 28, 2020, 3:13pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/1 "2020-07-28T15:13:00Z")

</div>

I’m in the process of migrating my custom kernel to Arch/EOS, currently, this is 5.8-rc.  
As Manjaro uses a custom `mkinitcpio`, some changes to the PKGBUILD were necessary.

However, I left Manjaro’s extramodules handling in place.

From what I can tell, EOS doesn’t use extramodules, and relies on dkms for out-of-tree modules, is that correct?

If you want to have a look at it, and maybe even compile and install it, here you go:  
[https://github.com/torvic9/linux58-vd/tree/arch](https://github.com/torvic9/linux58-vd/tree/arch)

(Note: it still says “for Manjaro”, haven’t updated that part yet)  
(Note 2: virtualbox host modules do not work yet with 5.8)

Any sort of feedback is welcome!

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [July 28, 2020, 3:16pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/2 "2020-07-28T15:16:05Z")

</div>

> [@anon31687413](#):
>
> From what I can tell, EOS doesn’t use extramodules, and relies on dkms for out-of-tree modules, is that correct?

Apart from any modules included in the Arch repos, yes.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 28, 2020, 3:34pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/3 "2020-07-28T15:34:38Z")

</div>

I really think you should reconsider the name for your kernel. 😉

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [July 28, 2020, 3:35pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/4 "2020-07-28T15:35:42Z")

</div>

`linuxNN-tp` ?

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 28, 2020, 4:16pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/5 "2020-07-28T16:16:42Z")

</div>

> graysky’s CPU optimisations

What are those btw, can you expand a little? 🙂

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [July 28, 2020, 4:27pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/6 "2020-07-28T16:27:33Z")

</div>

I think it’s these:

> **[GitHub - graysky2/kernel\_gcc\_patch: legacy name with info to new name](https://github.com/graysky2/kernel_gcc_patch)**
>
> legacy name with info to new name. Contribute to graysky2/kernel\_gcc\_patch development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [July 29, 2020, 7:49am UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/7 "2020-07-29T07:49:36Z")

</div>

Just tested this with `acpi_call` module.

Both dkms and extramodule work correctly.  
However dkms does not work if the kernel is compiled with Clang, but this is a known problem: `CC=clang` has to be passed to make in `dkms.conf`.

So it seems that both ways are possible, which is good news 🙂

* * *

@jonathon: correct.

* * *

> [@dalto](#):
>
> I really think you should reconsider the name for your kernel.

Why? 🙂

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [July 29, 2020, 11:48am UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/8 "2020-07-29T11:48:16Z")

</div>

> [@anon31687413](#):
>
> Why?

Uhh…because in many English speaking countries, vd has [this](https://www.merriam-webster.com/dictionary/venereal%20disease) meaning. 🤔

---

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [July 29, 2020, 12:00pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/9 "2020-07-29T12:00:05Z")

</div>

That is probably the last thing that comes to my mind when I think of ‘vd’…  
Actually never heard of that term, despite having watched all of House MD 🙂

(Hint: it stands for ‘Victor Development’, quite cheesy isn’t it?)

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 29, 2020, 12:02pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/10 "2020-07-29T12:02:49Z")

</div>

🤣

Also it can potentially be spread and adopted as fast as vd, which should be good! 😆

P.S. @dalto Haven’t seen this one coming too

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [July 29, 2020, 6:11pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/11 "2020-07-29T18:11:43Z")

</div>

vd is rather an old term, the new term is [STD](https://www.healthline.com/health/sexually-transmitted-diseases) So don’t use that one either.

This is starting to sound like a class I took in high school. 🙉  
Just for historic reference, I graduated from high school in 1968. Yah, hippies, Vietnam War, Timothy Leary, and a lot of other weird stuff.

[![](https://i.ytimg.com/vi/6EXCIWlm1fs/hqdefault.jpg?sqp=-oaymwEmCOADEOgC8quKqQMa8AEB-AH-BYACrgOKAgwIABABGHIgSyglMA8=&rs=AOn4CLDkZ4WssjrfuhhG1GPhDw3Fzw03ow "THE MOODY BLUES-R.I.P. RAY THOMAS-LEGEND OF A MIND (TIMOTHY LEARY'S DEAD)-1968") ](https://www.youtube.com/watch?v=6EXCIWlm1fs)

Pudge

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [July 29, 2020, 10:26pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/12 "2020-07-29T22:26:35Z")

</div>

> [@Pudge](#):
>
> the new term is [STD](https://www.healthline.com/health/sexually-transmitted-diseases)

What does the Z stand for in ZSTD? 🤯

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 29, 2020, 10:31pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/13 "2020-07-29T22:31:45Z")

</div>

Zuckerberg ? 😆

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [July 29, 2020, 10:40pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/14 "2020-07-29T22:40:32Z")

</div>

Now that’s funny!

---

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [July 30, 2020, 7:45am UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/15 "2020-07-30T07:45:20Z")

</div>

Seriously, knowing it’s facebook standard…you just can’t make that up! 😆

I think i need to check up on doctor, just as you guys, i have about 1000 zstd packages on my system now, not looking good 🤣

Of course they unpack and transmit on your system very fast, but i’m not sure i’m fan of Zuckerberg’s std 🤣

---

<div class="post-metadata">

**Author:** ![anon31687413](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/bc8723/32.png) [@anon31687413](https://forum.endeavouros.com/u/anon31687413)\
**Post date:** [July 30, 2020, 8:48am UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/16 "2020-07-30T08:48:17Z")

</div>

Given that this kernel supports ZSTD kernel and initram compression, I’d be very careful… 😅

---

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [July 31, 2020, 9:54am UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/17 "2020-07-31T09:54:46Z")

</div>

```nohighlight
std::cout << "That explains a lot." << std::endl;

```

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [August 10, 2020, 8:31pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/18 "2020-08-10T20:31:41Z")

</div>

Compiled and packaged 5.8.0-3 on my GL702ZC, when I install I hit:

```auto
(4/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux58-vd.preset: 'default'
  -> -k /boot/vmlinuz-linux58-vd -c /etc/mkinitcpio.conf -g /boot/initramfs-linux58-vd.img -z zstd
==> Starting build: 5.8.0-vd-3
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [resume]
  -> Running build hook: [fsck]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux58-vd.img
Incorrect parameters 
Usage : 
      zstd [args] [FILE(s)] [-o file] 

FILE : a filename 
          with no FILE, or when FILE is - , read standard input
Arguments : 
 -# : # compression level (1-19, default: 3) 
 -d : decompression 
 -D DICT: use DICT as Dictionary for compression or decompression 
 -o file: result stored into `file` (only 1 output file) 
 -f : overwrite output without prompting, also (de)compress links 
--rm : remove source file(s) after successful de/compression 
 -k : preserve source file(s) (default) 
 -h/-H : display help/long help and exit 
bsdtar: Write error
bsdtar: Write error
==> ERROR: Image generation FAILED: bsdtar (step 1) reported an error

```

Used the generic x86\_64.config and skipped `nconfig`.

I have this in my `mkinitcpio.conf`:

```auto
MODULES=(xxhash crc32c amdgpu lz4 lz4_compress)
...
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
COMPRESSION_OPTIONS=(-12 --favor-decSpeed)

```

---

<div class="post-metadata">

**Author:** ![Stephane](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/stephane/32/9196_2.png) [@Stephane](https://forum.endeavouros.com/u/Stephane)\
**Post date:** [August 10, 2020, 8:37pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/19 "2020-08-10T20:37:34Z")

</div>

see this

- there is also some patch for compression zstd  
[https://github.com/torvic9/linux58-vd](https://github.com/torvic9/linux58-vd)

may be missing patches zstd and also update mkinitcpio.conf  
if you want use zstd

---

<div class="post-metadata">

**Author:** ![jonathon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/jonathon/32/18722_2.png) [@jonathon](https://forum.endeavouros.com/u/jonathon)\
**Post date:** [August 10, 2020, 8:39pm UTC](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200/20 "2020-08-10T20:39:38Z")

</div>

> [@Stephane](#):
>
> missing zstd …

```auto
$ pacman -Qs zstd
local/lib32-zstd 1.4.5-1
    Zstandard - Fast real-time compression algorithm (32-bit)
local/zstd 1.4.5-1
    Zstandard - Fast real-time compression algorithm

```

?

[Next page](https://forum.endeavouros.com/t/custom-kernel-linuxnn-vd/6200.md?page=2)
