|
|
发表于 2007-8-13 11:27:05
|
显示全部楼层
抄的 :P
http://gentoo-wiki.com/Talk:TIP_Login_issue
*以下一大坨是与本帖不相干的东西*
************************************************************
一个修改过的uvesafb-patch for gentoo-2.6.22-r5也放在这里。
补上该文件的原始MD5:
9749530af541a6bc4ca673a577e37169
PS. 悄悄加点,权当笔记。
uvesafb用法:
- cat /sys/bus/platform/drivers/uvesafb/uvesafb.0/vbe_modes
- 1280x1024-32, 0x011b
- 1600x1200-16, 0x0146
- 1400x1050-16, 0x0148
- 2048x1536-32, 0x0152
- sudo mount /boot
- sudo splash_geninitramfs -v -g /boot/fbsplash-1600x1200 -r 1600x1200 livecd-2007.0
- sudo splash_geninitramfs -v -g /boot/fbsplash-1400x1050 -r 1400x1050 livecd-2007.0
- sudo splash_geninitramfs -v -g /boot/fbsplash-1280x1024 -r 1280x1024 livecd-2007.0
- sudo nano /boot/grub/grub.conf
- title=Gentoo (sda7)
- root (hd0,1) # boot partition
- kernel /vmlinuz root=/dev/sda7 video=uvesafb:1400x1050-16,mtrr:3,ywrap splash=s$
- initrd (hd0,1)/fbsplash-1400x1050
- reboot
- fbset --info
复制代码
另,gentoo-sources-2.6.23已经将uvesafb植入,无需这个patch了。
升级内核后如果发现fb在tty1下未起效,应该读读spock的installation instructions。
- 1. cd /usr/src/linux
- 2. configure the kernel; in the "Device Drivers" section select:
- Connector - unified userspace <-> kernelspace linker and
- Graphics support ---> Userspace VESA VGA graphics support
- (that's CONFIG_CONNECTOR=y and CONFIG_FB_UVESA=y)
- 3. build the kernel: make
- 4. remerge klibc: emerge klibc
- note: This step is necessary because klibc has to be compiled against a kernel tree that includes uvesafb. You only need to do this once, i.e. you won't have to remerge klibc every time you install a new kernel or a new kernel module.
- 5. install v86d: emerge v86d
- 6. reconfigure your kernel; in the "General Setup" section select:
- Initial RAM filesystem and RAM disk (initramfs/initrd) support
- and use /usr/share/v86d/initramfs in Initramfs source file(s).
- (that's CONFIG_INITRAMFS_SOURCE="/usr/share/v86d/initramfs")
- 7. rebuild the kernel: make, and install it
- 8. add video=uvesafb:1024x768-32,mtrr:3,ywrap (or similar) to your kernel command line
- 9. reboot and enjoy uvesafb :)
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|