build: fix warnings from grep
[openwrt/openwrt.git] / package / boot / uboot-mediatek / patches / 403-add-bananapi_bpi-r64_defconfigs.patch
1 --- /dev/null
2 +++ b/configs/mt7622_bananapi_bpi-r64-sdmmc_defconfig
3 @@ -0,0 +1,144 @@
4 +CONFIG_ARM=y
5 +CONFIG_POSITION_INDEPENDENT=y
6 +CONFIG_ARCH_MEDIATEK=y
7 +CONFIG_TARGET_MT7622=y
8 +CONFIG_SYS_TEXT_BASE=0x41e00000
9 +CONFIG_SYS_MALLOC_F_LEN=0x4000
10 +CONFIG_USE_DEFAULT_ENV_FILE=y
11 +CONFIG_BOARD_LATE_INIT=y
12 +CONFIG_BOOTP_SEND_HOSTNAME=y
13 +CONFIG_NR_DRAM_BANKS=1
14 +CONFIG_DEBUG_UART_BASE=0x11002000
15 +CONFIG_DEBUG_UART_CLOCK=25000000
16 +CONFIG_DEFAULT_DEVICE_TREE="mt7622-bananapi-bpi-r64"
17 +CONFIG_OF_LIBFDT_OVERLAY=y
18 +CONFIG_DEBUG_UART=y
19 +CONFIG_DEFAULT_ENV_FILE="bananapi_bpi-r64-sdmmc_env"
20 +CONFIG_NET_RANDOM_ETHADDR=y
21 +CONFIG_SMBIOS_PRODUCT_NAME=""
22 +CONFIG_AUTOBOOT_KEYED=y
23 +CONFIG_BOOTDELAY=30
24 +CONFIG_AUTOBOOT_MENU_SHOW=y
25 +CONFIG_CFB_CONSOLE_ANSI=y
26 +CONFIG_BUTTON=y
27 +CONFIG_BUTTON_GPIO=y
28 +CONFIG_GPIO_HOG=y
29 +CONFIG_CMD_ENV_FLAGS=y
30 +CONFIG_FIT=y
31 +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
32 +CONFIG_LED=y
33 +CONFIG_LED_BLINK=y
34 +CONFIG_LED_GPIO=y
35 +CONFIG_LOGLEVEL=7
36 +CONFIG_LOG=y
37 +CONFIG_DEFAULT_FDT_FILE="mt7622-bananapi-bpi-r64"
38 +CONFIG_SYS_PROMPT="MT7622> "
39 +CONFIG_CMD_BOOTMENU=y
40 +CONFIG_CMD_BOOTP=y
41 +CONFIG_CMD_BUTTON=y
42 +CONFIG_CMD_CACHE=y
43 +CONFIG_CMD_CDP=y
44 +CONFIG_CMD_DHCP=y
45 +CONFIG_CMD_DNS=y
46 +CONFIG_CMD_ECHO=y
47 +CONFIG_CMD_ENV_READMEM=y
48 +CONFIG_CMD_ERASEENV=y
49 +CONFIG_CMD_EXT4=y
50 +CONFIG_CMD_FAT=y
51 +CONFIG_CMD_FS_GENERIC=y
52 +CONFIG_CMD_FS_UUID=y
53 +CONFIG_CMD_GPIO=y
54 +CONFIG_CMD_GPT=y
55 +CONFIG_CMD_HASH=y
56 +CONFIG_CMD_ITEST=y
57 +CONFIG_CMD_LED=y
58 +CONFIG_CMD_LICENSE=y
59 +CONFIG_CMD_LINK_LOCAL=y
60 +# CONFIG_CMD_MBR is not set
61 +CONFIG_CMD_MMC=y
62 +CONFIG_CMD_PCI=y
63 +CONFIG_CMD_SF_TEST=y
64 +CONFIG_CMD_PING=y
65 +CONFIG_CMD_PXE=y
66 +CONFIG_CMD_PWM=y
67 +CONFIG_CMD_SMC=y
68 +CONFIG_CMD_TFTPBOOT=y
69 +CONFIG_CMD_TFTPSRV=y
70 +CONFIG_CMD_ASKENV=y
71 +CONFIG_CMD_PART=y
72 +# CONFIG_CMD_PSTORE is not set
73 +CONFIG_CMD_RARP=y
74 +CONFIG_CMD_SETEXPR=y
75 +CONFIG_CMD_SLEEP=y
76 +CONFIG_CMD_SNTP=y
77 +CONFIG_CMD_SOURCE=y
78 +CONFIG_CMD_STRINGS=y
79 +CONFIG_CMD_USB=y
80 +CONFIG_CMD_UUID=y
81 +CONFIG_DISPLAY_CPUINFO=y
82 +CONFIG_DM_MMC=y
83 +CONFIG_DM_REGULATOR=y
84 +CONFIG_DM_REGULATOR_FIXED=y
85 +CONFIG_DM_REGULATOR_GPIO=y
86 +CONFIG_DM_USB=y
87 +CONFIG_DM_PWM=y
88 +CONFIG_PWM_MTK=y
89 +CONFIG_HUSH_PARSER=y
90 +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
91 +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
92 +CONFIG_ENV_IS_IN_MMC=y
93 +CONFIG_SYS_MMC_ENV_DEV=1
94 +CONFIG_ENV_OFFSET=0x400000
95 +CONFIG_ENV_OFFSET_REDUND=0x480000
96 +CONFIG_ENV_SIZE=0x80000
97 +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
98 +CONFIG_VERSION_VARIABLE=y
99 +CONFIG_PARTITION_UUIDS=y
100 +CONFIG_NETCONSOLE=y
101 +CONFIG_REGMAP=y
102 +CONFIG_SYSCON=y
103 +CONFIG_CLK=y
104 +CONFIG_DM_GPIO=y
105 +CONFIG_DM_SCSI=y
106 +CONFIG_AHCI=y
107 +CONFIG_AHCI_PCI=y
108 +CONFIG_SCSI_AHCI=y
109 +CONFIG_SCSI=y
110 +CONFIG_CMD_SCSI=y
111 +CONFIG_PHY=y
112 +CONFIG_PHY_MTK_TPHY=y
113 +CONFIG_PHY_FIXED=y
114 +CONFIG_MTK_AHCI=y
115 +CONFIG_DM_ETH=y
116 +CONFIG_MEDIATEK_ETH=y
117 +CONFIG_PCI=y
118 +CONFIG_DM_PCI=y
119 +CONFIG_PCIE_MEDIATEK=y
120 +CONFIG_PINCTRL=y
121 +CONFIG_PINCONF=y
122 +CONFIG_PINCTRL_MT7622=y
123 +CONFIG_POWER_DOMAIN=y
124 +CONFIG_PRE_CONSOLE_BUFFER=y
125 +CONFIG_PRE_CON_BUF_ADDR=0x4007EF00
126 +CONFIG_MTK_POWER_DOMAIN=y
127 +CONFIG_RAM=y
128 +CONFIG_DM_SERIAL=y
129 +CONFIG_MTK_SERIAL=y
130 +CONFIG_MMC=y
131 +CONFIG_MMC_DEFAULT_DEV=1
132 +CONFIG_MMC_HS200_SUPPORT=y
133 +CONFIG_MMC_MTK=y
134 +CONFIG_MMC_SUPPORTS_TUNING=y
135 +CONFIG_SUPPORT_EMMC_BOOT=y
136 +CONFIG_SYSRESET_WATCHDOG=y
137 +CONFIG_WDT_MTK=y
138 +CONFIG_LZO=y
139 +CONFIG_ZSTD=y
140 +CONFIG_HEXDUMP=y
141 +CONFIG_RANDOM_UUID=y
142 +CONFIG_REGEX=y
143 +CONFIG_USB=y
144 +CONFIG_USB_HOST=y
145 +CONFIG_USB_XHCI_HCD=y
146 +CONFIG_USB_XHCI_MTK=y
147 +CONFIG_USB_STORAGE=y
148 --- /dev/null
149 +++ b/bananapi_bpi-r64-sdmmc_env
150 @@ -0,0 +1,60 @@
151 +ipaddr=192.168.1.1
152 +serverip=192.168.1.254
153 +loadaddr=0x4007ff28
154 +bootcmd=run boot_sdmmc
155 +bootargs=root=/dev/mmcblk1p6
156 +bootconf=config-mt7622-bananapi-bpi-r64-pcie1
157 +bootconf_pcie=config-mt7622-bananapi-bpi-r64-pcie1
158 +bootconf_sata=config-mt7622-bananapi-bpi-r64-sata
159 +bootdelay=0
160 +bootfile=openwrt-mediatek-mt7622-bananapi_bpi-r64-initramfs-recovery.itb
161 +bootfile_upg=openwrt-mediatek-mt7622-bananapi_bpi-r64-squashfs-sysupgrade.itb
162 +bootfile_emmcbl3=openwrt-mediatek-mt7622-bananapi_bpi-r64-boot-emmc.img
163 +bootfile_emmcbl2=openwrt-mediatek-mt7622-bananapi_bpi-r64-bl2-emmc.bin
164 +bootmenu_confirm_return=askenv - Press ENTER to return to menu ; bootmenu 60
165 +bootmenu_default=0
166 +bootmenu_delay=0
167 +bootmenu_title= \e[0;34m( ( ( \e[1;39mOpenWrt\e[0;34m ) ) ) \e[0;36m[SD card]\e[0m
168 +bootmenu_0=Initialize environment.=run _firstboot
169 +bootmenu_0d=Run default boot command.=run boot_default
170 +bootmenu_1=Boot system via TFTP.=run boot_tftp ; run bootmenu_confirm_return
171 +bootmenu_2=Boot production system from SD card.=run boot_production ; run bootmenu_confirm_return
172 +bootmenu_3=Boot recovery system from SD card.=run boot_recovery ; run bootmenu_confirm_return
173 +bootmenu_4=Load production system via TFTP then write to SD card.=setenv noboot 1 ; run boot_tftp_production ; setenv noboot ; run bootmenu_confirm_return
174 +bootmenu_5=Load recovery system via TFTP then write to SD card.=setenv noboot 1 ; run boot_tftp_recovery ; setenv noboot ; run bootmenu_confirm_return
175 +bootmenu_6=\e[31mInstall bootloader and recovery to eMMC.\e[0m=run emmc_init ; run bootmenu_confirm_return
176 +bootmenu_7=Reboot.=reset
177 +bootmenu_8=Reset all settings to factory defaults.=run reset_factory ; reset
178 +boot_default=if env exists flag_recover ; then else run bootcmd ; fi ; run boot_recovery ; run boot_tftp_forever
179 +boot_first=if button reset ; then run boot_tftp_forever ; fi ; setenv flag_recover 1 ; bootmenu
180 +boot_production=led bpi-r64:pio:green on ; run sdmmc_read_production && bootm $loadaddr#$bootconf
181 +boot_recovery=led bpi-r64:pio:green off ; run sdmmc_read_recovery && bootm $loadaddr#$bootconf
182 +boot_sdmmc=run boot_production ; run boot_recovery
183 +boot_tftp_forever=led bpi-r64:pio:blue on ; while true ; do run boot_tftp_recovery ; sleep 1 ; done
184 +boot_tftp_production=tftpboot $loadaddr $bootfile_upg && run sdmmc_write_production ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
185 +boot_tftp_recovery=tftpboot $loadaddr $bootfile && iminfo $loadaddr && run sdmmc_write_recovery ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
186 +boot_tftp=tftpboot $loadaddr $bootfile && bootm $loadaddr
187 +emmc_write_bl2=mmc dev 0 1 && mmc partconf 0 1 1 1 && mmc erase 0x0 0x400 && mmc write $loadaddr 0x0 0x100 ; mmc partconf 0 1 1 0
188 +emmc_write_hdr=mmc dev 0 0 && mmc erase 0x0 0x40 && mmc write $loadaddr 0x0 0x40
189 +emmc_write_bl3=mmc dev 0 0 && mmc erase 0x1000 0x800 && mmc write $loadaddr 0x1000 0x800
190 +emmc_write_production=iminfo $loadaddr && mmc dev 0 && part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_write_vol
191 +emmc_write_recovery=iminfo $loadaddr && mmc dev 0 && part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_write_vol
192 +emmc_init_bl=run sdmmc_read_emmc_bl2 && run emmc_write_bl2 && run sdmmc_read_emmc_hdr && run emmc_write_hdr && run sdmmc_read_emmc_bl3 && run emmc_write_bl3
193 +emmc_init_openwrt=run sdmmc_read_recovery && run emmc_write_recovery ; run sdmmc_read_production && run emmc_write_production
194 +emmc_init=run emmc_init_bl && run emmc_init_openwrt ; env default bootcmd ; saveenv ; saveenv
195 +sdmmc_write_production=iminfo $fileaddr && mmc dev 1 && part start mmc 1 $part_default part_addr && part size mmc 1 $part_default part_size && run mmc_write_vol
196 +sdmmc_write_recovery=iminfo $fileaddr && mmc dev 1 && part start mmc 1 $part_recovery part_addr && part size mmc 1 $part_recovery part_size && run mmc_write_vol
197 +sdmmc_read_production=mmc dev 1 && part start mmc 1 $part_default part_addr && part size mmc 1 $part_default part_size && run mmc_read_vol
198 +sdmmc_read_recovery=mmc dev 1 && part start mmc 1 $part_recovery part_addr && part size mmc 1 $part_recovery part_size && run mmc_read_vol
199 +sdmmc_read_emmc_hdr=mmc dev 1 && mmc read $loadaddr 0x100 0x40
200 +sdmmc_read_emmc_bl2=mmc dev 1 && mmc read $loadaddr 0x200 0x100
201 +sdmmc_read_emmc_bl3=mmc dev 1 && mmc read $loadaddr 0x800 0x800
202 +mmc_write_vol=imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc erase 0x$part_addr 0x$part_size && mmc write $loadaddr 0x$part_addr 0x$image_size
203 +mmc_read_vol=mmc read $loadaddr $part_addr 0x8 && imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc read $loadaddr 0x$part_addr 0x$image_size
204 +part_default=production
205 +part_recovery=recovery
206 +reset_factory=eraseenv && reset
207 +_init_env=setenv _init_env ; setenv _create_env ; saveenv ; saveenv
208 +_firstboot=setenv _firstboot ; led bpi-r64:pio:blue on ; run _switch_to_menu ; run _init_env ; run boot_first
209 +_switch_to_menu=setenv _switch_to_menu ; setenv bootdelay 3 ; setenv bootmenu_delay 3 ; setenv bootmenu_0 $bootmenu_0d ; setenv bootmenu_0d ; run _bootmenu_update_title
210 +_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title \e[33m$ver\e[0m"
211 --- /dev/null
212 +++ b/configs/mt7622_bananapi_bpi-r64-emmc_defconfig
213 @@ -0,0 +1,144 @@
214 +CONFIG_ARM=y
215 +CONFIG_POSITION_INDEPENDENT=y
216 +CONFIG_ARCH_MEDIATEK=y
217 +CONFIG_TARGET_MT7622=y
218 +CONFIG_SYS_TEXT_BASE=0x41e00000
219 +CONFIG_SYS_MALLOC_F_LEN=0x4000
220 +CONFIG_USE_DEFAULT_ENV_FILE=y
221 +CONFIG_BOARD_LATE_INIT=y
222 +CONFIG_BOOTP_SEND_HOSTNAME=y
223 +CONFIG_NR_DRAM_BANKS=1
224 +CONFIG_DEBUG_UART_BASE=0x11002000
225 +CONFIG_DEBUG_UART_CLOCK=25000000
226 +CONFIG_DEFAULT_DEVICE_TREE="mt7622-bananapi-bpi-r64"
227 +CONFIG_OF_LIBFDT_OVERLAY=y
228 +CONFIG_DEBUG_UART=y
229 +CONFIG_DEFAULT_ENV_FILE="bananapi_bpi-r64-emmc_env"
230 +CONFIG_NET_RANDOM_ETHADDR=y
231 +CONFIG_SMBIOS_PRODUCT_NAME=""
232 +CONFIG_AUTOBOOT_KEYED=y
233 +CONFIG_BOOTDELAY=30
234 +CONFIG_AUTOBOOT_MENU_SHOW=y
235 +CONFIG_CFB_CONSOLE_ANSI=y
236 +CONFIG_BUTTON=y
237 +CONFIG_BUTTON_GPIO=y
238 +CONFIG_GPIO_HOG=y
239 +CONFIG_CMD_ENV_FLAGS=y
240 +CONFIG_FIT=y
241 +CONFIG_FIT_ENABLE_SHA256_SUPPORT=y
242 +CONFIG_LED=y
243 +CONFIG_LED_BLINK=y
244 +CONFIG_LED_GPIO=y
245 +CONFIG_LOGLEVEL=7
246 +CONFIG_LOG=y
247 +CONFIG_DEFAULT_FDT_FILE="mt7622-bananapi-bpi-r64"
248 +CONFIG_SYS_PROMPT="MT7622> "
249 +CONFIG_CMD_BOOTMENU=y
250 +CONFIG_CMD_BOOTP=y
251 +CONFIG_CMD_BUTTON=y
252 +CONFIG_CMD_CACHE=y
253 +CONFIG_CMD_CDP=y
254 +CONFIG_CMD_DHCP=y
255 +CONFIG_CMD_DNS=y
256 +CONFIG_CMD_ECHO=y
257 +CONFIG_CMD_ENV_READMEM=y
258 +CONFIG_CMD_ERASEENV=y
259 +CONFIG_CMD_EXT4=y
260 +CONFIG_CMD_FAT=y
261 +CONFIG_CMD_FS_GENERIC=y
262 +CONFIG_CMD_FS_UUID=y
263 +CONFIG_CMD_GPIO=y
264 +CONFIG_CMD_GPT=y
265 +CONFIG_CMD_HASH=y
266 +CONFIG_CMD_ITEST=y
267 +CONFIG_CMD_LED=y
268 +CONFIG_CMD_LICENSE=y
269 +CONFIG_CMD_LINK_LOCAL=y
270 +# CONFIG_CMD_MBR is not set
271 +CONFIG_CMD_MMC=y
272 +CONFIG_CMD_PCI=y
273 +CONFIG_CMD_SF_TEST=y
274 +CONFIG_CMD_PING=y
275 +CONFIG_CMD_PXE=y
276 +CONFIG_CMD_PWM=y
277 +CONFIG_CMD_SMC=y
278 +CONFIG_CMD_TFTPBOOT=y
279 +CONFIG_CMD_TFTPSRV=y
280 +CONFIG_CMD_ASKENV=y
281 +CONFIG_CMD_PART=y
282 +# CONFIG_CMD_PSTORE is not set
283 +CONFIG_CMD_RARP=y
284 +CONFIG_CMD_SETEXPR=y
285 +CONFIG_CMD_SLEEP=y
286 +CONFIG_CMD_SNTP=y
287 +CONFIG_CMD_SOURCE=y
288 +CONFIG_CMD_STRINGS=y
289 +CONFIG_CMD_USB=y
290 +CONFIG_CMD_UUID=y
291 +CONFIG_DISPLAY_CPUINFO=y
292 +CONFIG_DM_MMC=y
293 +CONFIG_DM_REGULATOR=y
294 +CONFIG_DM_REGULATOR_FIXED=y
295 +CONFIG_DM_REGULATOR_GPIO=y
296 +CONFIG_DM_USB=y
297 +CONFIG_DM_PWM=y
298 +CONFIG_PWM_MTK=y
299 +CONFIG_HUSH_PARSER=y
300 +CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
301 +CONFIG_SYS_RELOC_GD_ENV_ADDR=y
302 +CONFIG_ENV_IS_IN_MMC=y
303 +CONFIG_SYS_MMC_ENV_DEV=0
304 +CONFIG_ENV_OFFSET=0x400000
305 +CONFIG_ENV_OFFSET_REDUND=0x480000
306 +CONFIG_ENV_SIZE=0x80000
307 +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
308 +CONFIG_VERSION_VARIABLE=y
309 +CONFIG_PARTITION_UUIDS=y
310 +CONFIG_NETCONSOLE=y
311 +CONFIG_REGMAP=y
312 +CONFIG_SYSCON=y
313 +CONFIG_CLK=y
314 +CONFIG_DM_GPIO=y
315 +CONFIG_DM_SCSI=y
316 +CONFIG_AHCI=y
317 +CONFIG_AHCI_PCI=y
318 +CONFIG_SCSI_AHCI=y
319 +CONFIG_SCSI=y
320 +CONFIG_CMD_SCSI=y
321 +CONFIG_PHY=y
322 +CONFIG_PHY_MTK_TPHY=y
323 +CONFIG_PHY_FIXED=y
324 +CONFIG_MTK_AHCI=y
325 +CONFIG_DM_ETH=y
326 +CONFIG_MEDIATEK_ETH=y
327 +CONFIG_PCI=y
328 +CONFIG_DM_PCI=y
329 +CONFIG_PCIE_MEDIATEK=y
330 +CONFIG_PINCTRL=y
331 +CONFIG_PINCONF=y
332 +CONFIG_PINCTRL_MT7622=y
333 +CONFIG_POWER_DOMAIN=y
334 +CONFIG_PRE_CONSOLE_BUFFER=y
335 +CONFIG_PRE_CON_BUF_ADDR=0x4007EF00
336 +CONFIG_MTK_POWER_DOMAIN=y
337 +CONFIG_RAM=y
338 +CONFIG_DM_SERIAL=y
339 +CONFIG_MTK_SERIAL=y
340 +CONFIG_MMC=y
341 +CONFIG_MMC_DEFAULT_DEV=0
342 +CONFIG_MMC_HS200_SUPPORT=y
343 +CONFIG_MMC_MTK=y
344 +CONFIG_MMC_SUPPORTS_TUNING=y
345 +CONFIG_SUPPORT_EMMC_BOOT=y
346 +CONFIG_SYSRESET_WATCHDOG=y
347 +CONFIG_WDT_MTK=y
348 +CONFIG_LZO=y
349 +CONFIG_ZSTD=y
350 +CONFIG_HEXDUMP=y
351 +CONFIG_RANDOM_UUID=y
352 +CONFIG_REGEX=y
353 +CONFIG_USB=y
354 +CONFIG_USB_HOST=y
355 +CONFIG_USB_XHCI_HCD=y
356 +CONFIG_USB_XHCI_MTK=y
357 +CONFIG_USB_STORAGE=y
358 --- /dev/null
359 +++ b/bananapi_bpi-r64-emmc_env
360 @@ -0,0 +1,46 @@
361 +ipaddr=192.168.1.1
362 +serverip=192.168.1.254
363 +loadaddr=0x4007ff28
364 +bootcmd=run boot_emmc
365 +bootargs=root=/dev/mmcblk0p5
366 +bootconf=config-mt7622-bananapi-bpi-r64-pcie1
367 +bootconf_pcie=config-mt7622-bananapi-bpi-r64-pcie1
368 +bootconf_sata=config-mt7622-bananapi-bpi-r64-sata
369 +bootdelay=0
370 +bootfile=openwrt-mediatek-mt7622-bananapi_bpi-r64-initramfs-recovery.itb
371 +bootfile_upg=openwrt-mediatek-mt7622-bananapi_bpi-r64-squashfs-sysupgrade.itb
372 +bootmenu_confirm_return=askenv - Press ENTER to return to menu ; bootmenu 60
373 +bootmenu_default=0
374 +bootmenu_delay=0
375 +bootmenu_title= \e[0;34m( ( ( \e[1;39mOpenWrt\e[0;34m ) ) ) \e[0;36m[eMMC]\e[0m
376 +bootmenu_0=Initialize environment.=run _firstboot
377 +bootmenu_0d=Run default boot command.=run boot_default
378 +bootmenu_1=Boot system via TFTP.=run boot_tftp ; run bootmenu_confirm_return
379 +bootmenu_2=Boot production system from eMMC.=run boot_production ; run bootmenu_confirm_return
380 +bootmenu_3=Boot recovery system from eMMC.=run boot_recovery ; run bootmenu_confirm_return
381 +bootmenu_4=Load production system via TFTP then write to eMMC.=setenv noboot 1 ; run boot_tftp_production ; setenv noboot ; run bootmenu_confirm_return
382 +bootmenu_5=Load recovery system via TFTP then write to eMMC.=setenv noboot 1 ; run boot_tftp_recovery ; setenv noboot ; run bootmenu_confirm_return
383 +bootmenu_6=Reboot.=reset
384 +bootmenu_7=Reset all settings to factory defaults.=run reset_factory ; reset
385 +boot_default=if env exists flag_recover ; then else run bootcmd ; fi ; run boot_recovery ; run boot_tftp_forever
386 +boot_first=if button reset ; then run boot_tftp_forever ; fi ; setenv flag_recover 1 ; bootmenu
387 +boot_production=led bpi-r64:pio:green on ; run emmc_read_production && bootm $loadaddr#$bootconf
388 +boot_recovery=led bpi-r64:pio:green off ; run emmc_read_recovery && bootm $loadaddr#$bootconf
389 +boot_emmc=run boot_production ; run boot_recovery
390 +boot_tftp_forever=led bpi-r64:pio:blue on ; while true ; do run boot_tftp_recovery ; sleep 1 ; done
391 +boot_tftp_production=tftpboot $loadaddr $bootfile_upg && run emmc_write_production ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
392 +boot_tftp_recovery=tftpboot $loadaddr $bootfile && iminfo $loadaddr && run emmc_write_recovery ; if env exists noboot ; then else bootm $loadaddr#$bootconf ; fi
393 +boot_tftp=tftpboot $loadaddr $bootfile && bootm $loadaddr
394 +emmc_write_production=iminfo $fileaddr && mmc dev 0 && part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_write_vol
395 +emmc_write_recovery=iminfo $fileaddr && mmc dev 0 && part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_write_vol
396 +emmc_read_production=mmc dev 0 && part start mmc 0 $part_default part_addr && part size mmc 0 $part_default part_size && run mmc_read_vol
397 +emmc_read_recovery=mmc dev 0 && part start mmc 0 $part_recovery part_addr && part size mmc 0 $part_recovery part_size && run mmc_read_vol
398 +mmc_write_vol=imszb $fileaddr image_size && test 0x$image_size -le 0x$part_size && mmc erase 0x$part_addr 0x$part_size && mmc write $fileaddr 0x$part_addr 0x$image_size
399 +mmc_read_vol=mmc read $loadaddr $part_addr 0x8 && imszb $loadaddr image_size && test 0x$image_size -le 0x$part_size && mmc read $loadaddr 0x$part_addr 0x$image_size
400 +part_default=production
401 +part_recovery=recovery
402 +reset_factory=eraseenv && reset
403 +_init_env=setenv _init_env ; setenv _create_env ; saveenv ; saveenv
404 +_firstboot=setenv _firstboot ; led bpi-r64:pio:blue on ; run _switch_to_menu ; run _init_env ; run boot_first
405 +_switch_to_menu=setenv _switch_to_menu ; setenv bootdelay 3 ; setenv bootmenu_delay 3 ; setenv bootmenu_0 $bootmenu_0d ; setenv bootmenu_0d ; run _bootmenu_update_title
406 +_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title \e[33m$ver\e[0m"