 preparing to build linux with yaffs preparing to build linux with yaffs admin 18 august 2012 258am this video covers the preparation needed to include linux in yaffs describing the kernel buildtools needed how to get the kernel source code and yaffs source code it s about 175mb and 6m30 long here s the script for the video  hello today i m going to show you the tools you need to compile yaffs into the linux kernel if you ve compiled linux before then this tutorial is not appropriate for you and you should skip to the next one yaffs is the most widely used file system which is specialised for flash memory it s used in millions of devices both under linux and other operatings systems it s available under the gnu public licence the gpl and commercial terms you can find out more about yaffs at yaffsnet this demo is being run on intel x86 because the end result is available for you to experiment with under vagrant and virtualbox but with some slight changes we could target another architecture for instance arm if you ve never used vagrant it provides a way to get a virtual system up and running in a few minutes you can download the vagrant box from the yaffs web site login we re starting off with a stock ubunutu precise 1204 386 server we re using 386 because it s the lowest common demoninator so the virtualbox will run on any system capable of running virtualbox but this works just as well for 64 bit architecture here we are at the commandline of a brandnew installation the server has been configured for the minimum it only has ssh and a couple of othre things required for vagrant of course there s no requirement for any of this for yaffs we need git version control to download yaffs and the kernel source sudo aptget install git we need these tools to build the kernel sudo aptget install crash kexectools makedumpfile kernelwedge sudo aptget install ncursesdev libncurses5dev sudo aptget install buildessential fakeroot and we need this to automate the job of creating a debian kernel package sudo aptget install kernelpackage okay we have all the tools i ll be needing so i m going to go ahead and make a working directory mkdir kernel cd kernel of course we re going to need yaffs so i ll go ahead and download that git clone git wwwaleph1couk yaffs2 that puts it into the yaffs directory ls this copy of yaffs is licensed under the gnu public licence the gpl so i must make changes available under the gpl too we also license yaffs under commercial terms removing the need to make your code available to others check our website for details now i need a copy of the kernel source code i could have used one directly from kernelorg but because this demo is running on ubuntu i m going to grab the ubuntu kernel this has the benefit of including the debian build rules git clone git kernelubuntucom ubuntu ubuntuprecisegit source cd source here it is ls and that s everything necessary to build the kernel with yaffs in the next video we ll show you how to configure and compile the kernel with yaffs more information about yaffs is available at wwwyaffsnet thanks for watching  