LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-03-2016, 08:01 AM   #1
linux232
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Rep: Reputation: Disabled
Question Kernel version update


Hello,

I am kinda a newbie in Linux system. I would like to get help in a topic i am interested in which is :
Suppose that we have done a change in an application which requires an update of audio ALSA driver and Kernel version (dependences).
How would be the required changes happened in the development scenario such as source code, version control, Buildroot, Continuous integration server and external dependences.

I would appreciate your feedback
 
Old 10-03-2016, 09:13 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
That depends.

You did not mention your distribution or what kernel you're running.

As I use Slackware, the kernel was upgraded to 4.4.19 and Slackware provides patches to upgrade the kernel. Your distribution, if the kernel has been upgraded should provide a method for doing the upgrade. Typically, the upgrade should be an installed set of precompiled packages or ZIP files or some other format, check with your distribution.

Most likely you will not be downloading source and compiling the kernel yourself, you'll upgrade with some provided tool.

The upgrades look something like this:
Code:
kernel-firmware-20160823git-noarch-1_slack14.2.txz
kernel-generic-4.4.19-x86_64-1_slack14.2.txz
kernel-headers-4.4.19-x86-1_slack14.2.txz
kernel-huge-4.4.19-x86_64-1_slack14.2.txz
kernel-modules-4.4.19-x86_64-1_slack14.2.txz
kernel-source-4.4.19-noarch-1_slack14.2.txz
Usually you won't have problems with existing software; however, it might be a Good Idea to recompile anything that exhibits problems. I do not normally see any problems with kernel upgrades but there may be recommendations for rebuilding existing software as a problem may have been fixed in the kernel, you need to check the documentation provided with kernel upgrades and, of course, you will need to reboot and you probably will need to regenerate the master boot record before rebooting the system. There should be instructions for what needs to be done.

Hope this helps some.
 
1 members found this post helpful.
Old 10-03-2016, 09:14 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,152

Rep: Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771Reputation: 1771
Applications don't usually require updates to the audio driver. The audio driver just controls the hardware, as a general rule.

That said, have you heard of git? Then, depending on your distro, it's
Download -->Configure --> Compile --> Install (over previous) or
Download -->Configure --> Compile --> Make Package --> Package Update.

This all leaves configuration untouched.
 
1 members found this post helpful.
Old 10-03-2016, 11:37 AM   #4
linux232
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Talking

I am using github as a buildroot , also my distribution system is Slackware.
Thanks for replies tronayne and business_kid.
But i read in some articles that to update ALSA it is important that you ensure to install the ALSA drivers that are specific to your kernel version only. It made me confused.
Also do we need DKMS - rebuilds automatically !!! during this process.

i really do appreciate any help.



Note: i am a beginner who is trying to detect my steps in Linux world >_<.
 
Old 10-03-2016, 11:41 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
You configure your own kernel and if the driver you need is included in kernel then you do not need out-of-kernel ALSA drivers.
 
Old 10-03-2016, 01:15 PM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
Are you running Slackware 65-bit 14.2 or Slackware 32-bit 14.2 or an earlier release?

If so, there are kernel updates you should install along with a bunch of other packages that have been released to correct security problems and improve packages.

There are a number of ways to do that, on of the easiest is to download the patches from Oregon State University Open Source Lab then upgrade.

You'll want to create a directory somewhere named, say, patches.

32-Bit

cd <path_to_patches_directory/patches

Get the Kernel Patches first

mkdir linux-4.4.19
cd linux-4.4.19

wget ftp://ftp.osuosl.org/pub/slackware/s...linux-4.4.19/*

That will download all the kernel patches

Now, get the other patches

cd .. (that puts you in the patches directory)

wget ftp://ftp.osuosl.org/pub/slackware/s...hes/packages/*

Now you're going to have to do things in pretty much this order:
  • You will need to be root, use sudo or su - to become the super user
  • cd <path_to_patches_directory/patches
  • cd linux-4.4.19
  • execute upgradepkg *.t?z
  • execute lilo (Do NOT forget to do this)
  • reboot the system with init 6 or shutdown or whatever you're familiar with
  • If you use init 6 the system will reboot by itself, otherwise do it manually
  • cd <path_to_patches_directory/patches
  • execute upgradepkg *.t?z
  • execute init 6 (You need to restart daemons due to the upgrades.
64-Bit

The steps are the same for 64-bit it's just the wget commands are different:
  1. wget ftp://ftp.osuosl.org/pub/slackware/s...linux-4.4.19/*
  2. wget ftp://ftp.osuosl.org/pub/slackware/s...hes/packages/*
Just follow the above steps but use the above two commands to get all the patches.

DO not mix 32- bit and 64-bit downloads and upgrades (your system will not work if you do). You can tell which you have with
Code:
uname -a
Linux fubar 4.4.19 #2 SMP Mon Aug 22 14:37:39 CDT 2016 x86_64Intel(R) Core(TM)2 Duo CPU     E7600  @ 3.06GHz GenuineIntel GNU/Linux
The above includes X86_64 for a 64-bit system.

Also if you're not running Slackware 14.2, do not do any of the above, come back and ask how to do an older release.

If you don't know what release you're running,
Code:
cat /etc/slackware-version
Slackware 14.2
will tell you.

Take your time, double check.

Hope this helps some.

Last edited by tronayne; 10-03-2016 at 01:51 PM.
 
Old 10-03-2016, 02:08 PM   #7
linux232
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
I used the release code and i see that i am using Slackware 14.2 ur replay is very helpful.

Thank u tronayne so much and i appreciate ur time to help me.
 
  


Reply


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
Kernel version update linux232 Linux - Kernel 1 10-03-2016 08:26 AM
update linux kernel version vishal.upadhye Linux - General 1 10-09-2013 12:55 AM
RH AS3 Update 8 Kernel version jr8rdt Linux - Enterprise 5 02-02-2007 05:09 PM
How to update our Kernel version from 2.4.9-e.3 to 2.4.9-e.59 ?? shsaifee Linux - Software 6 11-23-2005 04:43 AM
kernel update version question :) trey85stang General 4 03-12-2004 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration