|
2 | 2 |
|
3 | 3 | require-fwup-version="1.0.0"
|
4 | 4 |
|
5 |
| -# |
6 |
| -# Firmware metadata |
7 |
| -# |
8 |
| - |
9 |
| -# All of these can be overriden using environment variables of the same name. |
10 |
| -# |
11 |
| -# Run 'fwup -m' to query values in a .fw file. |
12 |
| -# Use 'fw_printenv' to query values on the target. |
13 |
| -# |
14 |
| -# These are used by Nerves libraries to introspect. |
15 |
| -define(NERVES_FW_PRODUCT, "Nerves Firmware") |
16 |
| -define(NERVES_FW_DESCRIPTION, "") |
17 |
| -define(NERVES_FW_VERSION, "${NERVES_SDK_VERSION}") |
18 |
| -define(NERVES_FW_PLATFORM, "mangopi_mq_pro") |
19 |
| -define(NERVES_FW_ARCHITECTURE, "riscv") |
20 |
| -define(NERVES_FW_AUTHOR, "The Nerves Team") |
21 |
| - |
22 |
| -define(NERVES_FW_DEVPATH, "/dev/mmcblk0") |
23 |
| -define(NERVES_FW_APPLICATION_PART0_DEVPATH, "/dev/mmcblk0p4") # Linux part number is 1-based |
24 |
| -define(NERVES_FW_APPLICATION_PART0_FSTYPE, "f2fs") |
25 |
| -define(NERVES_FW_APPLICATION_PART0_TARGET, "/root") |
26 |
| -define(NERVES_PROVISIONING, "${NERVES_SYSTEM}/images/fwup_include/provisioning.conf") |
27 |
| - |
28 |
| -# Default paths if not specified via the commandline |
29 |
| -define(ROOTFS, "${NERVES_SYSTEM}/images/rootfs.squashfs") |
30 |
| - |
31 |
| -# This configuration file will create an image that |
32 |
| -# has an MBR and the following layout: |
33 |
| -# |
34 |
| -# +----------------------------+ |
35 |
| -# | MBR | |
36 |
| -# +----------------------------+ |
37 |
| -# | SPL and U-Boot | |
38 |
| -# +----------------------------+ |
39 |
| -# | U-Boot environment | |
40 |
| -# +----------------------------+ |
41 |
| -# | p1: Rootfs A (squashfs) | |
42 |
| -# +----------------------------+ |
43 |
| -# | p2: Rootfs B (squashfs) | |
44 |
| -# +----------------------------+ |
45 |
| -# | p3: Application (f2fs) | |
46 |
| -# +----------------------------+ |
47 |
| - |
48 |
| -define(UBOOT_OFFSET, 16) |
49 |
| -define(UBOOT_COUNT, 8176) |
50 |
| - |
51 |
| -# The U-Boot environment is written directly to the SDCard/eMMC. It is not |
52 |
| -# in any partition |
53 |
| -define(UBOOT_ENV_OFFSET, 8192) |
54 |
| -define(UBOOT_ENV_COUNT, 256) # 128 KB |
55 |
| - |
56 |
| -# Let the rootfs have room to grow up to 140 MiB and align it to the nearest 1 |
57 |
| -# MB boundary |
58 |
| -define(ROOTFS_A_PART_OFFSET, 43008) |
59 |
| -define(ROOTFS_A_PART_COUNT, 286720) |
60 |
| -define-eval(ROOTFS_B_PART_OFFSET, "${ROOTFS_A_PART_OFFSET} + ${ROOTFS_A_PART_COUNT}") |
61 |
| -define(ROOTFS_B_PART_COUNT, ${ROOTFS_A_PART_COUNT}) |
62 |
| - |
63 |
| -# Application partition. This partition can occupy all of the remaining space. |
64 |
| -# Size it to fit the destination. |
65 |
| -define-eval(APP_PART_OFFSET, "${ROOTFS_B_PART_OFFSET} + ${ROOTFS_B_PART_COUNT}") |
66 |
| -define(APP_PART_COUNT, 1048576) |
67 |
| - |
68 |
| -# Firmware archive metadata |
69 |
| -meta-product = ${NERVES_FW_PRODUCT} |
70 |
| -meta-description = ${NERVES_FW_DESCRIPTION} |
71 |
| -meta-version = ${NERVES_FW_VERSION} |
72 |
| -meta-platform = ${NERVES_FW_PLATFORM} |
73 |
| -meta-architecture = ${NERVES_FW_ARCHITECTURE} |
74 |
| -meta-author = ${NERVES_FW_AUTHOR} |
75 |
| -meta-vcs-identifier = ${NERVES_FW_VCS_IDENTIFIER} |
76 |
| -meta-misc = ${NERVES_FW_MISC} |
| 5 | +include("${NERVES_SDK_IMAGES:-.}/fwup_include/fwup-common.conf") |
77 | 6 |
|
78 | 7 | # File resources are listed in the order that they are included in the .fw file
|
79 | 8 | # This is important, since this is the order that they're written on a firmware
|
|
0 commit comments