Project

General

Profile

PinePhoneBraveheartBootloader » History » Version 2

Denis 'GNUtoo' Carikli, 05/21/2020 10:53 PM

1 1 Denis 'GNUtoo' Carikli
h1. PinePhoneBraveheartBootloader
2
3
4
h2. Boot log
5
6
When it was leant to me, the person lending it to me tried many distros. The last distro tried was PostMarketOS.
7
8
<pre>
9
U-Boot SPL 2020.01 (Jan 09 2020 - 12:17:54 +0000)
10
DRAM: 2048 MiB
11
Trying to boot from MMC1
12
NOTICE:  BL31: v2.1(release):v3.10.0_rc3-151-ga4b61dc7d9
13
NOTICE:  BL31: Built : 16:21:59, Jun 12 2019
14
NOTICE:  BL31: Detected Allwinner A64/H64/R18 SoC (1689)
15
NOTICE:  BL31: Found U-Boot DTB at 0x408e1a8, model: Pine64 LTS
16
NOTICE:  BL31: PMIC: Detected AXP803 on RSB.
17
18
19
U-Boot 2020.01 (Jan 09 2020 - 12:17:54 +0000) Allwinner Technology
20
21
CPU:   Allwinner A64 (SUN50I)
22
Model: Pine64 LTS
23
DRAM:  2 GiB
24
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
25
Loading Environment from FAT... Unable to use mmc 1:1... In:    serial
26
Out:   serial
27
Err:   serial
28
Net:   phy interface7
29
Could not get PHY for ethernet@1c30000: addr 1
30
No ethernet found.
31
32
starting USB...
33
Bus usb@1c1a000: USB EHCI 1.00
34
Bus usb@1c1a400: USB OHCI 1.0
35
Bus usb@1c1b000: USB EHCI 1.00
36
Bus usb@1c1b400: USB OHCI 1.0
37
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
38
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
39
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
40
scanning bus usb@1c1b400 for devices... 1 USB Device(s) found
41
       scanning usb for storage devices... 0 Storage Device(s) found
42
Hit any key to stop autoboot:  0 
43
switch to partitions #0, OK
44
mmc0 is current device
45
Scanning mmc 0:1...
46
Found U-Boot script /boot.scr
47
919 bytes read in 7 ms (127.9 KiB/s)
48
## Executing script at 4fc00000
49
gpio: pin 114 (gpio 114) value is 1
50
Booting from SD
51
arch=arm
52
baudrate=115200
53
board=sunxi
54
board_name=sunxi
55
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
56
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
57
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
58
boot_net_usb_start=usb start
59
boot_prefixes=/ /boot/
60
boot_script_dhcp=boot.scr.uimg
61
boot_scripts=boot.scr.uimg boot.scr
62
boot_syslinux_conf=extlinux/extlinux.conf
63
boot_targets=fel mmc_auto usb0 pxe dhcp 
64
bootargs=init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M PMOS_NO_OUTPUT_REDIRECT pmos_boot=/dev/mmcblk0p1 pmos_root=/dev/mmcblk0p2
65
bootcmd=run distro_bootcmd
66
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
67
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
68
bootcmd_mmc0=devnum=0; run mmc_boot
69
bootcmd_mmc1=devnum=1; run mmc_boot
70
bootcmd_mmc_auto=if test ${mmc_bootdev} -eq 1; then run bootcmd_mmc1; run bootcmd_mmc0; elif test ${mmc_bootdev} -eq 0; then run bootcmd_mmc0; run bootcmd_mmc1; fi
71
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
72
bootcmd_usb0=devnum=0; run usb_boot
73
bootdelay=2
74
bootdev=0
75
bootfstype=ext4
76
bootm_size=0xa000000
77
console=ttyS0,115200
78
cpu=armv8
79
devplist=1
80
dfu_alt_info_ram=kernel ram 0x40080000 0x1000000;fdt ram 0x4FA00000 0x100000;ramdisk ram 0x4FE00000 0x4000000
81
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
82
efi_dtb_prefixes=/ /dtb/ /dtb/current/
83
ethaddr=02:ba:83:c7:f4:f3
84
fdt_addr_r=0x4FA00000
85
fdtcontroladdr=b9f31258
86
fdtfile=allwinner/sun50i-a64-pine64-lts.dtb
87
fileaddr=4fc00000
88
filesize=397
89
kernel_addr_r=0x40080000
90
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
91
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
92
mmc_bootdev=0
93
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};
94
preboot=usb start
95
pxefile_addr_r=0x4FD00000
96
ramdisk_addr_r=0x4FE00000
97
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
98
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
99
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
100
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
101
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
102
scriptaddr=0x4FC00000
103
serial#=92c08dba83c7f4f3
104
soc=sunxi
105
stderr=serial,vidconsole
106
stdin=serial,usbkbd
107
stdout=serial,vidconsole
108
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
109
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
110
uuid_gpt_system=b921b045-1df0-41c3-af44-4c6f280d3fae
111
112
Environment size: 4745/131068 bytes
113
Loading DTB
114
30085 bytes read in 14 ms (2 MiB/s)
115
Loading Initramfs
116
4584216 bytes read in 220 ms (19.9 MiB/s)
117
Loading Kernel
118
15091720 bytes read in 708 ms (20.3 MiB/s)
119
gpio: pin 115 (gpio 115) value is 1
120
Resizing FDT
121
Booting kernel
122
gpio: pin 116 (gpio 116) value is 1
123
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
124
   Image Name:   uInitrd
