這幾天這個link被移掉,好不容易找到,就乾脆把它copy下來。。。
因爲要開始做一些device driver,最好是kernel自己重新build,並把header file和相關files保留給接下來build driver module使用,不然會遇到module無法被kernel接受。
只要照着做,把script.bin, uImage, modules做好copy到SD卡就可開機。
refer to:
BananaPro/Pi:Building u-boot, script.bin and linux-kernel
Note: all of the following instructions (and also in the sections 2, 3 and 4 following on from this page) have to be carried out on a Linux computer, not the Bananan Pro/Pi itself!!
This page describes the process of combining sunxi u-boot, the Linux kernel and other bits together to create the basis of a bootable OS from scratch, and which can also be the basis for further hacking.
Of course, we are not building a whole distribution here, we're only building u-boot, the kernel and a handful of tools, and then using an existing root file system to get a usable OS. Depending on the size of the root file system, we suggest you use a 4GB or larger SD card – a type class 10 would be faster and more stable. SD card partitioning and formatting will be taken care of later.
We'll outline on this page two methods to build what we need: one is step by step, the other is the easiest way by using sunxi BSP.