Processing math: 100%

xenomai

2022. 12. 22. 13:23학부 프로젝트

sudo apt-get install libncurses-dev libssl-dev
error : Package 'libncurses-dev' has no installation candidate

-> sudo apt-get update

 

 

make menuconfig

error : Command 'make' not found, but can be installed with:

sudo apt install make        # version 4.2.1-1.2, or
sudo apt install make-guile  # version 4.2.1-1.2

-> sudo apt install make

 

make menuconfig

error : /bin/sh: 1: gcc: not found
  HOSTCC  scripts/basic/fixdep
/bin/sh: 1: gcc: not found
make[1]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 127
make: *** [Makefile:496: scripts_basic] Error 2

-> sudo apt-get upgrade

 

make menuconfig

error : /bin/sh: 1: gcc: not found   HOSTCC  scripts/basic/fixdep /bin/sh: 1: gcc: not found make[1]: *** [scripts/Makefile.host:90: scripts/basic/fixdep] Error 127 make: *** [Makefile:496: scripts_basic] Error 2

-> sudo apt-get install flex bison

-> solved

 

make -j20

error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible

->

sudo update-alternatives --install /usr/bin/gcc gcc  /usr/bin/gcc-8 1

 

 

sudo make install -j20

error :

sh ./arch/x86/boot/install.sh 5.0.21-rt16 arch/x86/boot/bzImage \
System.map "/boot"

 *** Missing file: arch/x86/boot/bzImage
 *** You need to run "make" before "make install".

make[1]: *** [arch/x86/boot/Makefile:155: install] Error 1
make: *** [arch/x86/Makefile:293: install] Error 2

-> make bzImage

error :   CALL    scripts/checksyscalls.sh
  DESCEND  objtool
  CHK     include/generated/compile.h
make[1]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'.  Stop.
make: *** [Makefile:1067: certs] Error 2

-> in .config file,

CONFIG_SYSTEM_TRUSTED_KEYS="debian/canonical-certs.pem" 이렇게 되어있는 것을 CONFIG_SYSTEM_TRUSTED_KEYS = "" 이렇게 바꿔

 

-> make bzImage

-> sudo make install -j20

done

=========================

loading initial ramdisk

->

replace

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with

GRUB_CMDLINE_LINUX_DEFAULT="dis_ucode_ldr"

 

 

맨처음 파일들 다운받을때 home에 바로 하지 말고 kernel_patch 이렇게 폴더를 만들어서 그 안에서 하자

 

../xenomai-3.0.10/scripts/prepare-kernel.sh --arch=x86_64 --ipipe=ipipe-core-4.14.134-x86-8.patch

이거 안되면 다른데 복사했다 다시 터미널로 복사해서 됨

일일히 쳐도 될듯

 

make menuconfig 할때

your display is too small to ~

-> terminal 최대로 확대하고 하기

 

* General setup

--> Local version - append to kernel release:-xenomai-3.0.10

이거 prefer name임.

 

 

sudo gedit /etc/default/grub

grub_timeout_style hidden

하면 grub이 표시가 안되는듯

menu로 하면 나온다

수정하고 sudo update-grub 해야됨

 

 

./configure --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disableclock-monotonic-raw

이거 터미널에 치다보면 disable에서 끊긴채로 실행되서 일일히 다치면 됨

 

make -jnproc 하고

libtool: warning: ‘-version-info/-version-number’ is ignored for convenience libraries

무시해도된다

 

sudo make install 하고

libtool: warning: relinking 'lib/libmpicxx.la'

https://stackoverflow.com/questions/29659569/what-is-relinking-warning

무시가능

 

home에 .bashrc  랑   .xenomai_rc 가 있다.

source ~/.bashrc 하면 source ~/.xenomai_rc 까지 실행되도록 한듯

 

bios 설정중

Device → LED Control → All LED Zone Enabled → Uncheck
Device → LED Control → Software LED Control Enabled → Uncheck

위 두개는 우리 intel i3 nuc에서는 지원하지 않는듯...

led-manager-user-guide.pdf
0.98MB

여기 i7 가이드에는 있다

 

 

Performance → Graphics → Intel iGD → Enabled

이거는 못찾겠어서 안했다

 

 

이 오류는

https://qwoowp.tistory.com/121

 

GRUB 진입이 안되고 멈춤 문제

나같은 경우 Ubuntu 18.04 를 사용하였지만 대부분이 대동소이한 절차로 진행될 것으로 생각된다. 다른 리눅스인 경우 아래 절차를 따라 해당 리눅스에 맞는 명령어를 사용하면 될 것으로 보인다. S

qwoowp.tistory.com

로 해결함

 

한마디로 boot repair 하는듯

grub 설정에서 hidden도 menu로 바꿔지고