Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reiser4 kernel on ppc, how??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Sun May 16, 2004 3:24 am    Post subject: reiser4 kernel on ppc, how?? Reply with quote

i want to convert some of my G4's disks to reiser4...
but i'm running in some trouble sadly... first i tried to compile a prepatched kernel (speedy) but that failed to build, so i guess those kernels are for x86 only, or could they be fixed maybe...?? :)
and if that's not the way to do it, what other options do i have to get reiser4 support on my mac? maybe manually patch a vanilla kernel with reiser4?
is anyone somewhat more informed than me in this matter?? if so, please, let me know what to try..
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
Guest






PostPosted: Sun May 16, 2004 6:12 pm    Post subject: Reply with quote

unless you are into testing really flakey stuff i would recomend doing that .
Back to top
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Sun May 16, 2004 6:16 pm    Post subject: Reply with quote

heh, actually i am kinda into testing really flakey stuff, seeing my G4 is already ~ppc, nptl, gcc-3.4, linux-headers-2.6.5, patched kernel 2.6.5, udev, reiserfs, fdo's xserver_cvs, and so on and so on..... :P
so uh.... any suggestions on getting reiser4 in there too...?
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Mon May 17, 2004 12:56 am    Post subject: Reply with quote

Have you tried patching vanilla-sources with a Reiser4 patchset? In theory, vanilla-sources will build fine, though I don't usually stray from the gentoo-ppc-dev ones.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Mon May 17, 2004 5:25 am    Post subject: Reply with quote

yup, already tried that... vanilla runs fine indeed... but when i patch vanilla with reiser4 (patches from www.namesys.com) kernel compilation fails.. :(
if it can be of help, i can post the exact error when i get home..?
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Mon May 17, 2004 7:59 pm    Post subject: Reply with quote

CaribbeanKnight wrote:

if it can be of help, i can post the exact error when i get home..?


WHy not - it'll give us a starting point, at least...
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue May 18, 2004 3:57 am    Post subject: Reply with quote

ok, just tried 'make clean vmlinux modules modules_install > error' to get the output of the compilation in a file, but that doesn't work.. :(
any other way i can capture the output of the compilation?
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Tue May 18, 2004 5:57 am    Post subject: Reply with quote

You will need to redirect standard error output (stderr) to a file.
A simple
Code:
make 2>error.log

should do it with a 2.6 kernel and a bash shell.

I have compiled Reiser4 on ppc successfully on my kernel - I am running Con Koliva's ck-sources kernel 2.6.4 (emerge ck-sources) that has Reiser4 already patched in. Compiling with gcc 3.3.1 gives only one warning and links without a problem. I haven't yet had time to actually try and use the filesystem, but I emerged reiser4progs 0.5.4 and they compile on ppc, too (I never got 0.5.0 to compile on ppc when I tried about a month ago).

I am really looking forward to see reiser4 working on ppc as it seems to be usable on x86 already (only two known bugs remaining or so). All my partitions are reiser 3.6 and general portage operation has sped up a lot after I switched from ext3.
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue May 18, 2004 7:19 am    Post subject: Reply with quote

diskbreaker, as you suggested, i tried ck-sources-2.6.4-r2 and just copied my .config over from my ppc-development-sources, did a make oldconfig and then enabled reiser4 in menuconfig...
but, still, when i try to build it, it fails with this error.log:
Code:

kernel/built-in.o(.init.text+0x814): In function `sched_init':
: undefined reference to `spin_lock_dont_check'
make: *** [.tmp_vmlinux1] Error 1

the error i got using my manually patched vanilla sources 2.6.5_rc2 is very similar as you can see:
Code:

kernel/built-in.o(.init.text+0x334): In function `sched_init':
: undefined reference to `spin_lock_dont_check'
make: *** [.tmp_vmlinux1] Error 1

i have no clue what that means though,.... :(
could you maybe post the .config you used to build that ck kernel with reiser4..?
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue May 18, 2004 8:44 am    Post subject: Reply with quote

update, after a whole night of tinkering i've finally found the cause of this error...
it seems that if i want to enable reiser4, i have to disable SMP support.... but i rather have that since i have a dual G4....
well, first i'm gonna try and make some reiser4 partitions to see if everything actually works.. :)
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue May 18, 2004 9:46 am    Post subject: Reply with quote

and no succes yet :(
compiled ok, booted ok, then i formatted a partition using 'mkfs.reiser4 /dev/hdc1' and i get this:
Code:

MoondusT ck # mkfs.reiser4 /dev/hdc1
mkfs.reiser4 0.5.4
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
reiser4progs/COPYING.

Block size 4096 will be used.                                                 
Linux 2.6.5-rc2 is detected.                                                 
Uuid 0758eff9-6733-4d0d-830a-1c01cacac756 will be used.                       
Reiser4 is going to be created on /dev/hdc1.                                 
(Yes/No): Yes
Creating reiser4 on /dev/hdc1...done
MoondusT ck #

so, everything still looks ok, but when i want to mount the partition things go wrong:
Code:

MoondusT ck # mount /dev/hdc1 wd400jb/
mount: you must specify the filesystem type
MoondusT ck # mount -t reiser4 /dev/hdc1 wd400jb/
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
       or too many mounted file systems
MoondusT ck #

so... does this mean reiser4 just doesn't work yet on ppc or is there still something else i can try...? i don't feel ready to give up just yet... :twisted:
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Tue May 18, 2004 9:55 pm    Post subject: Reply with quote

CaribbeanKnight wrote:
update, after a whole night of tinkering i've finally found the cause of this error...
it seems that if i want to enable reiser4, i have to disable SMP support.... but i rather have that since i have a dual G4....
well, first i'm gonna try and make some reiser4 partitions to see if everything actually works.. :)


I would suspect that you could leave on the SMP option but turn off the preempt option.
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Tue May 18, 2004 10:50 pm    Post subject: Reply with quote

yeah, i thought so too, but it seems like it's more the other way around... i tried lots of different settings and really, SMP breaks compilation, while preemptive compiles & runs without any (obvious) problems....
but i really begin to suspect more and more that reiser4 on ppc is impossible at this time.. :(
anyone who knows more about this? or anyone at all who got r4 working on ppc??
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
sumin k'adra
n00b
n00b


Joined: 20 Sep 2003
Posts: 65
Location: santa fe, nm

PostPosted: Thu Jul 08, 2004 10:17 pm    Post subject: Reply with quote

I just trashed my system but I was at the same point that you are at... I could compile the kernel and format reiser4 partitions but not mount them. Can you post the output of dmesg after you try to mount the reiser4 partition?
Back to top
View user's profile Send private message
CaribbeanKnight
Apprentice
Apprentice


Joined: 27 Apr 2003
Posts: 240
Location: Earth -> Europe -> Belgium -> Diest

PostPosted: Fri Jul 09, 2004 4:47 am    Post subject: Reply with quote

output of dmesg:
Code:

reiser4[mount(7400)]: try_init_format40 (fs/reiser4/plugin/disk_format/disk_format40.c:281)[nikita-3228]:
WARNING: Key format mismatch. Only large keys are supported.

but afaik now this is due to a bug in reiser4progs-0.5.5...
_________________
...we ain't shit...
Linux User #353893
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum