Designing your own Linux Kernel for the sylvania netbook

For a while now, Ive been absent, trying to create my own custom linux kernel for the sylvania netbook, and this is where Ive gotten to, and included all info on how to build your own kernel image.

First, you need to install a toolchain, I used emdebian toolchain, which on a normal ubuntu/debian linux system, just use

 sudo nano /etc/apt/sources.list 

and add this to the bottom:

 deb http://www.emdebian.org/debian squeeze main 

Then do your standard “sudo apt-get update”.

You then need to install the toolchain by using:

sudo apt-get install g++-4.4-arm-linux-gnueabi

Now that the toolchain is installed, you’ll need to get the kernel sources for the netbook, you can get them here:

http://gitorious.org/linux-on-via-vt8500/vt8500-kernel/archive-tarball/v2.6.35-vt8500

Just extract that archive and go into it through terminal, the next part you’ll want to do as root, so use “su” command to switch to root.

next, you’ll have to paste this into terminal window:

export CROSS_COMPILE=arm-linux-gnueabi-

then do

make menuconfig arch=ARM

make sure you paste that in, or make sure caps match on the ARM switch otherwise it wont work. Then you can configure everything down to the drivers that are included, and set everything up as needed. Just watch out for power management stuff under drivers because it seems to make the kernel panic on boot, and just crashes it until you remake the kernel without those drivers. Also, if you use arduino microcontrollers, make sure the CDC AMA modem drivers are enabled or your arduino wont be even recognized.

When you have it all set up how you think it goes, just select exit and it’ll ask you if you want to save the config file, just say yes and it’ll take you back to the command prompt. Then all you need to do is type in:

 make uImage arch=ARM

After a few mins, if everything succeeded, you’ll have a uImage file in the linux-for-vt8500/arch/arm/boot folder. Just use the script folder and scriptcmd from the archive located here:

http://code.google.com/p/yus-repo/downloads/detail?name=wm8505-kernel-3.0-fatpart.tar.gz

Then just stick it in the netbook, and if everything works well, it’ll boot right up to the desktop, and if not, just play with the options till you get the stuff working right.

You could probably use the same method to create your own kernel for the raspberry pi, but just omit the uImage switch in “make uImage arch=ARM” part.

 

EDIT: the script folder goes in the small FAT partition, the 50MB or however big partition it is, but the SD card will be split into two partitions, one big and one small, just put the script folder with those two files in that partition to get it to work.

Happy hacking and good luck 😛

Advertisements

2 Responses to Designing your own Linux Kernel for the sylvania netbook

  1. Rosalie says:

    Nice blog! Is your theme custom made or did you
    download it from somewhere? A theme like yours with a few
    simple tweeks would really make my blog stand out. Please let me know
    where you got your design. Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: