LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-30-2010, 10:20 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
My very own Kernel build script for Debian/Ubuntu-based systems


https://launchpad.net/kernel-setup-sh

It can be easily ported to RPM or Pacman-based systems, however, just by editing line 4.
 
Old 12-01-2010, 03:54 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Good work, but wouldn't it be the correct way to make a package from the compiled kernel and then to install the package? This way your script would be compatible with DKMS and the kernelmodules for Virtualbox, proprietary drivers and so would be automatically compiled to fit the new build kernel. The way you do it Virtualbox, nVidia drivers, ATI drivers, etc will not work with the newly installed kernel. You can find more info for building packages from kernels here.
 
Old 12-02-2010, 05:24 AM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Original Poster
Rep: Reputation: 54
The problem is that that would conflict with my intention to have the script be able to allow you to customize the kernel (i.e. install only those modules to support *your* hardware) without having to run all those extra commands. That's why this script runs 'make xconfig' by itself in the first place!
 
Old 12-02-2010, 07:31 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Nothing wrong in running make xconfig, the packaging into a .deb-file is done at compiling time.
 
Old 12-02-2010, 09:24 AM   #5
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Original Poster
Rep: Reputation: 54
Okay, now version 2 of the script includes the kernel package option.
 
Old 12-02-2010, 09:57 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
I have some questions, and some suggestions regarding your script:
  1. Why is it necessary to install all those filesystem-tools and things like ppp and isdnutils?
  2. You install grub-pc in your script. This is okay for all people that are running grub2, but if someone runs grub-legacy (i.E. Debian Stable users) this can lead to problem and may be unwanted. At least you can warn the users and let them ask a question, if they want to do that, or, maybe even better, ask a question with three choices what to install: no bootloader, grub-legacy, grub-pc. the update-grub command is also available for grub-legacy (in grub-pc it is only a wrapper for the grub-mkconfig command, for compatibility), so this should be doable.
  3. And a suggestion for the future: Instead of installing all needed packages in the beginning of the script, I think it would be better (and the Debian way of doing it) to make a packe from your script that depends on all that needed packages.

By the way, as I already said, good work.
 
  


Reply

Tags
build, kernel, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script to compile a custom Linux kernel on Debian-based systems Kenny_Strawn Linux - Kernel 3 09-25-2010 01:29 PM
[SOLVED] How to build all project dependencies on Fedora/RedHat-based systems? JohnGraham Programming 1 09-17-2010 04:26 AM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 05:50 PM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 02:50 PM
LXer: Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http: LXer Syndicated Linux News 0 01-03-2009 12:00 PM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration