|
13 | 13 |
|
14 | 14 | #include <generated/environment.h> |
15 | 15 |
|
16 | | -#ifdef DEFAULT_ENV_INSTANCE_EMBEDDED |
17 | | -env_t embedded_environment __UBOOT_ENV_SECTION__(environment) = { |
18 | | - ENV_CRC, /* CRC Sum */ |
19 | | -#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT |
20 | | - 1, /* Flags: valid */ |
21 | | -#endif |
22 | | - { |
23 | | -#elif defined(DEFAULT_ENV_INSTANCE_STATIC) |
24 | | -static char default_environment[] = { |
25 | | -#elif defined(CONFIG_DEFAULT_ENV_IS_RW) |
26 | | -char default_environment[] = { |
27 | | -#else |
28 | 16 | const char default_environment[] = { |
29 | | -#endif |
30 | | -#ifndef CONFIG_USE_DEFAULT_ENV_FILE |
31 | | -#ifdef CONFIG_ENV_CALLBACK_LIST_DEFAULT |
32 | | - ENV_CALLBACK_VAR "=" CONFIG_ENV_CALLBACK_LIST_DEFAULT "\0" |
33 | | -#endif |
34 | | -#ifdef CONFIG_ENV_FLAGS_LIST_DEFAULT |
35 | | - ENV_FLAGS_VAR "=" CONFIG_ENV_FLAGS_LIST_DEFAULT "\0" |
36 | | -#endif |
37 | | -#ifdef CONFIG_USE_BOOTARGS |
38 | | - "bootargs=" CONFIG_BOOTARGS "\0" |
39 | | -#endif |
40 | | -#ifdef CONFIG_BOOTCOMMAND |
41 | | - "bootcmd=" CONFIG_BOOTCOMMAND "\0" |
42 | | -#endif |
43 | | -#if defined(CONFIG_BOOTDELAY) |
44 | | - "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0" |
45 | | -#endif |
46 | | -#if !defined(CONFIG_OF_SERIAL_BAUD) && defined(CONFIG_BAUDRATE) && (CONFIG_BAUDRATE >= 0) |
47 | | - "baudrate=" __stringify(CONFIG_BAUDRATE) "\0" |
48 | | -#endif |
49 | | -#ifdef CONFIG_LOADS_ECHO |
50 | | - "loads_echo=" __stringify(CONFIG_LOADS_ECHO) "\0" |
51 | | -#endif |
52 | | -#ifdef CONFIG_ETHPRIME |
53 | | - "ethprime=" CONFIG_ETHPRIME "\0" |
54 | | -#endif |
55 | | -#ifdef CONFIG_USE_IPADDR |
56 | | - "ipaddr=" CONFIG_IPADDR "\0" |
57 | | -#endif |
58 | | -#ifdef CONFIG_USE_SERVERIP |
59 | | - "serverip=" CONFIG_SERVERIP "\0" |
60 | | -#endif |
61 | | -#ifdef CONFIG_SYS_DISABLE_AUTOLOAD |
62 | | - "autoload=0\0" |
63 | | -#endif |
64 | | -#ifdef CONFIG_PREBOOT_DEFINED |
65 | | - "preboot=" CONFIG_PREBOOT "\0" |
66 | | -#endif |
67 | | -#ifdef CONFIG_USE_ROOTPATH |
68 | | - "rootpath=" CONFIG_ROOTPATH "\0" |
69 | | -#endif |
70 | | -#ifdef CONFIG_USE_GATEWAYIP |
71 | | - "gatewayip=" CONFIG_GATEWAYIP "\0" |
72 | | -#endif |
73 | | -#ifdef CONFIG_USE_NETMASK |
74 | | - "netmask=" CONFIG_NETMASK "\0" |
75 | | -#endif |
76 | | -#ifdef CONFIG_USE_HOSTNAME |
77 | | - "hostname=" CONFIG_HOSTNAME "\0" |
78 | | -#endif |
79 | | -#ifdef CONFIG_USE_BOOTFILE |
80 | | - "bootfile=" CONFIG_BOOTFILE "\0" |
81 | | -#endif |
82 | | -#ifdef CONFIG_SYS_LOAD_ADDR |
83 | | - "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR)"\0" |
84 | | -#endif |
85 | | -#ifdef CONFIG_ENV_VARS_UBOOT_CONFIG |
86 | | - "arch=" CONFIG_SYS_ARCH "\0" |
87 | | -#ifdef CONFIG_SYS_CPU |
88 | | - "cpu=" CONFIG_SYS_CPU "\0" |
89 | | -#endif |
90 | | -#ifdef CONFIG_SYS_BOARD |
91 | | - "board=" CONFIG_SYS_BOARD "\0" |
92 | | - "board_name=" CONFIG_SYS_BOARD "\0" |
93 | | -#endif |
94 | | -#ifdef CONFIG_SYS_VENDOR |
95 | | - "vendor=" CONFIG_SYS_VENDOR "\0" |
96 | | -#endif |
97 | | -#ifdef CONFIG_SYS_SOC |
98 | | - "soc=" CONFIG_SYS_SOC "\0" |
99 | | -#endif |
100 | | -#ifdef CONFIG_USB_HOST |
101 | | - "usb_ignorelist=" |
102 | | -#ifdef CONFIG_USB_KEYBOARD |
103 | | - /* Ignore Yubico devices. Currently only a single USB keyboard device is |
104 | | - * supported and the emulated HID keyboard Yubikeys present is useless |
105 | | - * as keyboard. |
106 | | - */ |
107 | | - "0x1050:*," |
108 | | -#endif |
| 17 | + "arch=arm\0" |
| 18 | + "baudrate=115200\0" |
| 19 | + "board=u200\0" |
| 20 | + "board_name=u200\0" |
| 21 | + "cpu=armv8\0" |
| 22 | + "dfu_alt_info=fitimage ram 0x08080000 0x4000000\0" |
| 23 | + "fdtoverlay_addr_r=0x01000000\0" |
| 24 | + "kernel_comp_addr_r=0x0d080000\0" |
| 25 | + "kernel_comp_size=0x2000000\0" |
| 26 | + "loadaddr=0x1000000\0" |
| 27 | + "pxefile_addr_r=0x01080000\0" |
| 28 | + "ramdisk_addr_r=0x13000000\0" |
| 29 | + "soc=meson\0" |
| 30 | + "stderr=vidconsole,serial\0" |
| 31 | + "stdin=usbkbd,serial\0" |
| 32 | + "stdout=vidconsole,serial\0" |
| 33 | + "vendor=amlogic\0" |
| 34 | + "baudrate=115200\0" |
| 35 | + "stderr=serial\0" |
| 36 | + "stdin=serial\0" |
| 37 | + "stdout=serial\0" |
| 38 | + "display_bpp=16\0" |
| 39 | + "display_color_bg=0\0" |
| 40 | + "display_color_fg=0xffff\0" |
| 41 | + "display_color_index=16\0" |
| 42 | + "display_height=800\0" |
| 43 | + "display_init=1\0" |
| 44 | + "display_layer=osd0\0" |
| 45 | + "display_stack=boe\0" |
| 46 | + "display_width=480\0" |
| 47 | + "fb_addr=0x1f800000\0" |
| 48 | + "fb_height=800\0" |
| 49 | + "fb_width=480\0" |
| 50 | + "frac_rate_policy=1\0" |
| 51 | + "osd_reverse=0\0" |
| 52 | + "outputmode=panel\0" |
| 53 | + "panel_type=lcd_8\0" |
| 54 | + "video_reverse=0\0" |
| 55 | + "dtb_mem_addr=0x1000000\0" |
| 56 | + "fdt_high=0x20000000\0" |
| 57 | + "loadaddr=1080000\0" |
| 58 | + "lock=10001000\0" |
| 59 | + "silent=off\0" |
| 60 | + "upgrade_step=0\0" |
| 61 | + "bootcmd=fatload mmc 2:1 0x1000000 boot.scr; source 0x1000000;\0" |
109 | 62 | "\0" |
110 | | -#endif |
111 | | -#ifdef CONFIG_ENV_IMPORT_FDT |
112 | | - "env_fdt_path=" CONFIG_ENV_FDT_PATH "\0" |
113 | | -#endif |
114 | | -#endif |
115 | | -#if defined(CONFIG_BOOTCOUNT_BOOTLIMIT) && (CONFIG_BOOTCOUNT_BOOTLIMIT > 0) |
116 | | - "bootlimit=" __stringify(CONFIG_BOOTCOUNT_BOOTLIMIT)"\0" |
117 | | -#endif |
118 | | -#ifdef CONFIG_MTDIDS_DEFAULT |
119 | | - "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" |
120 | | -#endif |
121 | | -#ifdef CONFIG_MTDPARTS_DEFAULT |
122 | | - "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" |
123 | | -#endif |
124 | | -#ifdef CONFIG_EXTRA_ENV_TEXT |
125 | | - /* This is created in the Makefile */ |
126 | | - CONFIG_EXTRA_ENV_TEXT |
127 | | -#endif |
128 | | -#ifdef CFG_EXTRA_ENV_SETTINGS |
129 | | - CFG_EXTRA_ENV_SETTINGS |
130 | | -#endif |
131 | | -#ifdef CONFIG_OF_SERIAL_BAUD |
132 | | - /* Padding for baudrate at the end when environment is writable */ |
133 | | - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
134 | | -#endif |
135 | | - "\0" |
136 | | -#else /* CONFIG_USE_DEFAULT_ENV_FILE */ |
137 | | -#include "generated/defaultenv_autogenerated.h" |
138 | | -#endif |
139 | | -#ifdef DEFAULT_ENV_INSTANCE_EMBEDDED |
140 | | - } |
141 | | -#endif |
142 | 63 | }; |
143 | 64 |
|
144 | | -#if !defined(USE_HOSTCC) && !defined(DEFAULT_ENV_INSTANCE_EMBEDDED) |
145 | 65 | #include <env_internal.h> |
146 | 66 | static_assert(sizeof(default_environment) <= ENV_SIZE, |
147 | 67 | "Default environment is too large"); |
148 | | -#endif |
0 commit comments