Update buidlroot to version 2016.08.1

This commit is contained in:
2016-11-16 22:07:29 +01:00
parent 807ab03547
commit a1061efbc2
3636 changed files with 59539 additions and 25783 deletions

View File

@@ -0,0 +1,37 @@
image boot.vfat {
vfat {
files = {
"zImage",
"imx51-ts4800.dtb"
}
}
size = 8M
}
image sdcard.img {
hdimage {
}
partition mbrboot {
in-partition-table = "no"
image = "mbrboot.bin"
offset = 0
}
partition uboot {
partition-type = 0xda
image = "u-boot.bin"
size = 256k
}
partition kernel {
partition-type = 0xC
image = "boot.vfat"
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext4"
size = 256M
}
}

View File

@@ -0,0 +1,3 @@
CONFIG_TOUCHSCREEN_TS4800=y
CONFIG_TS4800_WATCHDOG=y
CONFIG_TS4800_IRQ=y

View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# Copyright (C) 2015 Savoir-faire Linux
# Post image generation script.
BOARD_DIR="$(dirname $0)"
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
GENIMAGE_TMP=${BUILD_DIR}/.genimage_tmp
rm -rf ${GENIMAGE_TMP}
${HOST_DIR}/usr/bin/genimage \
--config ${GENIMAGE_CFG} \
--rootpath ${TARGET_DIR} \
--tmppath ${GENIMAGE_TMP} \
--inputpath $BINARIES_DIR \
--outputpath $BINARIES_DIR
exit $?

View File

@@ -0,0 +1,50 @@
Technologic Systems TS-4800
===========================
This document explains how to set up a basic Buildroot system for the
Technologic Systems TS-4800 System on Module.
The TS-4800 is a TS-SOCKET macrocontroller board based on the Freescale
i.MX515 ARM Cortex-A8 CPU running at 800MHz. The TS-4800 features 10/100
Ethernet, high speed USB host and device (OTG), microSD card, and 256MB
XNAND drive. More details on the board here:
http://wiki.embeddedarm.com/wiki/TS-4800
The TS-4800 is supported by mainline Linux as of 4.5 and by U-boot as of
v2016-07. The defconfig includes a custom 1st level bootloader located
in boot/ts4800-mbrboot. This one scans the SD card's partition table to
find partition having the 0xDA type, corresponding to U-boot.
To build the default configuration you only have to:
$ make ts4800_defconfig
$ make
The ouput looks like:
output/images/
├── boot.vfat
├── imx51-ts4800.dtb
├── mbrboot.bin
├── rootfs.ext2
├── rootfs.ext4 -> rootfs.ext2
├── rootfs.tar
├── sdcard.img
├── u-boot.bin
└── zImage
The provided post-image script generates an image file containing 3
partitions for U-boot, Linux kernel + device tree and rootfs
respectively:
$ fdisk output/images/sdcard.img
Device Boot Start End Blocks Id System
output/images/sdcard.img1 1 512 256 da Non-FS data
output/images/sdcard.img2 513 16896 8192 c W95 FAT32 (LBA)
output/images/sdcard.img3 16897 541184 262144 83 Linux
This image can be directly written to an SD card.
$ sudo dd if=output/images/sdcard.img of=/dev/mmcblk0
In order to test the image on TS-4800 board, a TS baseboard, such as
TS-8xxx the serie, is needed to provide power, console header, RJ45
connector etc.

View File

@@ -0,0 +1,9 @@
SERIAL 1 115200
CONSOLE 0
DEFAULT linux
LABEL linux
SAY Now booting the kernel from SYSLINUX...
LINUX /boot/bzImage
APPEND console=ttyS1,115200n8 root=/dev/sda1 rootfstype=ext4 rw

View File

