5 messages in com.xensource.lists.xen-ia64-develRE: [Xen-ia64-devel] [Patch][Update] ...| From | Sent On | Attachments |
|---|---|---|
| Magenheimer, Dan (HP Labs Fort Collins) | 21 Dec 2005 08:37 | |
| Akio Takebe | 21 Dec 2005 22:00 | |
| Akio Takebe | 22 Dec 2005 00:25 | .patch |
| Magenheimer, Dan (HP Labs Fort Collins) | 22 Dec 2005 16:51 | |
| Magenheimer, Dan (HP Labs Fort Collins) | 23 Dec 2005 13:15 |
| Subject: | RE: [Xen-ia64-devel] [Patch][Update] initrd and cmdline support forDomainU![]() |
|---|---|
| From: | Akio Takebe (take...@jp.fujitsu.com) |
| Date: | 12/22/2005 12:25:39 AM |
| List: | com.xensource.lists.xen-ia64-devel |
| Attachments: |
Hi, Dan
My patch is not completely committed. I make a small patch. This is the part which wasn't committed.
Best Regards,
Akio Takebe
Signed-off-by: Akio Takebe <take...@jp.fujitsu.com>
diff -r 934470721c46 xen/arch/ia64/xen/dom_fw.c --- a/xen/arch/ia64/xen/dom_fw.c Wed Dec 21 19:18:19 2005 +++ b/xen/arch/ia64/xen/dom_fw.c Thu Dec 22 17:01:50 2005 @@ -861,9 +861,14 @@ bp->console_info.orig_x = 0; bp->console_info.orig_y = 24; bp->fpswa = 0; - bp->initrd_start = (dom0_start+dom0_size) - - (PAGE_ALIGN(ia64_boot_param->initrd_size) + 4*1024* 1024); - bp->initrd_size = ia64_boot_param->initrd_size; + if (d == dom0){ + bp->initrd_start = (dom0_start+dom0_size) - + (PAGE_ALIGN(ia64_boot_param->initrd_size) + 4* 1024*1024); + bp->initrd_size = ia64_boot_param->initrd_size; + }else{ + bp->initrd_start = d->arch.initrd_start; + bp->initrd_size = d->arch.initrd_len; + } printf(" initrd start %0xlx", bp->initrd_start); printf(" initrd size %0xlx", bp->initrd_size);
Hi, Dan and all
cmdline's sample is the bellow
---------------------- kernel = "/boot/vmlinux-2.6.12-xenU" ramdisk = "/boot/initrd-2.6.12-xenU.img" memory = 256 name = "rhel4-2" disk = [ 'file:/home/takebe/rhel4.img,hda1,w' ] root = "/dev/hda1 ro" extra = "nomca nosmp xencons=tty0 console=tty0 3" -----------------------
Today I'm trying to build and boot new changeset. But I cannot boot DomU. I will update my recipe, please wait.
My environment is ; Machine : Tiger4 Dom0&DomU OS : RHEL4 U2 changeset : 8424
Best Regards,
Akio Takebe
Committed. I added some code for backwards compatibility that uses the old cmdline if none is specified.
Could you post instructions on how to change the cmdline for domU boots? Eventually after everyone starts using this correctly, we should remove the code for the old default.
Thanks, Dan





.patch