Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Router Charts

Click for Router Charts

Router Ranker

Click for Router Ranker

NAS Charts

Click for NAS Charts

NAS Ranker

Click for NAS Ranker

More Tools

Click for More Tools

NAS How To

Adding Traffic Control and Packet Shaping - Testing the new Kernel

You now have a compiled kernel file, so let's test that it works. The Cromwell BIOS uses a text file to decide where to boot from. Let's launch vi to edit it:

vi /boot/linuxboot.cfg

It should contain the following:

title v2_4
kernel /boot/vmlinuz
append root=/dev/ide/host0/bus0/target0/lun0/part2 devfs=mount kbd-reset xbox=hdd
xboxfb y

Change it so that it looks like this:

title v2_6
kernel /usr/src/linux/arch/i386/boot/bzImage
append root=/dev/hda2 devfs=mount kbd-reset xbox=hdd
xboxfb y

title v2_4
kernel /boot/vmlinuz-2.4.31-xbox
append root=/dev/ide/host0/bus0/target0/lun0/part2 devfs=mount kbd-reset xbox=hdd
xboxfb y

default v2_6

Now save and quit the file and reboot your Xbox with reboot . If your Xbox isn't attached to your television, then you will miss any error messages and warnings that might appear. If it booted successfully, then within a minute or two you should be able to SSH into it and your greeting message should reflect this new version of the kernel.

If it doesn't work, then plug it back into your television, reboot it and keep an eye out for errors as to why it isn't working. To boot back to your working 2.4 kernel you will need to use your USB keyboard to navigate to the boot menu in the Cromwell BIOS and select your old kernel which we named v2_4 earlier.

If the upgrade was successful, then you need to make your change more permanent:

cd /usr/src/linux/
make install

When prompted, answer no to creating a boot disk. This will copy your kernel image file into /boot/ and update your vmlinuz symlink file to point to your new kernel. You can now change your linuxboot.config file to look like the following:

title v2_6
kernel /usr/src/vmlinuz
append root=/dev/hda2 devfs=mount kbd-reset xbox=hdd
xboxfb y

title v2_4
kernel /boot/vmlinuz-2.4.31-xbox
append root=/dev/ide/host0/bus0/target0/lun0/part2 devfs=mount kbd-reset xbox=hdd
xboxfb y

default v2_6

By the way, I found that when I booted up after my upgrade to 2.6 some of the modules would not load. I am not entirely sure why some of them wouldn't load since I definitely compiled them! One issue I found was that the keyboard and mouse modules changed names between 2.4 and 2.6. In 2.4 they were called mousedev and keybdev but now are called usbmouse and usbkeyb.

To change the name, edit the file /etc/modules.xbox and rename the appropriate references. Strictly speaking, we don't need either of these modules since we have a headless install, but it does no harm to have them. The other ones that the kernel complained it couldn't load I didn't need, so I commented them out so my file looked like this:

loop
#input
usbkbd
#usbmouse
#joydev
sunrpc
lockd
nfs
#scsi_mod
#sd_mod
#hid
#xpad
#xir
#lirc_dev
#lirc_xir
#snd-intel8x0

More NAS

Wi-Fi System Tools
Check out our Wi-Fi System Charts, Ranker and Finder!

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Over In The Forums

Continuation of:https://www.snbforums.com/threads/custom-firmware-build-for-r9000.40125/. . .https://www.snbforums.com/threads/custom-firmware-build-f...
Hello everyone,I have been a member of this forum since I discovered the Asuswrt-Merlin firmware since I bought my aging RT-n66u. It has come to a poi...
Hi, Can you implement simple plugin for web page to test speed of internet connection?When I have connection problem with my provider they want to con...
Continuation ofhttps://www.snbforums.com/threads/custom-firmware-build-for-orbi-rbk50-v-2-5-0-42sf-hw.60308/New version of my custom firmware build: 9...
Went to the in-laws (Home 1) to setup a new network today to replace their Shitty Sky hub and it's made a good difference but I need to go back tomorr...

Don't Miss These

  • 1
  • 2
  • 3