Re: Where to put fbset command during system boot up

"Unger Richard" <[email protected]> Wed, 9 Aug 2006 10:10:15 +0200
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
You need to add a parameter to your kernel boot line in your GRUB or LILO configuration.

Something like "video=nscfb:vmode:1024x768-32,vfreq=75"

That's assuming you are using the GEODE framebuffer driver, not vesa...

Attached to the end of this email is the GEODE Framebuffer README file from the amd.com site. It has a pretty good description of how to set it up...

Richie

-----------------------------------------------------------------------------
PRODUCT INFORMATION
-----------------------------------------------------------------------------
This driver is the frame buffer graphics device driver for the Geode GX 
processors (GX [email protected], GX [email protected], GX [email protected]), Geode SC1200/SC1201, SC2200, 
and SC3200 processors, and the GX1 processors. (Hereafter referred to as Geode 
processor unless otherwise specified.) The driver works with the Geode Linux 
graphics driver architecture and has been tested with Linux kernel 2.4.17. 


Features
--------
Geode GX processors (GX [email protected], GX [email protected], GX [email protected]) supported 
display modes:
- 640x480 @ 60, 72, 75, 85 Hz, 8, 16, and 32 bpp
- 800x600 @ 56, 60, 72, 75, 85 Hz, 8, 16, and 32 bpp
- 1024x768 @ 60, 70, 75, 85 Hz, 8, 16, and 32 bpp
- 1152x864 @ 75 Hz 8, 16, and 32 bpp
- 1280x1024 @ 60, 75, 85 Hz, 8, 16, and 32 bpp
- 1600x1200 @ 60, 70, 75, 85 Hz, 8, 16, and 32 bpp

Geode SC1200/SC1201/SC2200/SC3200 processors supported display modes: 
- 640x480 @ 60, 72, 75, 85 Hz, 8 and 16 bpp
- 800x600 @ 56, 60, 72, 75, 85 Hz, 8 and 16 bpp
- 1024x768 @ 60, 70, 75, 85 Hz, 8 and 16 bpp
- 1152x864 @ 75 Hz 8 bpp 
- 1280x1024 @ 60, 75, 85 Hz, 8 bpp 

Geode GX1 processors supported display modes:
- 640x480 @ 60, 72, 75, 85 Hz, 8 and 16 bpp
- 800x600 @ 56, 60, 72, 75, 85 Hz, 8 and 16 bpp
- 1024x768 @ 60, 70, 75, 85 Hz, 8 and 16 bpp
- 1152x864 @ 75 Hz 8, and 16 bpp
- 1280x1024 @ 60, 75, 85 Hz, 8 and 16 bpp

Geode SC1200/SC1201 processors supported TV modes (TV modes run only 
on 16 bpp depth):
- NTSC-720X480
- NTSC-640X480
- PAL-768X576
- PAL-720X576	

- Default mode is 640x480 16 bpp.

- To run 1280x1024@32 Video memory must be set to >= 8 MB in BIOS.

- To run 1600x1200@32 Video memory must be set to >= 9.37 5 MB in BIOS.

- Compression is disabled automatically if video memory is insufficient.
  (e.g. modes like 1280x1024@32 with 8 MB video memory).

- DDC (Display Data Channel) supported on the Geode GX1 processor-based platforms.
  - If Flat panel option is selected, then DDC option is ignored.


Dependencies
------------
Durango v2.51.02
Panel v1.3.5
DDC v1.1.1 
tvoset v1.1.0


Functional Changes
------------------
- Readme.txt document modified with simple Build and Install instructions.
- Installation script has been added to install the Geode KFB driver sources.


Defects Corrected
-----------------
- #169.12 vfreq 56 Hz for mode 800x600 in not supported.


File Changes
------------
- All


Known Errata
------------
- Panning is not supported in the driver when flat panel is selected.

- Since flat panel display timings are different from the CRT,
  fbset utility shows different values for the vertical frequency 
  when flat panel enabled.

- Panel support is not supported on the Geode SP1SC20/SP1SC21 platforms.
  If flat panel option is selected on SP1SC20/SP1SC21, display is distorted 
  for BIOS version lower than v0.07.


-----------------------------------------------------------------------------
VALIDATION ENVIRONMENT
-----------------------------------------------------------------------------
Validated on: 
	Geode SP4GX22 system platform
	Geode SP4GX10 system platform
	Geode SP4SC30 system platform
	Geode SP1SC20/SP1SC21 system platforms 
with Red hat 7.2 Linux-2.4.17.


-----------------------------------------------------------------------------------
INSTALLATION INSTRUCTIONS
-----------------------------------------------------------------------------------
Packages required:
- RedHat 7.2 Installation hard disk (installed from CDs).
- Linux Kernel source version 2.4.17 (linux-2.4.17.tar.gz).
  This can be down loaded from the following ftp site:
  ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.gz
- If  /usr/src/linux directory is existing then "mv /usr/src/linux  /usr/src/linux.old"
- Place the downloaded linux-2.4.17.tar.gz in "/usr/src" directory and expand it.
	"tar -zxvf linux-2.4.17.tar.gz"
