/home/matteo/src/openwrt/x86/staging_dir/host/bin/mksquashfs4 /home/matteo/src/openwrt/x86/build_dir/target-i386_uClibc-0.9.32/root-x86 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -processors 1 Parallel mksquashfs: Using 1 processor Creating 4.0 filesystem on /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs, block size 131072. [============================================================================================================================================-] 511/511 100% Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072 compressed data, compressed metadata, compressed fragments, no xattrs duplicates are removed Filesystem size 2529.26 Kbytes (2.47 Mbytes) 37.12% of uncompressed filesystem size (6812.94 Kbytes) Inode table size 5370 bytes (5.24 Kbytes) 22.52% of uncompressed inode table size (23849 bytes) Directory table size 7172 bytes (7.00 Kbytes) 49.04% of uncompressed directory table size (14625 bytes) Number of duplicate files found 5 Number of inodes 710 Number of files 483 Number of fragments 21 Number of symbolic links 169 Number of device nodes 0 Number of fifo nodes 0 Number of socket nodes 0 Number of directories 58 Number of ids (unique uids + gids) 1 Number of uids 1 root (0) Number of gids 1 root (0) /home/matteo/src/openwrt/x86/staging_dir/host/bin/padjffs2 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs 4 8 64 128 256 padding image to 00279000 padding image to 0027a000 padding image to 00280000 # left here because the image builder doesnt need these install -d -m0755 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub/boot/grub cp -fpR /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/stage1 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/stage2 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/e2fs_stage1_5 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub/boot/grub/ cp -fpR /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/bzImage /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub/boot/vmlinuz sed -e 's#@SERIAL_CONFIG@#serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1#g' -e 's#@TERMINAL_CONFIG@#terminal --timeout=2 serial#g' -e 's#@CMDLINE@#block2mtd.block2mtd=/dev/sda2,65536,rootfs root=/dev/mtdblock0 rootfstype=squashfs rootwait console=ttyS0,115200n8#g' ./menu.lst > /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub/boot/grub/menu.lst PADDING="y" PATH="/home/matteo/src/openwrt/x86/staging_dir/toolchain-i386_gcc-4.6-linaro_uClibc-0.9.32/bin:/home/matteo/src/openwrt/x86/staging_dir/host/bin:/home/matteo/src/openwrt/x86/staging_dir/toolchain-i386_gcc-4.6-linaro_uClibc-0.9.32/bin:/home/matteo/src/openwrt/x86/staging_dir/host/bin:/home/matteo/src/openwrt/x86/staging_dir/toolchain-i386_gcc-4.6-linaro_uClibc-0.9.32/bin:/home/matteo/src/openwrt/x86/staging_dir/host/bin:/home/matteo/src/openwrt/x86/staging_dir/toolchain-i386_gcc-4.6-linaro_uClibc-0.9.32/bin:/home/matteo/src/openwrt/x86/staging_dir/host/bin:/home/matteo/src/openwrt/x86/staging_dir/toolchain-i386_gcc-4.6-linaro_uClibc-0.9.32/bin:/home/matteo/src/openwrt/x86/staging_dir/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" ./gen_image_x86.sh /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img 4 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub 48 /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs + '[' 5 == 5 ']' + OUTPUT=/home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img + KERNELSIZE=4 + KERNELDIR=/home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub + ROOTFSSIZE=48 + ROOTFSIMAGE=/home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs + rm -f /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img + head=16 + sect=63 + cyl=105 ++ ptgen -o /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img -h 16 -s 63 -p 4m -p 48m + set 32256 4612608 4677120 50545152 + KERNELOFFSET=63 + KERNELSIZE=9009 + ROOTFSOFFSET=9135 + ROOTFSSIZE=98721 + BLOCKS=4503 + '[' -n y ']' + dd if=/dev/zero of=/home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img bs=512 seek=9135 conv=notrunc count=98721 98721+0 records in 98721+0 records out 50545152 bytes (51 MB) copied, 0.202477 s, 250 MB/s + dd if=/home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.squashfs of=/home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img bs=512 seek=9135 conv=notrunc 5120+1 records in 5120+1 records out 2621444 bytes (2.6 MB) copied, 0.00742673 s, 353 MB/s + '[' -n '' ']' + genext2fs -d /home/matteo/src/openwrt/x86/build_dir/linux-x86_alix2/root.grub -b 4503 /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img.kernel + dd if=/home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img.kernel of=/home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img bs=512 seek=63 conv=notrunc 9006+0 records in 9006+0 records out 4611072 bytes (4.6 MB) copied, 0.014562 s, 317 MB/s + rm -f /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img.kernel + which chpax + grub --batch --no-curses --no-floppy --device-map=/dev/null GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> device (hd0) /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img grub> geometry (hd0) 105 16 63 drive 0x80: C/H/S = 105/16/63, The number of sectors = 105840, /home/matteo/src/openwrt/x86/bin/x86/openwrt-x86-alix2-combined-squashfs.img Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x83 grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 21 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+21 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed Error 6: Mismatched or corrupt version of stage1/stage2 grub> quit