Coder Social home page Coder Social logo

synok3s's Introduction

Synok3s

K3S on Synology ds218

Based on: https://medium.com/@marco.mezzaro/k3s-on-synology-what-if-it-works-e980b4b09fcb

Compile missing kernel modules

download from sourceforge kernel source and dsm toolchain (my ds218 has rtd129x)

from a brand new debian system: create a folder:

sudo apt update
sudo apt install wget 
mkdir -p ~/dsm/archives 
cd ~/dsm

put:

  • rtd1296-gcc494_glibc220_armv8-GPL.txz
  • linux-4.4.x.txz

install all build deps:

sudo apt-get install mc make gcc build-essential kernel-wedge libncurses5 libncurses5-dev libelf-dev binutils-dev kexec-tools makedumpfile fakeroot lzma bc libssl-dev

extract and move txz archives away:

tar Jxvf linux-4.4.x.txz 
tar Jxvf rtd1296-gcc494_glibc220_armv8-GPL.txz 
mv linux-4.4.x.txz rtd1296-gcc494_glibc220_armv8-GPL.txz archives/

enter in kernel source folder and copy kernel config in place

cd linux-4.4.x/
cp synoconfigs/rtd1296 .config

export magic number version (if not exported could cause headaches!) and alias for dsm make

export LOCALVERSION=+1
alias dsm6make='make ARCH=arm64 CROSS_COMPILE=~/dsm/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-'

config the kernel, select all modules for iptables and make modules:

dsm6make menuconfig
dsm6make modules
find . -iname "*.ko" -type f

copy the kernel modules in /lib/modules on synology machine. DO NOT OVERWRITE already present modules. use insmod command to load. for troubleshooting check dmesg for errors.

Links

synok3s's People

Contributors

marcomezzaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

synok3s's Issues

ipt_REJECT : Unknown symbol nf_send_unreach & nf_send_reset

Hello,

I got my linux-4.4.x.txz here :

https://global.download.synology.com/download/ToolChain/Synology%20NAS%20GPL%20Source/7.0-41890/geminilake/linux-4.4.x.txz

I built ipt_REJECT.ko and xt_comment.ko.

I managed to add the xt_comment.ko into my kernel without any errors.

But when I try with ipt_REJECT.ko, I get this error :

insmod: ERROR: could not insert module /lib/modules/ipt_REJECT.ko: Unknown symbol in module

when I look at dmesg, I see those lines

ipt_REJECT: Unknown symbol nf_send_reset (err 0)
ipt_REJECT: Unknown symbol nf_send_unreach (err 0)

Those functions are indeed used in ipt_REJECT.c, is there any way to make this work?

I am on DSM 7.1.1-42962 Update 1.

Yoplait@LeNAS:~$ uname -a
Linux nas_name 4.4.180+ #42962 SMP Tue Sep 20 22:35:56 CST 2022 x86_64 GNU/Linux synology_geminilake_920+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.