Openbmc archive mirror
 help / color / mirror / Atom feed
From: Paul Fertser <fercerpav@gmail.com>
To: openbmc@lists.ozlabs.org
Cc: Paul Fertser <fercerpav@gmail.com>,
	Igor Kononenko <i.kononenko@yadro.com>
Subject: [PATCH downstream-hack dev-6.6 0/6] Virtual Media DVD support
Date: Mon, 18 Mar 2024 23:34:39 +0300	[thread overview]
Message-ID: <20240318203445.29036-1-fercerpav@gmail.com> (raw)

Microsoft distributes their Windows Server images as ".iso" files suitable for
burning on DVD medium.

This patch series allows to use such images directly via the Virtual Medium
(jsnbd + Linux USB gadget subsystem) OpenBMC feature provided
functions/mass_storage.usb0/lun.0/cdrom is set to 1 by /etc/nbd-proxy/state
hook.

The code was taken from the latest rejected upstream submission [0] and massaged
to apply to the current dev-6.6 branch. Since the patches were written the
upstream gained support for images larger than 2 TB [1], unfortunately applying
this series disables it.

Tested by installing Windows Server via Virtual Media with AST2600-based BMC.

I'm sharing these hoping it might be useful to community, without any particular
plans or desire to integrate and maintain them downstream (though I might post
an updated version in the future if applying becomes non-trivial again).

An alternative to using this series for installing Windows on bare metal is to
educate your customers about a much faster (the files would be downloaded using
host network card and HTTP + CIFS) and easier to automate way provided by iPXE +
wimboot [2], also available as part of netboot.xyz [3].

[0] https://lore.kernel.org/all/20210626211820.107310-1-i.kononenko@yadro.com/
[1] https://lore.kernel.org/r/20210921145901.11952-1-nikita.yoush@cogentembedded.com
[2] https://ipxe.org/howto/winpe
[3] https://netboot.xyz/docs/kb/pxe/windows/

Igor Kononenko (6):
  usb:gadget:mass-storage: Improve the signature of SCSI handler
    function
  usb:gadget:mass-storage: refactoring the SCSI command handling
  fms: Add TOC/PMA/ATIP DVD-ROM capabilities
  fms: Support the DVD/BD images size over 2.1Gb
  FMS: Add the SCSI Get Configuration command.
  FMS: Add SCSI Read Disc Information command.

 drivers/ata/libata-zpodd.c                   |    8 +-
 drivers/usb/gadget/function/f_mass_storage.c | 1007 ++++++++++-----
 drivers/usb/gadget/function/storage_common.c |   17 +-
 drivers/usb/gadget/function/storage_common.h |    5 +
 include/scsi/scsi_proto.h                    |    2 +
 include/uapi/linux/cdrom.h                   | 1208 +++++++++++++++++-
 6 files changed, 1857 insertions(+), 390 deletions(-)


base-commit: f8b04488b060b155f8b6769aa70412c3630b03f0
-- 
2.34.1


             reply	other threads:[~2024-03-18 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-18 20:34 Paul Fertser [this message]
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 1/6] usb:gadget:mass-storage: Improve the signature of SCSI handler function Paul Fertser
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 2/6] usb:gadget:mass-storage: refactoring the SCSI command handling Paul Fertser
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 3/6] fms: Add TOC/PMA/ATIP DVD-ROM capabilities Paul Fertser
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 4/6] fms: Support the DVD/BD images size over 2.1Gb Paul Fertser
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 5/6] FMS: Add the SCSI Get Configuration command Paul Fertser
2024-03-18 20:34 ` [PATCH downstream-hack dev-6.6 6/6] FMS: Add SCSI Read Disc Information command Paul Fertser

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=20240318203445.29036-1-fercerpav@gmail.com \
    --to=fercerpav@gmail.com \
    --cc=i.kononenko@yadro.com \
    --cc=openbmc@lists.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).