Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: trouble installing grub on -current amd64
michael%schmong.org@localhost ("Michael Litchard") writes:
>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/device.map: No such file or directory
>grep: /grub/device.map: No such file or directory
>/dev/rwd0d does not have any corresponding BIOS drive.
No such problem here. grub-install is a simple shell script that
will eventually run the grub-binary. Your ktrace command only
traces the shell, you need options -i -d or just ktrace the
grub binary itself.
Tracing the grub binary here yields:
66 1 ktrace EMUL "netbsd"
66 1 ktrace RET ktrace 0
66 1 ktrace CALL execve(0x7f7fffffd590,0x7f7fffffdaa0,0x7f7fffffdab0
)
66 1 ktrace NAMI "/sbin/grub"
66 1 ktrace RET execve -1 errno 2 No such file or directory
66 1 ktrace CALL execve(0x7f7fffffd590,0x7f7fffffdaa0,0x7f7fffffdab0
)
66 1 ktrace NAMI "/usr/sbin/grub"
66 1 ktrace RET execve -1 errno 2 No such file or directory
66 1 ktrace CALL execve(0x7f7fffffd590,0x7f7fffffdaa0,0x7f7fffffdab0
)
66 1 ktrace NAMI "/bin/grub"
66 1 ktrace RET execve -1 errno 2 No such file or directory
66 1 ktrace CALL execve(0x7f7fffffd590,0x7f7fffffdaa0,0x7f7fffffdab0
)
66 1 ktrace NAMI "/usr/bin/grub"
66 1 ktrace RET execve -1 errno 2 No such file or directory
66 1 ktrace CALL execve(0x7f7fffffd590,0x7f7fffffdaa0,0x7f7fffffdab0
)
66 1 ktrace NAMI "/usr/pkg/sbin/grub"
66 1 ktrace NAMI "/emul/netbsd32"
66 1 ktrace NAMI "/emul/netbsd32/usr/libexec/ld.elf_so"
66 1 grub EMUL "netbsd32"
66 1 grub RET syscall JUSTRETURN
66 1 grub CALL netbsd32_mmap(0,0x8000,3,0x1002,0xffffffff,0,0,0)
66 1 grub RET netbsd32_mmap 4227764224/0xfbfe9000
66 1 grub CALL netbsd32_open(0xfbffab9e,0,0xffffffff)
66 1 grub NAMI "/emul/netbsd32/etc/ld.so.conf"
...
This is
NetBSD pussyfoot 4.99.64 NetBSD 4.99.64 (PUSSYFOOT) #1: Fri Jun 6 22:44:04
CEST 2008
mlelstv@henery:/home/netbsd-current/obj.amd64/home/netbsd-current/src/sys/arch/amd64/compile/PUSSYFOOT
amd64
The kernel is built with COMPAT_NETBSD32 and EXEC_ELF32 and the
following packages are installed:
netbsd32_compat40-extras-4.0
netbsd32_compat40-4.0
grub-0.97nb8
grub is a 32bit package built for netbsd-4.
-r-xr-xr-x 1 root wheel 131188 May 15 09:59 /usr/pkg/sbin/grub
The system will not load the binary when the 32bit ld.elf_so is
missing. Then ktrace shows:
541 1 ktrace CALL execve(0x7f7fffffd570,0x7f7fffffda80,0x7f7fffffda90
)
541 1 ktrace NAMI "/usr/pkg/sbin/grub"
541 1 ktrace NAMI "/emul/netbsd32"
541 1 ktrace NAMI "/emul/netbsd32/usr/libexec/ld.elf_so"
541 1 ktrace NAMI "/usr/libexec/ld.elf_so"
541 1 ktrace RET execve -1 errno 8 Exec format error
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index