subash_patel
Posts: 4
Joined: Fri Sep 07, 2012 4:45 am
Location: Bangalore, India

Default kernel config required

Fri Sep 07, 2012 4:48 am

Hello,

I see below three configs related to raspberry-pi board. Can someone here confirm which is the default config to be used to build a kernel for type-b?

arch/arm/configs/bcmrpi_cutdown_defconfig
arch/arm/configs/bcmrpi_emergency_defconfig
arch/arm/configs/bcmrpi_defconfig

Regards,
Subash

User avatar
Licaon_Kter
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.

Re: Default kernel config required

Fri Sep 07, 2012 7:49 am

arch/arm/configs/bcmrpi_defconfig is
but, this is the minimal set, you need to enable many other options as needed
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)

joe2act
Posts: 40
Joined: Tue Jul 24, 2012 4:21 am

Re: Default kernel config required

Tue Sep 18, 2012 12:05 am

Licaon_Kter wrote:arch/arm/configs/bcmrpi_defconfig is
but, this is the minimal set, you need to enable many other options as needed
Does 2012-08-16-wheezy-raspbian kernel's .config available ?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6033
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Default kernel config required

Tue Sep 18, 2012 12:30 am

joe2act wrote:Does 2012-08-16-wheezy-raspbian kernel's .config available ?
Just boot it up and:

Code: Select all

zcat /proc/config.gz

joe2act
Posts: 40
Joined: Tue Jul 24, 2012 4:21 am

Re: Default kernel config required

Tue Sep 18, 2012 1:14 am

dom wrote:
joe2act wrote:Does 2012-08-16-wheezy-raspbian kernel's .config available ?
Just boot it up and:

Code: Select all

zcat /proc/config.gz

Thanks. That is cool.

Code: Select all

$ zcat /proc/config.gz > current-rpi-defconfig
$ cat current-rpi-defconfig
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.2.27 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
.......

pwhbeck
Posts: 31
Joined: Mon Dec 12, 2011 3:28 am

Re: Default kernel config required

Thu Nov 08, 2012 7:26 pm

This bit of information is a true gem.
It and the following allowed me to finally build a kernel with the modules I need.
http://mitchtech.net/raspberry-pi-kernel-compile/

The new kernel is 5325476 bytes. The one from wheezy-2012-10-28 is 2695192.
I added only one module.
Any suggestions as to why this is so? I presumed the .config from the SD card would reflect the kernel contents.

Thanks,
Peter

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6033
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Default kernel config required

Thu Nov 08, 2012 8:08 pm

The smaller kernel is the zImage (just rename it to kernel.img). It is compressed.

jwasch
Posts: 12
Joined: Wed May 01, 2013 3:10 pm

Re: Default kernel config required

Thu May 09, 2013 2:09 pm

Licaon_Kter wrote:arch/arm/configs/bcmrpi_defconfig is
but, this is the minimal set, you need to enable many other options as needed
Anybody have a link to help determine what other options are needed? I was successful in building 3.6.11+ and it runs but now my SPI test program doesn't work. I used default config and pressed ENTER for all new configuration options to accept defaults, but I suspect there's more to it than that. Is there a list of what's needed for the "B" raspberry pi anywhere?

Return to “Linux Kernel”