Hi;

Long story short :

CentOS 4.x
2.6.9-42.EL kernel

Attempting to build some modules for a VIA chipset:

01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome
Pro VGA Adapter (rev 02) (prog-if 00 [VGA])
Subsystem: VIA Technologies, Inc. S3 Unichrome Pro VGA Adapter
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 11
Memory at c0000000 (32-bit, prefetchable) [size=64M]
Memory at c4000000 (32-bit, non-prefetchable) [size=16M]
Capabilities: [60] Power Management version 2
Capabilities: [70] AGP version 3.0

I was able to build the viafb.ko module and load it successfully. The
instructions ask you to build a frame buffer module (fbcon.ko) using
the kernel and make menuconfig.

Building and loading viafb device driver for Linux kernel 2.6
---------------------------------------------------------------------------
Building fbcon console module.
Step 1: Change to folder /usr/src/linux-2.6.
# cd /usr/src/linux-2.6.
The linux-2.6 directory depend on your kernel version,
so if your kernel version is
2.6.5-1.358, you should type "/usr/src/
linux-2.6.5-1.358".
Step 2: Configuring the kernel module
# make menuconfig
Step 3: Select fbcon item to module.
-> Device Drivers->Graphics support->Console display
driver support->
Framebuffer Console support
Step 4: Save the current setting and quit.
Step 5: Make fbcon module.
# make modules
Note that if no any error, this step will be produced
"fbcon.ko" in
/usr/src/linux-2.6./drivers/video/console folder.
Step 6: Copy fbcon.ko to lib folder.
# cp /usr/src/linux-2.6./drivers/video/console/fbcon.ko \
/lib/modules/2.6./kernel/drivers/video

It says "if no errors" - well, guess what happened?

[root@XXXXXXX /usr/src/linux-2.6.9-42]# make
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
make[1]: *** No rule to make target `init/main.o', needed by `init/
built-in.o'. Stop.
make: *** [init] Error 2


Anyone help me out with this? I am kind of clueless - I am assuming
that I am missing something (besides a few brain cells)

Thanks if you can

G