###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2011 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2012 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
IMGpart := /install/images/part_area
IMGboot := /install/images/bootfs
# don't change SIZEboot this without checking Image size
-SIZEboot := 50
+SIZEboot := 64
IMGroot := /install/images/rootfs
SIZEroot := 600
dd bs=1k if=/dev/zero of=$(IMGpart) count=16
# Create images for filesystems
- dd bs=1K if=/dev/zero of=$(IMGboot) count=51184 # 50MB-16K
+ dd bs=1K if=/dev/zero of=$(IMGboot) count=65520 # 64MB-16K
dd bs=1M if=/dev/zero of=$(IMGroot) count=$(SIZEroot)
# Format them
endif
mkfs.ext4 -O ^has_journal,extent -F $(IMGroot)
+ # Most systems that use Flashimages has no RTC at boot
+ # so the interval check should disables
+ tune2fs -i0 $(IMGroot)
+
# Mount Images
mount -o loop $(IMGroot) $(MNThdd)
mkdir $(MNThdd)/boot
# Install MLO and uboot first
ifeq "$(MACHINE_TYPE)" "arm"
cp -v /boot/MLO $(MNThdd)/boot/
- cp -v /boot/u-boot.bin $(MNThdd)/boot/
+ cp -v /boot/u-boot.img $(MNThdd)/boot/
sync
umount $(MNThdd)/boot
mount -o loop $(IMGboot) $(MNThdd)/boot
ln -s grub.conf $(MNThdd)/boot/grub/menu.lst
# Copy grub files manually
- cp -f $(MNThdd)/usr/share/grub/i386-pc/* $(MNThdd)/boot/grub/
+ cp -f $(MNThdd)/usr/lib/grub/i386-pc/* $(MNThdd)/boot/grub/
endif
# Setup symlink for partresize at first boot...
sed -i -e "s| panic=10 | console=ttyS0,115200n8 panic=10 |g" $(MNThdd)/boot/grub/grub.conf
else
sed -i -e "s| console=tty1 | console=ttyAMA0,115200n8 |g" $(MNThdd)/boot/cmdline.txt
- sed -i -e "s| console=tty1 omapfb.mode=dvi:800x600MR-16@60 | console=ttyO2,115200n8 |g" $(MNThdd)/boot/boot.script
+ sed -i -e "s| console=tty1 | console=ttyO2,115200n8 |g" $(MNThdd)/boot/boot.script
cd $(MNThdd)/boot && ./convert_bootscript
endif