125
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
126
   Data Size:    4584152 Bytes = 4.4 MiB
127
   Load Address: 00000000
128
   Entry Point:  00000000
129
   Verifying Checksum ... OK
130
## Flattened Device Tree blob at 4fa00000
131
   Booting using the fdt blob at 0x4fa00000
132
EHCI failed to shut down host controller.
133
   Loading Ramdisk to 49ba0000, end 49fff2d8 ... OK
134
   Loading Device Tree to 0000000049b95000, end 0000000049b9ffff ... OK
135
136
Starting kernel ...
137
138
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
139
[    0.000000] Linux version 5.4.0 (pmos@msi) (gcc version 9.2.0 (Alpine 9.2.0)) #3-postmarketos-allwinner SMP Sat Jan 18 16:55:25 UTC 2020
140
[    0.000000] Machine model: PinePhone
141
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
142
[    0.000000] printk: bootconsole [uart0] enabled
143
### postmarketOS initramfs ###
144
Configuring kernel firmware image search path
145
modprobe: module sun6i_mipi_dsi not found in modules.dep
146
modprobe: module sun4i_drm not found in modules.dep
147
modprobe: module pwm_sun4i not found in modules.dep
148
modprobe: module sun8i_mixer not found in modules.dep
149
modprobe: module ext4 not found in modules.dep
150
modprobe: module usb_f_rndis not found in modules.dep
151
NOTE: Waiting 10 seconds for the framebuffer /dev/fb0.
152
If your device does not have a framebuffer, disable this with:
153
no_framebuffer=true in <https://postmarketos.org/deviceinfo>
154
Setting framebuffer mode to: U:720x1440p-0
155
Setup usb network
156
  /sys/class/android_usb does not exist, skipping android_usb
157
  Setting up an USB gadget through configfs
158
Starting udhcpd
159
  Using interface usb0
160
  Start the dhcpcd daemon (forks into background)
161
Mount boot partition (/dev/mmcblk0p1)
162
Extract /boot/initramfs-postmarketos-allwinner-extra
163
31639 blocks
164
Check/repair root filesystem (/dev/mmcblk0p2)
165
e2fsck 1.45.5 (07-Jan-2020)
166
pmOS_root: recovering journal
167
Clearing orphaned inode 81454 (uid=10000, gid=10000, mode=0100600, size=17344)
168
Clearing orphaned inode 81296 (uid=10000, gid=10000, mode=0100600, size=8896)
169
Clearing orphaned inode 81253 (uid=10000, gid=10000, mode=0100600, size=47218)
170
Clearing orphaned inode 81241 (uid=10000, gid=10000, mode=0100600, size=1024)
171
Setting free inodes count to 27171 (was 27176)
172
Setting free blocks count to 81716 (was 81737)
173
pmOS_root: clean, 72989/100160 files, 562892/644608 blocks
174
Resize root filesystem (/dev/mmcblk0p2)
175
resize2fs 1.45.5 (07-Jan-2020)
176
The filesystem is already 644608 (4k) blocks long.  Nothing to do!
177
178
Mount root partition (/dev/mmcblk0p2)
179
umount: can't unmount /dev: Invalid argument
180
181
   OpenRC 0.42.1.6a467d4a81 is starting up Linux 5.4.0 (aarch64)
182
183
/lib/rc/sh/init.sh: line 15: can't create /dev/null: Read-only file system
184
 * md5sum is missing, which suggests /usr is not mounted
185
 * If you have separate /usr, it must be mounted by initramfs
186
 * If not, you should check coreutils is installed correctly
187
 * Mounting /proc ... [ ok ]
188
 * Mounting /run ... * /run/openrc: creating directory
189
 * /run/lock: creating directory
190
 * /run/lock: correcting owner
191
/lib/rc/sh/gendepends.sh: line 28: can't create /dev/null: Read-only file system
192
 * Caching service dependencies ... [ ok ]
193
 * Clock skew detected with `(null)'
194
 * Adjusting mtime of `/run/openrc/deptree' to Sat Jan 18 19:20:37 2020
