bone: introduce warning system

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent f501f6e51a
commit 5b52162dd9

@ -46,3 +46,5 @@ SERIAL_CONSOLE="${SERIAL},115200n8"
SERIAL_MODE=1 SERIAL_MODE=1
USE_KMS=1 USE_KMS=1
conf_warning="MMC: Please use a 5Volt DC power supply, as the board may lockup during the mmc formating stage. ONBOARD Ethernet: dhcp ip retrieval is failing, use external usb-ethernet during initial install."

@ -45,3 +45,5 @@ SERIAL="ttyO0"
SERIAL_CONSOLE="${SERIAL},115200n8" SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
conf_warning="MMC: Please use a 5Volt DC power supply, as the board may lockup during the mmc formating stage. ONBOARD Ethernet: dhcp ip retrieval is failing, use external usb-ethernet during initial install."

@ -45,3 +45,5 @@ SERIAL="ttyO0"
SERIAL_CONSOLE="${SERIAL},115200n8" SERIAL_CONSOLE="${SERIAL},115200n8"
USE_KMS=1 USE_KMS=1
conf_warning="MMC: Please use a 5Volt DC power supply, as the board may lockup during the mmc formating stage. ONBOARD Ethernet: dhcp ip retrieval is failing, use external usb-ethernet during initial install."

@ -1463,6 +1463,24 @@ uboot_dtb_error () {
echo "-----------------------------" echo "-----------------------------"
} }
show_board_warning () {
echo "-----------------------------"
echo "Warning: at this time, this board [${dtb_board}] has a few issues with the NetInstall"
echo "-----------------------------"
echo ${conf_warning}
echo "-----------------------------"
echo "Alternate install:"
echo "http://elinux.org/BeagleBoardUbuntu#Demo_Image"
echo "http://elinux.org/BeagleBoardDebian#Demo_Image"
echo "-----------------------------"
unset response
echo -n "Knowing these issues, would you like to continue to install [${dtb_board}] (y/n)? "
read response
if [ "x${response}" != "xy" ] ; then
exit
fi
}
check_dtb_board () { check_dtb_board () {
error_invalid_uboot_dtb=1 error_invalid_uboot_dtb=1
@ -1479,6 +1497,11 @@ check_dtb_board () {
. "${DIR}"/hwpack/${dtb_board}.conf . "${DIR}"/hwpack/${dtb_board}.conf
populate_dtbs=1 populate_dtbs=1
unset error_invalid_uboot_dtb unset error_invalid_uboot_dtb
if [ "${conf_warning}" ] ; then
show_board_warning
fi
else else
uboot_dtb_error uboot_dtb_error
exit exit
@ -1524,6 +1547,9 @@ is_omap () {
convert_uboot_to_dtb_board () { convert_uboot_to_dtb_board () {
populate_dtbs=1 populate_dtbs=1
if [ "${conf_warning}" ] ; then
show_board_warning
fi
} }
check_uboot_type () { check_uboot_type () {
@ -1610,6 +1636,7 @@ check_uboot_type () {
bone_dt|bone_dtb) bone_dt|bone_dtb)
echo "Note: [--dtb am335x-bone-serial] now replaces [--uboot bone_dtb]" echo "Note: [--dtb am335x-bone-serial] now replaces [--uboot bone_dtb]"
. "${DIR}"/hwpack/am335x-bone-serial.conf . "${DIR}"/hwpack/am335x-bone-serial.conf
dtb_board="am335x-bone-serial"
convert_uboot_to_dtb_board convert_uboot_to_dtb_board
;; ;;
igepv2) igepv2)

Loading…
Cancel
Save