Designing your own Linux Kernel for the sylvania netbook
May 31, 2013 2 Comments
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:
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:
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:
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 😛