- Then /usr/src/linux directory will be created.


Copying/injecting the Geode driver source into the existing kernel source tree
------------------------------------------------------------------------------

1. Extract the supplied nsc-kfb-driver-2.7.7 source tar file in "root" directory as:
   - cd /root
   - tar -zxvf nsc-kfb-driver-2.7.7.tar.gz
   then "/root/nsc-kfb-driver-2.7.7" directory will be created.
  
2. cd /root/nsc-kfb-driver-2.7.7

3. Execute "./install"


-----------------------------------------------------------------------------
BUILD INSTRUCTIONS					
----------------------------------------------------------------------------- 
- cd "/usr/src/linux"

- Configure the Geode frame buffer driver with the following steps

   a) Run "make menuconfig"

   b) Goto "Code maturity level options"

   c) Enable "Prompt for development drivers"

   d) Goto top level menu and select "Console drivers"

   e) Goto "Frame-buffer Support"
   - Select "National Geode display support" 
     as  "M" for Module or "*" for part of the kernel image
   - Select "FlatPanel Support" if required
   - Select "DDC Support" if required
   - Select "GAL Support" if required
   - Select "Advanced low level driver options"
   - Select "8, 16, 24, and 32bpp packed pixel support"

   f) Save the kernel configuration

- For XFree86 Geode STB driver GAL option is mandatory.

- For XFree Geode STB driver, you can set the flat panel or TV options 
  (Geode SC1200/SC1201 only), whichever needed. 

- Run "make dep"

- Run "make modules"

- Run "make modules_install"

- Run "make install"


Configuration changes to install the linux-2.4.17 kernel
--------------------------------------------------------

a) Update the file "/etc/lilo.conf":
	boot=/dev/hda
	map=/boot/map
	install=/boot/boot.b
	prompt
	timeout=50
	linear
	default=linux-2.4.17

	image=/boot/vmlinuz-2.4.17
			label=linux-2.4.17
			read-only
			root=/dev/hda1


b) Options for Geode KFB driver if it has been compiled as part of the kernel image 
- Modify "/etc/lilo.conf" to use these kernel command line options:

  For example NTSC-720X480 TV mode option:
  ----------------------------------------

	boot=/dev/hda
	map=/boot/map
	install=/boot/boot.b
	prompt
	timeout=50
	linear
	default=linux-2.4.17

	image=/boot/vmlinuz-2.4.17
			append="video=nscfb:vmode:NTSC-720X480"
			label=linux-2.4.17
			read-only
			root=/dev/hda1

- Kernel command line options can be passed to nscfb with:
  `video=nscfb:option1,option2:value2,option3' (multiple options should be 
   separated by comma, values are separated from options by `:'). 

	Accepted options:
        -----------------
	The table for the Kernel mode numbers are:

	       |  640x480    800x600    1024x768   1280x1024    1600x1200
	-------+--------------------------------------------------------
	8 bpp  |  0x301/769  0x303/771  0x305/773  0x307/775	0x31C/796
	16 bpp |  0x311/785  0x314/788  0x317/791  0x31A/794    0x31E/798
	24 bpp |  0x312/786  0x315/789  0x318/792  

	vesa:X	- Selects startup videomode. X is number from 0 to 0x1FF. See the 
		  above table for detailed explanation. 

	vmode:X	- Selects startup videomode. X is string of the format 
		  widthxheight-depth. 
 
	vfreq:X	- Selects startup video vertical frequency. Takes 60, 70, 72, 75 
		  and 85 Hz. Default is 60 Hz.

	Linux_kernel_mode_number = VESA_mode_number + 0x200

	If adding in lilo.conf use the decimal number and not hex value.
	While using Geode frame buffer driver do not use "VGA=ASK".
	To turn on the desired mode, use the video mode number of the Linux 
	kernel which is the VESA mode number plus 0x200.

- Flat panel option is provided for TFT/DSTN support.
  This support is available only on platforms with CS9211 support.
        To select a Flat panel:

	1. Option "flatpanel:1".
		This option is used to select the flat panel.
                
	If BIOS supports flat panel the display will be flat panel and CRT.
	If BIOS does not support flat panel, the display defaults to CRT only.

     By default in the driver, flat panel is turned off for Geode GX1 and 
     SC1200 processor-based platforms.

     This option is mandatory for Geode GX1 and SC1200 processor-based platforms
     to select flat panel support.  For flat panel based Geode GX (i.e., 
     GX [email protected], GX [email protected], GX [email protected])processor platforms, default flat panel 
     is enabled, so this is not required. In this version of driver, flat panel is 
     supported on Geode GX (i.e., GX [email protected], GX [email protected], GX [email protected]) TFT 
     version, Geode GX1 processor-based platforms, and the Geode SP4SC30 platform 
     only.
	
