Buildroot SDK/SDK content

From Chiliboard Wiki
Jump to: navigation, search

The chili-buildroot-sdk is software development kit for platforms based on the chiliSOM module. The SDK is developed, built and verified on Ubuntu LTS 12.04 and 14.04.

chili-buildroot-sdk-2015.02-1.0 release notes

SDK is based on the following software components:

  • Kernel - TI version 3.14.35
  • u-boot - TI version 2014.07
  • TI 3D Graphics SDK 05.01.01.02
  • Buildroot 2015.02
  • gcc 4.8.4
  • binutils 2.24
  • Qt 4.8.6 and Qt 5.4

SDK directory structure

The chili-buildroot-sdk-2015.02-1.0 contains the following directories and files:

chili-buildroot-sdk-2015.02-1.0
├── chili-buildroot-2015.02
├── chili-buildroot-sdk-manual.pdf
├── images
│   ├── am335x-chiliboard-nand0-ram128.dtb
│   ├── am335x-chiliboard-nand256-ram128.dtb
│   ├── am335x-chiliboard-nand256-ram256.dtb
│   ├── am335x-chiliboard-nand256-ram256-lcd.dtb
│   ├── am335x-chiliboard-nand512-ram512.dtb
│   ├── am335x-chiliboard-nand512-ram512-lcd.dtb
│   ├── rootfs_minimal.tar.gz
│   ├── rootfs_qt4.tar.gz
│   ├── rootfs_qt5.tar.gz
│   ├── u-boot-nand0-ram128
│   │   ├── MLO
│   │   ├── u-boot.bin
│   │   └── u-boot.img
│   ├── u-boot-nand256-ram128
│   │   ├── MLO
│   │   ├── u-boot.bin
│   │   └── u-boot.img
│   ├── u-boot-nand256-ram256
│   │   ├── MLO
│   │   ├── u-boot.bin
│   │   └── u-boot.img
│   ├── u-boot-nand512-ram512
│   │   ├── MLO
│   │   ├── u-boot.bin
│   │   └── u-boot.img
│   ├── uEnv.txt
│   └── zImage
└── scripts
    └── mkcard.sh

Description of the content:

  • images - bootloader, kernel images and root file system tarballs for all hardware configurations.
  • The configurations are determined by adding a prefix to the file name in the following format: -nandX-ramY, where X and Y is the amount of NAND (FLASH) and RAM defined in megabytes.
  • Subdirectory u-boot* contain MLO and u-boot.img images that should be copied to boot partition of the SD card.
  • File uEnv.txt should be copied to the boot partition.
  • File am335x-chiliboard-*.dtb is the kernel device-tree configuration and should be copied (with changed name to am335x-chiliboard.dtb) to /boot directory of the rootfs partition.
  • File zImage is the kernel image and also should be copied to the /boot directory.
  • File rootfs_*.tar.gz is a tarball of rootfs file system and should be unpacked to rootfs partition.
  • Directory chili-buildroot-2015.02 contains all files of the Buildroot with modifications for chili platform.

u-boot sources

u-boot source files are located in:

  • buildroot-2015.02/board/grinn/ti-u-boot-v2014.07.tar.gz - TI u-boot tarball
  • buildroot-2015.02/board/grinn/chiliboard/patches/u-boot - patches for chili platforms

Kernel sources

Linux kernel source files are located in:

  • buildroot-2015.02/board/grinn/ti-linux-3.14.35.tar.gz - TI kernel tarball
  • buildroot-2015.02/board/grinn/chiliboard/patches/linux - patches for chili platforms

Buildroot configurations

In the chili-buildroot-sdk are defined the following minimal configurations:

chiliboard_nand0_ram128_defconfig
chiliboard_nand256_ram128_defconfig
chiliboard_nand256_ram256_defconfig
chiliboard_nand256_ram256_lcd_defconfig
chiliboard_nand512_ram512_defconfig
chiliboard_nand512_ram512_lcd_defconfig

All configurations include a toolchain, kernel and u-boot configuration, basic file system, and does not contain any additional packets. These configurations can be used as a base for building complex user images..

To build custom image, see Building customized image.

For the build of rootfs tarballs (available in the directory images) are used configurations:

chiliboard_nand256_ram128_defconfig
chiliboard_nand256_ram128_qt4_defconfig
chiliboard_nand256_ram128_qt5_defconfig