Developers: Building a Kernel

Development on core packages and the distribution goes on in here.

Developers: Building a Kernel

Postby tux » Fri Jun 10, 2011 7:39 am

I am trying to build a new kernel to get moblock working. Specifically I am trying to follow the post by DePingus

viewtopic.php?f=16&t=120&start=10

Following the wiki "Building a Kernel" it talks about getting a .config file the link

http://sheeva.with-linux.com/sheeva/2.6 ... .36.config

doesn't work. In fact if you go to http://www.with-linux.com it shows the default apache page so looks like the server was hosed.

My question is if I am compiling my kernel for the Pogoplug B03 where can I get a .config file from? Or are there instructions on what needs to go into the config if I run "make menuconfig"?
tux
 
Posts: 21
Joined: Wed Jun 08, 2011 9:56 am
Location: Oxford UK

Re: Developers: Building a Kernel

Postby pepedog » Fri Jun 10, 2011 8:01 am

Apparently, if you copy /proc/config.gz and extract, then rename to .config, it will do the trick.
$this->bbcode_second_pass_code('', '[root@PBLinux hints]# cp /proc/config.gz config.gz
[root@PBLinux hints]# bunzip2 config.gz
[root@PBLinux hints]# gunzip config.gz
[root@PBLinux hints]# mv config .config')
This will give the config of the running kernel, but I keep a spare under my pillow
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Developers: Building a Kernel

Postby tux » Fri Jun 10, 2011 8:31 am

$this->bbcode_second_pass_quote('pepedog', 'A')pparently, if you copy /proc/config.gz and extract, then rename to .config, it will do the trick.
$this->bbcode_second_pass_code('', '[root@PBLinux hints]# cp /proc/config.gz config.gz
[root@PBLinux hints]# bunzip2 config.gz
[root@PBLinux hints]# gunzip config.gz
[root@PBLinux hints]# mv config .config')
This will give the config of the running kernel, but I keep a spare under my pillow


brilliant thanks for that. I will give it a go tonight.
tux
 
Posts: 21
Joined: Wed Jun 08, 2011 9:56 am
Location: Oxford UK

Re: Developers: Building a Kernel

Postby devr » Fri Jun 10, 2011 12:23 pm

FYI, /proc/config.gz file does not exist on my PogoPlug Pro. Not sure if this is a symptom of another issue (udevd going out of control). Figured I would make mention of this.
devr
 
Posts: 87
Joined: Wed May 11, 2011 12:22 am

Re: Developers: Building a Kernel

Postby WarheadsSE » Fri Jun 10, 2011 12:33 pm

Nope. I just didn't set the flag to have the config gzip'ed into the kernel.

I need to place the .config as I have it out there, and warn of the PCI issues, and the mm/cache-v6.S glibc compatability patch.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Developers: Building a Kernel

Postby tux » Tue Jun 14, 2011 8:06 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'N')ope. I just didn't set the flag to have the config gzip'ed into the kernel.

I need to place the .config as I have it out there, and warn of the PCI issues, and the mm/cache-v6.S glibc compatability patch.


thanks devr and WarheadsSE. It is all part of the fun.

WarheadsSE, any info you have on the compile and the .config would be much appreciated. I just posted a reply elsewhere re the same thing. Feel free to answer just the once.
tux
 
Posts: 21
Joined: Wed Jun 08, 2011 9:56 am
Location: Oxford UK

Re: Developers: Building a Kernel

Postby tux » Tue Jun 14, 2011 8:55 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'N')ope. I just didn't set the flag to have the config gzip'ed into the kernel.

I need to place the .config as I have it out there, and warn of the PCI issues, and the mm/cache-v6.S glibc compatability patch.


OK got the config from the headers on Cloud Engines. Ran make menuconfig and made all the changes to add what I wanted which is netfilter and iptables.

Do I need to make any more modifications?
tux
 
Posts: 21
Joined: Wed Jun 08, 2011 9:56 am
Location: Oxford UK
Top

Re: Developers: Building a Kernel

Postby WarheadsSE » Tue Jun 14, 2011 9:50 pm

Yes,

You need to change out /arch/arm/mm/cache-v6.S

my cache-v6.S
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Developers: Building a Kernel

Postby tux » Wed Jun 15, 2011 6:48 am

great thanks. Seems the oxnas based Pogos are more complex to compile and then flash so will wait on your howto for them.
tux
 
Posts: 21
Joined: Wed Jun 08, 2011 9:56 am
Location: Oxford UK

Re: Developers: Building a Kernel

Postby kleiner » Fri Jun 17, 2011 10:18 pm

Which options did you deactivate for the oxnas kernel without pci?

WarheadSE can you please share your .config files?
kleiner
 
Posts: 11
Joined: Thu Jun 02, 2011 8:05 pm

Next

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 4 guests