summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img28
1 files changed, 27 insertions, 1 deletions
diff --git a/make_boot_img b/make_boot_img
index 6afa19df9..ca226f309 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -72,7 +72,7 @@ sub initrd {
my $tar = "$instdir/stage1-data/stage1.tar.bz2";
__ "$sudo umount $tmp $mnt 2>/dev/null";
- _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($type eq "all" ? 4000 : 2000);
+ _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($arch =~ /ia64/ ? ($type eq "all" ? 12000 : 12000) : ($type eq "all" ? 4000 : 2000));
_ "$mke2fs $tmp";
_ "$sudo mount -t ext2 $tmp $mnt -o loop";
@@ -214,6 +214,32 @@ sub boot_img_alpha {
_ "df $mnt";
}
+sub boot_img_ia64 {
+ my ($mnt, $img, $kernel) = @_;
+
+ __ "$sudo umount $mnt 2>/dev/null";
+ _ "dd if=/dev/zero of=$img bs=1k count=12000";
+ _ "mkdosfs $img";
+ _ "$sudo mount -t vfat $img $mnt -o loop,umask=000";
+ _ "$sudo cp -f $kernel $mnt/vmlinux";
+ _ "cp -f images/$type.rdz $mnt/$type.rdz";
+ _ "$sudo cp -f tools/ia64/elilo.efi $mnt";
+ output("$mnt/elilo.conf", "
+prompt
+timeout=50
+
+image=vmlinux
+ label=linux
+ root=/dev/ram3
+ initrd=$type.rdz
+ append=\"ramdisk_size=120000\"
+ read-only
+");
+ _ "sync";
+ _ "df $mnt";
+
+}
+
sub boot_img_sparc {
my ($mnt, $img) = @_;
if ($type =~ /^live(.*)/) {