@@ -0,0 +1,113 @@
CONFIG_PARTITION_ADVANCED=y
# CONFIG_X86_EXTENDED_PLATFORM is not set
CONFIG_MELAN=y
CONFIG_X86_GENERIC=y
CONFIG_X86_REBOOTFIXUPS=y
CONFIG_NOHIGHMEM=y
# CONFIG_COMPACTION is not set
# CONFIG_BOUNCE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_RELOCATABLE is not set
# CONFIG_SUSPEND is not set
# CONFIG_ACPI is not set
CONFIG_CPU_IDLE=y
CONFIG_TS5500=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_LRO is not set
# CONFIG_INET_DIAG is not set
# CONFIG_IPV6 is not set
# CONFIG_WIRELESS is not set
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_BLK_DEV is not set
CONFIG_BLK_DEV_SD=y
# CONFIG_SCSI_LOWLEVEL is not set
CONFIG_ATA=y
# CONFIG_ATA_VERBOSE_ERROR is not set
# CONFIG_SATA_PMP is not set
CONFIG_ATA_GENERIC=y
CONFIG_PATA_LEGACY=y
CONFIG_NETDEVICES=y
# CONFIG_NET_CORE is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_ALTEON is not set
# CONFIG_NET_VENDOR_AMD is not set
# CONFIG_NET_VENDOR_ARC is not set
# CONFIG_NET_VENDOR_ATHEROS is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_VENDOR_BROCADE is not set
# CONFIG_NET_VENDOR_CHELSIO is not set
# CONFIG_NET_VENDOR_CISCO is not set
CONFIG_NET_TULIP=y
CONFIG_DM9102=y
# CONFIG_NET_VENDOR_DLINK is not set
# CONFIG_NET_VENDOR_EMULEX is not set
# CONFIG_NET_VENDOR_EXAR is not set
# CONFIG_NET_VENDOR_HP is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MYRI is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_NET_VENDOR_NVIDIA is not set
# CONFIG_NET_VENDOR_OKI is not set
# CONFIG_NET_PACKET_ENGINE is not set
# CONFIG_NET_VENDOR_QLOGIC is not set
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RDC is not set
# CONFIG_NET_VENDOR_SEEQ is not set
# CONFIG_NET_VENDOR_SILAN is not set
# CONFIG_NET_VENDOR_SIS is not set
# CONFIG_NET_VENDOR_SMSC is not set
# CONFIG_NET_VENDOR_STMICRO is not set
# CONFIG_NET_VENDOR_SUN is not set
# CONFIG_NET_VENDOR_TEHUTI is not set
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WIZNET is not set
CONFIG_PHYLIB=y
CONFIG_DAVICOM_PHY=y
# CONFIG_WLAN is not set
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_SERIO is not set
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_HW_RANDOM is not set
CONFIG_GPIOLIB=y
CONFIG_GPIO_TS5500=y
CONFIG_SENSORS_MAX197=y
CONFIG_WATCHDOG=y
CONFIG_SC520_WDT=y
CONFIG_USB=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_FTDI_SIO=y
CONFIG_USB_SERIAL_PL2303=y
# CONFIG_X86_PLATFORM_DEVICES is not set
# CONFIG_IOMMU_SUPPORT is not set
# CONFIG_DMIID is not set
CONFIG_EXT4_FS=y
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not set
CONFIG_VFAT_FS=y
CONFIG_TMPFS=y
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NETWORK_FILESYSTEMS is not set
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_UTF8=y
# CONFIG_VIRTUALIZATION is not set
CONFIG_XZ_DEC=y

View File

@@ -0,0 +1,52 @@
Technologic Systems TS-5x00 SBCs
================================
This document explains how to set up a basic Buildroot system for the
Technologic Systems TS-5x00 serie of x86-based Single Board Computers.
TS-5x00 Single Board Computers are based on the AMD Elan520 processor. For more
information please have a look at http://wiki.embeddedarm.com/wiki/#AMD
The kernel configuration works for any AMD Elan520-based SBCs, but the support
is enhanced for the TS-5500 and TS-5400 models (on-board devices registration
and additional sysfs attributes under /sys/devices/platform/).
To build the default configuration you only have to:
$ make ts5x00_defconfig
$ make
You will need a Compact Flash card of sufficient size and the first or only
partition configured as Linux type, with the bootable flag.
You can transfer the system on the partition then optionally resize it with:
# dd if=output/images/rootfs.ext4 of=/dev/sdX1
# resize2fs /dev/sdX1
Or you can just extract the root filesystem to the partition with:
# mount /dev/sdX1 /mnt
# tar -pxf output/images/rootfs.tar -C /mnt
# umount /mnt
To install the bootloader, you will need to copy the MBR:
# cat output/images/syslinux/mbr.bin > /dev/sdX
Then install SYSLINUX in the mounted partition:
# mount /dev/sdX1 /mnt
# output/host/sbin/extlinux --install /mnt/boot/syslinux
# umount /mnt
IMPORTANT: In order for the board to boot the Compact Flash with a recent
config, the BIOS must use Logical Block Addressing (LBA). You can do it by
choosing "Ide 0: AUTOCONFIG, LBA" under "IDE DRIVE GEOMETRY" in the "Basic CMOS
Configuration" screen. Also, don't forget to set the 'active' (or 'bootable')
flag on partition 1. For details about the CMOS setup, please see:
http://wiki.embeddedarm.com/wiki/TS-5500#System_BIOS_Setup_Screens
Connect a terminal program to the rs232 connector marked "COM2"
with baudrate set to 115200, insert the Compact Flash card into the socket,
power up the board, and enjoy.