Installing Uspace for Master
03 Dec 2016 04:01 #83609
by PCW
Replied by PCW on topic Installing Uspace for Master
The first link is not going to help much, If you are running a Mesa Ethernet I/O card,
you do not want RTAI, but rather Preempt-RT
Its not terribly difficult to build a Preempt-RT kernel, for example here is a script to build a 4.1.35-rt41
real time kernel:
cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 kernel-package libqt4-dev libncurses5-dev libssl-dev pkg-config
mkdir rtlinux
cd rtlinux
wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.35.tar.xz
wget www.kernel.org/pub/linux/kernel/projects...4.1.35-rt41.patch.gz
tar -xpf linux-4.1.35.tar.xz
gunzip patch-4.1.35-rt41.patch.gz
cp patch-4.1.35-rt41.patch linux-4.1.35
cd linux-4.1.35
cat patch-4.1.35-rt41.patch | patch -p1
make xconfig
make -j8
sudo make modules_install
sudo make install
In the xconfig step you must at the minimum select the proper kernel word size (32 or 64 bits depending on your OS)
and also select "Fully Preemptable Kernel" in the "Processor Types and Features" section
you do not want RTAI, but rather Preempt-RT
Its not terribly difficult to build a Preempt-RT kernel, for example here is a script to build a 4.1.35-rt41
real time kernel:
cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 kernel-package libqt4-dev libncurses5-dev libssl-dev pkg-config
mkdir rtlinux
cd rtlinux
wget ftp://ftp.kernel.org/pub/linux/kernel/v4.x/linux-4.1.35.tar.xz
wget www.kernel.org/pub/linux/kernel/projects...4.1.35-rt41.patch.gz
tar -xpf linux-4.1.35.tar.xz
gunzip patch-4.1.35-rt41.patch.gz
cp patch-4.1.35-rt41.patch linux-4.1.35
cd linux-4.1.35
cat patch-4.1.35-rt41.patch | patch -p1
make xconfig
make -j8
sudo make modules_install
sudo make install
In the xconfig step you must at the minimum select the proper kernel word size (32 or 64 bits depending on your OS)
and also select "Fully Preemptable Kernel" in the "Processor Types and Features" section
Please Log in or Create an account to join the conversation.
03 Dec 2016 09:46 #83610
by rodw
Replied by rodw on topic Installing Uspace for Master
Peter, thanks for that awesome script. Unfortunately, it ran fine until the very last command which errored out with
Google can't find one thing about acp_irq_nobalance so I am at a bit of a loss. I suspect its a grub setting of some kind. Any ideas would be really appreciated as I have no idea where to go from here.
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.1.35-rt41 /boot/vmlinuz-4.1.35-rt41
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.1.35-rt41 /boot/vmlinuz-4.1.35-rt41
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: acp_irq_nobalance: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
make[1]: *** [install] Error 1
make: *** [install] Error 2
Google can't find one thing about acp_irq_nobalance so I am at a bit of a loss. I suspect its a grub setting of some kind. Any ideas would be really appreciated as I have no idea where to go from here.
Please Log in or Create an account to join the conversation.
03 Dec 2016 14:47 - 03 Dec 2016 14:48 #83617
by PCW
Replied by PCW on topic Installing Uspace for Master
Not sure why you are getting this, I've not seen this error before
was grub modified (that is is this a clean OS install or has it been fussed with)
As a quick workaround, i would remove acp_irq_nobalance from /etc/default/grub
was grub modified (that is is this a clean OS install or has it been fussed with)
As a quick workaround, i would remove acp_irq_nobalance from /etc/default/grub
Last edit: 03 Dec 2016 14:48 by PCW.
Please Log in or Create an account to join the conversation.
03 Dec 2016 14:57 #83618
by Hakan
Replied by Hakan on topic Installing Uspace for Master
PCW, was there any particular reason you choose version 4.1.35?
I would have chosen a more recent version like 4.8.11.
Assumption is that later = better device support. May not always be true.
I would have chosen a more recent version like 4.8.11.
Assumption is that later = better device support. May not always be true.
Please Log in or Create an account to join the conversation.
03 Dec 2016 15:02 - 03 Dec 2016 20:13 #83620
by PCW
Replied by PCW on topic Installing Uspace for Master
My experience is that the 4.4 and above kernels tend to have poor latency on older hardware
(Core Duos etc) and that 4.1 is more consistent across a wider range of hardware,
but if you have very new hardware you probably need one of the newer kernels
(Core Duos etc) and that 4.1 is more consistent across a wider range of hardware,
but if you have very new hardware you probably need one of the newer kernels
Last edit: 03 Dec 2016 20:13 by PCW.
Please Log in or Create an account to join the conversation.
03 Dec 2016 18:49 #83628
by Hakan
Replied by Hakan on topic Installing Uspace for Master
Thanks, good to know.
Please Log in or Create an account to join the conversation.
03 Dec 2016 20:41 #83630
by rodw
PCW, thanks. It was me. I had played around in grub with isolcpus to see if I could improve latency based on the LCNC wiki here
[url=http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2]http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2[/url]
and had added
Updating grub is now booting the new kernel, Thanks a lot!
Should we be using isolcpus anymore?
There is more work to do.
The main issue I wanted to fix was the lack of a graphics driver but when I install the MIcrosoft deb package I still getThis error has not changed with the kernel upgrade.
I downloaded libglib2 V2.42 but Gdebi complains it breaks existing package libglib2.0-bin which isn't listed in Synaptic.
Any pointers from here?
Replied by rodw on topic Installing Uspace for Master
Not sure why you are getting this, I've not seen this error before
was grub modified (that is is this a clean OS install or has it been fussed with)
As a quick workaround, i would remove acp_irq_nobalance from /etc/default/grub
PCW, thanks. It was me. I had played around in grub with isolcpus to see if I could improve latency based on the LCNC wiki here
[url=http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2]http://wiki.linuxcnc.org/cgi-bin/wiki.pl?The_Isolcpus_Boot_Parameter_And_GRUB2[/url]
and had added
# Set isolcpus as per LinuxCNC
isolcpus=3 acp_irq_nobalance noirqbalance
Updating grub is now booting the new kernel, Thanks a lot!
Should we be using isolcpus anymore?
There is more work to do.
The main issue I wanted to fix was the lack of a graphics driver but when I install the MIcrosoft deb package I still get
Error Dependency is not available
libglib2.0-0 (>=2.37.3)
I downloaded libglib2 V2.42 but Gdebi complains it breaks existing package libglib2.0-bin which isn't listed in Synaptic.
Any pointers from here?
Please Log in or Create an account to join the conversation.
03 Dec 2016 21:21 #83631
by PCW
Replied by PCW on topic Installing Uspace for Master
You probably dont want isolcpus
why are you installing graphics driver?
why are you installing graphics driver?
Please Log in or Create an account to join the conversation.
03 Dec 2016 21:45 #83632
by rodw
Replied by rodw on topic Installing Uspace for Master
Thanks, desktop icons don't display. There is a command I found from the terminal that will make them display but as soon as you close the terminal they disappear again. Apparently, it is fixed if you have a good graphics driver. Mine show as unknown.
Please Log in or Create an account to join the conversation.
03 Dec 2016 22:07 - 03 Dec 2016 22:08 #83633
by PCW
Replied by PCW on topic Installing Uspace for Master
Very strange
What hardware do you have and what OS are you using?
You really should not have to install _any_ drivers
(and you dont want to either as they will likely break real time since they are not patched)
What hardware do you have and what OS are you using?
You really should not have to install _any_ drivers
(and you dont want to either as they will likely break real time since they are not patched)
Last edit: 03 Dec 2016 22:08 by PCW.
Please Log in or Create an account to join the conversation.
Time to create page: 0.099 seconds