mk_mmc.sh: cleanup SERIAL_MODE

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent cd6c742540
commit d57a29cf67

@ -57,7 +57,7 @@ SYSTEM="serial"
SERIAL="ttyO0" SERIAL="ttyO0"
SERIAL_CONSOLE="${SERIAL},115200n8" SERIAL_CONSOLE="${SERIAL},115200n8"
SERIAL_MODE=1 di_serial_mode=enable
conf_note="Note: During the install use a 5Volt DC power supply as USB does not always provide enough power. If board locks up on boot run [sudo ifconfig usb0 up] on host." conf_note="Note: During the install use a 5Volt DC power supply as USB does not always provide enough power. If board locks up on boot run [sudo ifconfig usb0 up] on host."
# #

@ -59,4 +59,4 @@ SERIAL="ttymxc0"
SERIAL_CONSOLE="${SERIAL},115200n8" SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
SERIAL_MODE=1 di_serial_mode=enable

@ -61,4 +61,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
#video broken... #video broken...
SERIAL_MODE=1 di_serial_mode=enable

@ -59,4 +59,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
drm_device_identifier="DVI-D-1" drm_device_identifier="DVI-D-1"
SERIAL_MODE=1 di_serial_mode=enable

@ -62,4 +62,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
drm_device_identifier="DVI-D-1" drm_device_identifier="DVI-D-1"
SERIAL_MODE=1 di_serial_mode=enable

@ -62,4 +62,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
drm_device_identifier="DVI-D-1" drm_device_identifier="DVI-D-1"
SERIAL_MODE=1 di_serial_mode=enable

@ -62,4 +62,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
drm_device_identifier="DVI-D-1" drm_device_identifier="DVI-D-1"
SERIAL_MODE=1 di_serial_mode=enable

@ -63,4 +63,4 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
drm_device_identifier="HDMI-A-1" drm_device_identifier="HDMI-A-1"
SERIAL_MODE=1 di_serial_mode=enable

@ -50,7 +50,7 @@ conf_fdtfile="tegra124-jetson-tk1.dtb"
SERIAL="ttyS0" SERIAL="ttyS0"
SERIAL_CONSOLE="${SERIAL},115200n8" SERIAL_CONSOLE="${SERIAL},115200n8"
SERIAL_MODE=1 di_serial_mode=enable
conf_note="Required: https://github.com/NVIDIA/tegra-uboot-flasher-scripts." conf_note="Required: https://github.com/NVIDIA/tegra-uboot-flasher-scripts."
# #

@ -37,7 +37,6 @@ unset LOCAL_BOOTLOADER
unset ADDON unset ADDON
unset FIRMWARE unset FIRMWARE
unset SERIAL_MODE
unset BETA_KERNEL unset BETA_KERNEL
unset EXPERIMENTAL_KERNEL unset EXPERIMENTAL_KERNEL
unset KERNEL_DEB unset KERNEL_DEB
@ -414,7 +413,8 @@ boot_uenv_txt_template () {
__EOF__ __EOF__
if [ "${SERIAL_MODE}" ] ; then if [ "x${di_serial_mode}" = "xenable" ] ; then
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
xyz_message=echo; echo Installer for [${DISTARCH}] is using the Serial Interface; echo; xyz_message=echo; echo Installer for [${DISTARCH}] is using the Serial Interface; echo;
@ -491,7 +491,7 @@ tweak_boot_scripts () {
#Set the Serial Console #Set the Serial Console
sed -i -e 's:SERIAL_CONSOLE:'$SERIAL_CONSOLE':g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:SERIAL_CONSOLE:'$SERIAL_CONSOLE':g' ${TEMPDIR}/bootscripts/${ALL}
if [ "${USE_KMS}" ] && [ ! "${SERIAL_MODE}" ] ; then if [ "${USE_KMS}" ] && [ ! "x${di_serial_mode}" = "xenable" ] ; then
#optargs=VIDEO_CONSOLE #optargs=VIDEO_CONSOLE
sed -i -e 's:VIDEO_CONSOLE:console=tty0:g' ${TEMPDIR}/bootscripts/${ALL} sed -i -e 's:VIDEO_CONSOLE:console=tty0:g' ${TEMPDIR}/bootscripts/${ALL}
@ -499,7 +499,7 @@ tweak_boot_scripts () {
sed -i -e 's:DICONSOLE:tty0:g' ${TEMPDIR}/bootscripts/${NET} sed -i -e 's:DICONSOLE:tty0:g' ${TEMPDIR}/bootscripts/${NET}
fi fi
if [ "${SERIAL_MODE}" ] ; then if [ "x${di_serial_mode}" = "xenable" ] ; then
echo "NetInstall: Setting up to use Serial Port: [${SERIAL}]" echo "NetInstall: Setting up to use Serial Port: [${SERIAL}]"
#In pure serial mode, remove all traces of VIDEO #In pure serial mode, remove all traces of VIDEO
sed -i -e 's:VIDEO_DISPLAY ::g' ${TEMPDIR}/bootscripts/${NET} sed -i -e 's:VIDEO_DISPLAY ::g' ${TEMPDIR}/bootscripts/${NET}
@ -950,8 +950,7 @@ initrd_preseed_settings () {
case "${DIST}" in case "${DIST}" in
wheezy) wheezy)
if [ ! "${SERIAL_MODE}" ] && [ "${conf_kernel_usb_not_builtin}" ] ; then if [ ! "x${di_serial_mode}" = "xenable" ] && [ "${conf_kernel_usb_not_builtin}" ] ; then
#Wheezy:
sed -i -e 's:#d-i console-tools:d-i console-tools:g' ${TEMPDIR}/initrd-tree/preseed.cfg sed -i -e 's:#d-i console-tools:d-i console-tools:g' ${TEMPDIR}/initrd-tree/preseed.cfg
sed -i -e 's:#d-i debian-installer:d-i debian-installer:g' ${TEMPDIR}/initrd-tree/preseed.cfg sed -i -e 's:#d-i debian-installer:d-i debian-installer:g' ${TEMPDIR}/initrd-tree/preseed.cfg
sed -i -e 's:#d-i console-keymaps-at:d-i console-keymaps-at:g' ${TEMPDIR}/initrd-tree/preseed.cfg sed -i -e 's:#d-i console-keymaps-at:d-i console-keymaps-at:g' ${TEMPDIR}/initrd-tree/preseed.cfg
@ -1288,7 +1287,7 @@ populate_boot () {
echo "uname_r=current" > ${TEMPDIR}/disk/boot/uEnv.txt echo "uname_r=current" > ${TEMPDIR}/disk/boot/uEnv.txt
if [ "${SERIAL_MODE}" ] ; then if [ "x${di_serial_mode}" = "xenable" ] ; then
echo "message=echo; echo Installer for [${DISTARCH}] is using the Serial Interface; echo;" >> ${TEMPDIR}/disk/boot/uEnv.txt echo "message=echo; echo Installer for [${DISTARCH}] is using the Serial Interface; echo;" >> ${TEMPDIR}/disk/boot/uEnv.txt
echo "mmcargs=run message; setenv bootargs console=${SERIAL_CONSOLE} root=/dev/ram0 rw" >> ${TEMPDIR}/disk/boot/uEnv.txt echo "mmcargs=run message; setenv bootargs console=${SERIAL_CONSOLE} root=/dev/ram0 rw" >> ${TEMPDIR}/disk/boot/uEnv.txt
else else
@ -1720,7 +1719,7 @@ while [ ! -z "$1" ] ; do
FIRMWARE=1 FIRMWARE=1
;; ;;
--serial-mode) --serial-mode)
SERIAL_MODE=1 di_serial_mode="enable"
;; ;;
--deb-file) --deb-file)
checkparm $2 checkparm $2

Loading…
Cancel
Save