From ff19b12f08a9a15cdbf8cf9363ccb1d64d9d8223 Mon Sep 17 00:00:00 2001 From: Matthias Badaire Date: Wed, 4 Jul 2001 19:35:54 +0000 Subject: Ia64 Adaptation --- make_boot_img | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'make_boot_img') 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(.*)/) { -- cgit v1.2.1