board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / board / boundarydevices / common / 6x_bootscript.txt
blob2fc687aff4cd67e58e17f7b6bf008d234d77c782
1 setenv bootargs ''
3 if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
4         a_script=0x80800000
5         a_zImage=0x80800000
6         a_fdt=0x83000000
7         m4=''
8         if itest.s "x1" == "x$m4enabled" ; then
9                 run m4boot;
10                 m4='-m4';
11         fi
12 else
13         a_script=0x10800000
14         a_zImage=0x10800000
15         a_fdt=0x13000000
18 setenv initrd_high 0xffffffff
19 if itest.s "x" == "x${dtbname}" ; then
20         if itest.s x6SOLO == "x${cpu}" ; then
21                 dtbname=imx6dl-${board}.dtb;
22         elif itest.s x6DL == "x${cpu}" ; then
23                 dtbname=imx6dl-${board}.dtb;
24         elif itest.s x6QP == "x${cpu}" ; then
25                 dtbname=imx6qp-${board}.dtb;
26         elif itest.s x6SX == "x${cpu}" ; then
27                 dtbname=imx6sx-${board}${m4}.dtb;
28         elif itest.s x7D == "x${cpu}" ; then
29                 dtbname=imx7d-${board}${m4}.dtb;
30         else
31                 dtbname=imx6q-${board}.dtb;
32         fi
35 if load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then
36     env import -t ${a_script} ${filesize}
39 if itest.s x == x${bootdir} ; then
40         bootdir=/boot/
43 if itest.s x${bootpart} == x ; then
44         bootpart=1
47 if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname} ; then
48         fdt addr ${a_fdt}
49         setenv fdt_high 0xffffffff
50 else
51         echo "!!!! Error loading ${bootdir}${dtbname}";
52         exit;
55 cmd_xxx_present=
56 fdt resize
57 if itest.s "x" != "x${cmd_custom}" ; then
58         run cmd_custom
59         cmd_xxx_present=1;
62 if itest.s "x" != "x${cmd_hdmi}" ; then
63         run cmd_hdmi
64         cmd_xxx_present=1;
65         if itest.s x == x${allow_noncea} ; then
66                 setenv bootargs ${bootargs} mxc_hdmi.only_cea=1;
67                 echo "only CEA modes allowed on HDMI port";
68         else
69                 setenv bootargs ${bootargs} mxc_hdmi.only_cea=0;
70                 echo "non-CEA modes allowed on HDMI, audio may be affected";
71         fi
74 if itest.s "x" != "x${cmd_lcd}" ; then
75         run cmd_lcd
76         cmd_xxx_present=1;
78 if itest.s "x" != "x${cmd_lvds}" ; then
79         run cmd_lvds
80         cmd_xxx_present=1;
82 if itest.s "x" != "x${cmd_lvds2}" ; then
83         run cmd_lvds2
84         cmd_xxx_present=1;
87 if itest.s "x" == "x${cmd_xxx_present}" ; then
88         echo "!!!!!!!!!!!!!!!!"
89         echo "warning: your u-boot may be outdated, please upgrade"
90         echo "!!!!!!!!!!!!!!!!"
93 setenv bootargs "${bootargs} console=${console},115200 vmalloc=400M consoleblank=0 rootwait fixrtc"
95 if test "sata" = "${dtype}" ; then
96         setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
97 elif test "usb" = "${dtype}" ; then
98         setenv bootargs "${bootargs} root=/dev/sda${bootpart}" ;
99 else
100         setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bootpart}"
103 if itest.s "x" != "x${disable_giga}" ; then
104         setenv bootargs ${bootargs} fec.disable_giga=1
107 if itest.s "x" != "x${wlmac}" ; then
108         setenv bootargs ${bootargs} wlcore.mac=${wlmac}
111 if itest.s "x" != "x${gpumem}" ; then
112         setenv bootargs ${bootargs} galcore.contiguousSize=${gpumem}
115 if itest.s "x" != "x${cma}" ; then
116         setenv bootargs ${bootargs} cma=${cma}
119 if itest.s "x" != "x${show_fdt}" ; then
120         fdt print /
123 if itest.s "x" != "x${show_env}" ; then
124         printenv
127 if load ${dtype} ${disk}:${bootpart} ${a_zImage} ${bootdir}/zImage ; then
128         bootz ${a_zImage} - ${a_fdt}
130 echo "Error loading kernel image"