OK. This clears up a lot. Since the "make bzImage" step fails, everything that follows it is irrelevant to your problem. And *this* is where your problem occurs, not when trying to cp or mv the file created by "make bzImage".

A basic rule that beginners need to learn: when a step in the process fails with error messages, going on to the next step is almost always wasted effort.

The next basic rule: believe the error messages. In your case, you get an error that says:

"make[3]: *** No rule to make target `/usr/src/linux-2.4.20-8/drivers/pci/devlist.h', needed by `names.o'. Stop."

Unfortunately, I do not have a fresh kernel source tree handy to unpack, so I do not know *for sure* if this file really gets generated by the make process ... but it does appear to be a generated file from its internal structure and timestamps here. So I suspect the problem is that you did not follow carefully enough the steps needed to compile a kernel, and that this error just happens to be the first place where your omission matters.

As I assume you know, the outline of how to compile a kernel is in the source tree in /[path-to-source-tree]/README . A quick, compact review of the steps is:

        make mrproper [not always needed]
        make clean [not always needed]
        make config
          -OR-
        make menuconfig
          -OR-
        make xconfig
        make dep
        make bzImage
        make modules
        make install [or install by hand]
        make modules_install

This sequence is a bit more extended than the one you say you followed, so first off, follow it and see if it fixes your problem. If not, report back with the step it first fails on and what the error message looks like (as you did before).


At 04:54 PM 7/22/2003 -0500, Travis Osterman wrote:
I tried to compile my kernel again and here are the results.  I'm really
new to this, and thank you for your patience.

# make dep // no errors
# make clean: // no errors
# make bzImage // below

make[3]: *** No rule to make target
`/usr/src/linux-2.4.20-8/drivers/pci/devlist
.h', needed by `names.o'.  Stop.
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/pci'
make[1]: *** [_subdir_pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_dir_drivers] Error 2

[rest deleted]


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to