
2/11/2020
TS-7100 - Technologic Systems Manuals
https://wiki.embeddedarm.com/w/index.php?title=TS-7100&printable=yes
16/44
The Buildroot image can be built from source if needed. This process will create a cross compiler, use that to build
all target applications including the kernel, and then create a filesystem tarball of a bootable image. The following
instructions can be used to build Buildroot.
Clone the repository:
git clone
https://github.com/embeddedarm/buildroot-2018.02
cd
buildroot-2018.02/
Configure the build:
make
ts7100_defconfig
At this point, the default configuration can be modified if desired:
make
menuconfig
And finally, start the build process:
make
The buildroot process can take a large amount of time to build, depending on available system resources. Note that
if any changes occur in the config file, it is recommended to clean the build tree and start the process over.
Additionally, ccache is enabled by default in the default configuration. This will speed up a re-build of Buildroot
after a clean. However it will take up additional hard drive space, and if any changes are made to the cross compiler
configuration the ccache directory must be removed first. See the Buildroot manual
(https://buildroot.org/downloads/manual/manual.html#ccache) for more information about ccache and Buildroot.
Once it is finished building, Buildroot will output a filesystem tarball to "output/images/rootfs.tar.xz". This file can
be used with Installing Buildroot in lieu of the tarball provided on our FTP site.
6.3 Configuring the Network
Buildroot implements the 'ip', 'ifconfig', and 'route' commands to manipulate the settings of interfaces. The first
ethernet interface is set up to come up automatically with our default configuration. The interfaces can also be
manually set up:
# Bring up the CPU network interface
ifconfig
eth0 up
# Set an ip address (assumes 255.255.255.0 subnet mask)
ifconfig
eth0 192.168.0.50
# Set a specific subnet
ifconfig
eth0 192.168.0.50 netmask 255.255.0.0
# Configure your route. This is the server that provides your internet connection.
route add default gw 192.168.0.1
# Edit /etc/resolv.conf for your DNS server
echo
"nameserver 192.168.0.1"
> /etc/resolv.conf