Netboot Mailing List (by thread)

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

Re: Re: New netboot version 0.8



1. everything running
---------------------
After running 'make install' everything is now 
running fine and my system is working.
So it is a MUST to call 'make install' for version 0.8.

2. bug report
---------------------
I also searched for the cause of the Segmentation fault.
It is produced in memory.c in the nblib.

The last function "void setpath(pathname, defaultname)"
includes the following code:
...
  if (!strncmp(*pathname, "//", 2)) {
	len = strlen(*pathname) + strlen(netbootdir) + 1;
...
The variable "netbootdir" is a pointer to char and
initialliy NULL. If you don't run 'make install',
you will get inside the IF and evaluate the
'strlen(netbootdir)'. The strlen of pointer to
address zero is Segmentation fault!
I guess you wanted to have:
#define NULLCH  '\0'
...
char *netbootdir = NULLCH;
...

You probably have to check the other functions also, 
because I have stopped debugging at this point.

3. configuration report
-----------------------
In the case that some one is collecting data and system
configurations, here are my one according to netboot.

Network adapter: SK-Net Flash
Vendor: Schneider & Koch
Chip: PCnet ISA+ / AM79C691KC
Remote Boot: integrated 16KByte EPROM
Parameters:
INT=0x60, IRQ=0x3, IOADDR=0x300, DMA=0x5
BootPROM address: 0xC8000
Linux driver: lance.c

The big advantage of this card is that it has a 16KByte
Flash EPROM onboard, so you don't need any programmer
but you have to use the minimal kernel.
It also has a large library of drivers, including a packet
driver which I used.
The handbook is dated 1994. I don't know if there is a
newer version of this card, having eventually a 32KByte
EPROM.

greetings.

Bernd
------------------------------------------------
Gero Kuhlmann wrote:
> 
> Hello,
> 
> Bernd Fehling <befehl@ub.uni-bielefeld.de> wrote:
> > I just tried netboot version 0.8, but I get
> > always a Segmentation fault with core dump
> > while calling:
> > ./mknbi-linux -d rom -i rom -k bzImage -o bootImage
> 
> This is because you didn't run 'make install'. All programs dump core when
> the configuration file is not installed correctly. It will be corrected in
> the next netboot release. Until then you should install a configuration
> file in /usr/local/etc.
> 
> > Another thing to mention is that you have to
> > care about the BASH version.
> > While using the BASH Version 2.01.1(1)-release
> > I got errors from the FOR-loops in the
> > Makefiles.
> > After changing to an older BASH version
> > 1.14.7(1) all make succeded without errors.
> 
> This problem should only occur with the misc/romcheck subdirectory. If
> possible please use a 1.xx version of bash. It will be corrected in the
> next netboot release as well.
> 
> gero.
> 
> --
> Poetry, like chastity, can be carried too far.
>   - Mark Twain
> --
> Gero Kuhlmann, Hannover     0511/6497525 (Voice)        gero@gkminix.han.de



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.