- Option Compression: 
	- compression:1 is to enable the compression.
	- compression:0 is to disable the compression.
	- Default compression is enabled in the driver.

	sample options:
	---------------
		#append="video=nscfb:vmode:791"
		#append="video=nscfb:vmode:1024x768-16,vfreq:75"
		#append="video=nscfb:vmode:NTSC-640X480"
		#append="video=nscfb:vmode:PAL-768X576"
		#append="video=nscfb:vmode:PAL-720X576"
		#append="video=nscfb:compression:0"
		#append="video=nscfb:vmode:NTSC-720X480,TVO:50:30:620:420"

c) Execute the following commands:
	- Run "lilo"
	- Run reboot


Installation of Geode KFB driver if Compiled as Module
------------------------------------------------------
Execute the instructions:
	- cd "/usr/src/linux/drivers/video/nsc/"
	- insmod nsc.o option1=value option2=value option3=value ...etc.

Available options usage:  

i. vmode="mode" 
	- To set 1024x768-16 mode: insmod nsc.o vmode="1024x768-16"
	- To set PAL-768X576 mode: insmod nsc.o vmode="PAL-768X576"

ii. vesa=value (value should be in hexadecimal or integer format)
	To set 1024x768-16 mode: insmod nsc.o vesa=0x317 (or 791)

iii. compression=value 
	- By default in the driver compression will be turned on. 
	- To disable compression the above option can be used as 
	  insmod nsc.o compression=0

iv. flatpanel=value 
	By default in the driver flat panel is off for Geode GX1 and 
	SC1200 processor-based platforms. This option is mandatory 
	for these processors to select flat panel support.  

	For flat panel Geode GX (i.e., GX [email protected], GX [email protected], 
	GX [email protected]) processor-based platforms the default flat panel 
	is enabled, so this option is not required.
   
	Usage: On Geode GX1 and SC1200 processor-based platforms 
	to select flat panel: 
		- insmod nsc.o flatpanel=1 
   
V. ddc=value 
	By default in the driver DDC is turned off. 
	insmod nsc.o ddc=1  will get DDC mode.

Vi. vfreq=value (value should be integer)
	TO select 85 Hz vfreq:  insmod nsc.o vfreq=85

The format to select more than one option: 
	(e.g., insmod nsc.o vmode="1024x768-16" vfreq=85)


--------------------------------------------------------------------------------
RELEASE HISTORY (Previous Version)
--------------------------------------------------------------------------------
Version 2.7.6, General Release
Release Date: March 13th, 2003


Dependencies:
- crlf v1.0.1o
- Durango v2.51.01
- Panel v1.3.5
- DDC v1.1.1 
- tvoset v1.1.0


Functional Changes 
------------------
- The 'gfx_enable_panning' routine exported to GAL.


Defects Corrected
-----------------
- Issue #169.10: Did not take the vfreq append entry in lilo bootloader 
  correctly for 640x480-16 mode.

- Issue #169.11: Mode switch from higher mode to panel width and height fails 
  on Geode GX1 processor and Geode GX (i.e., GX [email protected], GX [email protected], 
  GX [email protected]) processor-based platforms. 


File Changes
------------
- nsc_gx1_fb.c
- nsc_gx2_fb.c
- nsc_ioctl.c
- nsc_common_fb.h
- nsc_ioctl.h
- nsc_galproto.h


Known Errata
------------
- Panning is not supported in the driver when flat panel is selected.

- Since flat panel display timings are different from the CRT,
  fbset utility shows different values for the vertical frequency 
  when flat panel enabled.

- Panel support is not supported on the Geode SP1SC20/SP1SC21 platforms.
  If flatpanel option selected on the Geode SP1SC20/SP1SC21, display is 
  distorted for BIOS version lower than v0.07.






> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[email protected]] Im 
> Auftrag von Kushal Koolwal
> Gesendet: Mittwoch, 09. August 2006 01:52
> An: [email protected]
> Betreff: [Linux-fbdev-users] Where to put fbset command 
> during system boot up
> 
> Hi,
> 
> I am using Debian Etch with kernel 2.6.17 and I am using the 
> framebuffer driver for my Graphic Card(AMD GX processor). Now 
> the problem is, when my system boots on the framebuffer 
> console, the resolution is "640x480" which I later found out 
> once my system booted into fluxbox and I ran the fbset -v 
> command to see the resolution of the framebuffer debvice. Now 
> I know that my framebuffer driver supports "1024x768" 
> resolution. I checked this my hitting
> Alt-Ctrl-F1 to switch from the fluxbox to the virtual console 
> and then I gave the command fbset -v "1024x768-60" and the 
> resolution got changed and I was getting a much bigger display now.
> 
> So my problem is how can I get that resolution during the 
> system boot also. 
> I tried putting a script called setconsole (which has a 
> single line fbset -v
> "1024x768-60") in /etc/init.d directory and made it 
> executable and linked it with the rc.N directories by giving 
> the following command:
> 
> update-rc.d setconsole defaults 10
> 
> but it did not help.
> 
> How can get the particular resolution on my framebuffer 
> console during the system boot? Do I need to place the script 
> somewhere else?
> 
> THanks in advance.
> 
> 
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier Download IBM WebSphere Application Server 
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> Linux-fbdev-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642