Bug#313178: kernel-image-2.6-k7: hotplug causes kernel oopses

2005-06-26 Thread Joachim Nilsson
19:38:38 hecl kernel:  [copy_to_user+62/80]
> copy_to_user+0x3e/0x50
> Jun 11 19:38:38 hecl kernel:  [sys_llseek+140/192] sys_llseek+0x8c/0xc0
> Jun 11 19:38:38 hecl kernel:  [sys_clone+65/80] sys_clone+0x41/0x50
> Jun 11 19:38:38 hecl kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
> 
> 
> -- System Information:
> Debian Release: 3.1
>   APT prefers testing
>   APT policy: (500, 'testing')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.8-2-k7
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> 
> Versions of packages kernel-image-2.6-k7 depends on:
> ii  kernel-image-2.6.8-2-k7   2.6.8-16   Linux kernel image for version 
> 2.6
> 
> -- no debconf information
> 
> 


-- 
Joachim Nilsson :: 
+46(0)21-123348 :: <http://vmlinux.org/joachim/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Building external 2.6 modules, a.k.a. bug #283455

2005-06-26 Thread Joachim Nilsson

Hi,

perhaps it's time now to rethink the kernel-kbuild-2.6 package.
I* vote for including the scripts into the kernel-headers package,
like in 2.4.

Regards
 /Jocke

* a regular user, non-debian developer.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#292601: kernel: Updated .glade files

2005-02-03 Thread Joachim Nilsson
On Thu, Feb 03, 2005 at 11:20:42AM +0900, Horms wrote:
> On Mon, Jan 31, 2005 at 12:27:35PM +0100, Joachim Nilsson wrote:
> > Mon 2005-01-31 at 13:30 +0300 Simon Horman wrote:
> > > On Fri, Jan 28, 2005 at 04:41:31PM +0100, Joachim Nilsson wrote:
> > > > [1] - http://lists.debian.org/debian-kernel/2005/01/msg00171.html
> > > Is gconfig even maintained upstream?
> > Dunno, but 2.6.10-ac5 has the following changelog entry that might
> > be worth taking a closer look at:
> > * Make gconfig work with current gtk 2.4 (J Magallon)
> That is interesting indeed. I have attached the associated patch.
> Could you take a moment to see if it resolves the problem
> as well as your patch does.

The bk patch does solve the errors. It does this mainly by removing the
use of custom icons for single|split|full view and replacing them with
(imo badly chosen) stock icons. I.e., the patch focuses on solving the
runtime errors, the annoying warnings remain.

My patch otoh keep the original icons, the same as are used in the
xconfig/kconfig toolbar. I do this with replace_button_icon(), which is
a new function that replace missing icons from the .glade file.  On top
of that I also sneeked in a segfault fix on lines @@ -851,9 +851,12 @@
to grey out the back button in single mode.  It is necessary to handle
if the user changes from a deeply nested place in split mode to single
mode and then presses back.

I know I'm not exactly impartial here, but the bk patch is ugly.  Maybe
we should let our patch flow upstream?

Regards
 /Jocke



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#292601: kernel: Updated .glade files

2005-01-31 Thread Joachim Nilsson
Mon 2005-01-31 at 13:30 +0300 Simon Horman wrote:
> On Fri, Jan 28, 2005 at 04:41:31PM +0100, Joachim Nilsson wrote:
> > [1] - http://lists.debian.org/debian-kernel/2005/01/msg00171.html
> Is gconfig even maintained upstream?

Dunno, but 2.6.10-ac5 has the following changelog entry that might
be worth taking a closer look at:

* Make gconfig work with current gtk 2.4 (J Magallon)

> Generally the kernel team doesn't really like putting stuff in that
> isn't going upstream. But in this case I am of the mind that as
> it can't possibly break the kernel, and given that gconfig is broken,
> it can't make is work less, we might as well put something like this 
> if someone is willing to put the effort in to get it working.

