when I try to build my own image, encounter this error...
mips-openwrt-linux-uclibc-ld -r -b binary --oformat elf32-tradbigmips -T lzma-data.lds -o data.o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma
mips-openwrt-linux-uclibc-ld -static --gc-sections -no-warn-mismatch -e startup -T loader.lds -Ttext 0x80a00000 -o loader head.o loader.o cache.o board.o printf.o LzmaDecode.o data.o
mips-openwrt-linux-uclibc-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S loader loader.bin
mips-openwrt-linux-uclibc-ld -r -b binary --oformat elf32-tradbigmips -o loader2.o loader.bin
mips-openwrt-linux-uclibc-ld -e startup -T loader2.lds -Ttext 0x80060000 -o loader.elf loader2.o
make[7]: Leaving directory `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/lzma-loader'
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/lzma-loader/loader.elf /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf
make[6]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx/image/lzma-loader'
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf
cp: `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf' and `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf' are the same file
make[5]: [install] Error 1 (ignored)
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type f -not -perm +0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type f -perm +0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
/usr/bin/find /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp
chmod 1777 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.elf /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.elf
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.bin
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.lzma bs=65536 conv=sync
17+1 records in
18+0 records out
1179648 bytes (1.2 MB) copied, 0.00351408 s, 336 MB/s
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.gz of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux.gz bs=65536 conv=sync
24+1 records in
25+0 records out
1638400 bytes (1.6 MB) copied, 0.00466622 s, 351 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C gzip -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.gz /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-uImage-gzip.bin
Image Name: MIPS OpenWrt Linux-3.10.49
Created: Tue Jul 29 22:14:53 2014
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1576567 Bytes = 1539.62 kB = 1.50 MB
Load Address: 80060000
Entry Point: 80060000
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux.bin.lzma /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-uImage-lzma.bin
Image Name: MIPS OpenWrt Linux-3.10.49
Created: Tue Jul 29 22:14:53 2014
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1143423 Bytes = 1116.62 kB = 1.09 MB
Load Address: 80060000
Entry Point: 80060000
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/loader-generic.elf /home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-vmlinux-lzma.elf
mkdir -p /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4
/home/van/Openwrt/trunk/staging_dir/host/bin/patch-cmdline /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 "board=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)"
/home/van/Openwrt/trunk/staging_dir/host/bin/lzma e /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4 -lc1 -lp2 -pb2 -d20 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma
LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.lzma of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp bs=$((2097152-131072-2*64-1)) count=1 conv=sync
0+1 records in
1+0 records out
1965951 bytes (2.0 MB) copied, 0.00507867 s, 387 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -M 0x33373033 -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.bin.tmp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
Image Name: MIPS OpenWrt Linux-3.10.49
Created: Tue Jul 29 22:14:57 2014
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1965951 Bytes = 1919.87 kB = 1.87 MB
Load Address: 80060000
Entry Point: 80060000
echo -ne '\xff' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
# create a fake rootfs image
dd if=/dev/zero of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4 bs=131072 count=1
1+0 records in
1+0 records out
131072 bytes (131 kB) copied, 0.000508254 s, 258 MB/s
mkimage -A mips -O linux -T filesystem -C none -a 0xbf070000 -e 0xbf070000 -n 'MIPS OpenWrt fakeroot' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4 -M 0x33373033 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4.uImage
Image Name: MIPS OpenWrt fakeroot
Created: Tue Jul 29 22:14:57 2014
Image Type: MIPS Linux Filesystem Image (uncompressed)
Data Size: 131072 Bytes = 128.00 kB = 0.12 MB
Load Address: bf070000
Entry Point: bf070000
# append the fake rootfs image to the kernel, it will reside in the last
# erase block of the kernel partition
cat /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr3700v4.uImage >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr3700v4.uImage
cp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/vmlinux /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300
/home/van/Openwrt/trunk/staging_dir/host/bin/patch-cmdline /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300 "board=WNDR4300 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved)"
/home/van/Openwrt/trunk/staging_dir/host/bin/lzma e /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300 -lc1 -lp2 -pb2 -d20 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.lzma
LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.lzma of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.tmp bs=$((2097152-131072-2*64-1)) count=1 conv=sync
0+1 records in
1+0 records out
1965951 bytes (2.0 MB) copied, 0.00363151 s, 541 MB/s
mkimage -A mips -O linux -T kernel -a 0x80060000 -C lzma -M 0x33373033 -e 0x80060000 -n 'MIPS OpenWrt Linux-3.10.49' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.bin.tmp /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
Image Name: MIPS OpenWrt Linux-3.10.49
Created: Tue Jul 29 22:15:00 2014
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1965951 Bytes = 1919.87 kB = 1.87 MB
Load Address: 80060000
Entry Point: 80060000
echo -ne '\xff' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
# create a fake rootfs image
dd if=/dev/zero of=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300 bs=131072 count=1
1+0 records in
1+0 records out
131072 bytes (131 kB) copied, 0.000155836 s, 841 MB/s
mkimage -A mips -O linux -T filesystem -C none -a 0xbf070000 -e 0xbf070000 -n 'MIPS OpenWrt fakeroot' -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300 -M 0x33373033 /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage
Image Name: MIPS OpenWrt fakeroot
Created: Tue Jul 29 22:15:00 2014
Image Type: MIPS Linux Filesystem Image (uncompressed)
Data Size: 131072 Bytes = 128.00 kB = 0.12 MB
Load Address: bf070000
Entry Point: bf070000
# append the fake rootfs image to the kernel, it will reside in the last
# erase block of the kernel partition
cat /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/vmlinux-wndr4300.uImage
# FIXME: removing this line will cause strange behaviour in the foreach loop below
/home/van/Openwrt/trunk/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /home/van/Openwrt/trunk/include/device_table.txt --pad -e 64KiB -o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -v 2>&1 1>/dev/null | awk '/^.+$/'
Compression mode: size
Compressors:
none compr: 78 blocks (57034) decompr: 0 blocks
zlib (prio:80) - compr: 0 blocks (0/0) decompr: 0 blocks
lzma (prio:70) + compr: 1581 blocks (2538028/5310992) decompr: 0 blocks
rtime (prio:50) + compr: 4 blocks (1976/2163) decompr: 0 blocks
Compression errors: 0
/home/van/Openwrt/trunk/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /home/van/Openwrt/trunk/include/device_table.txt -e 64KiB -o /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k-raw -d /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx -v 2>&1 1>/dev/null | awk '/^.+$/'
Compression mode: size
Compressors:
none compr: 78 blocks (57034) decompr: 0 blocks
zlib (prio:80) - compr: 0 blocks (0/0) decompr: 0 blocks
lzma (prio:70) + compr: 1581 blocks (2538028/5310992) decompr: 0 blocks
rtime (prio:50) + compr: 4 blocks (1976/2163) decompr: 0 blocks
Compression errors: 0
echo -ne '\xde\xad\xc0\xde' >> /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k
dd if=/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k of=/home/van/Openwrt/trunk/bin/ar71xx/openwrt-ar71xx-nand-root.jffs2-64k bs=128k conv=sync
21+1 records in
22+0 records out
2883584 bytes (2.9 MB) copied, 0.0110662 s, 261 MB/s
cp -fpR /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw /home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/root.squashfs
cp: cannot stat `/home/van/Openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw': No such file or directory
make[5]: *** [install] Error 1
make[5]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/van/Openwrt/trunk/target/linux/ar71xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/van/Openwrt/trunk/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/van/Openwrt/trunk'
make[1]: *** [/home/van/Openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/van/Openwrt/trunk'
make: *** [world] Error 2
van@van-pc:~/Openwrt/trunk$