Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: trouble installing grub on -current amd64

On Wed, Jun 18, 2008 at 07:46:53AM -0400, Greg Troxel wrote:
>   I am now running -current, as the Howto says you should
>   when using amd64# ktrace -f grub.out grub-install /dev/rwd0d
>   /usr/pkg/sbin/grub-install: Cannot execute ELF binary /usr/pkg/sbin/grub
>   sed: /grub/ No such file or directory
>   grep: /grub/ No such file or directory
>   /dev/rwd0d does not have any corresponding BIOS drive.
> We (Liz mostly) have set up an amd64 box with current and xen3, and grub
> works after installing a binary package built on i386, and the
> netbsd/i386 shared libraries that it needs.  The problem seems to be
> that grub builds i386 code for boot time, but doesn't use cross tools to
> do so.  I suspect that the grub setup part could be amd64 native.

From memory, there's a large part of code shared between the standalone
code and the grub setup part (it includes the standalone command line
interpreter), and this shared code is full of __asm() which isn't at all

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index