Tom Rini : am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES, use '+=' in assignment
Module: meta-ti Branch: master Commit: f02d5e79064f09100b430644a92fe7d2e1418bcd URL: http://arago-project.org/git/meta-ti.git?a=commit;h=f02d5e79064f09100b430644a92fe7d2e1418bcd
Author: Tom Rini <[email protected]> Date: Thu Mar 29 10:18:18 2012 -0700
am335x-evm.conf: Add 'ubi' to IMAGE_FSTYPES, use '+=' in assignment
As per
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-March/020053.html
a machine conf file should use '+=' to set IMAGE_FSTYPES. We also add the required MKUBIFS_ARGS / UBINIZE_ARGS. These are placed next to the line that sets us to use the PSP kernel tree and reference the TI wiki for the source of our info as well as dmesg / userland commands.
Signed-off-by Tom Rini <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
---
conf/machine/am335x-evm.conf | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-)
conf/machine/am335x-evm.conf +22 -1
@@ -12,12 +12,33 @@ GUI_MACHINE_CLASS = "smallscreen" require conf/machine/include/ti33x.inc -IMAGE_FSTYPES ?= "tar.bz2" +IMAGE_FSTYPES += "ubi tar.bz2" SERIAL_CONSOLE = "115200 ttyO0" PREFERRED_PROVIDER_virtual/kernel = "linux-ti33x-psp" +# UBI information. Note that this is board and kernel specific. Changes +# in your kernel port may require changes in these variables. For more +# details about this board please see +# http://processors.wiki.ti.com/index.php/UBIFS_Support + +# do ubiattach /dev/ubi_ctrl -m 7 -O 2048 +# From dmesg: +# UBI: smallest flash I/O unit: 2048 +# UBI: logical eraseblock size: 126976 bytes +# from ubiattach stdout: +# UBI device number 0, total 1988 LEBs +MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 1988" + +# do ubiattach /dev/ubi_ctrl -m 7 -O 2048 +# from dmesg: +# UBI: smallest flash I/O unit: 2048 +# UBI: physical eraseblock size: 131072 bytes (128 KiB) +# UBI: sub-page size: 512 +# UBI: VID header offset: 2048 (aligned 2048) +UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048" + PREFERRED_PROVIDER_virtual/bootloader = "u-boot" UBOOT_ARCH = "arm"