OK.  It's really not that much work to keep it (the .glade file) in
sync, so if the 2.6.10-ac5 fix isn't applicable then I could keep an
eye at it. Unless somebody else has a more dire urge to do so.

Regards
 /Jocke

P.S.
Ping CONFIG_BLK_DEV_OFFBOARD Ping...
D.S.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#292601: kernel: Updated .glade files

2005-01-28 Thread Joachim Nilsson
Package: kernel
Followup-For: Bug #292601

Does this[1] help?

Regards
 /Jocke

[1] - http://lists.debian.org/debian-kernel/2005/01/msg00171.html

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=sv_SE.ISO-8859-15, LC_CTYPE=sv_SE.ISO-8859-15 (charmap=ISO-8859-15)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Compiling Vanilla 2.4.22 Kernel Help Needed

2005-01-18 Thread Joachim Nilsson
tis 2005-01-04 klockan 21:09 -0500 skrev PHANI ARAVA:
> I have Installed Debian Sarge on to the systems of our research lab
> I have to implement a patch onto 2.4.22 kernel (vanilla) I patched it
> and compiled the kernel the deb way (Forgot to tell u that i have copied
> the config file that came with Sarge). I installed the kernel and reboot the 
> system ..
> I get this following error
> RAMDISK: cramfs filesystem found at block 0
> RAMDISK: loading 3276 blocks [1 disk] into ram disk... done.
> Freeing initrd memory: 3276k freed
> cramfs: wrong magic
> Kernel panic: VFS: Unable to miunt root fs on 22:02

Debian kernels have a patch to the ramdisk code applied that is
not included in vanilla 2.4. You will need to have that if you
want to use the Debian initrd, simplest approach is to just not
use an initrd - build everything you need to boot into the kernel.

 /Jocke



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: make gconfig segfaults

2005-01-08 Thread Joachim Nilsson
On Sat, 2005-01-08 at 01:20 +0100, Stefan Soeffing wrote:
> After the last apt-get update && apt-get upgrade I can't configure my
> kernel any more:
> [EMAIL PROTECTED]:/usr/src/kernel-source-2.6.8# make gconfig
> scripts/kconfig/gconf arch/i386/Kconfig
> (gconf:6136): Gtk-CRITICAL **: file gtklabel.c: line 2792
> (gtk_label_set_use_underline): assertion `GTK_IS_LABEL (label)' failed
> [...]
> (gconf:6136): Gtk-CRITICAL **: file gtklabel.c: line 2792
> (gtk_label_set_use_underline): assertion `GTK_IS_LABEL (label)' failed
> (gconf:6136): GLib-GObject-WARNING **: gsignal.c:1709: signal `pressed'
> is invalid for instance `0x80c8188'
> (gconf:6136): GLib-GObject-WARNING **: gsignal.c:1709: signal `pressed'
> is invalid for instance `0x80ca4c8'
> (gconf:6136): GLib-GObject-WARNING **: gsignal.c:1709: signal `pressed'
> is invalid for instance `0x80ca958'
> (gconf:6136): GLib-GObject-WARNING **: gsignal.c:1709: signal `pressed'
> is invalid for instance `0x80c8668'
> (gconf:6136): GLib-GObject-WARNING **: gsignal.c:1709: signal `pressed'
> is invalid for instance `0x80bda58'
> make[1]: *** [gconfig] Segmentation fault
> make: *** [gconfig] Error 2
> ---
> Unfortunately I can't tell which packet/update caused the problem.

It was caused by several things ... the update of libglade2-0, for
instance, see #288445.  However, there were several things in the
gconf.c code that made it worse.  Included are a rather messy patch
to both gconf.c and gconf.glade.

I ran glade-2 on the glade file, fixed two missing stock icons and
cleaned up the C code that inserts the single/split/full modes. The
rest of the patch is minor cleanups only. I refrained from using all
the included xpm icons in images.c (like qconf.cc does) in favour of
using the stock Gtk+ icons instead. Oh, yes there was a "back" bug
in split mode that I also removed, oh well...

