Thanks for patch apply method.
But about vga, it doesn't work with vga=0x113. I get this message from dmesg:
atyfb: 3D RAGE PRO (BGA, AGP) [0x4742 rev 0x7c] 4M SGRAM, 14.31818 MHz XTAL, 230 MHz PLL, 100 Mhz MCLK
fb0: ATY Mach64 frame buffer device on PCI
vesafb: abort, cannot reserve video memory at 0xfd000000
vesafb: framebuffer at 0xfd000000, mapped to 0xcd003000, size 4096k
vesafb: mode is 800x600x16, linelength=1600, pages=3
vesafb: protected mode interface info at c000:4ac6
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb1: VESA VGA frame buffer device
vga16fb: initializing
vga16fb: mapped to 0xcd404000
fb2: VGA16 VGA frame buffer device
VFS: Disk quotas dquot_6.5.1
.......
.......
Console: switching to colour frame buffer device 80x25
-------------------------I've tried "fbset -i":
mode "640x400-70"
# D: 25.172 MHz, H: 31.466 kHz, V: 69.923 Hz
geometry 640 400 640 6528 8
timings 39726 40 24 39 9 96 2
accel true
rgba 8/0,8/0,8/0,0/0
endmode
Frame buffer device information:
Name : ATY Mach64
Address : 0xfd000000
Size : 4190208
Type : PACKED PIXELS
Visual : PSEUDOCOLOR
XPanStep : 8
YPanStep : 1
YWrapStep : 0
LineLength : 640
MMIO Address: 0xfffffc00
MMIO Size : 2048
Accelerator : ATI Mach64GT
-------------------------...and fbset -i -fb /dev/fb1:
mode "800x600-75"
# D: 48.001 MHz, H: 46.876 kHz, V: 75.121 Hz
geometry 800 600 800 600 16
timings 20833 96 32 16 4 96 4
rgba 5/11,6/5,5/0,0/0
endmode
Frame buffer device information:
Name : VESA VGA
Address : 0xfd000000
Size : 4194304
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 1600
Accelerator : No
also I checked if Frame Buffer Support was included in the kernel, and it was.
It seems that /dev/fb0 can't show more than 460*400, if I load kernel2.6.4 on startup,everything works great (800*600, even 1024*724), but on 2.6.6 ....
I also notice a warning message and I don't know what it's wrong:
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Pls help!