Compile Linux Kernel ,RTAI and LinuxCNC from Source Code

More
19 May 2021 06:53 #209448 by Bari
Please post your dmesg after running the test suite but before rebooting.

It looks like you built it properly.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:02 #209449 by Arthur_L
Sorry i had reboot..... I Sorry ...

if you want to look the mesg. i can compile RTAI again.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:06 #209450 by Bari
Post your dmesg after running the test suite but before rebooting.

You don't have to recompile.

I will not likely look at it for 12+ hours from now.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:07 - 11 Jan 2022 03:18 #209451 by Arthur_L
xxx@xxx:/usr/realtime/testsuite$ sudo ./run
[sudo] password for bodor:
.runinfo is /usr/realtime/testsuite/.runinfo
No RTAI modules loaded.
Running insmod on /usr/realtime/testsuite/.runinfo...
CANNOT FIND MAILBOX
Cleaning up...
RTAI successfully unloaded.
Removing /tmp/runinfo...
Done.
Last edit: 11 Jan 2022 03:18 by Arthur_L.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:10 #209452 by Bari
Post your dmesg after running the test suite but before rebooting.

Run: $ dmesg

It will likely be a big text file that you can add as an attachment to the post here.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:21 - 11 Jan 2022 03:18 #209453 by Arthur_L
dmesg
[ 0.000000] microcode: microcode updated early to revision 0x28, date = 2019-11-12
[ 0.000000] Linux version 4.19.152-rtai-amd64 (root@xxx) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)) #1 Wed May 19 11:14:24 CST 2021
.....
Last edit: 11 Jan 2022 03:18 by Arthur_L.

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:34 #209454 by Arthur_L

Please Log in or Create an account to join the conversation.

More
19 May 2021 07:41 #209456 by Arthur_L

Please Log in or Create an account to join the conversation.

More
19 May 2021 08:19 - 11 Jan 2022 03:19 #209457 by Arthur_L
I feel i'm about to give up
When I compile linuxcnc, I encountered a problem

1 ./configure

checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
......
2 make // error:

......
LD [M] /home/xxx/Downloads/linuxcnc-2.8.1/src/mesa_uart.o
CC [M] /home/xxx/Downloads/linuxcnc-2.8.1/src/objects/hal/drivers/pcl720.o
scripts/Makefile.build:303: recipe for target '/home/xxx/Downloads/linuxcnc-2.8.1/src/objects/hal/drivers/pcl720.o' failed
Makefile:1550: recipe for target '_module_/home/xxx/Downloads/linuxcnc-2.8.1/src' failed
make[1]: Leaving directory '/usr/src/linux-headers-4.19.152-rtai-amd64'
/home/xxx/Downloads/linuxcnc-2.8.1/src/objects/hal/drivers/pcl720.c:172:25: error: expected ‘)’ before ‘->’ token
#define out (__comp_inst->out)
^
./include/linux/logic_pio.h:32:9: note: in expansion of macro ‘out’
void (*out)(void *hostdata, unsigned long addr, u32 val,
^
make[2]: *** [/home/xxx/Downloads/linuxcnc-2.8.1/src/objects/hal/drivers/pcl720.o] Error 1
make[1]: *** [_module_/home/xxx/Downloads/linuxcnc-2.8.1/src] Error 2
Makefile:465: recipe for target 'modules' failed
make: *** [modules] Error 2
Last edit: 11 Jan 2022 03:19 by Arthur_L.

Please Log in or Create an account to join the conversation.

More
19 May 2021 09:09 #209460 by BeagleBrainz
I noticed you're using Ubuntu 16.04, you may not be able to use the prepackaged debs.
Are you intending to add a parallel port card to your machine ?
How are you intending to control your cnc machine ?
The following user(s) said Thank You: Arthur_L

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum