Variables » History » Version 7
Version 6 (Eric Krausser, 12/27/2011 11:16 PM) → Version 7/20 (Eric Krausser, 12/28/2011 12:20 AM)
h1. Variables
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.
e.g. BOARD_FLASH_SIZE=4194304
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*
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*
Valid values:
* zimage (for regular uboot images, see [[zimage]])
* ubntimage (for Ubiquty boards)
* trximage
* split_kernel_rootfs
e.g. NEW_IMAGE_TYPE=zimage
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.
e.g. BOARD_FLASH_SIZE=4194304
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*
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*
Valid values:
* zimage (for regular uboot images, see [[zimage]])
* ubntimage (for Ubiquty boards)
* trximage
* split_kernel_rootfs
e.g. NEW_IMAGE_TYPE=zimage