From: Craig H. <cr...@gu...> - 2007-07-31 17:47:39
|
On Jul 31, 2007, at 10:41 AM, Matt Aprea wrote: > Is there anyone out there that knows how to configure the bootargs > variable > through the menuconfig system when generating the file system? From > the > Linux menuconfig there is a "Boot Options" submenu that contains a > configuration item called "Default kernel command string" that > seems to be > tied to the configuration variable CONFIG_CMDLINE. The default for > this is > CONFIG_CMDLINE="console=ttyS0,115200n8 root=1f01 rootfstype=jffs2. > Which > seems to be the same value that the bootargs variable has when the > Gumstx is > first flashed. However I've noticed that even if I change this > value and > rebuild, the bootargs variable still has the default after > flashing. So, I'm > wondering if this is the right place to make this change? Can > anyone suggest > another means to influence the initial value of the bootargs variable? That option in linux affects how the kernel boots if no arg is passed on the kernel command line -- u-boot will always pass one though if its bootargs variable is set. To change this arg at compile-time, you'll need to do it in u-boot, not in the kernel. To do that, you'll need to edit the file buildroot/build_arm_nofpu/u-boot-*/include/configs/gumstix.h Look for the line #define CONFIG_BOOTARGS ... and change that definition, then re-build u-boot. You can change it in the file target/arm/u-boot/verdex/base.patch or target/arm/u-boot/basix-connex/base.patch instead and then rm -rf build_arm_nofpu/u-boot* then rebuild if you want it to be done automatically. C |