Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17916 closed defect (invalid)

build fails with jffs2 / wndr3700v4

Reported by: syzop@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

With trunk from Sep 17 building squashfs all goes well, but as soon as I enable build jffs2 then the build process fails in a cryptic way:

# append the fake rootfs image to the kernel, it will reside in the last
# erase block of the kernel partition
cat /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage >> /root/wifi/dev/openwrt/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
/root/wifi/dev/openwrt/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /root/wifi/dev/openwrt/include/device_table.txt --pad -e 64KiB -o /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k -d /root/wifi/dev/openwrt/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: 77 blocks (49880) decompr: 0 blocks
zlib (prio:80) - compr: 0 blocks (0/0) decompr: 0 blocks
lzma (prio:70) + compr: 1622 blocks (2576882/5426626) decompr: 0 blocks

rtime (prio:50) + compr: 6 blocks (4260/5556) decompr: 0 blocks

Compression errors: 0
/root/wifi/dev/openwrt/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /root/wifi/dev/openwrt/include/device_table.txt -e 64KiB -o /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k-raw -d /root/wifi/dev/openwrt/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: 77 blocks (49880) decompr: 0 blocks
zlib (prio:80) - compr: 0 blocks (0/0) decompr: 0 blocks
lzma (prio:70) + compr: 1622 blocks (2576882/5426626) decompr: 0 blocks

rtime (prio:50) + compr: 6 blocks (4260/5556) decompr: 0 blocks

Compression errors: 0
echo -ne '\xde\xad\xc0\xde' >> /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k
dd if=/root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k of=/root/wifi/dev/openwrt/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.00157473 s, 1.8 GB/s
cp -fpR /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/root.squashfs
cp: cannot stat `/root/wifi/dev/openwrt/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 `/root/wifi/dev/openwrt/target/linux/ar71xx/image'
make[4]:
* [install] Error 2
make[4]: Leaving directory `/root/wifi/dev/openwrt/target/linux/ar71xx'
make[3]: * [install] Error 2
make[3]: Leaving directory `/root/wifi/dev/openwrt/target/linux'
make[2]:
* [target/linux/install] Error 2
make[2]: Leaving directory `/root/wifi/dev/openwrt'
make[1]: * /root/wifi/dev/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install Error 2
make[1]: Leaving directory `/root/wifi/dev/openwrt'
make:
* [world] Error 2

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by syzop@…

Full log available at: https://www.vulnscan.org/tmp/jffs.build.fails.log (warning: 20MB)

And here's a proper paste of last 50+ lines:

mkimage -A mips -O linux -T filesystem -C none -a 0xbf070000 -e 0xbf070000 -n 'MIPS OpenWrt fakeroot' -d /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300 -M 0x33373033 /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage
Image Name:   MIPS OpenWrt fakeroot
Created:      Thu Sep 18 11:20:19 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 /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/fakeroot-wndr4300.uImage >> /root/wifi/dev/openwrt/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
/root/wifi/dev/openwrt/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /root/wifi/dev/openwrt/include/device_table.txt --pad -e 64KiB -o /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k -d /root/wifi/dev/openwrt/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: 77 blocks (49880)  decompr: 0 blocks
      zlib (prio:80) - compr: 0 blocks (0/0)  decompr: 0 blocks
      lzma (prio:70) + compr: 1622 blocks (2576882/5426626)  decompr: 0 blocks
     rtime (prio:50) + compr: 6 blocks (4260/5556)  decompr: 0 blocks
Compression errors: 0
/root/wifi/dev/openwrt/staging_dir/host/bin/mkfs.jffs2 --big-endian --squash-uids -v -X rtime -X lzma --compression-mode=size -x zlib -D /root/wifi/dev/openwrt/include/device_table.txt -e 64KiB -o /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k-raw -d /root/wifi/dev/openwrt/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: 77 blocks (49880)  decompr: 0 blocks
      zlib (prio:80) - compr: 0 blocks (0/0)  decompr: 0 blocks
      lzma (prio:70) + compr: 1622 blocks (2576882/5426626)  decompr: 0 blocks
     rtime (prio:50) + compr: 6 blocks (4260/5556)  decompr: 0 blocks
Compression errors: 0
echo -ne '\xde\xad\xc0\xde' >> /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k
dd if=/root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.jffs2-64k of=/root/wifi/dev/openwrt/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.00157473 s, 1.8 GB/s
cp -fpR /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/root.squashfs-raw /root/wifi/dev/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_nand/tmp/root.squashfs
cp: cannot stat `/root/wifi/dev/openwrt/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 `/root/wifi/dev/openwrt/target/linux/ar71xx/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/root/wifi/dev/openwrt/target/linux/ar71xx'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/root/wifi/dev/openwrt/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/root/wifi/dev/openwrt'
make[1]: *** [/root/wifi/dev/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory `/root/wifi/dev/openwrt'
make: *** [world] Error 2

comment:2 Changed 3 years ago by blogic

  • Resolution set to invalid
  • Status changed from new to closed

its a nand device use ubifs and not jffs2 please

comment:3 Changed 3 years ago by syzop@…

Ok, thank you. ubifs... that is what the default squashfs build does I guess then.. even though it doesn't say anywhere in menuconfig.

In any case, may I suggest to disable the jffs2 option for NAND devices?
I mistakenly concluded (due to the unclear error) that the WNDR3700v4 code was still too experimental, had been waiting for months already.. apparently for nothing.

Anyway, not for me, but for any future users. Just a suggestion.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.