1 |
On Mon, Jan 3, 2011 at 11:55 AM, <meino.cramer@×××.de> wrote: |
2 |
> Paul Hartman <paul.hartman+gentoo@×××××.com> [11-01-03 17:27]: |
3 |
>> On Sun, Jan 2, 2011 at 5:28 AM, <meino.cramer@×××.de> wrote: |
4 |
>> > Final question after all there words: How can I get such a high |
5 |
>> > resolution with this hardware and the nvidia-drivers??? |
6 |
>> |
7 |
>> http://dev.gentoo.org/~spock/projects/uvesafb/ |
8 |
>> |
9 |
>> Works for me on ~amd64 gentoo with nvidia-drivers :) |
10 |
>> |
11 |
> |
12 |
> Hi, |
13 |
> |
14 |
> that sounds really promising! :) |
15 |
> |
16 |
> I tried to compile the stuff...but... |
17 |
> |
18 |
> When starting to emerge v86d (was it that name...cant remember |
19 |
> exactly) also linux-2.6.26 starts to download and klibc.* |
20 |
> |
21 |
> I checked, for what klibc is good for and in this case it is |
22 |
> used for calling the userland tool via from initram, which I |
23 |
> do not plan... |
24 |
> |
25 |
> Ok, I thought, than "low level". |
26 |
> |
27 |
> I compiled v86d by hand using "./configure --default" for the |
28 |
> default configuration. |
29 |
> |
30 |
> But this time it fails to compile with: |
31 |
> |
32 |
> make[1]: Leaving directory `/home/mccramer/data/downloads/v86d-0.1.9/libs/x86emu' |
33 |
> cc -march=native -O2 -pipe -msse3 -I/lib/modules/2.6.36.2/source/include -Ilibs/x86emu -c -o v86_x86emu.o v86_x86emu.c |
34 |
> In file included from /usr/include/asm/types.h:4, |
35 |
> from /lib/modules/2.6.36.2/source/include/linux/types.h:4, |
36 |
> from /lib/modules/2.6.36.2/source/include/linux/connector.h:25, |
37 |
> from v86.h:7, |
38 |
> from v86_x86emu.c:4: |
39 |
> /lib/modules/2.6.36.2/source/include/asm-generic/int-ll64.h:11:29: error: asm/bitsperlong.h: No such file or directory |
40 |
> In file included from /lib/modules/2.6.36.2/source/include/linux/connector.h:25, |
41 |
> from v86.h:7, |
42 |
> from v86_x86emu.c:4: |
43 |
> /lib/modules/2.6.36.2/source/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" |
44 |
> make: *** [v86_x86emu.o] Error 1 |
45 |
> |
46 |
> |
47 |
> I dont know, what the problem is...I am using linux-2.6.36.2 vanilla |
48 |
> and compile this kernel with uvesafb support in beforehand. |
49 |
> Nonetheless there seems something to be missed in the kernel |
50 |
> sources... |
51 |
> |
52 |
> My goal is to have a better resolution on the console as this |
53 |
> 8bit homecomputer like crap. It doesnot matter that much, whether |
54 |
> switching to the higher resolution happens when the first boot scripts |
55 |
> are read from /etc ... |
56 |
> |
57 |
> May I ask you for a little more informations how to proceed here? |
58 |
> How did you achieve a working uvesafb? Do you use the gentoo sources |
59 |
> or the vanilla kernel? |
60 |
|
61 |
Hi, |
62 |
|
63 |
I use vanilla-sources and do not use initrd. Don't be confused about |
64 |
initramfs, it does not require you to use initrd. Basically just |
65 |
follow the directions on that webpage and it should work. Here I'll |
66 |
explain in different words in case it helps. :) |
67 |
|
68 |
1. configure your kernel like it says on that page (CONFIG_CONNECTOR=y |
69 |
and CONFIG_FB_UVESA=y) |
70 |
2. make the kernel |
71 |
3. emerge klibc (if it's already installed, emerge it again so it |
72 |
builds against this newly-configured kernel) |
73 |
4. emerge v86d |
74 |
5. configure your kernel again, enable "Initial RAM filesystem and RAM |
75 |
disk (initramfs/initrd) support" |
76 |
6. In "Initramfs source file(s)" type /usr/share/v86d/initramfs |
77 |
7. Make and install the new kernel :) |
78 |
8. Reboot and type "cat /sys/class/graphics/fb0/modes" to see a list |
79 |
of compatible modes on your card. |
80 |
9. Edit your kernel commandline in grub configuration file to add the |
81 |
uvesafb command. For example mine is |
82 |
video=uvesafb:1280x720p-59,mtrr:2,ywrap (you can replace 1280x720p-59 |
83 |
with the mode that your card supports from the previous step) |
84 |
9. Reboot again and hopefully enjoy new high-resolution framebuffer :) |
85 |
|
86 |
Another way to make it look better is to use different console fonts. |
87 |
I'm using ter-112n from package media-fonts/terminus-font. You can set |
88 |
this in /etc/conf.d/consolefont (be sure consolefont is set as a boot |
89 |
service from rc-update). |
90 |
|
91 |
If you have a message in dmesg about mtrr type mismatch, you may need |
92 |
to change from mtrr:2 to another number. Please read the uvesafb |
93 |
documentation from linux kernel for more info: |
94 |
/usr/src/linux/Documentation/fb/uvesafb.txt |
95 |
|
96 |
Good luck :) If you have any problems let me know and I can send you |
97 |
my kernel .config in case you want to compare settings. |