195
196
 * WARNING: clock skew detected!
197
 * Mounting devtmpfs on /dev ... [ ok ]
198
 * Mounting /dev/mqueue ... [ ok ]
199
 * Mounting /dev/pts ... [ ok ]
200
 * Mounting /dev/shm ... [ ok ]
201
 * Mount subpartitions of /dev/mmcblk0
202
device-mapper: reload ioctl on mmcblk0p1  failed: Resource busy
203
create/reload failed on mmcblk0p1
204
device-mapper: reload ioctl on mmcblk0p2  failed: Resource busy
205
create/reload failed on mmcblk0p2
206
 * Mount subpartitions of /dev/mmcblk2
207
 * Mounting /sys ... [ ok ]
208
 * Mounting security filesystem ... [ ok ]
209
 * Mounting debug filesystem ... [ ok ]
210
 * Mounting config filesystem ... [ ok ]
211
 * Mounting persistent storage (pstore) filesystem ... [ ok ]
212
 * Starting udev ... [ ok ]
213
 * Generating a rule to create a /dev/root symlink ... [ ok ]
214
 * Populating /dev with existing devices through uevents ... [ ok ]
215
 * WARNING: clock skew detected!
216
 * Loading modules ... [ ok ]
217
 * Setting system clock using the hardware clock [UTC] ... [ ok ]
218
 * Setting the local clock based on last shutdown time ... [ ok ]
219
 * Checking local filesystems  .../dev/mmcblk2p2 is in use.
220
e2fsck: Cannot continue, aborting.
221
222
223
 * Operational error
224
 [ !! ]
225
 * Remounting root filesystem read/write ... [ ok ]
226
 * Remounting filesystems ... [ ok ]
227
 * Mounting local filesystems ... [ ok ]
228
 * Configuring kernel parameters ...sysctl: error: 'net.ipv4.tcp_syncookies' is an unknown key
229
 [ ok ]
230
 * Creating user login records ... [ ok ]
231
 * Wiping /tmp directory ... [ ok ]
232
 * Setting hostname ... [ ok ]
233
 * Starting busybox syslog ... [ ok ]
234
 * WARNING: clock skew detected!
235
 * Starting System Message Bus ... [ ok ]
236
 * Starting RNG Daemon ... [ ok ]
237
 * Could not find a wireless interface
238
 * Starting WPA Supplicant ... [ ok ]
239
 * Starting networkmanager ... [ ok ]
240
 * Starting chronyd ... [ ok ]
241
 * Enabling EG25 WWAN module ... * /run/lightdm: creating directory
242
 * /run/lightdm: correcting owner
243
 * Starting Display Manager ... [ ok ]
244
 * Starting oFono ... [ ok ]
245
 * Starting sshd ... [ ok ]
246
 * Activating swap file ...Configured swap file size is 0, skipping creation.
247
 [ ok ]
248
 * Starting urfkill ... [ ok ]
249
 * Starting local ... [ ok ]
