#573: Incluir nuevo módulo de framebuffer para Kernel 3.7 y nueva función de arranque para establecer la resolución de pantalla del cliente OpenGnSys.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3649 a21b9725-9963-47de-94b9-378ad31fedc9master
parent
c2839fa742
commit
31dbe1f5ab
|
@ -8,7 +8,9 @@
|
||||||
#
|
#
|
||||||
# raid1
|
# raid1
|
||||||
# sd_mod
|
# sd_mod
|
||||||
|
# Kernel 3.2 video.
|
||||||
vga16b
|
vga16b
|
||||||
vesafb
|
vesafb
|
||||||
fbcon
|
fbcon
|
||||||
|
# Kernel 3.7 video.
|
||||||
|
uvesafb
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
|
#/**
|
||||||
#@file ogfunctions.lib
|
#@file ogfunctions.lib
|
||||||
#@brief Librería o clase para la gestion del sistema operativo de los clientes OpenGnsys
|
#@brief Librería o clase para la gestion del sistema operativo de los clientes OpenGnSys.
|
||||||
#@class client
|
#@class client
|
||||||
#@brief Librería o clase para la gestion del sistema operativo de los clientes OpenGnsys
|
#@version 1.0.5
|
||||||
#@version 0.91
|
|
||||||
#@warning License: GNU GPLv3+
|
#@warning License: GNU GPLv3+
|
||||||
|
#*/ ##
|
||||||
|
|
||||||
|
|
||||||
#/**
|
#/**
|
||||||
# ogExportKernelParameters
|
# ogExportKernelParameters
|
||||||
|
@ -25,6 +27,38 @@ ogExportKernelParameters ()
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#/**
|
||||||
|
# ogChangeVideoResolution
|
||||||
|
#@brief Cambia la resolución de vídeo utilizando el parámetro "video" del Kernel
|
||||||
|
# (sustituye al parámetro "vga").
|
||||||
|
#@note Formato del parámetro vídeo: video=DRIVER:RESXxRESY-BITS
|
||||||
|
#@note El valor por defecto es: video=uvesafb:640x480-16
|
||||||
|
#@todo Control de errores en el foramto de la variable "video".
|
||||||
|
#@version 1.0.5 - Primera versión de la función.
|
||||||
|
#@author Ramón Gómez, ETSII Universidad de Sevilla
|
||||||
|
#@date 2013/02/18
|
||||||
|
#*/ ##
|
||||||
|
ogChangeVideoResolution ()
|
||||||
|
{
|
||||||
|
# Variables locales.
|
||||||
|
local DRIVER MODE
|
||||||
|
# Obtener driver y resolución.
|
||||||
|
DRIVER="$(echo $video|cut -f1 -d:)"
|
||||||
|
MODE="$(echo $video|cut -f2 -d:)"
|
||||||
|
case "$DRIVER" in
|
||||||
|
# Cambiar resolución para driver "uvesafb".
|
||||||
|
uvesafb)
|
||||||
|
grep ":$(echo $MODE|cut -f1 -d-)p" /sys/class/graphics/fb0/modes | head -1 > /sys/class/graphics/fb0/mode 2>&1 || MODE="640x480-16"
|
||||||
|
echo "$(echo $MODE|cut -f2 -d-)" > /sys/class/graphics/fb0/bits_per_pixel 2>&1
|
||||||
|
echo "Screen mode: $(cat /sys/class/graphics/fb0/mode),$(cat /sys/class/graphics/fb0/bits_per_pixel)bpp."
|
||||||
|
;;
|
||||||
|
*) echo "Unknown video driver, using default mode."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#/**
|
#/**
|
||||||
# ogExportVarEnvironment
|
# ogExportVarEnvironment
|
||||||
#@brief Exporta las variables usadas en el proceso de inicio OpenGnsys y las almacena en /tmp
|
#@brief Exporta las variables usadas en el proceso de inicio OpenGnsys y las almacena en /tmp
|
||||||
|
|
|
@ -27,12 +27,12 @@
|
||||||
#@version 1.0.2 - RAMFS: instalación y actualización automatica en cache
|
#@version 1.0.2 - RAMFS: instalación y actualización automatica en cache
|
||||||
#@author Antonio J. Doblas Viso. Universidad de Málaga. EVLT.
|
#@author Antonio J. Doblas Viso. Universidad de Málaga. EVLT.
|
||||||
#@date 2011/08/4
|
#@date 2011/08/4
|
||||||
|
#@version 1.0.5 - Cambiar resolución de pantalla para Kernel con parámetro "video".
|
||||||
|
#@author Ramón Gómez, ETSII Universidad de Sevilla
|
||||||
|
#@date 2013/02/18
|
||||||
#*/
|
#*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Parameter: Where to mount the filesystem
|
# Parameter: Where to mount the filesystem
|
||||||
mountroot ()
|
mountroot ()
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,9 @@ mountroot ()
|
||||||
set -a
|
set -a
|
||||||
log_success_msg "Checking kernel parameters"
|
log_success_msg "Checking kernel parameters"
|
||||||
ogExportKernelParameters
|
ogExportKernelParameters
|
||||||
log_success_msg "Checking Opengnys Environmnet"
|
# Cambiar resolución de vídeo para kernels que usan el parámetro "video".
|
||||||
|
[ -n "$video" ] && ogChangeVideoResolution
|
||||||
|
log_success_msg "Checking OpenGnSys Environmnet"
|
||||||
ogExportVarEnvironment
|
ogExportVarEnvironment
|
||||||
|
|
||||||
[ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure ramfs structure for OG: y/N "
|
[ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before configure ramfs structure for OG: y/N "
|
||||||
|
|
Loading…
Reference in New Issue