kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Help: using the scull driver
@ 2019-06-11 18:58 Yacov Simhony
  2019-06-11 19:52 ` Elias Kouskoumvekakis
  0 siblings, 1 reply; 2+ messages in thread
From: Yacov Simhony @ 2019-06-11 18:58 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I'd like to ask how can I use the scull driver today?
The scull driver appears in the book "Linux Device Drivers, Third
Edition".

I am using linux vesion 5.1.6

I found the code of scull here:
https://github.com/starpos/scull

But, it says there that the code is compatible with linux version 2.6.35.

I've tried to port the code to run with my linux version, but I got
stuck when it comes to exchange the old semaphores with the newly
introduced mutexes.

I also tried to install linux version 2.6.35 on my machine, but I could
compile the code. I assume it's related to the gcc version, but I don't
know how to handle this.

Can you give me some advice here?

Thanks,
Yacov

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help: using the scull driver
  2019-06-11 18:58 Help: using the scull driver Yacov Simhony
@ 2019-06-11 19:52 ` Elias Kouskoumvekakis
  0 siblings, 0 replies; 2+ messages in thread
From: Elias Kouskoumvekakis @ 2019-06-11 19:52 UTC (permalink / raw)
  To: Yacov Simhony; +Cc: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]

On Tue, Jun 11, 2019 at 9:59 PM Yacov Simhony <ysimhony@gmail.com> wrote:

>
> I've tried to port the code to run with my linux version, but I got
> stuck when it comes to exchange the old semaphores with the newly
> introduced mutexes.
>
> I also tried to install linux version 2.6.35 on my machine, but I could
> compile the code. I assume it's related to the gcc version, but I don't
> know how to handle this.
>
> Can you give me some advice here?
>

Hi Yacov,

you can use the following repository which contains updated code for recent
kernels. I tested it last year and IIRC it was working fine.

https://github.com/martinezjavier/ldd3

It is now possibly a bit out of date for the 5.1 kernel, but whatever you
encounter will probably be easier to fix than the original code of the book.

Best,
Elias

[-- Attachment #1.2: Type: text/html, Size: 1308 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-11 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11 18:58 Help: using the scull driver Yacov Simhony
2019-06-11 19:52 ` Elias Kouskoumvekakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).