Building a New Kernel and Modules
The following notes apply to release 7.2. Be sure you use tool chain 3.3.2
or later. The 3.2 tool chain has a bug that prevents the video drivers to
compile.
Building the Source Tree
- Copy pwcx-2.4.20.o.bin to drivers/usb.
The algorithms for uncompressing images from a Philips (pwc) webcam
are proprietary. As a result, the uncompression module is delivered
as a binary. Patches do not work with binaries. Thus, this extra step.
Compiling the Kernel - (Release 7.3 and above)
From the base of the Linux source tree do the following. The build procedure
has been changed as a result of placing the kernel in a more comprehensive
build environment.
make
The following are also appropriate commands.
-
make clean
-
make menuconfig
However, do NOT do a make mrproper.
Compiling the Kernel - Depreciated (Release 7.2 and lower)
From the base of the Linux source tree do the following:
-
make clean
-
make mrproper
-
make stargate_config
-
make oldconfig
-
make menuconfig
This is optional and you only need it if you want to change
defaults for compilation.
-
make dep
-
make zImage
This will create the zImage file in:
arch/arm/boot
-
make modules
-
make modules_install
This collects all the modules in:
/lib/modules/2.4.19-rmk7-pxa2
Make will complain that they are not compatible with your desktop. That's ok
because they for ARM. Just copy them from there to their corresponding
locations on the Stargate.
Debugging Kernel Panics
What they need to do is run the output of the crash dump through "ksymoops" -- without that it's pretty much meaningless.