Re: Static ip patch problems

"Ricardo Carrillo Cruz" <[email protected]> Fri, 10 Mar 2006 12:32:48 +0100
Newsgroups gmane.network.etherboot.devel
Message-ID <[email protected]>
Hi to all

As i posted,the error messages are these:
Issuing RESET:
mknbi-1.4.4/first32.c (ELF) (GPL)
Bad argument
Secondary program returned -1
<abort>

I've been tracking the error messages:

 - "Issuing RESET:" ==> 3c90x.c source file, a3c90x_reset() function, line
415
 - "mknbi-1.44/first32.c (ELF) (GPL) \n Bad argument" ==> first32.c source
file (mknbi 1.4.4 version project), quit() function
 - "Secondary program returned -1" ==> elf_loader.c source file, elf_boot,
lĂ­nea 48
- "<abort>" ==> main.c source file, main_loop() function, line 412

It's been very difficult to me to debug, since i'm just putting printfs in
the code to see the program flow. How do you debug etherboot?

In the other hand, i've noticed the first() function in first32.c source
file (it belongs to mknbi 1.4.4) receives a struct bootp_t *bootp argument.
It does the sanity check bootp->bp_op!= BOOT_REPLY, result is false hence it
quits the program shouting the error. You can see it at line 509.
I don't know the loading process, but i think there should be a call to
first() function in someplace,passing a struct bootp_t argument.
Since the patch doesn't do anything with a bootp, maybe we should hack
something regarding this.

Kind regards