end ulcd with fire, bootloader now sets the correct resolution (same card works with both ulcd/non-ulcd)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/10/merge
Robert Nelson 13 years ago
parent d011f92979
commit 45bfa203d9

@ -113,7 +113,7 @@ function is_element_of {
# #
######################################################################### #########################################################################
VALID_ADDONS="pico ulcd" VALID_ADDONS="pico"
function is_valid_addon { function is_valid_addon {
if is_element_of $1 "${VALID_ADDONS}" ] ; then if is_element_of $1 "${VALID_ADDONS}" ] ; then
@ -442,15 +442,22 @@ function boot_uenv_txt_template {
if [ ! "${USE_KMS}" ] ; then if [ ! "${USE_KMS}" ] ; then
cat > ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ cat > ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
#These video values are now set by default in the bootloader
#uncomment/change if you need something else
UENV_VRAM UENV_VRAM
UENV_FB UENV_FB
UENV_TIMING UENV_TIMING
__EOF__ __EOF__
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
#These video values are now set by default in the bootloader
#uncomment/change if you need something else
UENV_VRAM UENV_VRAM
UENV_FB UENV_FB
UENV_TIMING UENV_TIMING
__EOF__ __EOF__
fi fi
@ -646,13 +653,6 @@ function tweak_boot_scripts {
KMS_VIDEO_RESOLUTION="640x480" KMS_VIDEO_RESOLUTION="640x480"
fi fi
if [ "x${ADDON}" == "xulcd" ] ; then
VIDEO_TIMING="800x480MR-16@60"
KMS_OVERRIDE=1
KMS_VIDEOA="video=DVI-D-1"
KMS_VIDEO_RESOLUTION="800x480"
fi
if [ "${SVIDEO_NTSC}" ] ; then if [ "${SVIDEO_NTSC}" ] ; then
VIDEO_TIMING="ntsc" VIDEO_TIMING="ntsc"
VIDEO_OMAPFB_MODE="tv" VIDEO_OMAPFB_MODE="tv"
@ -673,15 +673,15 @@ function tweak_boot_scripts {
if [ "${HAS_OMAPFB_DSS2}" ] && [ ! "${SERIAL_MODE}" ] ; then if [ "${HAS_OMAPFB_DSS2}" ] && [ ! "${SERIAL_MODE}" ] ; then
#UENV_VRAM -> vram=12MB #UENV_VRAM -> vram=12MB
sed -i -e 's:UENV_VRAM:vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:UENV_VRAM:#vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/${ALL}
sed -i -e 's:VIDEO_OMAP_RAM:'$VIDEO_OMAP_RAM':g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:VIDEO_OMAP_RAM:'$VIDEO_OMAP_RAM':g' ${TEMPDIR}/bootscripts/${ALL}
#UENV_FB -> defaultdisplay=dvi #UENV_FB -> defaultdisplay=dvi
sed -i -e 's:UENV_FB:defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:UENV_FB:#defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/${ALL}
sed -i -e 's:VIDEO_OMAPFB_MODE:'$VIDEO_OMAPFB_MODE':g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:VIDEO_OMAPFB_MODE:'$VIDEO_OMAPFB_MODE':g' ${TEMPDIR}/bootscripts/${ALL}
#UENV_TIMING -> dvimode=1280x720MR-16@60 #UENV_TIMING -> dvimode=1280x720MR-16@60
sed -i -e 's:UENV_TIMING:dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:UENV_TIMING:#dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/${ALL}
sed -i -e 's:VIDEO_TIMING:'$VIDEO_TIMING':g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:VIDEO_TIMING:'$VIDEO_TIMING':g' ${TEMPDIR}/bootscripts/${ALL}
#optargs=VIDEO_CONSOLE -> optargs=console=tty0 #optargs=VIDEO_CONSOLE -> optargs=console=tty0
@ -750,15 +750,15 @@ function tweak_boot_scripts {
#Unlike the debian-installer, normal boot will boot fine with the display enabled... #Unlike the debian-installer, normal boot will boot fine with the display enabled...
if [ "${HAS_OMAPFB_DSS2}" ] ; then if [ "${HAS_OMAPFB_DSS2}" ] ; then
#UENV_VRAM -> vram=12MB #UENV_VRAM -> vram=12MB
sed -i -e 's:UENV_VRAM:vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:UENV_VRAM:#vram=VIDEO_OMAP_RAM:g' ${TEMPDIR}/bootscripts/${FINAL}
sed -i -e 's:VIDEO_OMAP_RAM:'$VIDEO_OMAP_RAM':g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:VIDEO_OMAP_RAM:'$VIDEO_OMAP_RAM':g' ${TEMPDIR}/bootscripts/${FINAL}
#UENV_FB -> defaultdisplay=dvi #UENV_FB -> defaultdisplay=dvi
sed -i -e 's:UENV_FB:defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:UENV_FB:#defaultdisplay=VIDEO_OMAPFB_MODE:g' ${TEMPDIR}/bootscripts/${FINAL}
sed -i -e 's:VIDEO_OMAPFB_MODE:'$VIDEO_OMAPFB_MODE':g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:VIDEO_OMAPFB_MODE:'$VIDEO_OMAPFB_MODE':g' ${TEMPDIR}/bootscripts/${FINAL}
#UENV_TIMING -> dvimode=1280x720MR-16@60 #UENV_TIMING -> dvimode=1280x720MR-16@60
sed -i -e 's:UENV_TIMING:dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:UENV_TIMING:#dvimode=VIDEO_TIMING:g' ${TEMPDIR}/bootscripts/${FINAL}
sed -i -e 's:VIDEO_TIMING:'$VIDEO_TIMING':g' ${TEMPDIR}/bootscripts/${FINAL} sed -i -e 's:VIDEO_TIMING:'$VIDEO_TIMING':g' ${TEMPDIR}/bootscripts/${FINAL}
#optargs=VIDEO_CONSOLE -> optargs=console=tty0 #optargs=VIDEO_CONSOLE -> optargs=console=tty0
@ -1721,7 +1721,6 @@ function usage {
--addon <additional peripheral device> --addon <additional peripheral device>
pico pico
ulcd <beagle xm>
--firmware --firmware
<include all firmwares from linux-firmware git repo> <include all firmwares from linux-firmware git repo>
@ -1846,7 +1845,6 @@ if [ -n "${ADDON}" ] ; then
echo "-----------------------------" echo "-----------------------------"
echo "Supported --addon options:" echo "Supported --addon options:"
echo " pico" echo " pico"
echo " ulcd <for the beagleboard xm>"
exit exit
fi fi
fi fi

Loading…
Cancel
Save