| View previous topic :: View next topic |
| Author |
Message |
shayaan
Joined: 29 Jul 2006 Posts: 4
|
Posted: Sat Jul 29, 2006 10:50 am Post subject: EFI chapter doesn't work |
|
|
Hello Amit
I am following the directions in your book.
| Code: |
$ make
...
$ sudo make install
...
|
I get the following and I am not sure if it's an error
| Code: |
make install
mkdir -p /usr/local/lib
install -m 644 libefi.a /usr/local/lib/
mkdir -p /usr/local/lib
install -m 644 crt0-efi-ia32.o libgnuefi.a /usr/local/lib
install -m 644 elf_ia32_efi.lds /usr/local/lib
mkdir -p /usr/local/include/efi
mkdir -p /usr/local/include/efi/protocol
mkdir -p /usr/local/include/efi/ia32
install -m 644 *.h /usr/local/include/efi
install -m 644 protocol/*.h /usr/local/include/efi/protocol
install -m 644 ia32/*.h /usr/local/include/efi/ia32
make[1]: Nothing to be done for `install'.
|
Please help..
I am not sure what you mean by
| Quote: | Thereafter, we can compile and install gnu-efi. By default, the headers and object files are installed under /usr/local/.
|
is compiling the same as "make and make install"
Thanks
PS: I am buying a copy of your book on Monday (when the store opens) |
|
| Back to top |
|
 |
shayaan
Joined: 29 Jul 2006 Posts: 4
|
Posted: Sat Aug 05, 2006 11:58 am Post subject: |
|
|
| so no one knows why it doesnt work? |
|
| Back to top |
|
 |
amit Amit Singh

Joined: 06 Feb 2006 Posts: 76
|
Posted: Sat Aug 05, 2006 1:04 pm Post subject: |
|
|
| shayaan wrote: | | so no one knows why it doesnt work? |
What symptom are you seeing that suggests it doesn't work? If "make install" copied headers and object file to the /usr/local hierarchy, that's all it's supposed to do. |
|
| Back to top |
|
 |
danchr
Joined: 07 Feb 2006 Posts: 2 Location: Århus, Denmark
|
Posted: Wed Aug 09, 2006 11:58 pm Post subject: |
|
|
Apple just released an EFI DDK that's available on [url]connect.apple.com[/url]. Maybe that'll work better  |
|
| Back to top |
|
 |
amit Amit Singh

Joined: 06 Feb 2006 Posts: 76
|
Posted: Sat Aug 12, 2006 11:26 am Post subject: |
|
|
| danchr wrote: | Apple just released an EFI DDK that's available on [url]connect.apple.com[/url]. Maybe that'll work better  |
Apple's EFI DDK is *not* a toolchain, nor even a set of EFI libraries. |
|
| Back to top |
|
 |
noxorc
Joined: 18 Nov 2006 Posts: 3
|
Posted: Sat Nov 18, 2006 4:15 pm Post subject: Re: EFI chapter doesn't work |
|
|
| shayaan wrote: | Hello Amit
I am following the directions in your book.
| Code: |
$ make
...
$ sudo make install
...
|
I get the following and I am not sure if it's an error
| Code: |
make install
mkdir -p /usr/local/lib
install -m 644 libefi.a /usr/local/lib/
mkdir -p /usr/local/lib
install -m 644 crt0-efi-ia32.o libgnuefi.a /usr/local/lib
install -m 644 elf_ia32_efi.lds /usr/local/lib
mkdir -p /usr/local/include/efi
mkdir -p /usr/local/include/efi/protocol
mkdir -p /usr/local/include/efi/ia32
install -m 644 *.h /usr/local/include/efi
install -m 644 protocol/*.h /usr/local/include/efi/protocol
install -m 644 ia32/*.h /usr/local/include/efi/ia32
make[1]: Nothing to be done for `install'.
|
Please help..
I am not sure what you mean by
| Quote: | Thereafter, we can compile and install gnu-efi. By default, the headers and object files are installed under /usr/local/.
|
is compiling the same as "make and make install"
Thanks
PS: I am buying a copy of your book on Monday (when the store opens) |
Post your "Makefile" and "Make.defaults" and "Make.rules" file.
Did you modify any of those files?
Are you compiling IA-32 or IA-64?
-nox
________
Make a vaporizer
Last edited by noxorc on Sat Feb 19, 2011 8:43 pm; edited 1 time in total |
|
| Back to top |
|
 |
kaff
Joined: 21 Nov 2006 Posts: 2
|
Posted: Tue Nov 21, 2006 7:47 pm Post subject: |
|
|
I followed the setup instructions exactly but I can't get gnu-efi built. Here's the output:
| Code: |
gcc -DCONFIG_ia32 -c -o crt0-efi-ia32.o crt0-efi-ia32.S
crt0-efi-ia32.S:38:non-relocatable subtraction expression, "_DYNAMIC" minus "L01"
crt0-efi-ia32.S:38:symbol: "_DYNAMIC" can't be undefined in a subtraction expression
crt0-efi-ia32.S:37:non-relocatable subtraction expression, "ImageBase" minus "L01"
crt0-efi-ia32.S:37:symbol: "ImageBase" can't be undefined in a subtraction expression
make[1]: *** [crt0-efi-ia32.o] Error 1
make: *** [gnuefi] Error 2
|
My asm knowledge isn't good enough to figure out what's going wrong there, but maybe something's wrong with the toolchain?
Also, if I try to build in apps I get:
| Code: |
gcc -I. -I/Users/stopgo/code/gnu-efi-3.0c/apps/../inc -I/Users/stopgo/code/gnu-efi-3.0c/apps/../inc/ia32 -I/Users/stopgo/code/gnu-efi-3.0c/apps/../inc/protocol -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -DCONFIG_ia32 -D__KERNEL__ -I/usr/src/sys/build/include -c t.c -o t.o
t.c:1: warning: -fpic is not supported; -fPIC assumed
ld -nostdlib -T ../gnuefi/elf_ia32_efi.lds -shared -Bsymbolic -L../lib -L../gnuefi ../gnuefi/crt0-efi-ia32.o t.o -o t.so -lefi -lgnuefi /usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a
ld: unknown flag: -nostdlib
make: *** [t.so] Error 1
|
Maybe that will shed extra light on the matter. Any help is greatly appreciated! |
|
| Back to top |
|
 |
kaff
Joined: 21 Nov 2006 Posts: 2
|
Posted: Tue Nov 21, 2006 7:51 pm Post subject: |
|
|
| Argh, figured out the problem as soon as I posted. In my Make.defaults, I mistakenly set up the prefix for ia64 instead of ia32. Whoops! |
|
| Back to top |
|
 |
noxorc
Joined: 18 Nov 2006 Posts: 3
|
Posted: Tue Nov 28, 2006 7:10 am Post subject: |
|
|
I got some 'ia-32' hardware. So the gnu-efi 1.10 should be out soon.
-nox
________
Juggalo
Last edited by noxorc on Sat Feb 19, 2011 8:43 pm; edited 1 time in total |
|
| Back to top |
|
 |
noxorc
Joined: 18 Nov 2006 Posts: 3
|
|
| Back to top |
|
 |
|