summaryrefslogtreecommitdiff
path: root/board/nxp/mx6ullevk/mx6ullevk.env
blob: 0fce3aaaa4e5fcf12cd182050691473e1481b083 (plain)
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
60
61
62
63
64
65
66
67
68
69
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */

script=boot.scr
image=zImage
console=ttymxc0
initrd_high=0xffffffff
fdt_file=undefined
fdt_addr=0x83000000
boot_fdt=try
ip_dyn=yes
videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0
mmcdev=CONFIG_ENV_MMC_DEVICE_INDEX
mmcpart=1
mmcroot=/dev/mmcblk1p2 rootwait rw
mmcautodetect=yes
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
bootscript=echo Running bootscript from mmc ...; source
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
mmcboot=echo Booting from mmc ...;
	run mmcargs;
	if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
		if run loadfdt; then
			bootz ${loadaddr} - ${fdt_addr};
		else
			if test ${boot_fdt} = try; then
				bootz;
			else
				echo WARN: Cannot load the DT;
			fi;
		fi;
	else
		bootz;
	fi;
findfdt=if test $fdt_file = undefined; then
		if test $board_name = ULZ-EVK && test $board_rev = 14X14; then
			setenv fdt_file imx6ulz-14x14-evk.dtb;
		fi;
		if test $board_name = EVK && test $board_rev = 14X14; then
			setenv fdt_file imx6ull-14x14-evk.dtb;
		fi;
		if test $fdt_file = undefined; then
			echo WARNING: Could not determine dtb to use;
		fi;
	fi;
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs
	ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=echo Booting from net ...;
	run netargs;
	if test ${ip_dyn} = yes; then
		setenv get_cmd dhcp;
	else
		setenv get_cmd tftp;
	fi;
	${get_cmd} ${image};
	if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
		if ${get_cmd} ${fdt_addr} ${fdt_file}; then
			bootz ${loadaddr} - ${fdt_addr};
		else
			if test ${boot_fdt} = try; then
				bootz;
			else
				echo WARN: Cannot load the DT;
			fi;
		fi;
	else
		bootz;
	fi;