Hope this helps somebody, event though I seriously doubt that this
will ever make it into the kernel tree.

Regards
 /Jocke

--- gconf-old.c	2004-08-14 07:38:04.0 +0200
+++ gconf.c	2005-01-08 20:41:42.0 +0100
@@ -178,17 +178,31 @@
 }
 
 
-/* Main Window Initialization */
+void replace_button_icon(GladeXML * xml, GdkDrawable * window,
+			 GtkStyle * style, gchar * btn_name, gchar ** xpm)
+{
+	GdkPixmap *pixmap;
+	GdkBitmap *mask;
+	GtkToolButton *button;
+	GtkWidget *image;
 
+	pixmap = gdk_pixmap_create_from_xpm_d(window, &mask,
+	  &style->bg[GTK_STATE_NORMAL],
+	  xpm);
+
+	button = GTK_TOOL_BUTTON(glade_xml_get_widget(xml, btn_name));
+	image = gtk_image_new_from_pixmap(pixmap, mask);
+	gtk_widget_show(image);
+	gtk_tool_button_set_icon_widget(button, image);
+}
 
+/* Main Window Initialization */
 void init_main_window(const gchar * glade_file)
 {
 	GladeXML *xml;
 	GtkWidget *widget;
 	GtkTextBuffer *txtbuf;
 	char title[256];
-	GdkPixmap *pixmap;
-	GdkBitmap *mask;
 	GtkStyle *style;
 
 	xml = glade_xml_new(glade_file, "window1", NULL);
@@ -221,36 +235,22 @@
 	style = gtk_widget_get_style(main_wnd);
 	widget = glade_xml_get_widget(xml, "toolbar1");
 
-	pixmap = gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask,
-	  &style->bg[GTK_STATE_NORMAL],
-	  (gchar **) xpm_single_view);
-	gtk_image_set_from_pixmap(GTK_IMAGE
-  (((GtkToolbarChild
- *) (g_list_nth(GTK_TOOLBAR(widget)->
-		children,
-		5)->data))->icon),
-  pixmap, mask);
-	pixmap =
-	gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask,
-	 &style->bg[GTK_STATE_NORMAL],
-	 (gchar **) xpm_split_view);
-	gtk_image_set_from_pixmap(GTK_IMAGE
-  (((GtkToolbarChild
- *) (g_list_nth(GTK_TOOLBAR(widget)->
-		children,
-		6)->data))->icon),
-  pixmap, mask);
-	pixmap =
-	gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask,
-	 &style->bg[GTK_STATE_NORMAL],
-	 (gchar **) xpm_tree_view);
-	gtk_image_set_from_pixmap(GTK_IMAGE
-  (((GtkToolbarChild
- *) (g_list_nth(GTK_TOOLBAR(widget)->
-		children,
-		7)->data))->icon),
-  pixmap, mask);
+#if 0	/* Use stock Gtk icons instead */
+	replace_button_icon(xml, main_wnd->window, style,
+			"button1", (gchar **) xpm_back);
+	replace_button_icon(xml, main_wnd->window, style,
+			"button2", (gchar **) xpm_load);
+	replace_button_icon(xml, main_wnd->window, style,
+			"button3", (gchar **) xpm_save);
+#endif
+	replace_button_icon(xml, main_wnd->window, style,
+			"button4", (gchar **) xpm_single_view);
+	replace_button_icon(xml, main_wnd->window, style,
+			"button5", (gchar **) xpm_split_view);
+	replace_button_icon(xml, main_wnd->window, style,
+			"button6", (gchar **) xpm_tree_view);
 
+#if 0
 	switch (view_mode) {
 	case SINGLE_VIEW:
 		widget = glade_xml_get_widget(xml, "button4");
@@ -265,7 +265,7 @@
 		gtk_button_clicked(GTK_BUTTON(widget));
 		break;
 	}
-
+#endif
 	txtbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w));
 	tag1 = gtk_text_buffer_create_tag(txtbuf, "mytag1",
 	  "foregroun