目前日期文章:201212 (4)

瀏覽方式: 標題列表 簡短摘要

In the previous post, we successfully built a Angstrom kernel and kept all the source code. In this post we’ll learn how to modify the source code and rebuild it.

First we need to locate the source code. Since we’ve commented out INHERIT += "rm_work" in conf/local.conf, it should be kept somewhere on our hard disk. It is located at setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.28-r122a/git/ . If you open this folder, you will see the complete kernel source tree here. Let’s try a simple example:

1. Go to source tree folder and use text editor to open /kernel/fork.c.

silentlain 發表在 痞客邦 PIXNET 留言(0) 人氣()

So now we know how to build and run the distribution we made ourselves. But how do we modify it? How do we modify the source code and rebuild it? This serious of posts will guide you through it.

This method of kernel modification is based on bitbake scripts from github that described in previous posts. If you haven’t done it, please finish it first.

1. Install necessary packages. Since we’ve already installed a bunch of packages, right now we only need git-core. Simply type “sudo apt-get install git-core” will do the job.

silentlain 發表在 痞客邦 PIXNET 留言(0) 人氣()

If you followed the last post and booted the BeagleBoard successfully, congratulations! This post is irrelevant to you. However, if you followed all the instructions and still failed, this is the post you’re looking for.

Scenario 1:
Build parameter: systemd-gnome-image

silentlain 發表在 痞客邦 PIXNET 留言(0) 人氣()

After finishing previous post on “How to build your own Angstrom distribution”, now we should have everything ready. We just need to put files to micro SD card and it should boot.

1. Download this file and format microSD using it. The microSD card must be at least 4 GB. This process will PERMANENTLY delete the contents! Please backup your micro SD card first.
1.a: In terminal, type "sudo fdisk -l" to know which sdX is microSD card mounted.

silentlain 發表在 痞客邦 PIXNET 留言(0) 人氣()