From: Andrei Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg
Date: Mon, 15 Feb 2016 06:41:16 +0300 [thread overview]
Message-ID: <56C148DC.8020305@gmail.com> (raw)
In-Reply-To: <68B03F79-6B46-4AEA-A573-9782E56BADE3@oracle.com>
14.02.2016 23:58, Seth Goldberg пишет:
>
>
>> On Feb 14, 2016, at 5:26 AM, Vladimir 'phcoder' Serbinenko
>> <phcoder@gmail.com> wrote:
>>
>>
>>
>> Le dim. 14 févr. 2016 14:21, Shea Levy <shea@shealevy.com> a écrit
>> :
>>> This patch uses grub_file_open, but the android bootimg is a
>>> disk, not a file. You mentioned something about file_offset_open,
>>> but that also expects an input file, not a disk. Should I modify
>>> your patch with my code I wrote to create a grub_file_t from an
>>> android_bootimg disk device, or is there another approach?
>>
>> We already have syntax (hd0,1)+<number of sectors> that we use for
>> i.a. chainloader perhaps we should extend it to have (hd0,1)+
>> meaning whole disk as file? Or even allow the disk to be opened
>> with GRUB_file_open? I'd like a second opinion on this. Andrei,
>> what do you think?
>
> I think syntax that allows a whole disk to be specified (e.g. To the
> multiboot module command so a disk image can be passed that way) is a
> great idea.
>
The problem is that "whole" disk may not have define length which in
turn means quite a lot of rewrite everywhere (most loaders assume that
file they get has size and this size is what they load).
I assume you do know in advance whether you have file or device. In
which case what about extending probe to return size and do
probe --set size --size $dev
multiboot ($dev)+$size
next prev parent reply other threads:[~2016-02-15 3:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 20:47 [PATCH v3 0/3] Android bootimg support Shea Levy
2016-02-08 20:47 ` [PATCH v3 1/3] Add helper functions to interact with android bootimg disks Shea Levy
2016-02-12 17:42 ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-12 17:53 ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-08 20:47 ` [PATCH v3 2/3] i386: Add support for loading from android bootimg Shea Levy
2016-02-12 17:50 ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-12 19:19 ` Shea Levy
2016-02-12 19:22 ` Vladimir 'phcoder' Serbinenko
2016-02-12 19:34 ` Shea Levy
2016-02-12 21:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2016-02-13 10:32 ` Andrei Borzenkov
2016-02-14 13:21 ` Shea Levy
2016-02-14 13:26 ` Vladimir 'phcoder' Serbinenko
2016-02-14 17:20 ` Andrei Borzenkov
2016-02-14 20:58 ` Seth Goldberg
2016-02-15 3:41 ` Andrei Borzenkov [this message]
2016-02-15 4:13 ` Seth Goldberg
2016-02-15 10:55 ` Vladimir 'phcoder' Serbinenko
2016-02-08 20:47 ` [PATCH v3 3/3] Add support for loading initrd " Shea Levy
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=56C148DC.8020305@gmail.com \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.