* [Buildroot] Kernel config and recommended books
@ 2011-09-22 21:29 bruce bushby
2011-09-27 22:04 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: bruce bushby @ 2011-09-22 21:29 UTC (permalink / raw)
To: buildroot
Hi
I wanted to ask how I retain a kernel config ".config"? I'm trying to
build a kernel for an OMAP3 Beagleboard .....so I run "make
menuconfig" and select the bare basic but I change my login terminal
to ttyS2 and for a "defconfig" I enter "omap2plus".
Everything compiles ok, the uImage uncompresses and starts to boot but
I don't see anything on the screen, cursor sits at the end of the word
uncompresses:
u-boot env:
OMAP3 beagleboard.org # printenv
baudrate=115200
beaglerev=xMA
bootcmd=if mmc rescan ${mmcdev}; then if run loadbootscript; then run
bootscript; else if run loaduimage; then run mmcboot; else run
nandboot; fi; fi; else run nandboot; fi
bootdelay=1
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
console=ttyS2,115200n8
defaultdisplay=dvi
dieid#=603400029ff800000163810c1402902c
dvimode=1024x768MR-16 at 60
loadaddr=0x82000000
loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} mpurate=${mpurate}
vram=${vram} MEM=256M omapfb.mode=dvi:omapfb omapfb.debug=y
omapdss.def_disp=tv:ntsc root=root=/dev/ram0 rw
rootfstype=${mmcrootfsty}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=1000
nandargs=setenv bootargs console=${console} mpurate=${mpurate}
vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y
omapdss.def_disp=${defaultdisplay} root=${nandroot}
rootfstype=${nandrootfst}
nandboot=echo Booting from nand ...; run nandargs; nand read
${loadaddr} 280000 400000; bootm ${loadaddr}
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
usbtty=cdc_acm
vram=12M
Boot sequence:
OMAP3 beagleboard.org # 60?H?H?U?
??
?Instruments X-Loader 1.4.4ss
(May 19 2011 - 08:26:18)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2010.12 (Jun 01 2011 - 10:37:16)
OMAP3630/3730-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 512 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Beagle xM Rev A
Beagle GPIO 136 00
Beagle GPIO 137 00
Beagle GPIO 138 00
Beagle GPIO 127 00
Die ID #603400029ff800000163810c1402902c
Hit any key to stop autoboot: 0
reading boot.scr
414 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage
3205900 bytes read
***** Kernel: /dev/mmcblk0p1/uImage *****
***** RootFS: /dev/mmcblk0p2 *****
## Booting kernel from Legacy Image at 80200000 ...
Image Name: Linux-3.0.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3205836 Bytes = 3.1 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
So my question relates to the kernel ".config" .... before running
make I don't have a kernel ".config" ... after running make I have:
./output/build/linux-3.0.4/.config
and I think it's this file I need to change:
[root at dlxarm01 buildroot-2011.08]# grep tty ./output/build/linux-3.0.4/.config
CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"
[root at dlxarm01 buildroot-2011.08]#
that should be ttyS2....from what I've read on the net. So I take a
copy of this file and I run a "make clean" .....but I can't put it
back because the directory "./output/build/linux-3.0.4/" no longer
exists.
What would be the correct way/method to maintain my kernel ".config"
within the buildlroot environment?
and lastly, what is considered the "defacto" book with regards to
embedded linux kernels?
I've previously struggled with trying to get a kernel running on a
Telit GE863-PRO module so I have an idea about the complexities
surrounding flash initialization and "board support" I doubt I'll ever
manage my own but I would like to start understanding more rather
then trail and error?
Thanks
Bruce
I then run a find ".config" and
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] Kernel config and recommended books
2011-09-22 21:29 [Buildroot] Kernel config and recommended books bruce bushby
@ 2011-09-27 22:04 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2011-09-27 22:04 UTC (permalink / raw)
To: buildroot
Le Thu, 22 Sep 2011 22:29:45 +0100,
bruce bushby <bruce.bushby@gmail.com> a ?crit :
> I wanted to ask how I retain a kernel config ".config"? I'm trying to
> build a kernel for an OMAP3 Beagleboard .....so I run "make
> menuconfig" and select the bare basic but I change my login terminal
> to ttyS2 and for a "defconfig" I enter "omap2plus".
^^^^^ must be ttyO2 on OMAP platforms if you use a relatively
recent kernel (I don't remember if it's > 2.6.35 or > 2.6.37)
> console=ttyS2,115200n8
ttyO2
> So my question relates to the kernel ".config" .... before running
> make I don't have a kernel ".config" ... after running make I have:
> ./output/build/linux-3.0.4/.config
>
> and I think it's this file I need to change:
>
> [root at dlxarm01 buildroot-2011.08]# grep tty ./output/build/linux-3.0.4/.config
> CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"
> [root at dlxarm01 buildroot-2011.08]#
>
> that should be ttyS2....from what I've read on the net. So I take a
No, ttyO2 is correct. The "net" is outdated.
> copy of this file and I run a "make clean" .....but I can't put it
> back because the directory "./output/build/linux-3.0.4/" no longer
> exists.
Run 'make linux-menuconfig' will automatically open the kernel
menuconfig. Then, if you want to save your kernel configuration:
* Copy the output/build/linux-x.y.z/.config file somewhere
* Edit your Buildroot configuration, and instead of using the
omap2plus defconfig, tell Buildroot to use your own kernel
configuration.
> and lastly, what is considered the "defacto" book with regards to
> embedded linux kernels?
There is no defacto book, but for the configuration/compilation process
of the kernel, you might want to have a look at
http://www.kroah.com/lkn/.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-27 22:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-22 21:29 [Buildroot] Kernel config and recommended books bruce bushby
2011-09-27 22:04 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox