mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
61 lines
1.5 KiB
Text
61 lines
1.5 KiB
Text
setenv bootargs
|
|
setenv nextcon 0;
|
|
|
|
if hdmidet ; then
|
|
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24
|
|
setenv fbmem "fbmem=28M";
|
|
setexpr nextcon $nextcon + 1
|
|
else
|
|
echo "------ no HDMI monitor";
|
|
fi
|
|
|
|
i2c dev 2
|
|
if i2c probe 0x04 ; then
|
|
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666
|
|
if test "0" -eq $nextcon; then
|
|
setenv fbmem "fbmem=10M";
|
|
else
|
|
setenv fbmem ${fbmem},10M
|
|
fi
|
|
setexpr nextcon $nextcon + 1
|
|
else
|
|
echo "------ no Freescale display";
|
|
fi
|
|
|
|
if i2c probe 0x38 ; then
|
|
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666
|
|
if test "0" -eq $nextcon; then
|
|
setenv fbmem "fbmem=10M";
|
|
else
|
|
setenv fbmem ${fbmem},10M
|
|
fi
|
|
setexpr nextcon $nextcon + 1
|
|
else
|
|
echo "------ no 1024x600 display";
|
|
fi
|
|
|
|
if i2c probe 0x48 ; then
|
|
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666
|
|
if test "0" -eq $nextcon; then
|
|
setenv fbmem "fbmem=10M";
|
|
else
|
|
setenv fbmem ${fbmem},10M
|
|
fi
|
|
setexpr nextcon $nextcon + 1
|
|
else
|
|
echo "------ no 800x480 display";
|
|
fi
|
|
|
|
while test "3" -ne $nextcon ; do
|
|
setenv bootargs $bootargs video=mxcfb${nextcon}:off ;
|
|
setexpr nextcon $nextcon + 1 ;
|
|
done
|
|
|
|
setenv bootargs $bootargs $fbmem
|
|
|
|
setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p1 rw rootwait consoleblank=0
|
|
|
|
setenv fdtfile imx6q-nitrogen6x.dtb
|
|
load ${dtype} ${disk}:1 10800000 /boot/zImage && load ${dtype} ${disk}:1 11000000 /boot/dtbs/${fdtfile} && bootz 10800000 - 11000000
|
|
|
|
load ${dtype} ${disk}:1 10800000 /boot/uImage && bootm 10800000
|