-
Notifications
You must be signed in to change notification settings - Fork 33
/
uEnv.txt
executable file
·35 lines (26 loc) · 1.39 KB
/
uEnv.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
# This is the sample uEnv.txt file for HiFive Unleashed U-boot
# The current convention (SUBJECT TO CHANGE) is that this file
# will be loaded from the first MSDOS(fat) GPT partition on the
# MMC card.
bootargs=debug console=tty0 console=ttySIF0 root=/dev/mmcblk0p2 rootwait
# below much match what's in FIT (ugha)
bbladdr=80000000
fdtaddr=81f00000
vmladdr=80200000
irdaddr=82000000
# oh the hack.. use a large size.. ugh
irdsize=01000000
vmlsize=00800000
newfdt=f0000000
#Use fit image, but don't call fdt move (TODO: understand later)
setupfdt1=fdt addr ${newfdt}; fdt resize; fdt chosen
setupfdt2=fdt print /chosen; fdt set /chosen bootargs "${bootargs}"; fdt set /firmware uboot,ver ${ver}; fdt print /chosen
setupird=setexpr irdend ${irdaddr} + ${irdsize}; fdt set /chosen linux,initrd-start <0x0 0x${irdaddr}>; fdt set /chosen linux,initrd-end <0x0 0x${irdend}>
setupvml=setexpr vmlend ${vmladdr} + ${vmlsize}; fdt set /chosen riscv,kernel-start <0x0 0x${vmladdr}>; fdt set /chosen riscv,kernel-end <0x0 0x${vmlend}>
bootwait=setenv _delay ${bootdelay}; echo ${_delay}; while test ${_delay} > 0; do sleep 1; setexpr _delay ${_delay} - 1; echo ${_delay}; done
autoload=true
bootfile=hifiveu.fit
serverip=10.0.2.2
ipaddr=10.0.2.50
netmask=255.255.255.0
boot2=dhcp; bootm start ${fileaddr}; run setupfdt1; run setupvml; run setupird; run setupfdt2; bootm loados ${fileaddr}; echo "Booting kernel"; go 80000000