[SOLVED] Kernel Recompilation Problem

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
doragasu
Linux User
Posts: 14
Joined: Sat Apr 08, 2006 9:10 am

[SOLVED] Kernel Recompilation Problem

Post by doragasu »

I'm trying to recompile the 2.4.32 kernel disabling a lot of things I don't need, but I can't get it to work. It gives me this error:

Code: Select all

arch/i386/kernel/kernel.o: In function `extsmi_process':
xboxejectfix.c:(.text+0xf072): undefined reference to `Xbox_simulate_drive_locked'
drivers/usb/usbdrv.o: In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o: In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o: In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o: In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o: In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o: In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o: In function `hidinput_disconnect':
: undefined reference to `input_unregister_device'
drivers/usb/usbdrv.o: In function `hidinput_hid_event':
: undefined reference to `input_event'
make: *** [vmlinux] Error 1
What can cause this error? Maybe I need to include kernel support for something I removed?
Last edited by doragasu on Sat Nov 04, 2006 12:18 pm, edited 1 time in total.
doragasu
Linux User
Posts: 14
Joined: Sat Apr 08, 2006 9:10 am

Post by doragasu »

I have eliminated all the "hid" undefined references by adding keyboard support (I had it as a module because I have no USB in my XBox and I don't plan to plug a keyboard in).

I still have the undefined reference to Xbox_simulate_drive_locked. I suspect it's maybe because I have not included CD-ROM support...
doragasu
Linux User
Posts: 14
Joined: Sat Apr 08, 2006 9:10 am

Post by doragasu »

I got it to compile, but it doesn't boot :(. I'll continue playing with kernel configuration to see if I make it boot.

Shallax, it would be a good thing if you add here that you need also to include ATAPI CD-ROM support and keyboard support or kernel will refuse to compile.
doragasu
Linux User
Posts: 14
Joined: Sat Apr 08, 2006 9:10 am

Post by doragasu »

Finally I got it to compile and boot.

Other things needed for the kernel to boot are:

RAM disk support
Virtual memory file system support
/dev file system support
second extended fs support

I think you also need to add support for loopback devices.

I got a 951KB vmlinuz file supporting everything I need, and without modules support. With the original kernel, this is the reported memory usage:

Code: Select all

Memory: 55112k/61440k available (3143k kernel code, 5940k reserved, 1347k data, 156k init, 0k highmem)
Now with my new kernel the memory usage is this:

Code: Select all

Memory: 57932k/61440k available (1397k kernel code, 3120k reserved, 281k data, 296k init, 0k highmem)
Maybe I can disable a few more things, but I don't know if it would be worth the effort ;).
Post Reply