bug-grub
[Top][All Lists]
Advanced

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

stage2/Makefile issure about netboot


From: Wenqiang Song
Subject: stage2/Makefile issure about netboot
Date: Sat, 27 Dec 2003 02:17:25 -0500

Hi,
 
I was trying to compile grub with netboot support but failed. First I ran configure program with --enable-diskless and --enable-eepro100 parameters. But after make the execs I can't get any netboot related comand, such as dhcp/rarp/ifconfig etc, from grub shell. Then I investigated a little. I found these commands are defined in file stage2/builtins.c. But in Makefile, there is no $(NETBOOT_FLAGS) included under item "libgrub_a-builtins.o: " and "libgrub_a-builtins.obj: ". Then I manually added $(NETBOOT_FLAGS) to item libgrub_a-builtins.o. This cause subdir grub stop compiling. I fixed it by adding "../netboot/libdrivers.a" to item grub_LDADD. After making the whole thing, I can see those network related commands when I type 'help' under grub shell. But it crashes grub with segmenation fault when I run any of them. Below is the backtrace when I run dhcp:
#0  eth_probe () at config.c:522
#1  0x0805f772 in bootp () at main.c:542
#2  0x0805737f in bootp_func (arg=0x4006ac58 "", flags=134704736)
    at builtins.c:352
#3  0x0805c0a3 in enter_cmdline (heap=0x4006ac54 "dhcp", forever=1)
    at cmdline.c:172
#4  0x08055fa8 in cmain () at stage2.c:1018
#5  0x0804c046 in init_bios_info () at common.c:323
#6  0x080497d8 in doit.0 () at asmstub.c:129
#7  0x080498d0 in grub_stage2 () at asmstub.c:186
#8  0x080495b8 in main (argc=1, argv=0xbffffab4) at main.c:264
I think that target libgrub_a-builtins.o doesn't include $(NETBOOT_FLAGS) might be a bug, not sure about the seg fault.
 
My environment:
PIII 667, 384M RAM with Intel eepro100 NIC,
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <address@hidden> and others
eth0: OEM i82557/i82558 10/100 Ethernet, 00:06:29:F1:DD:CF, I/O at 0xd400, IRQ 5.
  Board assembly a07437-003, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x04f4518b).
Debian unstable with kernel 2.6.0 final.
grub-0.93+cvs20031021
gcc 3.3.2-1
libc6 2.3.2.ds1-10
 
Thanks
Watson
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]