]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - lfs/flash-images
kernel: add arm7 multiplatform kernel.
[people/teissler/ipfire-2.x.git] / lfs / flash-images
index a49082f1c0b9a87324976044830187ca51c440cc..1a7134d380903cc846d1a233fb68ca1a5e754cbe 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # 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        #
@@ -72,6 +72,10 @@ else
 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
@@ -82,7 +86,7 @@ endif
        # 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
@@ -116,7 +120,7 @@ ifneq "$(MACHINE_TYPE)" "arm"
        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...
@@ -178,7 +182,7 @@ ifneq "$(MACHINE_TYPE)" "arm"
        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