Re: kmod-staging in Fedora 23

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Yes, I just made it work, but I didn't had to compile the whole kernel.
I've edited the Makefile in the root directory to say:
VERSION = 4
PATCHLEVEL = 2
SUBLEVEL = 6
EXTRAVERSION = -301.fc23.i686

Before that I did:
make oldconfig
edited .config  at line 5778 to say:
CONFIG_SPEAKUP=m
make prepare
make modules_prepare
make SUBDIRS=scripts/mod
make SUBDIRS=drivers/staging/speakup/ modules

Then I copied all speakup*.ko files from drivers/staging/speakup under
/usr/lib/modules/MY_KERNEL_VERSION/kernel/drivers/staging/speakup/
And from /usr/lib/modules/MY_KERNEL_VERSION/ I executed:
sudo depmod
Then modprobe speakup_soft worked.
dmesg now shows:
[  235.224605] speakup: module is from the staging directory, the
quality is unknown, you have been warned.
[  235.224767] speakup: module verification failed: signature and/or
required key missing - tainting kernel
[  235.228096] speakup 3.1.6: initialized
[  235.242637] speakup_soft: module is from the staging directory, the
quality is unknown, you have been warned.

So it's the same version which  was included in the kernel for the first
time - 3.1.6.

Then I started it and switched to a console. I heard it work, but it was
constantly interupted by GDM's instance of pulseaudio. So I disabled GDM
and rebooted.
Then I logged in into a console and tried to start espeakup. I already
new it will want root privelegies, so I started it with sudo.
First I had to execute modprobe speakup_soft again.
Then espeakup gave me some pulseaudio related error, which I wasn't able
to read, so I've started GDM.
>From a terminal I started espeakup and switched to a console - espeakup
came up talking.

I'll try to compile it for my PAE kernel, as well as to understand what
is that pulseaudio error and why it didn't worked the first time with
GDM, but worked the second, but that will be tomorrow.
Thanks you guys for all the help.


Best wishes,
Zahari


