Project

General

Profile

Variables » History » Version 12

Version 11 (Eric Krausser, 01/03/2012 07:49 PM) → Version 12/20 (Eric Krausser, 01/04/2012 12:37 AM)

h1. Variables for board.mk

h2. 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. Valid values are numbers, hex numbers, or numbers with trailing M or K.

e.g.:
BOARD_FLASH_SIZE=8388608
BOARD_FLASH_SIZE=0x00800000
BOARD_FLASH_SIZE=8M
BOARD_FLASH_SIZE=8192K

h2. 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

h2. 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

h2. Firmware image options

*FIRMWARE_IMAGE_SIZE_MAX*

The Image must not be bigger than the geom_map 'upgrade' partition (see [[Partition_layout]]), kernel+rootfs partition, but other limitations can apply. 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*

Valid values:
* zimage (for regular uboot images, see [[zimage]])
* ubntimage (for Ubiquty boards)
* trximage
* tplink_image (for some TP-Link boards with 'special' uboot)
* split_kernel_rootfs

e.g. NEW_IMAGE_TYPE=zimage

h1. Variables for profile.mk

*WORLD_SUBDIRS*

*WORLD_SUBDIRS_BIN*

A shortcut that add to WORLD_SUBDIRS each bin/${item}

*WORLD_SUBDIRS_SBIN*

A shortcut that add to WORLD_SUBDIRS each sbin/${item}

*WORLD_SUBDIRS_USR_SBIN*

A shortcut that add to WORLD_SUBDIRS each usr.sbin/${item}

*WORLD_SUBDIRS_USR_BIN*

A shortcut that add to WORLD_SUBDIRS each usr.bin/${item}

*WORLD_SUBDIRS_LIB*

A shortcut that add to WORLD_SUBDIRS each lib/${item}