From: Craig H. <cr...@gu...> - 2007-08-21 16:38:23
|
On Aug 20, 2007, at 5:20 PM, Darren Gibbs wrote: > I have a 4MB basix that I wanted to update to the latest and > greatest. After downloading and building the new rootfs, I see the > default has gotten big! 8MB now! I turned off a bunch of stuff I > don't need (bluetooth, ethernet, C++, etc) and got my jffs2 image > down to 3.2MB. It boots, but complains about being out of space. > When I log in over serial and do a "df" it says my filesystem is only > 2.8MB. Looking at the boot spew, I see "Creating 3 MTD partitions on > "Gumstix Flash ROM". In the past I've only seen 2 partitions, it > looks like the kernel and rootfs are now in their own partitions. > Could someone clue me in on how to go back to 2 so I have enough > space for a 3.2MB image in the rootfs partition? Or what do I do to > u-boot so it uses the 3rd partition? The 3rd partition is for the uImage, which is now stored outside the rootfs. 1MB of flash is reserved for this, leaving 4M-1M-256k = 2.8M for the rootfs on a 4MB device. You'll have to reduce your rootfs size further, or else remove the patch which does this in linux, which can be done like this: cd /path/to/buildroot/build_arm_nofpu/linux-* export QUILT_PATCHES=`cat .patched` `pwd`/../../toolchain/quilt/bin/quilt --quiltrc `pwd`/../../toolchain/ quilt/quilt.quiltrc pop uImage-in-own-partition.patch `pwd`/../../toolchain/quilt/bin/quilt --quiltrc `pwd`/../../toolchain/ quilt/quilt.quiltrc pop `pwd`/../../toolchain/quilt/bin/quilt --quiltrc `pwd`/../../toolchain/ quilt/quilt.quiltrc delete -n `pwd`/../../toolchain/quilt/bin/quilt --quiltrc `pwd`/../../toolchain/ quilt/quilt.quiltrc push -a make -j3 ARCH=arm CROSS_COMPILE=`pwd`/../staging_dir/bin/arm-linux- cd ../.. make mkdir -p build_arm_nofpu/root/boot cp uImage build_arm_nofpu/root/boot/ make That will then spit out a rootfs.arm_nofpu.jffs2 which has the uImage inside it. You'll need to make sure u-boot is using fsload and not katload to load the kernel image then too. C |