ubuntu 16.04 的 RTAI4.1 安装, 当我在我的ubuntu 16.04(x86-64)中编译内核 3.10.32 时 执行以下命令:</p>
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”时:
错误:
/scripts/package/Makefile:90: 目标 'deb-pkg' 配方失败
make[1]: * [deb-pkg] 错误 1
Makefile:1078: 目标 'deb-pkg' 配方失败
make: * [deb-包] 错误 2