LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Nasrat <pnasrat@redhat.com>
To: Doug Maxey <dwm@bebe.enoyolf.org>
Cc: yaboot-devel@ozlabs.org, Doug Maxey <dwm@enoyolf.org>,
	Linux PowerPC List <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] yaboot: enable boot from iscsi target via ethernet devices on js20.
Date: Tue, 16 May 2006 16:20:47 -0400	[thread overview]
Message-ID: <1147810848.4115.33.camel@enki.eridu> (raw)
In-Reply-To: <200604280605.k3S65tjv012348@bebe.enoyolf.org>

On Fri, 2006-04-28 at 01:05 -0500, Doug Maxey wrote:
> Certain levels of JS20 firmware will allow the system to boot from an
> iscsi target.  System OFW accomplishes this by setting up a virtual
> disk device with parameters.  These parameters, when passed back to
> OFW by yaboot, directs the FW to use virtual device over the ethernet
> port that will then access iscsi target as a block device.  This patch
> extracts those parameters from the property of the virtual device and
> passes them back to OFW to indicate the kernel is to be retrieved via
> the iscsi protocol.
> 
> Signed-off-by: Doug Maxey <dwm@austin.ibm.com>

Sorry for the delay in getting back to you - a few initial questions:

> diff --git a/second/file.c b/second/file.c

> @@ -185,16 +188,45 @@ parse_device_path(char *imagepath, char 
>  
>       if (!imagepath)
>  	  return 0;
> +
> +      /*
> +       * Do preliminary checking for an iscsi device; it may appear as
> +       * pure a network device (device_type == "network") if this is
> +       * ISWI.  This is the case on IBM systems doing an iscsi OFW
> +       * boot.
> +       */
> +     if (strstr(imagepath, ",iscsi"))

Is the , always guaranteed to be there - eg if I have boot
eth1:iscsi,ISCSIARGS  won't this check fail.

> diff --git a/second/prom.c b/second/prom.c
> index 5ec06b8..9bc5415 100644
> --- a/second/prom.c
> +++ b/second/prom.c
> @@ -174,6 +174,9 @@ prom_get_devtype (char *device)
>       int        result;
>       char       tmp[64];
>  
> +     if (strstr(device, ",iscsi"))
> +	  device = strcpy(tmp, "/vdevice/gscsi/disk");
> +

Ditto here.

Paul

  reply	other threads:[~2006-05-16 20:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-28  6:05 [PATCH] yaboot: enable boot from iscsi target via ethernet devices on js20 Doug Maxey
2006-05-16 20:20 ` Paul Nasrat [this message]
2006-05-16 20:40   ` Doug Maxey
2006-06-01 20:56     ` Doug Maxey
2006-06-12 14:46       ` Paul Nasrat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147810848.4115.33.camel@enki.eridu \
    --to=pnasrat@redhat.com \
    --cc=dwm@bebe.enoyolf.org \
    --cc=dwm@enoyolf.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=yaboot-devel@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox