I can build an image without error using the default configuration profile. However, when I try to add ath5k as the wireless driver module, the build will always fail and the error shows like this:
armeb-openwrt-linux-uclibcgnueabi-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/linux-2.6.37.6/vmlinux /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/vmlinux
armeb-openwrt-linux-uclibcgnueabi-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/linux-2.6.37.6/vmlinux /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/vmlinux.elf
BFD: /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/linux-2.6.37.6/vmlinux: warning: Empty loadable segment detected, is this intentional ?
touch /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/linux-2.6.37.6/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory `/home/gallon/openwrt/trunk/target/linux/ixp4xx/image'
make[5]: `compile' is up to date.
cp /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/linux-2.6.37.6/arch/arm/boot/zImage /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/zImage
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
/usr/bin/find /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx -type f -not -perm +0100 -not -name 'ssh_host*' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
/usr/bin/find /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx -type f -perm +0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
/usr/bin/find /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx/tmp
chmod 0777 /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx/tmp
cp /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/zImage /home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-ixp4xx-generic-zImage
BIN_DIR=/home/gallon/openwrt/trunk/bin/ixp4xx IMG_PREFIX="openwrt-ixp4xx-generic" /home/gallon/openwrt/trunk/scripts/arm-magic.sh
/home/gallon/openwrt/trunk/staging_dir/host/bin/mksquashfs4 /home/gallon/openwrt/trunk/build_dir/target-armeb_v5te_uClibc-0.9.32/root-ixp4xx /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/root.squashfs -nopad -noappend -root-owned -comp lzma -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -processors 1
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/root.squashfs, block size 131072.
[===============================================================\] 340/340 100%
Exportable Squashfs 4.0 filesystem, lzma compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 1199.40 Kbytes (1.17 Mbytes)
35.29% of uncompressed filesystem size (3398.44 Kbytes)
Inode table size 4191 bytes (4.09 Kbytes)
22.35% of uncompressed inode table size (18748 bytes)
Directory table size 5534 bytes (5.40 Kbytes)
51.73% of uncompressed directory table size (10698 bytes)
Number of duplicate files found 4
Number of inodes 555
Number of files 330
Number of fragments 11
Number of symbolic links 168
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 57
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
/home/gallon/openwrt/trunk/staging_dir/host/bin/padjffs2 /home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/root.squashfs 4 8 64 128 256
padding image to 0012c000
padding image to 00130000
padding image to 00140000
dd if=/home/gallon/openwrt/trunk/build_dir/linux-ixp4xx_generic/root.squashfs of=/home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-ixp4xx-generic-squashfs.img bs=131072 conv=sync
10+1 records in
11+0 records out
1441792 bytes (1.4 MB) copied, 0.00597388 s, 241 MB/s
BIN_DIR=/home/gallon/openwrt/trunk/bin/ixp4xx /home/gallon/openwrt/trunk/scripts/slugimage.pl -L /home/gallon/openwrt/trunk/bin/ixp4xx/apex/apex-nslu2-armeb.bin -k /home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-nslu2-zImage -r rootfs:/home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-ixp4xx-generic-squashfs.img -p -o /home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-nslu2-squashfs.bin
Read 0x00040000 bytes from "/tmp/filetQCvoi" into <RedBoot> (2 blocks / 2 blocks)
Read 0x00020000 bytes from "/tmp/file0ThGPF" into <SysConf> (1 blocks / 1 blocks)
Read 0x0000D1E8 bytes from "/home/gallon/openwrt/trunk/bin/ixp4xx/apex/apex-nslu2-armeb.bin" into <Loader> (1 blocks / 1 blocks)
Can't find firmware part "/home/gallon/openwrt/trunk/bin/ixp4xx/openwrt-nslu2-zImage": No such file or directory
make[5]: *** [install] Error 2
make[5]: Leaving directory `/home/gallon/openwrt/trunk/target/linux/ixp4xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/gallon/openwrt/trunk/target/linux/ixp4xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/gallon/openwrt/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/gallon/openwrt/trunk'
make[1]: *** [/home/gallon/openwrt/trunk/staging_dir/target-armeb_v5te_uClibc-0.9.32/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/gallon/openwrt/trunk'
make: *** [world] Error 2
To me, it sounds like an error for nslu2 image. Is there a way to fix or bypass this error? I need ath5k in the image and I am only interested in the cambria image.
Thanks.