Skip to content

Commit

Permalink
Added support for building NextThingCo ubifs
Browse files Browse the repository at this point in the history
By configuring UBIFS and UBINIZE parameters in conf/machin/chip.conf

Signoff, Rikard Söderström <soderstrom.rikard@gmail.com>
  • Loading branch information
soderstrom-rikard committed Jan 6, 2018
1 parent ad14da6 commit 9a4b869
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions conf/machine/chip.conf
Expand Up @@ -5,11 +5,18 @@
#https://github.com/NextThingCo/CHIP-linux

PREFERRED_PROVIDER_virtual/kernel ?= "linux-chip"
PREFERRED_PROVIDER_u-boot ?= "u-boot-chip"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-chip"
PREFERRED_VERSION_linux-chip ?= "4.3.0"
PREFFERED_VERSION_u-boot-chip ?= "v2015.10%"
KERNEL_IMAGETYPE ?= "zImage"

require conf/machine/include/sun5i.inc

KERNEL_DEVICETREE = "sun5i-r8-chip.dtb"
UBOOT_MACHINE_chip = "CHIP_config"
IMAGE_INSTALL_append = " kernel-devicetree kernel-image kernel-modules"
MKUBIFS_ARGS = "-e 0x1f8000 -c 2000 -m 0x4000 -x lzo"
UBINIZE_ARGS = "-m 0x4000 -p 0x200000 -s 16384"
IMAGE_CLASSES = ""
IMAGE_FSTYPES = "ext4 tar.gz ubi ubifs"
KERNEL_DEVICETREE = "sun5i-r8-chip.dtb"
UBOOT_MACHINE_chip = "CHIP_config"
4 changes: 2 additions & 2 deletions recipes-bsp/u-boot/files/uboot-env-chip
Expand Up @@ -20,8 +20,8 @@ mtdids=nand0=sunxi-nand.0
mtdparts=mtdparts=sunxi-nand.0:4m(spl),4m(spl-backup),4m(uboot),4m(env),-(UBI)

# Default boot options
bootargs=root=ubi0:rootfs rootfstype=ubifs rw ubi.mtd=4 consoleblank=0
bootcmd=nand slc-mode on; mtdparts; ubi part UBI; ubifsmount ubi0:rootfs; ubifsload $fdt_addr_r /boot/sun5i-r8-chip.dtb; ubifsload $kernel_addr_r /boot/zImage; bootz $kernel_addr_r - $fdt_addr_r
bootargs=root=ubi0:chip-rootfs rootfstype=ubifs rw ubi.mtd=4 consoleblank=0
bootcmd=nand slc-mode on; mtdparts; ubi part UBI; ubifsmount ubi0:chip-rootfs; ubifsload $fdt_addr_r /boot/sun5i-r8-chip.dtb; ubifsload $kernel_addr_r /boot/zImage; bootz $kernel_addr_r - $fdt_addr_r

# Ethernet options
usbnet_devaddr=de:ad:be:af:00:01

0 comments on commit 9a4b869

Please sign in to comment.