(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 04 Dec 2020, 00:37
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Real Time Kernel 4.19.25-rt16 for 32 and 64 bit is Available
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 3 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Fri 06 Dec 2019, 14:49    Post subject:  

hey rockedge,
in the cutting edge here i do have the blade pretty dull..
How do you compile a single kernel module??
/usr/src/linux/drivers/char/ppdev.c
make drivers/char/ppdev.ko
yes ,module is there..
depmod -a
modprobe ppdev
modprobe: FATAL: Module ppdev not found in directory /lib/modules/4.19.82-rt30
eeee..i guess copy/paste is not enough ..
Thanks

_________________
Help mira.ca
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Fri 06 Dec 2019, 15:38    Post subject:  

down load the kernel source file. it is an sfs.....load it with SFS-Load-on-the-fly

http://rockedge.org/kernels/data/kernel/64bit/4.19.82-rt30_full_rt_64/kernel_sources-4.19.82-bionicpup64.sfs 143.433728 megabytes

get the source code for the module and follow the compile instructions or look for autogen.sh or configure ...or it may just use make

we need to see what is included in the module source package.

When you compile the module and it is finished make install I would guess and then unload the kernel source .sfs file

something along these steps should work
also you can use the kernel source sfs file to compile other kernel modules like the one needed for virtualbox to run or WiFi adapters firmware drivers
Back to top
View user's profile Send private message Visit poster's website 
Revolverve


Joined: 08 Nov 2008
Posts: 266
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

PostPosted: Sat 07 Dec 2019, 18:26    Post subject:  

hey rockedge,
Got ppdev module to compile,well had to compiled the whole char drivers directory,anyhow it work ,thank to google,and you...
So,bionicpup64+rtpreempt+linuxcnc_uspace+spot+hours testing=cnc COMMUNICATE with both parallels ports..more than i expected..
no miracle, first there is latency problem with parport to investigate ...and lots more,
have to find the way to turn friendly spot to the "serial" child process killer i need..chilling...will keep that for later..
Debian rtai/linuxcnc can run the cnc dangerously fast,rtpreempt should be able to do ok,with parallel ports..
, its getting somewhere!
OH,dear devs&compilers,
i bow to your patience and "devotion" in this world of ephemere knowledges...
a thought inspired while checking in the blue kernel menuconfig ...

edit:there aint that much latency as there is ,were and will be weird parallel ports cards adapter behaviours( i end up with 4 of these over the years) ,struggling either in m$ and/or linux,
which here again was my problem...after finding ppdev one..
May it could only be a proof linuxcnc-uspace can run on rtpreempt with an actual machine if im the only user/tester/spot explorer/etc..

In case you recompile another full rt you could look at linuxcnc-stretch-uspace- kernel config for compatibility,e.g. support for ethernet to any i/o you could imagine fpga board...for your zoneminders stuff maybe?

I think a possible full working linuxcnc-uspace-rtpreempt deserve its topic....and serve as sweet notes i wont loose ..or the neighbor dogs wont eat..
config-4.9.0-8-rt-amd64.tar.bz2
Description 
bz2

 Download 
Filename  config-4.9.0-8-rt-amd64.tar.bz2 
Filesize  40.56 KB 
Downloaded  195 Time(s) 

_________________
Help mira.ca
Back to top
View user's profile Send private message 
paulh177


Joined: 22 Aug 2006
Posts: 981

PostPosted: Fri 24 Jan 2020, 09:48    Post subject:  

@rockedge

Just tripped over a problem with the configuration of the kernel sources sfs for (at least one of) your rt kernels.

I'm running Bionic64 with the4.19.25-rt16 kernel.
devx & kernel-sources sfs are loaded.

I'm trying to install virtualbox, which requires we compile some modules using the supplied
/usr/lib/virtualbox/vboxdrv.sh

That script calls another to check that we have everything it needs:
/usr/lib/virtualbox/check_module_dependencies.sh

The critical bit that fails first from the latter is
Code:

test -d "/lib/modules/`uname -r`/build/include" && HAVE_HEADERS=yes


If we run this command alone in a terminal, output is
Code:

root# test -d "/lib/modules/`uname -r`/build/include"
root# echo $?
1


If we check down the tree, we see the following (nb `ll` is an alias for `ls -l`):
Code:

root# ll /lib/modules/$(uname -r)/build/include/
ls: cannot access '/lib/modules/4.19.25-rt16/build/include/': No such file or directory

root# ll /lib/modules/$(uname -r)/build/
ls: cannot access '/lib/modules/4.19.25-rt16/build/': No such file or directory

root# ll /lib/modules/$(uname -r)/build
lrwxrwxrwx 1 root root 84  13 Mar 2019 23:22 /lib/modules/4.19.25-rt16/build -> /initrd/mnt/dev_save/woof-out_x86_64_x86_64_ubuntu_bionic64/kernel-kit/linux-4.19.25
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Fri 24 Jan 2020, 11:32    Post subject:  

Hello paulh177

I will look into fixing the problem. I haven't tried compiling the virtualbox drv module with this kernel's sources yet!

Thanks for the information!
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Fri 24 Jan 2020, 13:07    Post subject:  

I have set up a Bionic64 and am running virtualbox 6.1

I also can not compile the vboxdrv module.....I can't even get the build script to see any linux-headers for the kernel and of course the original set is somewhere in gigabytes of storage

I loaded the same devx and kernel sources but the headers are missing for me. I may have to recompile the kernel to test this.
Back to top
View user's profile Send private message Visit poster's website 
paulh177


Joined: 22 Aug 2006
Posts: 981

PostPosted: Fri 24 Jan 2020, 13:40    Post subject:  

So far as I can see, the problem lies in the "build" link in the /lib/modules/4.19.25-rt16/ directory which points to a non-existent directory in dev_save.

The link comes from mounting the kernel sources sfs I think?

It looks like it might be a hangover from your build harness & has got into the kernel sources sfs in error.

(You have probably realised this already, alternatively I've got hold of the wrong end of the stick entirely)
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Fri 24 Jan 2020, 22:55    Post subject:  

Hello paulh177,

you're totally correct, it does appear that the symlink somehow stayed from the build and was written that way to the sfs.

I was able to compile the vboxdrv module for virtualbox 6.1 after doing several things. First I changed the symlink build to /usr/src/linux. But now it gets fuzzy as what made it work. I reloaded the 4.19.25 sources sfs but then loaded the kernel 4.19.23 sources from the original Bionic64-v8 kernel.and I reloaded binutils for BOTH 64bit and 32 bit and then ran
Code:
/etc/init.d/vboxdrv setup

and the vboxdrv module built correctly using the kernel 4.19.25-rt16

got lucky
capture23984.png
 Description   
 Filesize   141.99 KB
 Viewed   290 Time(s)

capture23984.png

Back to top
View user's profile Send private message Visit poster's website 
paulh177


Joined: 22 Aug 2006
Posts: 981

PostPosted: Sat 25 Jan 2020, 07:03    Post subject:  

F U Z Z Y !
hahhhhhhhhhhhhhhhhhaaaaaa!

I used ( a very long time ago) to run a software house tech support group, and I bashed into them the mantra "ONLY CHANGE ONE THING AT A TIME THEN TEST THEN YOU'LL KNOW WHAT FIXED IT".

Unfortunately, like you I don't take my own good advice Very Happy Very Happy Very Happy

I'll look at it again later, thanks for checking.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Sat 25 Jan 2020, 10:07    Post subject:  

now that is time to feed the cats and Bundesliga is showing a game on TV
I'm ready to un-fuzz what I did and instead of starting to throw the kitchen sink at it I will do the correct troubleshooting so even I know how to solve the fix exactly and how to make the fix permanent in the sources sfs without recompiling..which I now I am running into problems applying the RT patches using the kernel-kit....
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Sun 26 Jan 2020, 23:45    Post subject:  

I was able to compile the vboxdrv module using the 4.19.25-rt16 RT kernel by these steps:

1. with a fresh Bionic64 using the kernel 4.19.23, loaded the devx and 32 bit compat libs. Then installed virtualbox-6.1_6.1.2-135662~Ubuntu~bionic_amd64.deb
2. loaded the kernel sources SFS for kernel 4.19.25-rt16
3. changed the kernel from 4.19.23 to 4.19.25-rt16
4. reboot
5. deleted the /lib/modules/4.19.25-rt16/build and /lib/modules/4.19.25-rt16/source symlinks
6. replaced with
Code:
 ln -s /usr/src/linux /lib/modules/4.19.25-rt16/build
 ln -s /usr/src/linux /lib/modules/4.19.25-rt16/source


7. open /etc/modprobe.d/cdrecord.conf and comment out an erroneous entry:
Code:
#sg


8. run
Code:
root# /etc/init.d/vboxdrv setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules
root#


I then started virtualbox and set up a Racy 5.5 virtual machine which started and I was able to use GParted to format the virtual hard drive and install racy5.5
Screenshot(5).png
 Description   
 Filesize   176.9 KB
 Viewed   233 Time(s)

Screenshot(5).png


Last edited by rockedge on Mon 27 Jan 2020, 16:42; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
paulh177


Joined: 22 Aug 2006
Posts: 981

PostPosted: Mon 27 Jan 2020, 04:52    Post subject:  

OK cool.
I'll have a look at this & try myself tonight
Back to top
View user's profile Send private message 
paulh177


Joined: 22 Aug 2006
Posts: 981

PostPosted: Mon 27 Jan 2020, 15:20    Post subject:  

YAY!

Thanks.

I just deleted and remade the links as I am both impatient and had already installed the virtualbox deb.

Built without error, and I can run virtualbox fine.

However I have now discovered that I can't run 64 bit OS in vbox as tho this old machine has a 64bit processor, it doesn't have the hw virtualisation required Laughing Laughing Laughing

Still, at some stage I'll be doing all this on a much faster multicore i7 machine, so at least I know what to do then.

thanks for your support.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Mon 27 Jan 2020, 17:33    Post subject:  

That's great news, good job.
I've pinpointed the problem is during the kernel sources SFS being built, the correct symlinks land in a directory called /lib/modules/4.19.25
when it should be /lib/modules/4.19.25-rt16

so you were correct that the SFS loading process then placed an extra directory /lib/modules/4.19.25 that put the correct /build and /source symlinks in the wrong place. I will fix the directory name in the main sfs for a permanent fix

Thanks for submitting the bug. Glad we could fix it.

**
Back to top
View user's profile Send private message Visit poster's website 
Smithy


Joined: 12 Dec 2011
Posts: 1157

PostPosted: Wed 19 Feb 2020, 04:18    Post subject: Tools
Subject description: Realtime Audio Test Tools
 

Hi Rockedge, I found this set of tools, thought they might be handy in
your realtime endeavours. (You may know of these already).

https://github.com/raboof/realtimeconfigquickscan
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 4.7372s ][ Queries: 12 (3.7005s) ][ GZIP on ]