Which can be found at: http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf
Create a working area to place the tools and components of the system.
Make sure that your host machine is up to date and install the essential tools, and other tools required for cross compilation.
https://github.com/u-boot/u-boot
Choose a u-boot version to download.
Refer U-Boot: Building with GCC for more information.
MLO
and u-boot.img
After the BootLoader
has been compiled, run the ls
command to make sure that you have the executables MLO
and u-boot.img
. The MLO
file is the first stage BootLoader, and u-boot.img
is the second stage BootLoader also known as the Bootstrap Loader.
Linux Kernel
for BeagleBone Black
https://github.com/beagleboard/linux
Choose a linux kernel version on your demand.
Refer admin-guide for more information.
One partition for booting the kernel, and another one for the
Root File System
.
gparted
for partitioning.Install Busybox into the rootfs partition of your SD card
The build automatically generates a file "busybox.links", which is used by 'make install' to create symlinks to the BusyBox binary for all compiled in commands. This uses the CONFIG_PREFIX environment variable to specify where to install, and installs hardlinks or symlinks depending on the configuration preferences. (You can also manually run the install script at "applets/install.sh").
Refer busybox: readme for more information.
create directories and files required by the Linux Kernel
to boot the system
Copy the libraries from the arm toolchain into the root file system lib.
Create additional directories for mounting virtual file systems.
After the kernel boots, it spawns the first user process, called the init
. init
is a background process that runs unitil the system is shut down. This process requires a configuration file called etc/inittab
, which contains actions the system needs to perform at a given runlevel.
Copy the following into the etc/inittab
file:
For more setting options, please refer IBM: inittab File.
Copy the following into etc/fstab
:
For more setting options, please refer man: fstab.
Write hostname into it.
Copy root::0:0:root:/root:/bin/sh
into it.
Create the file init.d/rcS
to setup the system.
After creating the above files and directories, install the kernel modules into the Root File System
.
Refer admin-guide: build-directory-for-the-kernel for more information.
Create a boot folder in your workspace directory and copy MLO
, u-boot.img
, uImage
, and am335x-boneblack.dbt
.
Go into the boot
folder and create a file called uEnv.txt
. This file will tell the BootLoader
where to load the kernel image and the device binary tree.
Copy the following into uEnv.txt
:
Important: Leave a newline at the end of the uEnv.txt
file.
Finally, copy everything from the ~/beaglebone_workspace/boot
directory to the BOOT
partition of your SD card.
Connect FTDI cable with J1 serial header on the board.
For more information, refer BBB_SRM: 7.5 Serial Header.
After you boot up the board, the system should mount the root file system successfully and you should automatically be logged in as root #
.