You are not logged in.

#1 2021-01-01 05:20:50

evnchn
Member
Registered: 2020-12-31
Posts: 29

Difficulty in porting old kernel modules for Eee PC 701

It is eeepc-linux-0.2.tar.gz available on Google code archive. Perhaps due to my lack of knowledge on kernel modules, I cannot convert the old code to work under newer kernel, for example 4.19.0-9-686. I got stuck adapting the create_proc_entry to proc_create already. For LFSB , there happens to be no support for the ICS9LPR426A but there is for ICS9LPR427 (EDIT: also the ICS9LPR427A).

Last edited by evnchn (2021-01-01 05:48:46)

Offline

#2 2021-01-01 14:43:29

sleekmason
zoom
Registered: 2018-05-22
Posts: 629
Website

Re: Difficulty in porting old kernel modules for Eee PC 701

Those look like patches for a 2007-9 ubuntu kernel? hmm. Cant see those patching properly, manually or otherwise (I've gone in and replaced individual lines before to get the match.)

From the README:

    cd module
    make
    insmod eee.ko

Is there an older vanilla kernel version that would work? (probably not . . .)
https://www.kernel.org/

Maybe something useful here:)
Arch wiki:
https://wiki.archlinux.org/index.php/ASUS_Eee_PC

Debian guide for Eeepc:
https://wiki.debian.org/DebianEeePC/HowTo/Configure

Kernel guide here if recompiling:
https://forums.bunsenlabs.org/viewtopic.php?id=4870

Arch kernel guide here: (look at the patch sets).
https://wiki.archlinux.org/index.php/Kernel#Compilation

Eh,  A few ideas that may open up something for you or trigger someone else's memory:)

Offline

#3 2021-01-01 15:07:23

evnchn
Member
Registered: 2020-12-31
Posts: 29

Re: Difficulty in porting old kernel modules for Eee PC 701

sleekmason wrote:

Those look like patches for a 2007-9 ubuntu kernel?

Yes, it is from ages ago. I am trying to edit it line by line to fit new kernel. I got stuck on proc_create. The read and write functions are handles outside with create_proc_entry but handled inside the function of proc_create. I really have no idea what I am doing in terms of kernel module coding and I am pretty stuck.

Offline

#4 2021-01-01 15:53:51

sleekmason
zoom
Registered: 2018-05-22
Posts: 629
Website

Re: Difficulty in porting old kernel modules for Eee PC 701

evnchn wrote:
sleekmason wrote:

Those look like patches for a 2007-9 ubuntu kernel?

Yes, it is from ages ago. I am trying to edit it line by line to fit new kernel. I got stuck on proc_create. The read and write functions are handles outside with create_proc_entry but handled inside the function of proc_create. I really have no idea what I am doing in terms of kernel module coding and I am pretty stuck.

Oh wow:)

The first time I patched a kernel, (or 10? lol) I didn't know or think to ask if it could be done automatically.  I have spent hours copying and pasting code in order to get kernels patched for an android device. - I tend to take things like this in stride:)

One of the things I learned though, was to look further down / up in the code for another line equal to the one I needed if I was using a patch not specific to that device, which I did several times. Also, dropped lines of code were not necessarily a deal breaker on the build.

When you get down to specific items, they will either work or not, but be aware that in this scenario, the thing that may not work could be something auxiliary to the item you are changing.  (Think fan operation.)

This doesn't mean don't do it:) I've actually not had a problem arise, but be aware it could and check accordingly. Also, the code could be elsewhere in the kernel image, moved for whatever new/good reason they saw fit.

Anyway, I say build it and if it compiles and loads, keep an eye on temp, fan, cpu,  for a day or two, and then revel in your success.

Maybe someone will still come back with an absolute for ya, but it sounds like you're in the experiment now.

Offline

Board footer

Powered by FluxBB