-
Notifications
You must be signed in to change notification settings - Fork 9
/
env.txt
59 lines (50 loc) · 1.33 KB
/
env.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
bootdelay=0
ipaddr=10.11.12.13
serverip=10.11.12.1
bootenv=uEnv.txt
fdt_high=0x20000000
kernel_image=uImage
old_bitstream_image=parallella.bit.bin
old_devicetree_image=devicetree.dtb
loadbootenv_addr=0x2000000
slowblink=led 0 toggle && sleep 1 && led 0 toggle && sleep 1 || true
loadbootenv=load mmc 0 ${loadbootenv_addr} ${bootenv}
importbootenv=echo Importing environment from SD ...; \
env import -t ${loadbootenv_addr} $filesize
importbootenvtftp=echo Importing environment from TFTP ...; \
env import -t ${loadbootenv_addr} $filesize
preboot=\
if mmcinfo; then \
led 0 on; \
run slowblink; \
env set modeboot sdboot_old; \
run loadbootenv && \
run importbootenv && \
env set modeboot sdboot; \
else \
led 0 off; \
env set modeboot tftpboot; \
fi;
sdboot_old=\
echo Legacy boot from SD card...; \
load mmc 0 0x4000000 ${old_bitstream_image} && \
fpga load 0 0x4000000 $filesize && \
run slowblink; \
load mmc 0 0x3000000 ${kernel_image} && \
load mmc 0 0x2A00000 ${old_devicetree_image} && \
run slowblink && \
bootm 0x3000000 - 0x2A00000; \
led 0 off
tftpboot=\
while true; do \
echo TFTPing second stage boot script... && \
tftpboot ${loadbootenv_addr} ${bootenv} && \
run importbootenvtftp && \
run tftpboot_stage2; \
done
bootcmd=run $modeboot
# STDIO
baudrate=115200
stderr=serial
stdin=serial
stdout=serial