How do I make buildroot *without* module support ?

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to speed up my NGW100 boot time, and I've seen mention that removing module support in the kernel is one thing I might try.

I have deselected the "loadable module support" via "make linux26-menuconfig", but when I re-make I get the following error ...

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

I don't use any modules (lsmod shows nothing), so how can I find out which part of the buildroot config is still dependant on modules ?

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Huh, which version of Buildroot gave you that message?

Try out the atngw100-base_defconfig, it probably does what you want.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just used the ngw100_defconfig.

I'll give the "base" version a go now ...

[Update]
Works a treat ... cheers
[/Update]

Thanks

Last Edited: Mon. Dec 3, 2007 - 01:11 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Out of interest, which package fails with the above error message? Could you post the few lines previous to that? Anything which contains a path will be nice :)

Thx.
-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm ... strange.

I've just tried to re-create the problem here at work and everything compiles correctly (without module support) :oops:

So it must be my home setup.

I'll investigate tonight and post my findings.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you sure you are using the latest Buildroot for AVR32? (v2.1.0-rc10). Previous RC's had problems with disabled module support in the Linux kernel.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My linux .config has the line ...

# CONFIG_MODULES is not set

Below are the lines before my make fails ... enjoy !!

make[1]: Leaving directory `/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/busybox-1.7.2'
# Just in case
chmod a+x /usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root/usr/share/udhcpc/default.script
rm -rf /usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root/lib/modules/2.6.23
rm -f /usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root/sbin/cardmgr
PATH="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/toolchain_build_avr32_nofpu/bin:/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/bin:/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/dev/buildroot/build_arm_nofpu/staging_dir/bin/:/usr/local/dev/avr32/buildroot/build_avr32_nofpu/staging_dir/bin/" AR=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-ar AS=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-as LD="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-ld -L/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/lib -L/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/lib" NM=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-nm CC="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-gcc -Os -pipe  -I/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/include -msoft-float" GCC="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-gcc -Os -pipe  -I/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/include -msoft-float" CXX="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-g++ -Os -pipe  -I/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/include -msoft-float" CPP="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-cpp -Os -pipe  -I/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/include -msoft-float" RANLIB=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-ranlib STRIP=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-strip OBJCOPY=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc-objcopy AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CFLAGS_FOR_BUILD="" LDFLAGS_FOR_BUILD="" PKG_CONFIG_SYSROOT="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir" PKG_CONFIG="/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/pkg-config" \
                /usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCFLAGS= ARCH=avr32 CFLAGS_KERNEL="-Os -pipe -I/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/include -msoft-float" INSTALL_MOD_PATH=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root CROSS_COMPILE=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/usr/bin/avr32-linux-uclibc- -C /usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/linux-2.6.23 \
                DEPMOD=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/build_avr32_nofpu/staging_dir/bin/avr32-linux-depmod26 \
                INSTALL_MOD_PATH=/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root modules_install
make[1]: Entering directory `/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/linux-2.6.23'

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[1]: *** [modules_install] Error 1
make[1]: Leaving directory `/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/linux-2.6.23'
make: *** [/usr/local/dev/avr32/buildroot-avr32-v2.1.0-rc10/project_build_avr32_nofpu/atngw100/root/lib/modules/2.6.23/modules.dep] Error 2
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is modules disabled in the file target/devices/Atmel/atngw100/atngw100-linux-2.6.23.config ?

If not copy the .config in project_build_avr32_nofpu/atngw100/linux-2.6.23/.config to target/devices/Atmel/atngw100/atngw100-linux-2.6.23.config.

I will have a look at how to solve this in a sane way.

PS! Some lines are really long above, so you should consider truncating a bit :)

Hans-Christian