-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathREADME
68 lines (45 loc) · 1.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Buildroot for the BeagleBone
============================
This README contains basic instructions for creating a system image
for the BeagleBone using Buildroot. The image created is minimal, boots
quickly, is fairly small, but doesn't do much. Packages can easily be
added using Buildroot's "make menuconfig" configuration editor.
Preparing your system
---------------------
Buildroot requires several packages to be installed on the system
before it can work. On Ubuntu, the following apt-get line is sufficient:
sudo apt-get install git-core bison flex g++ gettext texinfo libncurses5-dev
Building
--------
Select the Buildroot configuration. Two BeagleBone configurations are
available depending on the desired C library. The uclibc system is
self-contained and builds host-side tools such as the cross-compiler.
The glibc system requires the TI AM335x SDK to be installed and is a
work in progress.
To select the uclibc system, run:
make beaglebone_uclibc_defconfig
To build everything, run:
make
The initial build takes a while since many packages need to be downloaded and
built. The downloads are cached in the dl directory. Subsequent builds are
faster.
The build output is stored in the output/images directory.
Creating a BeagleBone MicroSD card
----------------------------------
The MicroSD card that comes with the BeagleBone is partitioned properly for
the BuildRoot image. To format a new MicroSD card, the following will work:
sudo sfdisk -H 255 -S 63 /dev/XXXXXX << EOF
0,9,c,*
,124
EOF
sudo mkfs.vfat /dev/XXXXXX -n boot
Then copy the built images to the SD Card:
# Copy the bootloads and the Linux kernel
cp MLO u-boot.img uImage /media/boot
# Copy the root file system (replace sdd2 with the second partition of right
# device)
sudo dd if=rootfs.ext2 of=/dev/sdd2 bs=128k
Notes
-----
Bring up the ethernet interface:
# udhcp