Project

General

Profile

Variables » History » Version 6

Eric Krausser, 12/27/2011 11:16 PM
NEW_IMAGE_TYPE zimage as link

1 1 Eric Krausser
h1. Variables
2 1 Eric Krausser
3 1 Eric Krausser
h2. Board definition
4 1 Eric Krausser
5 1 Eric Krausser
*SOC_VENDOR*
6 1 Eric Krausser
7 1 Eric Krausser
A valid value would be a directory name from ./socs (http://zrouter.org/projects/zrouter/repository/show/socs).
8 1 Eric Krausser
9 1 Eric Krausser
*SOC_CHIP*
10 1 Eric Krausser
11 1 Eric Krausser
A valid value would be a directory name from ./socs/${SOC_VENDOR}.
12 1 Eric Krausser
13 1 Eric Krausser
*BOARD_FLASH_TYPE*
14 1 Eric Krausser
15 4 Eric Krausser
Obsolete, don't use it.
16 4 Eric Krausser
17 1 Eric Krausser
*BOARD_FLASH_SIZE*
18 4 Eric Krausser
19 4 Eric Krausser
Physical capacity of the flash chip in bytes.
20 4 Eric Krausser
21 4 Eric Krausser
e.g. BOARD_FLASH_SIZE=4194304
22 4 Eric Krausser
23 1 Eric Krausser
24 1 Eric Krausser
h2. Customize kernel
25 1 Eric Krausser
26 1 Eric Krausser
*KERNCONF_IDENT*
27 1 Eric Krausser
28 1 Eric Krausser
Usually ${TARGET_VENDOR}_${TARGET_DEVICE}
29 1 Eric Krausser
30 1 Eric Krausser
*WITH_USB*
31 1 Eric Krausser
32 1 Eric Krausser
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).
33 1 Eric Krausser
34 1 Eric Krausser
*KERNCONF_MODULES_OVERRIDE*
35 1 Eric Krausser
36 1 Eric Krausser
Use this to append additional kernel modules, e.g. KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/ucom cam zlib
37 1 Eric Krausser
38 1 Eric Krausser
39 1 Eric Krausser
h2. Customize world
40 1 Eric Krausser
41 1 Eric Krausser
*WORLD_SUBDIRS_ZROUTER*
42 1 Eric Krausser
43 1 Eric Krausser
?? Additional utilities, e.g. WORLD_SUBDIRS_ZROUTER+=target/sbin/upgrade
44 1 Eric Krausser
45 1 Eric Krausser
46 1 Eric Krausser
*TARGET_PROFILES*
47 1 Eric Krausser
48 1 Eric Krausser
TARGET_PROFILES+=SMALL_
49 1 Eric Krausser
#TARGET_PROFILES+=SMALL_ mpd ssh shttpd dlink.ua.web hostap dhcp nfs_client # mono # racoon
50 1 Eric Krausser
51 1 Eric Krausser
52 1 Eric Krausser
h2. Firmware image options
53 1 Eric Krausser
54 1 Eric Krausser
*FIRMWARE_IMAGE_SIZE_MAX*
55 1 Eric Krausser
56 3 Eric Krausser
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.
57 2 Eric Krausser
58 2 Eric Krausser
e.g. FIRMWARE_IMAGE_SIZE_MAX=0x007a0000
59 1 Eric Krausser
60 1 Eric Krausser
61 1 Eric Krausser
*KERNEL_COMPRESSION*
62 1 Eric Krausser
63 1 Eric Krausser
KERNEL_COMPRESSION=oldlzma
64 1 Eric Krausser
KERNEL_COMPRESSION_TYPE=oldlzma
65 1 Eric Krausser
UBOOT_KERNEL_COMPRESSION_TYPE=lzma
66 1 Eric Krausser
MKULZMA_BLOCKSIZE=65536
67 1 Eric Krausser
68 1 Eric Krausser
69 1 Eric Krausser
*PACKING_KERNEL_IMAGE*
70 1 Eric Krausser
71 1 Eric Krausser
PACKING_KERNEL_IMAGE?=kernel.kbin.oldlzma.uboot.sync
72 1 Eric Krausser
73 1 Eric Krausser
74 1 Eric Krausser
*PACKING_ROOTFS_IMAGE*
75 1 Eric Krausser
76 1 Eric Krausser
PACKING_ROOTFS_IMAGE?=rootfs_clean.iso.ulzma
77 1 Eric Krausser
78 1 Eric Krausser
79 1 Eric Krausser
*NEW_IMAGE_TYPE*
80 1 Eric Krausser
81 5 Eric Krausser
Valid values:
82 6 Eric Krausser
* zimage (for regular uboot images, see [[zimage]])
83 5 Eric Krausser
* ubntimage (for Ubiquty boards)
84 1 Eric Krausser
85 5 Eric Krausser
e.g. NEW_IMAGE_TYPE=zimage