[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linuxppc-benh hfs mount error



Hi,

Mike Power wrote:

When I attempt to mount a hfs partition under linux on my ibook. I get an error called "Trace/breakpoint trap" I also get a whole bundle of kernel related debugging lines in syslog. I have attached those in a text file.

I recently rsync'd my kernel to the latest linuxppc-2.5-benh kernel from source.mvista.com. I have also attached the .config file I used to build the kernel.

Anybody know what is going on?

I played a bit with your config and by enabling CONFIG_LBD I can finally reproduce the problem (why has that everyone enabled???). The problem is a bug in <asm/types.h>, which causes different sector_t definitions.
The attached patch fixes this.

bye, Roman
--- 1/include/asm-ppc/types.h	31 Jan 2004 23:43:37 -0000	1.1.1.1
+++ 2/include/asm-ppc/types.h	28 Mar 2004 21:52:55 -0000
@@ -37,6 +37,8 @@ typedef unsigned short umode_t;
 
 #ifndef __ASSEMBLY__
 
+#include <linux/config.h>
+
 typedef signed char s8;
 typedef unsigned char u8;
 
--- 1/include/asm-s390/types.h	31 Jan 2004 23:43:45 -0000	1.1.1.1
+++ 2/include/asm-s390/types.h	28 Mar 2004 21:52:55 -0000
@@ -58,6 +58,8 @@ typedef __signed__ long saddr_t;
 
 #ifndef __ASSEMBLY__
 
+#include <linux/config.h>
+
 typedef signed char s8;
 typedef unsigned char u8;
 
--- 1/include/asm-sh/types.h	31 Jan 2004 23:43:49 -0000	1.1.1.1
+++ 2/include/asm-sh/types.h	28 Mar 2004 21:52:55 -0000
@@ -35,6 +35,8 @@ typedef unsigned long long __u64;
 
 #ifndef __ASSEMBLY__
 
+#include <linux/config.h>
+
 typedef __signed__ char s8;
 typedef unsigned char u8;
 
--- 1/include/asm-x86_64/types.h	31 Jan 2004 23:44:09 -0000	1.1.1.1
+++ 2/include/asm-x86_64/types.h	28 Mar 2004 21:52:55 -0000
@@ -33,6 +33,8 @@ typedef unsigned long long  __u64;
 
 #ifndef __ASSEMBLY__
 
+#include <linux/config.h>
+
 typedef signed char s8;
 typedef unsigned char u8;
 

Reply to: