当我在我的ubuntu16.04(x86-64)中编译内核3.10.32时,为ubuntu16.04安装RTAI4.1,执行以下命令:
patch for kernel
cd /usr/src/linux
patch -p1 < /usr/src/rtai/base/arch/x86/patches/hal-linux-3.10.32-x86-5.patch
config
make menuconfig
Set up the kernel settings as follows
Processor type and features
-> Processor family = Select yours
-> Maximum number of CPUs (NR_CPUS) = Set your number (it's generally "4")
-> SMT (Hyperthreading) scheduler support = DISABLE IT
Power Management and ACPI options
CPU idle PM support = DISABLE IT
build
make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-rtai 当执行"make -j getconf _NPROCESSORS_ONLN deb-pkg LOCALVERSION=-rtai“时:Error
/scripts/package/Makefile:90:目标'deb-pkg‘失败的配方 make1:* deb-pkg错误1 Makefile:1078:目标'deb-pkg‘失败的配方 make:* deb-pkg错误2
发布于 2021-05-15 00:47:45
我知道这个问题是一段时间前的问题,但我有类似的问题,我无法找到一个解决办法,所以我会在这里张贴无论如何。似乎许多用户在编译debian包时遇到了问题。我不知道为什么会这样。然而,我所遵循的让我编译到debian包的每一个教程都没有起作用,而每个没有让我编译到debian包的教程都起了作用。这里有一个对我有用的。它专门用于实时内核,但步骤类似。您只需要忽略下载实时修补程序,并且不需要为实时配置内核。Install RT Linux patch for Ubuntu
https://stackoverflow.com/questions/39564179
复制相似问题