250
251
Welcome to postmarketOS
252
Kernel 5.4.0 on an aarch64 (/dev/ttyS0)
253
pine64-pinephone login: 
254
255
</pre>
256 2 Denis 'GNUtoo' Carikli
257
h2. list of available commands
258
259
<pre>
260
=> help
261
?         - alias for 'help'
262
base      - print or set address offset
263
bdinfo    - print Board Info structure
264
blkcache  - block cache diagnostics and control
265
boot      - boot default, i.e., run 'bootcmd'
266
bootd     - boot default, i.e., run 'bootcmd'
267
bootefi   - Boots an EFI payload from memory
268
bootelf   - Boot from an ELF image in memory
269
booti     - boot Linux kernel 'Image' format from memory
270
bootm     - boot application image from memory
271
bootp     - boot image via network using BOOTP/TFTP protocol
272
bootvx    - Boot vxWorks from an ELF image
273
cmp       - memory compare
274
coninfo   - print console devices and information
275
cp        - memory copy
276
crc32     - checksum calculation
277
dhcp      - boot image via network using DHCP/TFTP protocol
278
dm        - Driver model low level access
279
echo      - echo args to console
280
editenv   - edit environment variable
281
env       - environment handling commands
282
exit      - exit script
283
ext2load  - load binary file from a Ext2 filesystem
284
ext2ls    - list files in a directory (default /)
285
ext4load  - load binary file from a Ext4 filesystem
286
ext4ls    - list files in a directory (default /)
287
ext4size  - determine a file's size
288
false     - do nothing, unsuccessfully
289
fatinfo   - print information about filesystem
290
fatload   - load binary file from a dos filesystem
291
fatls     - list files in a directory (default /)
292
fatmkdir  - create a directory
293
fatrm     - delete a file
294
fatsize   - determine a file's size
295
fatwrite  - write file into a dos filesystem
296
fdt       - flattened device tree utility commands
297
fstype    - Look up a filesystem type
298
go        - start application at address 'addr'
299
gpio      - query and control gpio pins
300
gpt       - GUID Partition Table
301
gzwrite   - unzip and write memory to block device
302
help      - print command description/usage
303
iminfo    - print header information for application image
304
imxtract  - extract a part of a multi-image
305
itest     - return true/false on integer compare
306
lcdputs   - print string on video framebuffer
307
ln        - Create a symbolic link
308
load      - load binary file from a filesystem
309
loadb     - load binary file over serial line (kermit mode)
310
loads     - load S-Record file over serial line
311
loadx     - load binary file over serial line (xmodem mode)
312
loady     - load binary file over serial line (ymodem mode)
313
loop      - infinite loop on address range
314
ls        - list files in a directory (default /)
315
lzmadec   - lzma uncompress a memory region
316
md        - memory display
317
mdio      - MDIO utility commands
318
mii       - MII utility commands
319
mm        - memory modify (auto-incrementing address)
320
mmc       - MMC sub system
321
mmcinfo   - display MMC info
322
mw        - memory write (fill)
323
nfs       - boot image via network using NFS protocol
324
nm        - memory modify (constant address)
325
part      - disk partition related commands
326
ping      - send ICMP ECHO_REQUEST to network host
327
printenv  - print environment variables
328
pxe       - commands to get and boot from pxe files
329
random    - fill memory with random pattern
330
reset     - Perform RESET of the CPU
331
run       - run commands in an environment variable
332
save      - save file to a filesystem
333
saveenv   - save environment variables to persistent storage
334
setcurs   - set cursor position within screen
335
setenv    - set environment variables
336
setexpr   - set environment variable as the result of eval expression
337
sf        - SPI flash sub-system
338
showvar   - print local hushshell variables
339
size      - determine a file's size
340
sleep     - delay execution for some time
341
source    - run script from memory
342
sysboot   - command to get and boot from syslinux files
343
test      - minimal test like /bin/sh
344
tftpboot  - boot image via network using TFTP protocol
345
true      - do nothing, successfully
346
unzip     - unzip a memory region
347
usb       - USB sub-system
348
usbboot   - boot from USB device
349
version   - print monitor, compiler and linker version
350
</pre>
351
352
h2. Environement
353
354
<pre>
355
=> printenv
356
arch=arm
357
baudrate=115200
358
board=sunxi
359
board_name=sunxi
360
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
361
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
362
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
363
boot_net_usb_start=usb start
364
boot_prefixes=/ /boot/
365
boot_script_dhcp=boot.scr.uimg
366
boot_scripts=boot.scr.uimg boot.scr
367
boot_syslinux_conf=extlinux/extlinux.conf
368
boot_targets=fel mmc_auto usb0 pxe dhcp 
369
bootcmd=run distro_bootcmd
370
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
371
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
372
bootcmd_mmc0=devnum=0; run mmc_boot
373
bootcmd_mmc1=devnum=1; run mmc_boot
374
bootcmd_mmc_auto=if test ${mmc_bootdev} -eq 1; then run bootcmd_mmc1; run bootcmd_mmc0; elif test ${mmc_bootdev} -eq 0; then run bootcmd_mmc0; run bootcmd_mmc1; fi
375
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
376
bootcmd_usb0=devnum=0; run usb_boot
377
bootdelay=2
378
bootm_size=0xa000000
379
console=ttyS0,115200
380
cpu=armv8
381
dfu_alt_info_ram=kernel ram 0x40080000 0x1000000;fdt ram 0x4FA00000 0x100000;ramdisk ram 0x4FE00000 0x4000000
382
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
383
efi_dtb_prefixes=/ /dtb/ /dtb/current/
384
ethaddr=02:ba:83:c7:f4:f3
385
fdt_addr_r=0x4FA00000
386
fdtcontroladdr=b9f31258
387
fdtfile=allwinner/sun50i-a64-pine64-lts.dtb
388
kernel_addr_r=0x40080000
389
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
390
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
391
mmc_bootdev=0
392
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};
393
preboot=usb start
394
pxefile_addr_r=0x4FD00000
395
ramdisk_addr_r=0x4FE00000
396
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
397
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
398
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
399
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
400
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
401
scriptaddr=0x4FC00000
402
serial#=92c08dba83c7f4f3
403
soc=sunxi
404
stderr=serial,vidconsole
405
stdin=serial,usbkbd
406
stdout=serial,vidconsole
407
usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
408
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
409
uuid_gpt_system=b921b045-1df0-41c3-af44-4c6f280d3fae
410
411
Environment size: 4448/131068 bytes
412
=> 
413
</pre>