Variables » History » Version 4
« Previous -
Version 4/20
(diff) -
Next » -
Current version
Eric Krausser, 12/27/2011 10:55 PM
BOARD_FLASH_TYPE and BOARD_FLASH_SIZE hints
Variables¶
Board definition¶
SOC_VENDOR
A valid value would be a directory name from ./socs (http://zrouter.org/projects/zrouter/repository/show/socs).
SOC_CHIP
A valid value would be a directory name from ./socs/${SOC_VENDOR}.
BOARD_FLASH_TYPE
Obsolete, don't use it.
BOARD_FLASH_SIZE
Physical capacity of the flash chip in bytes.
e.g. BOARD_FLASH_SIZE=4194304
Customize kernel¶
KERNCONF_IDENT
Usually ${TARGET_VENDOR}_${TARGET_DEVICE}
WITH_USB
If defined (e.g. set to WITH_USB=yes), build with kernel modules like usb, ehci, umass, etc. (see ./socs/${SOC_VENDOR}/${SOC_CHIP}/soc.mk).
KERNCONF_MODULES_OVERRIDE
Use this to append additional kernel modules, e.g. KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/ucom cam zlib
Customize world¶
WORLD_SUBDIRS_ZROUTER
?? Additional utilities, e.g. WORLD_SUBDIRS_ZROUTER+=target/sbin/upgrade
TARGET_PROFILES
TARGET_PROFILES+=SMALL_
#TARGET_PROFILES+=SMALL_ mpd ssh shttpd dlink.ua.web hostap dhcp nfs_client # mono # racoon
Firmware image options¶
FIRMWARE_IMAGE_SIZE_MAX
Image must not be bigger than kernel+rootfs partition, but other limitations can apply (e.g. GEOM_MAP_P2 upgrade partition). For example NQ-900 has 32M of RAM and 16M of flash, but it is hard to download 16M image when you have only 32M of RAM.
e.g. FIRMWARE_IMAGE_SIZE_MAX=0x007a0000
KERNEL_COMPRESSION
KERNEL_COMPRESSION=oldlzma
KERNEL_COMPRESSION_TYPE=oldlzma
UBOOT_KERNEL_COMPRESSION_TYPE=lzma
MKULZMA_BLOCKSIZE=65536
PACKING_KERNEL_IMAGE
PACKING_KERNEL_IMAGE?=kernel.kbin.oldlzma.uboot.sync
PACKING_ROOTFS_IMAGE
PACKING_ROOTFS_IMAGE?=rootfs_clean.iso.ulzma
NEW_IMAGE_TYPE
For regular u-boot image set to "ubntimage". TODO tplink
NEW_IMAGE_TYPE=ubntimage