|
|
|
@ -700,21 +700,25 @@ function tweak_boot_scripts {
|
|
|
|
|
#Set the Serial Console
|
|
|
|
|
sed -i -e 's:SERIAL_CONSOLE:'$SERIAL_CONSOLE':g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
|
|
|
|
|
if [ "${IS_OMAP}" ] ; then
|
|
|
|
|
#defaultdisplay=VIDEO_OMAPFB_MODE
|
|
|
|
|
#dvimode=VIDEO_TIMING
|
|
|
|
|
#vram=VIDEO_OMAP_RAM
|
|
|
|
|
sed -i -e 's:UENV_VRAM:vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
sed -i -e 's:UENV_FB:defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
sed -i -e 's:UENV_TIMING:dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
if [ "${HAS_OMAPFB_DSS2}" ] && [ ! "${SERIAL_MODE}" ] ; then
|
|
|
|
|
#Setting up:
|
|
|
|
|
#defaultdisplay=VIDEO_OMAPFB_MODE
|
|
|
|
|
#dvimode=VIDEO_TIMING
|
|
|
|
|
#vram=VIDEO_OMAP_RAM
|
|
|
|
|
sed -i -e 's:UENV_VRAM:vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
sed -i -e 's:UENV_FB:defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
sed -i -e 's:UENV_TIMING:dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
|
|
|
|
|
#Setting up:
|
|
|
|
|
#vram=\${vram} omapfb.mode=\${defaultdisplay}:\${dvimode} omapdss.def_disp=\${defaultdisplay}
|
|
|
|
|
sed -i -e 's:VIDEO_DISPLAY:TMP_VRAM TMP_OMAPFB TMP_OMAPDSS:g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
sed -i -e 's:TMP_VRAM:'vram=\${vram}':g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
sed -i -e 's/TMP_OMAPFB/'omapfb.mode=\${defaultdisplay}:\${dvimode}'/g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
sed -i -e 's:TMP_OMAPDSS:'omapdss.def_disp=\${defaultdisplay}':g' ${TEMPDIR}/bootscripts/${ALL}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! "${USE_KMS}" ] ; then
|
|
|
|
|
#vram=\${vram} omapfb.mode=\${defaultdisplay}:\${dvimode} omapdss.def_disp=\${defaultdisplay}
|
|
|
|
|
sed -i -e 's:VIDEO_DISPLAY:TMP_VRAM TMP_OMAPFB TMP_OMAPDSS:g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
sed -i -e 's:TMP_VRAM:'vram=\${vram}':g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
sed -i -e 's/TMP_OMAPFB/'omapfb.mode=\${defaultdisplay}:\${dvimode}'/g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
sed -i -e 's:TMP_OMAPDSS:'omapdss.def_disp=\${defaultdisplay}':g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
else
|
|
|
|
|
if [ "${IS_OMAP}" ] ; then
|
|
|
|
|
if [ "${USE_KMS}" ] ; then
|
|
|
|
|
if [ "${KMS_OVERRIDE}" ] ; then
|
|
|
|
|
sed -i -e 's/VIDEO_DISPLAY/'${KMS_VIDEOA}:${KMS_VIDEO_RESOLUTION}'/g' ${TEMPDIR}/bootscripts/*.cmd
|
|
|
|
|
else
|
|
|
|
@ -810,7 +814,6 @@ function tweak_boot_scripts {
|
|
|
|
|
|
|
|
|
|
function setup_bootscripts {
|
|
|
|
|
mkdir -p ${TEMPDIR}/bootscripts/
|
|
|
|
|
|
|
|
|
|
boot_uenv_txt_template
|
|
|
|
|
tweak_boot_scripts
|
|
|
|
|
|
|
|
|
|