LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-28-2023, 10:32 AM   #1
Mellow_Cobra
LQ Newbie
 
Registered: May 2023
Posts: 4

Rep: Reputation: 0
No boot folder or .config in Linux kernel


I currently download the 6.3.4 version of the kernel a multiple other versions as well. I am not able to find the boot folder or the .config file. Can someone please help me out here?
 
Old 05-28-2023, 10:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,033

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
Hi,
would be nice to give us more details. What did you download exactly, from where? What did you do with that downloaded file? The boot folder is usually located in / (so it is /boot). What do you want to achieve at all?
 
Old 05-28-2023, 10:48 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,679
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
If this is kernel source code, you make the .config file yourself by running a suitable "make" command: I use "make menuconfig" but there are others ("make help" will give you a list). Browse around the tree and use the help command to inform yourself about the meaning of all the options. Mostly you have the choice of compiling something right into the core of the kernel, compiling it as a separate module, or omitting it. You can omit drivers for hardware you don't have, which will shrink your kernel considerably, but keep the defaults for anything you aren't sure about.

When you exit from this stage, you will have a .config file ready and waiting! You can then use "make bzimage" to compile your core kernel and "make modules" to compile the module collection.

The boot folder appears after compilation, and your kernel will be in there under its architecture code.
 
Old 05-28-2023, 10:48 AM   #4
Mellow_Cobra
LQ Newbie
 
Registered: May 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I downloaded https://cdn.kernel.org/pub/linux/ker...x-6.3.4.tar.xz from kernel.org. I decompressed the downloaded file. I want to build my own Linux image.
 
Old 05-28-2023, 10:51 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,679
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Try reading https://wiki.linuxquestions.org/wiki...n_Linux_kernel.
 
Old 05-28-2023, 11:46 AM   #6
Mellow_Cobra
LQ Newbie
 
Registered: May 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I have read the wiki but I am unable to locate /src directory in the kernel folder I downloaded from kernel.org. I am unable to do anything since I don't have all the necessary files.
 
Old 05-28-2023, 12:30 PM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,033

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
Quote:
Originally Posted by Mellow_Cobra View Post
I have read the wiki but I am unable to locate /src directory in the kernel folder I downloaded from kernel.org. I am unable to do anything since I don't have all the necessary files.
The source will be put in a folder linux-6.3.4 (or similar). There is no /src.
this is another guide: https://linuxconfig.org/building-kernels-the-debian-way
 
Old 05-29-2023, 10:31 AM   #8
Mellow_Cobra
LQ Newbie
 
Registered: May 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I figured out what I need to do. Need to run makemenuconfig.
 
Old 05-30-2023, 03:45 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,679
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by Mellow_Cobra View Post
I figured out what I need to do. Need to run makemenuconfig.
Nope! It's "make menuconfig"
 
  


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
[SOLVED] Which config: config.amd64-none_amd64 OR config.amd64_rt_amd64 mzsade Debian 2 11-27-2016 09:19 PM
How to modify linux kernel config based on existing .config 5883 Linux - Kernel 3 08-05-2014 09:26 AM
Config 2.6.36.1 kernel (from kernel.org) using CentOS 5.4 x86_64 kernel .config whitewolf573 Linux - Kernel 2 12-11-2010 08:33 AM
A script within a folder to delete the folder, script, and the folder's contents Cyberman Programming 15 10-17-2007 07:32 AM
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM

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

All times are GMT -5. The time now is 09:07 PM.

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