From: Marco Gerards <metgerards@student.han.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: RISC OS/ARM port
Date: Fri, 28 May 2004 16:48:56 +0200 [thread overview]
Message-ID: <87r7t438vb.fsf@marco.marco-g.com> (raw)
In-Reply-To: <200405272322.41029.T.E.Baldwin99@members.leeds.ac.uk> (Timothy Baldwin's message of "Thu, 27 May 2004 23:22:28 +0100")
Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk> writes:
> I intend to add to the RISC OS port I am working on support for the native
> RISC OS filing system API, with paths such as:
>
> (native)ADFS::0/$/boot/grub/normal.mod
> (native_untranslated)ADFS::0.$.boot.grub.normal/mod
> (native)<foobar$Dir>/boot/grub/normal.mod
> (native_untranslated)<foobar$Dir>.boot.grub.normal/mod
Personally I do not like this too much. That means GRUB works
different on every architecture. For the PPC port I worked hard on
keeping sane device name.
On the apple there are aliases that can be used to lookup the
open firmware device. Some of these aliases are: hd, cd, zip, ata0
(IIRC). I like that much more than the device paths for open firmware
that are used by yaboot:
/pci@80000000/mac-io@10/ata0@20000/disk@0,0
You can not expect a user to type that all the time, it sucks! :)
Of course it should be possible to use the full device path on the
PPC.
How about RISC OS? Can't you just do the same? Is it, for example,
possible to enumerate the devices? If it is not, can you please keep
the syntax like: ($DEVICE)/$PATH?
I assume that ADFS is the filesystem of RISC OS. Can't you access the
raw disk and write a filesystem for GRUB to access the filesystem? I
like that better because BIOSes are often limited or buggy and it
becomes easier to use older BIOSes without this fancy support, etc.
Perhaps I am just misunderstanding the issue, I have never used RISC
OS, I don't even know what it is. But what I want to say is that we
should keep things consistent.
> The member "fs" is moved from "struct grub_net" to "struct grub_device", to
> allow for filing systems which don't use grub's disk or network support.
Why is this required? Normally you can just write a filesystem to
access the disk. But this is just what I said above.
> My RISC OS port now has support for discs, modules and both rescue mode and
> normal mode command prompts work, except some console problems.
This is really nice!
What are the console problems? Doesn't the console support something
similar like ANSI or VT100 or such?
> To deal with variable console sizes I propose creating a new member in "struct
> grub_term", and removing asumptions:
Absolutely, that assumption should be changed. And it should be
possible to resize the terminal.
> grub_uint16_t (*getsize) (void);
Shouldn't that be:
void (*getxy) (grub_uint16_t *width, grub_uint16_t *height);
> The width of the terminal croodinates should be increased as they are in
> danger of overflowing, I suggest to 16 bits.
I agree. The same is true for `getxy', I think this interface would
be better:
void (*getxy) (grub_uint16_t *x, grub_uint16_t *y);
> And finally a fix for a couple of (almost) null pointer derefrences, patch
> attached.
That's great. Unfortunately I don't have much time next weeks to do
everything I planned to do. After that I can work almost full time on
Free Software projects during my summer vacation.
Hopefully someone else can have a look at your patch and check it in
if it is correct, it doesn't seem to be much work.
Thanks,
Marco
next prev parent reply other threads:[~2004-05-28 14:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-22 15:21 RISC OS/ARM port Timothy Baldwin
2004-05-23 17:03 ` Yoshinori K. Okuji
2004-05-23 17:24 ` Stefan Reinauer
2004-05-27 22:22 ` Timothy Baldwin
2004-05-28 14:48 ` Marco Gerards [this message]
2004-05-31 11:09 ` Timothy Baldwin
2004-06-01 17:30 ` Yoshinori K. Okuji
2004-06-08 15:21 ` Timothy Baldwin
-- strict thread matches above, loose matches on Subject: below --
2004-05-22 12:46 Timothy Baldwin
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=87r7t438vb.fsf@marco.marco-g.com \
--to=metgerards@student.han.nl \
--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.