class/오픈소스 free5gc

21/04/22 #004 (free5gc) kernel 5.0.0-23-generic, gtp5g compile

tech-lover 2021. 4. 22. 14:43

Ubuntu 18.04 에서 설치 (linux-image-5.0.0-23-generic)

gtp5g compile을 위해서 5.0.0-23-generic kernel 업데이트 필요.

  • Install dependencies
$ sudo apt-get update
$ sudo apt-get install -qq git build-essential vim strace net-tools iputils-ping iproute2
  • Update kernel version: 5.0.0-23-generic
$ sudo apt-get install linux-image-5.0.0-23-generic linux-modules-5.0.0-23-generic linux-headers-5.0.0-23-generic
$ sudo grub-set-default 1
$ sudo update-grub

gtp5g - 5G compatible GTP kernel module

gtp5g is a customized Linux kernel module gtp5g to handle packet by PFCP IEs such as PDR and FAR.

  • Install gtp5g kernel module
$ git clone https://github.com/PrinzOwO/gtp5g.git
$ cd gtp5g 
$ make clean
$ make
$ sudo make install
  • Check gtp5g modlue
lsmod | grep gtp5g