On 12/09/2015 12:44 AM, covici@xxxxxxxxxxxxxx wrote:
> What I do in these cases is to make the Makefile match the correct
> version and compile the whole kernel using the exact configs given to
> you, except you will have to add those for speakup.
> 
> Zahari Yurukov <zahari.yurukov@xxxxxxxxx> wrote:
> 
>> No, it didn't worked, but I know now what is the problem:
>> It checks the module version and if it didn't match the kernel version -
>> it rejects it.
>> Now I'm planning to try to force the version number of my copy of the
>> source to the exact version which Fedora uses and then compile the
>> module again.
>>
>> On 12/09/2015 12:06 AM, Zahari Yurukov wrote:
>>> Hi,
>>> I was able to extract the kmod-staging rpm following this instructions:
>>> http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html
>>> Then I copied all speakup related files to the place, where the rpm was
>>> supposed to extract them.
>>> However, modprobe says it couldn't find speakup_soft module and insmod
>>> says that speakup_soft.ko is in invalid module format.
>>> Then I've downloaded the source of kernel 4.2.6 from kernel.org and was
>>> eble to compile the speakup module alone following this instructions:
>>> http://askubuntu.com/questions/168279/how-do-i-build-a-single-in-tree-kernel-module
>>> This time I've copied the speakup*.ko files under
>>> /usr/lib/modules/4.2.6..../drivers/staging/speakup/
>>> Again, modprobe says it couldn't find speakup_soft module and insmod
>>> says that speakup_soft.ko is in invalid module format.
>>> Hmmmph, after executing depmod, this time modprobe says:
>>> modprobe: ERROR: could not insert 'speakup_soft': Exec format error
>>> At least it detects it this time.
>>>
>>> I'm using kernel with the PAE patch - is it possible that PAE brakes things?
>>> I'll reboot into the non-PAE version of the same kernel now to check if
>>> it works there.
>>>
>>> Best wishes,
>>> Zahari
>>>
>>>
>>> On 12/08/2015 09:41 PM, Alonzo Cuellar wrote:
>>>> Hello,
>>>> Ok do let me know if you are able to install speakup.
>>>> I see the modules  in the tar archive
>>>> linux-4.3.tar.xz
>>>> Once you download the archive change to the directory driver/staging
>>>> Since these use to be hosted in its own source as a git repository you
>>>> use to be able to do
>>>> make modules_install
>>>> That might or might not work in the current staging directory.
>>>>
>>>> Alonzo
>>>> On 12/08/2015 12:35 PM, Zahari Yurukov wrote:
>>>>> Hi,
>>>>> Thanks, that ansers my last question.
>>>>> However, I forgot to mention, that speakup is stripped out of the Fedora
>>>>> kernels and is contained in this package kmod-staging - that's why the
>>>>> espeakup rpm package requires it.
>>>>> Now I have to figure out if it's possible to compile that individual
>>>>> kernel module (speakup) alone and install it under my current kernel.
>>>>> Or  if I can extract it from an older rpm of kmod-staging - it probably
>>>>> has not changed.
>>>>> I'll write you if I have any progress.
>>>>> Any other suggestions are also welcomed.
>>>>>
>>>>> Best wishes,
>>>>> Zahari
>>>>>
>>>>> On 12/08/2015 06:56 PM, Alonzo Cuellar wrote:
>>>>>> Hello,
>>>>>> How about installing the headers for the kernel, the espeak-devel
>>>>>> package  and cloning
>>>>>> git clone git://github.com/williamh/espeakup.git
>>>>>> You could then build the espeakup connector and I'd think this would
>>>>>> work.
>>>>>> As far as a package I've not been successful in building an rpm.
>>>>>>
>>>>>> Alonzo
>>>>>>
>>>>>> On 12/08/2015 09:13 AM, Zahari Yurukov wrote:
>>>>>>> Hi,
>>>>>>> I'm running Fedora 23 for the last 10 days and everything looks nice,
>>>>>>> except the only kernel in the repositories is version 4.2.6 and
>>>>>>> kmod-staging is version 4.0.4 (from May 28th), i.e there is no
>>>>>>> combination of kernel and kmod-staging which will allow me to install
>>>>>>> espeakup from:
>>>>>>> ftp://speakupmodified.org/speakupmodified/fedora/espeakup/
>>>>>>> I found kmod-staging-4.1.4  from august 5th, but again - no matching
>>>>>>> kernel.
>>>>>>> I looked in all rpmfusion repositories, as well as the default Fedora
>>>>>>> one's, both development and updates.
>>>>>>> Do you have any idea when we could expect kmod-staging-4.2.6? I
>>>>>>> assume I
>>>>>>> should expect it first in rpmfusion development, then
>>>>>>> updates/testing/23
>>>>>>> and finaly in updates/23.
>>>>>>> Unless they've decided to skip 4.2 and 4.3 series, which would be a
>>>>>>> very
>>>>>>> bad news, cause it means it won't be coming in at least another two
>>>>>>> months. But isn't that the idea behind kmod-staging - to prepeir you
>>>>>>> for
>>>>>>> the new kernel? So there should be no skipping.
>>>>>>> Where could I get kernel 4.0.4 or 4.1.4 for Fedora 23?
>>>>>>> Also, the last espeakup rpm build is for Fedora 20 - will this work for
>>>>>>> Fedora 23?
>>>>>>> Could I add a repository for Fedora 22 and install a kernel from there?
>>>>>>> What will be the implecations?
>>>>>>> What will happen, if I install a vanilla kernel from:
>>>>>>> https://fedoraproject.org/wiki/Kernel_Vanilla_Repositories Should I
>>>>>>> expect problems? I expect to find speakup there, right?
>>>>>>> Or I should compile a kernel from kernel.org? That one should be the
>>>>>>> last resort though.
>>>>>>> And if I have to use an unmodified kernel, how should I install
>>>>>>> espeakup
>>>>>>> then? I.e. without the rpm package, which depends on kmod-staging.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Zahari
>>>>>>> _______________________________________________
>>>>>>> Speakup mailing list
>>>>>>> Speakup@xxxxxxxxxxxxxxxxx
>>>>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>>>> _______________________________________________
>>>>>> Speakup mailing list
>>>>>> Speakup@xxxxxxxxxxxxxxxxx
>>>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>>> _______________________________________________
>>>>> Speakup mailing list
>>>>> Speakup@xxxxxxxxxxxxxxxxx
>>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>>>
>>>> _______________________________________________
>>>> Speakup mailing list
>>>> Speakup@xxxxxxxxxxxxxxxxx
>>>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>> _______________________________________________
>> Speakup mailing list
>> Speakup@xxxxxxxxxxxxxxxxx
>> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
>>
> 
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux