LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-04-2022, 04:05 PM   #1
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
anyone using git kernel?


Using Slackware 15 and Debian 11.3 non free
I have a piece of hardware supported by 5.4.x longterm but 5.10,5.15,5.18 it wont work. just looking at code in 5.4 to 5.6 is when the code for drv.c in iwlwifi changes to new style and my hardware hates it wont work. Oddly I have a example of same hardware working in different situation.

something bout code 5.4.x longterm and 5.6 got my hardware working to a degree 5.7 till current doesnt do. it should I see code for the device intel AX200.

tried using git clone kernel for git bisect.
could only build one kernel that was 5.4.197. all other kernels I have tried failed to build or build modules. I have no problems with building kernels and modules outside of using git for kernel.

git checkout kernelversion to change my version.

git bisect wants a merged code or kernel I doubt I could provide that as kernel is 2 years old.
 
Old 08-04-2022, 04:31 PM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 904

Rep: Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693Reputation: 693
If you want to guarantee to create a "clean" source archive here is an example of creating a new folder containing the source. This example is for v4.14. I think you can replace the tag "v4.14" with "HEAD" in your case:

Code:
git archive --format=tar --prefix=linux-4.14/ v4.14 | (cd /usr/src/git && tar xf -)
Then after you have an existing clean source directory it's much faster to patch it:

Code:
echo "Creating new source directory..."
cp -al linux-$OLD_VER linux-$NEW_VER
cd linux-git || exit
echo "Patching source directory..."
git diff v$OLD_VER v$NEW_VER | (cd ../linux-$NEW_VER && git apply -)
cd ..
Also you can keep a clean source archive (your git tree) by using a separate build directory. Doing it this way you shouldn't have a problem directly building from the git source tree (or also combine with the above):

Code:
make O=$OUTDIR oldconfig
make O=$OUTDIR
You can do all this while you're in the middle of a git bisect.
 
Old 08-05-2022, 09:12 PM   #3
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
How would I clone specific kernel I want to work with off the bat instead of cloning master or mainline first?

for example I want 5.6.x kernel cloned first then want to git checkout to 5.7.x and onward
 
Old 08-06-2022, 04:19 AM   #4
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 956

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by mrapathy View Post
How would I clone specific kernel I want to work with off the bat instead of cloning master or mainline first?

for example I want 5.6.x kernel cloned first then want to git checkout to 5.7.x and onward
By default "git clone" will clone an entire repo with all its branches and history and the clone will initially be placed on top of master.

To be placed on a specific branch or tag instead of top of master you can specify that with the --branch parameter.
Also, if you don't want to clone all history you can use the parameter "--depth 1".

Example:

Code:
git clone --branch v5.19 --depth 1 https://github.com/torvalds/linux.git
The above will give you a clone of version 5.19 of the kernel without any history or any possibility to move around among branches or old commits.

regards Henrik
 
3 members found this post helpful.
  


Reply



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
LXer: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 04:50 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
SBo-git - slackbuilds.org on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 07:25 AM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 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