Bug#516458: HFS module fails to read some files

View: New views
10 Messages — Rating Filter:   Alert me  

Bug#516458: HFS module fails to read some files

by Michel Dänzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: grub-ieee1275
Version: 1.96+20081201-1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The HFS filesystem module fails to read some files, in particular files with
an underscore in the filename. This makes GRUB2 unable to load _linux.mod
from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
yaboot to GRUB2.

In the upstream mailing list sub-thread starting at
http://lists.gnu.org/archive/html/grub-devel/2009-01/msg00156.html I
explained the problem and how it can be fixed.


- -- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (102, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.28.4
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-ieee1275 depends on:
ii  bc                       1.06.94-3       The GNU bc arbitrary precision cal
ii  grub-common              1.96+20081201-1 GRand Unified Bootloader, version
ii  powerpc-ibm-utils        1.1.0-1         utilities for maintenance of IBM P
ii  powerpc-utils            1.1.3-22        Various utilities for Linux/PowerP

grub-ieee1275 recommends no packages.

Versions of packages grub-ieee1275 suggests:
pn  os-prober                     <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJoBu/WoGvjmrbsgARAmTtAJ9dwaB133JRsmxFUzbFh4b2cYwvXACfTggL
NKPGmVzlxgGgu4TjiCGJMSA=
=lskf
-----END PGP SIGNATURE-----



--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Regarding GRUB 2 (was: Re: Bug#516458: HFS module fails to read some files)

by Rogério Brito :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, Michel.

I'm just catching up with some old e-mails, and I found this one.

On Feb 21 2009, Michel Dänzer wrote:
> The HFS filesystem module fails to read some files, in particular files with
> an underscore in the filename. This makes GRUB2 unable to load _linux.mod
> from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
> yaboot to GRUB2.
(...)

What are your experiences with grub-ieee1275?

I tried some months ago to install it and all that I got was some
complaint about not knowing what to do with the graphical framebuffer (I
don't remember the literal message). How does it work for you?

I'm still keeping an installation of MacOS X 10.4 on my iBook G3 and I
would like to keep it.


Thanks, Rogério Brito.

--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2 (was: Re: Bug#516458: HFS module fails to read some files)

by Michel Dänzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-09-03 at 13:59 -0300, Rogério Brito wrote:
>
> On Feb 21 2009, Michel Dänzer wrote:
> > The HFS filesystem module fails to read some files, in particular files with
> > an underscore in the filename. This makes GRUB2 unable to load _linux.mod
> > from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
> > yaboot to GRUB2.
> (...)

BTW, this bug is fixed now.

> What are your experiences with grub-ieee1275?
>
> I tried some months ago to install it and all that I got was some
> complaint about not knowing what to do with the graphical framebuffer (I
> don't remember the literal message).

Sounds like bug #520846? Looks like that should also be fixed now.

> How does it work for you?

Quite well, though there are still bugs that can prevent it from working
quite out of the box on PowerMacs. E.g. I still have to manually remove
search commands from /boot/grub/grub.cfg, or it fails to boot the Linux
kernel. However, even with problems like that, I like it much better
than yaboot because the boot time user interface is much more powerful.


> I'm still keeping an installation of MacOS X 10.4 on my iBook G3 and I
> would like to keep it.

AFAIK grub2 still can't boot Mac OS on PowerMacs, but you can always
boot it by holding the alt/option key during OF initialization.


In summary I'd say that it can be made to work by an experienced user,
but you should take it slowly and make sure you can go back to a known
working state at each step in case something goes wrong. In particular,
only change the boot-device variable in NVRAM after you've successfully
booted grub2 manually from an OF prompt.


--
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Jörg Sommer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Rogério,

Rogério Brito <rbrito@...> wrote:
> On Feb 21 2009, Michel Dänzer wrote:
>> The HFS filesystem module fails to read some files, in particular files with
>> an underscore in the filename. This makes GRUB2 unable to load _linux.mod
>> from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
>> yaboot to GRUB2.
> (...)
>
> What are your experiences with grub-ieee1275?

Since I've figured out how to get it running [1], it works like a charm. …
eemm, not fully, after an kernel update, you have to run update-grub
manually, but that's it.

[1] http://lists.debian.org/debian-powerpc/2009/06/msg00064.html

> I'm still keeping an installation of MacOS X 10.4 on my iBook G3 and I
> would like to keep it.

It's possible, pretty much the same like on yaboot. Or you can use
os-prober, but I didn't and doesn't know if it works.

Bye, Jörg.
--
“UNIX was not designed to stop people from doing stupid things, because
 that would also stop them from doing clever things.”
            (Doug Gwyn)


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Michel Dänzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-09-06 at 09:49 +0000, Jörg Sommer wrote:

>
> Rogério Brito <rbrito@...> wrote:
> > On Feb 21 2009, Michel Dänzer wrote:
> >> The HFS filesystem module fails to read some files, in particular files with
> >> an underscore in the filename. This makes GRUB2 unable to load _linux.mod
> >> from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
> >> yaboot to GRUB2.
> > (...)
> >
> > What are your experiences with grub-ieee1275?
>
> Since I've figured out how to get it running [1], it works like a charm. …
> eemm, not fully, after an kernel update, you have to run update-grub
> manually, but that's it.

I have

postinst_hook = update-grub2
postrm_hook   = update-grub2

in /etc/kernel-img.conf for that.

So the search commands in the generated grub.cfg aren't causing problems
for you?


> > I'm still keeping an installation of MacOS X 10.4 on my iBook G3 and I
> > would like to keep it.
>
> It's possible, pretty much the same like on yaboot. Or you can use
> os-prober, but I didn't and doesn't know if it works.

IME it detects the Mac OS installation and puts an entry for it in
grub.cfg, but apparently grub2 can only boot Mac OS on x86 at this
point. Not a real problem for me as there's always the alt/option key
boot menu.


--
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Rogério Brito :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, Michel and Jörg.

On Sep 08 2009, Michel Dänzer wrote:
> On Sun, 2009-09-06 at 09:49 +0000, Jörg Sommer wrote:
> > It's possible, pretty much the same like on yaboot. Or you can use
> > os-prober, but I didn't and doesn't know if it works.
>
> IME it detects the Mac OS installation and puts an entry for it in
> grub.cfg, but apparently grub2 can only boot Mac OS on x86 at this
> point. Not a real problem for me as there's always the alt/option key
> boot menu.

I can live with the option key to select OSes.

Well, I can even put MacOS X out of my HD to free space for Debian, now
that it seems that the Linux Kernel supports my hardware completely (the
last remaining piece was wifi---with a very, very long debug session with the
rt2x00 maintainer).

Now, my only fear is that of X slowly "discarding" support for r128. :-)


Thanks for all your comments, Rogério Brito.

--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


X with r128 video card on old PowerMac G3 -- was [Re: Regarding GRUB 2]

by Rick Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 8, 2009, at 7:41 AM, Rogério Brito wrote:

> Now, my only fear is that of X slowly "discarding" support for  
> r128. :-)


I have had very little success getting X to work with the r128 card  
and a 1280x1024 flat-panel monitor.

Do you have any magic you can share?

Thanks!

Rick

--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Jörg Sommer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Michel,

Michel Dänzer <daenzer@...> wrote:

> On Sun, 2009-09-06 at 09:49 +0000, Jörg Sommer wrote:
>>
>> Rogério Brito <rbrito@...> wrote:
>> > On Feb 21 2009, Michel Dänzer wrote:
>> >> The HFS filesystem module fails to read some files, in particular files with
>> >> an underscore in the filename. This makes GRUB2 unable to load _linux.mod
>> >> from an HFS filesystem, making it hard for PowerPC Mac users to migrate from
>> >> yaboot to GRUB2.
>> > (...)
>> >
>> > What are your experiences with grub-ieee1275?
>>
>> Since I've figured out how to get it running [1], it works like a charm. …
>> eemm, not fully, after an kernel update, you have to run update-grub
>> manually, but that's it.
>
> I have
>
> postinst_hook = update-grub2
> postrm_hook   = update-grub2
>
> in /etc/kernel-img.conf for that.

I'm using scripts underneath /etc/kernel/ and I think the grub package
should provide such scripts.

> So the search commands in the generated grub.cfg aren't causing problems
> for you?

No, they cause problems: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533898

But I use this patch:

diff --git a/grub.d/10_linux b/grub.d/10_linux
index c642b77..a4098b0 100755
--- a/grub.d/10_linux
+++ b/grub.d/10_linux
@@ -93,7 +93,7 @@ linux_entry ()
   cat << EOF
 menuentry "$1" {
 EOF
-  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
+#  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
   cat << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
 EOF

Bye, Jörg.
--
> Definiere ‚Demokratie‘ …
… eine Mehrheit beweist einer Minderheit, dass Widerstand zwecklos ist.


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Michel Dänzer-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-09-10 at 09:38 +0000, Jörg Sommer wrote:
>
> Michel Dänzer <daenzer@...> wrote:
> >
> > So the search commands in the generated grub.cfg aren't causing problems
> > for you?
>
> No, they cause problems: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533898

Not sure that's the same/only problem - the grub commands in your report
produce hd without trailing 0 here, even though the ofpathname output is
identical. But the generated search commands still don't work nor seem
necessary at boot time.

(Bug report BCC'd)


> But I use this patch:
>
> diff --git a/grub.d/10_linux b/grub.d/10_linux
> index c642b77..a4098b0 100755
> --- a/grub.d/10_linux
> +++ b/grub.d/10_linux
> @@ -93,7 +93,7 @@ linux_entry ()
>    cat << EOF
>  menuentry "$1" {
>  EOF
> -  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
> +#  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
>    cat << EOF
>         linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
>  EOF

Ah right, I think I tried this before, but the

set root=(hd,5)

commands generated by the same line turned out to be necessary here.


--
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Regarding GRUB 2

by Jörg Sommer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo Michel,

Michel Dänzer <daenzer@...> wrote:

> On Thu, 2009-09-10 at 09:38 +0000, Jörg Sommer wrote:
>>
>> Michel Dänzer <daenzer@...> wrote:
>> >
>> > So the search commands in the generated grub.cfg aren't causing problems
>> > for you?
>>
>> No, they cause problems: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533898
>
> Not sure that's the same/only problem - the grub commands in your report
> produce hd without trailing 0 here, even though the ofpathname output is
> identical. But the generated search commands still don't work nor seem
> necessary at boot time.
>
> (Bug report BCC'd)
>
>
>> But I use this patch:
>>
>> diff --git a/grub.d/10_linux b/grub.d/10_linux
>> index c642b77..a4098b0 100755
>> --- a/grub.d/10_linux
>> +++ b/grub.d/10_linux
>> @@ -93,7 +93,7 @@ linux_entry ()
>>    cat << EOF
>>  menuentry "$1" {
>>  EOF
>> -  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
>> +#  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
>>    cat << EOF
>>         linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro $2
>>  EOF
>
> Ah right, I think I tried this before, but the
>
> set root=(hd,5)
>
> commands generated by the same line turned out to be necessary here.

I might unconsciously work around this problem by passing a prefix option
to grub

nvsetenv boot-device "hd:2,grub prefix=(hd,4)/boot/grub"

This might make the root unnecessary.

Bye, Jörg.
--
Perfection is reached, not when there is no longer anything that can be
added, but when there is no longer anything to take away.
                                        (Antoine de Saint‐Exupery)


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...