I'll know this kernel is ready for merger with the 2.4 when I can finally
compile it :) ... must have tried 6-7 versions by now ...
Error:
Note...this is something new that I haven't tried to compile before.
Error might be caused by an earlier kernel.
However, 2.5.11 does contain a lot of screen_base changes.
________________________________________________
gcc -D__KERNEL__ -I/usr/src/linux-2.5.11/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=athlon
-DKBUILD_BASENAME=fbcon_cfb8 -DEXPORT_SYMTAB -c fbcon-cfb8.c
fbcon-cfb8.c: In function `fbcon_cfb8_bmove':
fbcon-cfb8.c:55: structure has no member named `screen_base'
fbcon-cfb8.c:56: structure has no member named `screen_base'
fbcon-cfb8.c:66: structure has no member named `screen_base'
fbcon-cfb8.c:67: structure has no member named `screen_base'
fbcon-cfb8.c:74: structure has no member named `screen_base'
fbcon-cfb8.c:75: structure has no member named `screen_base'
fbcon-cfb8.c:52: warning: `src' might be used uninitialized in this function
fbcon-cfb8.c:52: warning: `dst' might be used uninitialized in this function
fbcon-cfb8.c: In function `fbcon_cfb8_clear':
fbcon-cfb8.c:100: structure has no member named `screen_base'
fbcon-cfb8.c:96: warning: `dest' might be used uninitialized in this function
fbcon-cfb8.c: In function `fbcon_cfb8_putc':
fbcon-cfb8.c:118: structure has no member named `screen_base'
fbcon-cfb8.c:114: warning: `dest' might be used uninitialized in this function
fbcon-cfb8.c: In function `fbcon_cfb8_putcs':
fbcon-cfb8.c:165: structure has no member named `screen_base'
fbcon-cfb8.c:160: warning: `dest0' might be used uninitialized in this
function
fbcon-cfb8.c: In function `fbcon_cfb8_revc':
fbcon-cfb8.c:222: structure has no member named `screen_base'
fbcon-cfb8.c:219: warning: `dest' might be used uninitialized in this function
fbcon-cfb8.c: In function `fbcon_cfb8_clear_margins':
fbcon-cfb8.c:247: structure has no member named `screen_base'
fbcon-cfb8.c:250: structure has no member named `screen_base'
make[3]: *** [fbcon-cfb8.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.11/drivers/video'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.11/drivers/video'
make[1]: *** [_subdir_video] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.11/drivers'
make: *** [_dir_drivers] Error 2
I hit this error as well. Here is the pertinent .config snippet.
#
# Console drivers
#
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
#
# Frame-buffer support
#
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_RIVA=y
CONFIG_VIDEO_SELECT=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB32=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
On Sun, 2002-04-28 at 22:53, Ivan G. wrote:
> I'll know this kernel is ready for merger with the 2.4 when I can finally
> compile it :) ... must have tried 6-7 versions by now ...
>
> Error:
> Note...this is something new that I haven't tried to compile before.
> Error might be caused by an earlier kernel.
> However, 2.5.11 does contain a lot of screen_base changes.
> ________________________________________________
> gcc -D__KERNEL__ -I/usr/src/linux-2.5.11/include -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=athlon
> -DKBUILD_BASENAME=fbcon_cfb8 -DEXPORT_SYMTAB -c fbcon-cfb8.c
> fbcon-cfb8.c: In function `fbcon_cfb8_bmove':
> fbcon-cfb8.c:55: structure has no member named `screen_base'
> fbcon-cfb8.c:56: structure has no member named `screen_base'
> fbcon-cfb8.c:66: structure has no member named `screen_base'
> fbcon-cfb8.c:67: structure has no member named `screen_base'
> fbcon-cfb8.c:74: structure has no member named `screen_base'
> fbcon-cfb8.c:75: structure has no member named `screen_base'
> fbcon-cfb8.c:52: warning: `src' might be used uninitialized in this function
> fbcon-cfb8.c:52: warning: `dst' might be used uninitialized in this function
> fbcon-cfb8.c: In function `fbcon_cfb8_clear':
> fbcon-cfb8.c:100: structure has no member named `screen_base'
> fbcon-cfb8.c:96: warning: `dest' might be used uninitialized in this function
> fbcon-cfb8.c: In function `fbcon_cfb8_putc':
> fbcon-cfb8.c:118: structure has no member named `screen_base'
> fbcon-cfb8.c:114: warning: `dest' might be used uninitialized in this function
> fbcon-cfb8.c: In function `fbcon_cfb8_putcs':
> fbcon-cfb8.c:165: structure has no member named `screen_base'
> fbcon-cfb8.c:160: warning: `dest0' might be used uninitialized in this
> function
> fbcon-cfb8.c: In function `fbcon_cfb8_revc':
> fbcon-cfb8.c:222: structure has no member named `screen_base'
> fbcon-cfb8.c:219: warning: `dest' might be used uninitialized in this function
> fbcon-cfb8.c: In function `fbcon_cfb8_clear_margins':
> fbcon-cfb8.c:247: structure has no member named `screen_base'
> fbcon-cfb8.c:250: structure has no member named `screen_base'
> make[3]: *** [fbcon-cfb8.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.5.11/drivers/video'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.5.11/drivers/video'
> make[1]: *** [_subdir_video] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.5.11/drivers'
> make: *** [_dir_drivers] Error 2
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
> I'll know this kernel is ready for merger with the 2.4 when I can finally
> compile it :) ... must have tried 6-7 versions by now ...
>
> Error:
> Note...this is something new that I haven't tried to compile before.
> Error might be caused by an earlier kernel.
> However, 2.5.11 does contain a lot of screen_base changes.
Thats my fault. I had all the correct changes locally but my experience
with BK is just starting :-/ So this first time was a bit painful. I
asked people to tes my stuff but no one compiled so I toke that as
everything was okay. Please folks. Test the stuff. I even make classic
diff patches for people as well.
I have fixes against 2.5.11 avaliable for this.
Diff:
http://www.transvirtual.com/~jsimmons/fbdev_fixs.diff
Also I commited these changes to the BK repository. The URL for this is
http://fbdev.bkbits.net/fbdev-2.5
> Please folks. Test the stuff. I even make classic
> diff patches for people as well.
>
> I have fixes against 2.5.11 avaliable for this.
>
Tested and verified to work. Thank you.
Wow. I actually compiled a 2.5 kernel.
must be a miracle of some kind :)
Now let's reboot and test my new kernel.
Well, here's the result of my first 2.5 compiled kernel :
Codes were hand-copied. Inaccuracy is possible but unlikely.
I checked several times.
----------------------------------------------------------------
ksymoops 2.4.0 on i686 2.4.19-pre3. Options used
-v /usr/src/linux-2.5.11/vmlinux (specified)
-K (specified)
-L (specified)
-o /lib/modules/2.5.11 (specified)
-m /boot/System.map-2.5.11 (specified)
No modules in ksyms, skipping objects
Unable to handle kernel NULL pointer dereference at virtual address 000001b4
*pde = 00000000
oops: 0000
CPU: 0
EIP: 0010: [<c02055f6>] Not tainted.
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010283
eax: c0336570 ebx: 00007f80 ecx: 00000000
esi: 00000000 edi: 00000180 ebp: 00000000 esp: d3eefce8
ds: 0018 es: 0018 ss: 0018
Stack: 00007f80 c0336680 c1313800 00000000 c0203a70 c0336570 00000002 00000000
00000180 00000003 c02b48f4 c02b4a60 00000206 00000003 00000246 c012f69f
c02b48f4 c02b4a5c 000001f0 00000000 c12d79c0 000001f0 c1308000 c012d39e
Call Trace: [<c0203a70>] [<c012f69f>] [<c012d39f>] [<c01ff424>] [<c0200990>]
[<c01ba4a9>] [<c01fef53>] [<c01fe603>] [<c01ba5de>] [<c01be0ed>]
[<c01fd91a>] [<c0105000>] [<c0105070>] [<c0105000>] [<c0105646>]
[<c0105050>]
Code: 8b 9d b4 01 00 00 85 db 0f 84 ac 00 00 00 0f b7 82 02 01 00
>>EIP; c02055f6 <atyfb_cursor+16/e0> <=====
Trace; c0203a70 <atyfbcon_switch+70/e0>
Trace; c012f69f <__alloc_pages+3f/180>
Trace; c012d39f <kmem_cache_grow+ef/270>
Trace; c01ff424 <fbcon_cursor+b4/1e0>
Trace; c0200990 <fbcon_switch+140/1c0>
Trace; c01ba4a9 <redraw_screen+c9/140>
Trace; c01fef53 <fbcon_setup+843/940>
Trace; c01fe603 <fbcon_init+b3/e0>
Trace; c01ba5de <visual_init+9e/100>
Trace; c01be0ed <take_over_console+ad/180>
Trace; c01fd91a <register_framebuffer+fa/130>
Trace; c0105000 <_stext+0/0>
Trace; c0105070 <init+20/180>
Trace; c0105000 <_stext+0/0>
Trace; c0105646 <kernel_thread+26/30>
Trace; c0105050 <init+0/180>
Code; c02055f6 <atyfb_cursor+16/e0>
00000000 <_EIP>:
Code; c02055f6 <atyfb_cursor+16/e0> <=====
0: 8b 9d b4 01 00 00 mov 0x1b4(%ebp),%ebx <=====
Code; c02055fc <atyfb_cursor+1c/e0>
6: 85 db test %ebx,%ebx
Code; c02055fe <atyfb_cursor+1e/e0>
8: 0f 84 ac 00 00 00 je ba <_EIP+0xba> c02056b0
<atyfb_cursor+d0/e0>
Code; c0205604 <atyfb_cursor+24/e0>
e: 0f b7 82 02 01 00 00 movzwl 0x102(%edx),%eax
<0> Kernel panic: Attempted to kill Init!
Try this patch and tell me if it works.
--- /usr/src/linux-2.5.11/drivers/video/aty/atyfb_base.c Mon Apr 29 10:48:07 2002
+++ atyfb_base.c Mon Apr 29 15:48:22 2002
@@ -2625,7 +2625,7 @@
#ifdef CONFIG_FB_ATY_CT
/* Erase HW Cursor */
- if (info->cursor)
+ if (info->cursor && (fb->currcon >= 0))
atyfb_cursor(&fb_display[fb->currcon], CM_ERASE,
info->cursor->pos.x, info->cursor->pos.y);
#endif /* CONFIG_FB_ATY_CT */
On Monday 29 April 2002 04:52 pm, you wrote:
> Try this patch and tell me if it works.
It worked. I got a penguin, just before it died again with an ide-related
panic for which I'll start a new LKML thread :)
> On Monday 29 April 2002 04:52 pm, you wrote:
> > Try this patch and tell me if it works.
>
> It worked. I got a penguin,
:-)
> just before it died again with an ide-related
> panic for which I'll start a new LKML thread :)
:-(