Re: make-speakup-kernel

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

 



The problem about finding the new subdirectory name should be pretty trivial to handle it's just a matter of as adventurers would tell you using the right door. Maybe this will help. If a script runs and collects all existing subdirectory names then saves them to an array or data base then tells the user to download the kernel package and after that to run a second script that's included once they have downloaded the kernel source. The second script would make a second data base with a different name if the first data base the first script ought to have made was found and that second data base would again collect all existing subdirectory names. Once done a compare which eliminates common subdirectories in both data bases would happen and all you're left with is the path to the new kernel source in the second data base. I hope this helps.

On Thu, 11 Aug 2016, John G Heim wrote:

Date: Thu, 11 Aug 2016 10:10:47
From: John G Heim <jheim@xxxxxxxxxxxxx>
To: Jude DaShiell <jdashiel@xxxxxxxxx>,
    Speakup is a screen review system for Linux. <speakup@xxxxxxxxxxxxxxxxx>
Subject: Re: make-speakup-kernel

The script would not work for gentoo as written. It relies on "lsb_release -si" returning either "Debian" or "Ubuntu". I have been making progress on making it more general but it is very difficult even to write a script that works from one release of debian to the next or from one release of ubuntu to the next. For example, when you download the kernel source package, it creates a subdirectory of your current working directory. That directory name is not the same from release to release, and in fact, I've found that the pattern for the name of that subdirectory isn't consistent from one release to the next. I had code to determine the subdir name based on the output from uname but it didn't work when I upgraded my PC. I figured out a way around that. But another problem is that the patch itself is very specific to a particular kernel version.

I see that gentoo compiles all of it's packages on your computer. All you would need to do is hack the code yourself before it compiles the kernel. You need to edit the file drivers/staging/serialio.c in the kernel source tree. Find a line that issues a warning saying "Unable to allocate port at" and comment out the return statement after that warning. My patch files also change that warning to say "continuing anyway". That makes it easier to see what is happening in the system logs. My kernel build script also adds the string "+spk" to the kernel version to make it easier for you to tell which kernel you are running via the uname command. I have no idea how to do that in gentoo.






On 08/10/2016 08:21 PM, Jude DaShiell wrote:
Will this script work for gentoo? That distro seriously needs a good script to do something like this.

On Wed, 10 Aug 2016, John G Heim wrote:

Date: Wed, 10 Aug 2016 11:51:32
From: John G Heim <jheim@xxxxxxxxxxxxx>
To: Speakup is a screen review system for Linux. <speakup@xxxxxxxxxxxxxxxxx>
Subject: make-speakup-kernel

I posted an updated version of the script I use to build the kernel hacked to support serial hardware synths. This script does everything necessary to build a kernel for either debian or ubuntu. Even if you don't want to use the script, it might be educational for learning to build the kernel yourself. To download the script:


wget http://www.iavit.org/~john/Debian/make-speakup-kernel








--

_______________________________________________
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