[PlanetCCRMA] recompiling kernel after adding a patch: newbie

Duke Jonathan Jason sysnon@tin.it
Mon Aug 25 14:07:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0063_01C36B5E.9ACB04C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hello,
I found the drivers for my modem,
but to make them work I have to apply a patch for the modem using the =
two commands:
#patch -p0 < usb-uhci.patch=20
#patch -p0 < usb-ohci.patch=20

I do this after having copied the patches in the =
/usr/source/linux-2.4.21.1-ll-acpi

I try to recompile the kernel in the way the majority of guides on =
internet suggest,
for making effective the changes these patches apply

make mrproper (if previous attempts made)

make oldconfig

make dep
make clean
make bzImage

make modules
make modules_install

but at the point of making bzImage, I get errors at the end, the cpu =
cannot find acpi.h, acpi_bus.h and some other file related to acpi, =
which I don't remember.....and a kernel image is not done

I saw this output searching on the archives of PlanetCCRMA, with 2 =
people or more having this result who posted questions, every email had =
no answer, but the one with an explanation near to this link
http://ccrma-www.stanford.edu/planetccrma/software/recompilekernel.html

so I probably instead going to /usr/src/redhat, but I don't know how to =
modify spec file to add my patch,
I tried to do=20

cd /usr/src/redhat/SPECS
rpmbuild -ba kernel-2.4.21-1.ll.acpi.spec

but I get errors

so my answer is how to get out of this situation without quitting :)
who can help me how to recompile the kernel with the patch added in the =
correct way?

my system is redhat 9 with the planetCCRMA kernel 2.4.21-1.ll.acpi

Thanks in advance


------=_NextPart_000_0063_01C36B5E.9ACB04C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I found the drivers for my =
modem,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but to make them work I have to apply a =
patch for=20
the modem using the two commands:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#patch -p0 &lt; usb-uhci.patch =
<BR>#patch -p0 &lt;=20
usb-ohci.patch </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I do this after having copied the =
patches in the=20
/usr/source/linux-2.4.21.1-ll-acpi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I try to recompile the kernel in the =
way the=20
majority of guides on internet suggest,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for making effective the changes these=20
patches&nbsp;apply</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>make mrproper (if previous attempts=20
made)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>make oldconfig</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>make dep</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>make clean</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>make bzImage</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>make modules</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>make modules_install</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>but at the point of making bzImage, I =
get errors at=20
the end, the&nbsp;cpu cannot find acpi.h, acpi_bus.h and some other file =
related=20
to acpi, which I don't remember.....and a kernel image is not =
done</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I saw this output searching on the =
archives of=20
PlanetCCRMA, with 2 people or more having this result who posted =
questions,=20
every email had no answer,&nbsp;but the one with an explanation near to =
this=20
link</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://ccrma-www.stanford.edu/planetccrma/software/recompilekerne=
l.html">http://ccrma-www.stanford.edu/planetccrma/software/recompilekerne=
l.html</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>so I probably instead going to =
/usr/src/redhat, but=20
I don't know how to modify spec file to add my patch,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried to do </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cd /usr/src/redhat/SPECS<BR>rpmbuild =
-ba=20
kernel-2.4.21-1.ll.acpi.spec</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>but I get errors</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>so my answer is how to get out of this =
situation=20
without quitting :)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>who can help me how to recompile the =
kernel with=20
the patch added in the correct way?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my system is redhat 9 with the =
planetCCRMA kernel=20
2.4.21-1.ll.acpi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0063_01C36B5E.9ACB04C0--