...
 
Commits (4)
SUMMARY = "Allwinner console image"
AUTHOR = "Dimitris Tassopoulos <dimtass@gmail.com>"
LICENSE = "MIT"
AUTHOR = "Dimitris Tassopoulos"
inherit core-image
inherit allwinner-create-wks
......@@ -21,14 +21,7 @@ EXTRA_PKGS = " \
"
IMAGE_INSTALL += " \
${STANDARD_PKGS} \
${TEST_TOOLS} \
${EXTRA_PKGS} \
tar \
bash \
merge-files \
wget \
allwinner-performance \
procps \
udev-automount \
usbreset \
"
......@@ -3,19 +3,19 @@
# Author: Dimitris Tassopoulos <dimtass@gmail.com>
# sun8i builds a composite image for SPL and u-boot
SPL_NAME_sun8i = "u-boot-sunxi-with-spl.bin"
SPL_NAME_sun8i ?= "u-boot-sunxi-with-spl.bin"
# sun50i builds an SPL and a u-boot image
SPL_NAME_sun50i = "sunxi-spl.bin"
UBOOT_IMAGE_sun50i = "u-boot.itb"
SPL_NAME_sun50i ?= "sunxi-spl.bin"
UBOOT_IMAGE_sun50i ?= "u-boot.itb"
SUNXI_BOOT_IMAGE = "boot.img"
SUNXI_BOOT_IMAGE ?= "boot.img"
# device will be used in u-boot and /etc/fstab
SUNXI_STORAGE_DEVICE = "mmcblk0"
SUNXI_STORAGE_DEVICE ?= "mmcblk0"
# This is the extra space for the rootfs
ROOT_EXTRA_SPACE = "10240"
ROOT_EXTRA_SPACE ?= "10240"
# if you need swap file then add here the size of it
SUNXI_SWAP_SIZE = "512"
\ No newline at end of file
SUNXI_SWAP_SIZE ?= "512"
\ No newline at end of file
......@@ -11,9 +11,18 @@ SENSORS_PKGS = " \
# Standard packages
STANDARD_PKGS = " \
tar \
bash \
merge-files \
wget \
allwinner-performance \
procps \
udev-automount \
usbreset \
udev \
dfu-util \
pkgconfig \
u-boot-fw-utils \
"
# Extra debug packages
......
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
xf86-video-fbturbo \
xf86-input-evdev \
xf86-input-mouse \
xf86-input-keyboard"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-stable"
PREFERRED_VERSION_linux-stable ?= "4.14%"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
PREFERRED_VERSION_u-boot ?= "v2018.05%"
IMAGE_CLASSES += "sdcard_image-sunxi"
IMAGE_FSTYPES += "ext4 tar.gz sunxi-sdimg wic.bz2 wic.bmap"
do_image_wic[depends] += " gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
# Build wic image after sunxi_sdimg, because we need the 'boot/img' file
do_image_wic[recrdeptask] += " do_image_sunxi_sdimg"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
UBOOT_ENTRYPOINT ?= "0x40008000"
UBOOT_LOADADDRESS ?= "0x400080OB00"
SERIAL_CONSOLE ?= "115200 ttyS0"
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
\ No newline at end of file
require conf/machine/include/arm/arch-armv8.inc
require conf/machine/include/soc-family.inc
require allwinner-overlays.inc
require sun-common.inc
SOC_FAMILY = "sun50i"
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
xf86-video-fbturbo \
xf86-input-evdev \
xf86-input-mouse \
xf86-input-keyboard"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-stable"
PREFERRED_VERSION_linux-stable ?= "4.14%"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
PREFERRED_VERSION_u-boot ?= "v2018.05%"
KERNEL_IMAGETYPE ?= "Image"
IMAGE_CLASSES += "sdcard_image-sunxi"
IMAGE_FSTYPES += "ext4 tar.gz sunxi-sdimg wic.bz2 wic.bmap"
do_image_wic[depends] += " gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
# Build wic image after sunxi_sdimg, because we need the 'boot/img' file
do_image_wic[recrdeptask] += " do_image_sunxi_sdimg"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
UBOOT_ENTRYPOINT ?= "0x40008000"
UBOOT_LOADADDRESS ?= "0x400080OB00"
UBOOT_BINARY ?= "u-boot.itb"
SPL_BINARY ?= "spl/sunxi-spl.bin"
SERIAL_CONSOLE ?= "115200 ttyS0"
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
KERNEL_DEVICETREE ?= "${SUN50I_OVERLAYS} ${SUNXI_KERNEL_DEVICETREE}"
\ No newline at end of file
require conf/machine/include/tune-cortexa7.inc
include conf/machine/include/soc-family.inc
require conf/machine/include/soc-family.inc
require allwinner-overlays.inc
require sun-common.inc
SOC_FAMILY = "sun8i"
......@@ -8,36 +9,8 @@ SOC_FAMILY = "sun8i"
MACHINE_SOCARCH_SUFFIX ?= ""
MACHINE_SOCARCH_SUFFIX_sun4i = "-sun4i"
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
XSERVER = "xserver-xorg \
xf86-video-fbturbo \
xf86-input-evdev \
xf86-input-mouse \
xf86-input-keyboard"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-stable"
PREFERRED_VERSION_linux-stable ?= "4.14%"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
PREFERRED_VERSION_u-boot ?= "v2018.05%"
KERNEL_IMAGETYPE ?= "zImage"
IMAGE_CLASSES += "sdcard_image-sunxi"
IMAGE_FSTYPES += "ext4 tar.gz sunxi-sdimg wic.bz2 wic.bmap"
do_image_wic[depends] += " gptfdisk-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
# Build wic image after sunxi_sdimg, because we need the 'boot/img' file
do_image_wic[recrdeptask] += " do_image_sunxi_sdimg"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
UBOOT_ENTRYPOINT ?= "0x40008000"
UBOOT_LOADADDRESS ?= "0x400080OB00"
SPL_BINARY ?= "u-boot-sunxi-with-spl.bin"
SERIAL_CONSOLE ?= "115200 ttyS0"
MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
KERNEL_DEVICETREE ?= "${SUN8I_OVERLAYS} ${SUNXI_KERNEL_DEVICETREE}"
# Configuration file for fw_(printenv/setenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
# Futhermore, if the Flash sector size is omitted, this value is assumed to
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
# NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd1 0x0000 0x4000 0x4000
#/dev/mtd2 0x0000 0x4000 0x4000
# MTD SPI-dataflash example
# MTD device name Device offset Env. size Flash sector size Number of sectors
#/dev/mtd5 0x4200 0x4200
#/dev/mtd6 0x4200 0x4200
# NAND example
#/dev/mtd0 0x4000 0x4000 0x20000 2
# On a block device a negative offset is treated as a backwards offset from the
# end of the device/partition, rather than a forwards offset from the start.
# Block device example
/dev/mmcblk0 0xc0000 0x20000
#/dev/mmcblk0 -0x20000 0x20000
# VFAT example
#/boot/uboot.env 0x0000 0x4000
# UBI volume
#/dev/ubi0_0 0x0 0x1f000 0x1f000
#/dev/ubi0_1 0x0 0x1f000 0x1f000
# UBI volume by name
#/dev/ubi0:env 0x0 0x1f000 0x1f000
#/dev/ubi0:env-redund 0x0 0x1f000 0x1f000
FILESEXTRAPATHS_append := "${THISDIR}/files:"
SRC_URI += " \
file://fw_env.config \
"
# override the default fw_env.config
do_install_append () {
install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
}
\ No newline at end of file