fsck fails on latest 2.4 kernel
I have checked out the latest 2.4 kernel sources and tried to run it on my Malta board with an IDE disk, but fsck fails.
EPC points at __wake_up, which is called from __alloc_pages.
Has anyone encountered a similar problem ?
Checking root filesystem/dev/hda1 was not cleanly unmounted, check forced.
Oops in fault.c:do_page_fault, line 204:
$0 : 00000000 9000fc00 00000000 00000000 0000001a 802b5d0c 83b72000 811e94e0
$8 : 00001000 00000001 801374c4 00000003 00000000 83b73ed0 00068db8 7fff7688
$16: 00000000 9000fc00 00000001 9000fc01 802c0078 802bc628 00000001 83ce23c0
$24: 00000000 0046a040 83b72000 83b73df0 83b73df08011239c
Hi : 00000000
Lo : 00000000
epc : 801123ec Not tainted
Status: 9000fc02
Cause : 80800008
Process fsck.ext2 (pid: 50, stackpage=83b72000)
Stack: 83ce23c0 0000001f 00001000 83ce23c0 802c0a38 00000001 00000000
8115c320
802c08dc 802c0a2c 000001d0 8115c260 80131278 810140e4 000889c5
00000000
00001000 8115c260 80127928 00000002 81121b58 00000000 00000000
8115c320
00088a3d 00000000 00001000 80130e70 81121978 810140c0 00000000
8115c320
801285a0 8012847c 8025c1e0 00000001 802bf000 00000000 00000000
81163060
ffffffea ...
Call Trace: [<80131278>] [<80127928>] [<80130e70>] [<801285a0>][<8012847c>] [<8
025c1e0>]
[<80128a7c>] [<80128974>] [<80118c5c>] [<8013759c>] [<80137398>]
[<8010d368>]
Code: 12400004 00000000 8e100000 <5614ffcc> 8e05fffc 40016000
32730001 3421
0001 38210001
[/sbin/fsck.ext2 -- /] fsck.ext2 -a /dev/hda1 Warning... fsck.ext2 for device /dev/hda1 exited with signal 11. [FAILED]
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:[email protected] |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com
The problem turned out to be a compiler/binutils bug.
I'm using ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/binutils-mipsel-linux-2.9.5-3.i386.rpm and
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/egcs-mipsel-linux-1.1.2-4.i386.rpm
, which seems to be the latest on the SGI FTP server.
What are the recommended toolchain ?
/Carsten
Quoted 47 lines · Carsten Langgaard
I have checked out the latest 2.4 kernel sources and tried to run it on my Malta board with an IDE disk, but fsck fails.
EPC points at__wake_up, which is called from__alloc_pages.Has anyone encountered a similar problem ?
Checking root filesystem
/dev/hda1was not cleanly unmounted, check forced.
Oops in fault.c:do_page_fault, line 204:
$0 : 000000009000fc0000000000 000000000000001a802b5d0c83b72000811e94e0
$8 : 00001000 00000001801374c400000003 0000000083b73ed000068db87fff7688
$16: 000000009000fc00000000019000fc01802c0078802bc6280000000183ce23c0
$24: 000000000046a04083b7200083b73df083b73df08011239c
Hi : 00000000
Lo : 00000000
epc :801123ecNot tainted
Status:9000fc02
Cause : 80800008
Process fsck.ext2 (pid: 50, stackpage=83b72000)Stack: 83ce23c0 0000001f 00001000 83ce23c0 802c0a38 00000001 00000000 8115c320 802c08dc 802c0a2c 000001d0 8115c260 80131278 810140e4 000889c5 00000000 00001000 8115c260 80127928 00000002 81121b58 00000000 00000000 8115c320 00088a3d 00000000 00001000 80130e70 81121978 810140c0 00000000 8115c320 801285a0 8012847c 8025c1e0 00000001 802bf000 00000000 00000000 81163060 ffffffea ... Call Trace: [<80131278>] [<80127928>] [<80130e70>] [<801285a0>][<
8012847c>] [<8
025c1e0>]
[<80128a7c>] [<80128974>] [<80118c5c>] [<8013759c>] [<80137398>]
[<8010d368>]Code: 12400004 00000000 8e100000 <5614ffcc> 8e05fffc 4001600032730001 3421
0001 38210001
[/sbin/fsck.ext2-- /] fsck.ext2 -a/dev/hda1Warning... fsck.ext2 for device/dev/hda1exited with signal 11. [FAILED]
Quoted 8 lines
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:[email protected] |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556Denmark http://www.mips.com
--
_ _ ____ ___ Carsten Langgaard Mailto:[email protected] |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com
Quoted 7 lines · Carsten Langgaard
The problem turned out to be a compiler/binutils bug.
I'm using ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/binutils-mipsel-linux-2.9.5-3.i386.rpm and
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/egcs-mipsel-linux-1.1.2-4.i386.rpm
, which seems to be the latest on the SGI FTP server.
I won't use them myself. They are known to be broken.
Quoted 2 lines
What are the recommended toolchain ?
The toolchain from my RedHat 7.1 mips port is in reasonably good shape.
H.J.
Quoted 6 lines · Carsten Langgaard
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/binutils-mipsel-linux-2.9.5-3.i386.rpm and
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/egcs-mipsel-linux-1.1.2-4.i386.rpm
, which seems to be the latest on the SGI FTP server.What are the recommended toolchain ?
Don't use these for building userspace apps.
Ralf
Quoted 10 lines · Ralf Baechle
Quoted 6 lines · Carsten Langgaard
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/binutils-mipsel-linux-2.9.5-3.i386.rpm and
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mipsel-linux/egcs-mipsel-linux-1.1.2-4.i386.rpm
, which seems to be the latest on the SGI FTP server.What are the recommended toolchain ?
Don't use these for building userspace apps.
I'm only building the kernel with these.
What are you using for building the kernel ?
Quoted 2 lines
Ralf
--
_ _ ____ ___ Carsten Langgaard Mailto:[email protected] |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com
Quoted 4 lines · Carsten Langgaard
Quoted 1 line
Don't use these for building userspace apps.
I'm only building the kernel with these.
What are you using for building the kernel ?
Exactly the binaries which I put on oss. I know that in the meantime various problems with them have shown up so I'm waiting for the next official binutils release to replace them.
Ralf
Hrm... Looks like I'm getting bitten by this bug also.
I'm using H.J.'s toolchain RPMs for building the userspace applications, but the same tools as Carsten for building the kernel. I guess that combination doesn't work, either.
Unfortunately, the RPMs that H.J. has put on oss.sgi.com won't install on my system -- wrong version of RedHat. And I don't see the source to his toolchain RPMs, so I can't rebuild it myself for the local libraries.
Any suggestions on what the best approach is?
Matt
--
Matthew D. Dharm Senior Software Designer Momentum Computer Inc. 1815 Aston Ave. Suite 107 (760) 431-8663 X-115 Carlsbad, CA 92008-7310 Momentum Works For You www.momenco.com
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Ralf Baechle
Sent: Wednesday, January 16, 2002 11:53 PM
To: Carsten Langgaard
Cc: [email protected]
Subject: Re: fsck fails on latest 2.4 kernelQuoted 4 lines · Carsten Langgaard
Quoted 1 line
Don't use these for building userspace apps.
I'm only building the kernel with these.
What are you using for building the kernel ?Exactly the binaries which I put on oss. I know that in the meantime
various problems with them have shown up so I'm waiting for the next official binutils release to replace them.Ralf
Quoted 10 lines · Matthew Dharm
Hrm... Looks like I'm getting bitten by this bug also.
I'm using H.J.'s toolchain RPMs for building the userspace applications, but the same tools as Carsten for building the kernel. I guess that combination doesn't work, either.
Unfortunately, the RPMs that H.J. has put on oss.sgi.com won't install on my system -- wrong version of RedHat. And I don't see the source to his toolchain RPMs, so I can't rebuild it myself for the local libraries.
My toolchain source rpm is on oss.sgi.com:
ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/SRPMS/toolchain-20011020-1.src.rpm
H.J.
Okay... I'm a moron. I totally missed that SRPM after looking more than 3 times.
Maybe I need stronger coffee....
Matt
--
Matthew D. Dharm Senior Software Designer Momentum Computer Inc. 1815 Aston Ave. Suite 107 (760) 431-8663 X-115 Carlsbad, CA 92008-7310 Momentum Works For You www.momenco.com
Quoted 32 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of H . J . Lu
Sent: Friday, February 01, 2002 2:53 PM
To: Matthew Dharm
Cc: Ralf Baechle; Carsten Langgaard; [email protected]
Subject: Re: fsck fails on latest 2.4 kernelQuoted 4 lines · Matthew Dharm
Hrm... Looks like I'm getting bitten by this bug also.
I'm using H.J.'s toolchain RPMs for building the userspace applications, but the same tools as Carsten for building
the kernel.
Quoted 3 lines
I guess that combination doesn't work, either.
Unfortunately, the RPMs that H.J. has put on oss.sgi.com
won't install
Quoted 1 line
on my system -- wrong version of RedHat. And I don't see
the source
Quoted 2 lines
to his toolchain RPMs, so I can't rebuild it myself for the local libraries.
My toolchain source rpm is on oss.sgi.com:
ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/SRPMS/toolchain- 20011020-1.src.rpm
H.J.
As an aside, it looks like you can't rebuild this from source without gettext installed, but that isn't a pre-req given in the spec file.
It looks like there is code to detect gettext and substitute a local copy if it's not available, but that code doesn't seem to work right.
Matt
--
Matthew D. Dharm Senior Software Designer Momentum Computer Inc. 1815 Aston Ave. Suite 107 (760) 431-8663 X-115 Carlsbad, CA 92008-7310 Momentum Works For You www.momenco.com
Quoted 31 lines
-----Original Message-----
From: H . J . Lu [mailto:[email protected]]
Sent: Friday, February 01, 2002 2:53 PM
To: Matthew Dharm
Cc: Ralf Baechle; Carsten Langgaard; [email protected]
Subject: Re: fsck fails on latest 2.4 kernelQuoted 4 lines · Matthew Dharm
Hrm... Looks like I'm getting bitten by this bug also.
I'm using H.J.'s toolchain RPMs for building the userspace applications, but the same tools as Carsten for building
the kernel.
Quoted 3 lines
I guess that combination doesn't work, either.
Unfortunately, the RPMs that H.J. has put on oss.sgi.com
won't install
Quoted 1 line
on my system -- wrong version of RedHat. And I don't see
the source
Quoted 2 lines
to his toolchain RPMs, so I can't rebuild it myself for the local libraries.
My toolchain source rpm is on oss.sgi.com:
ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/SRPMS/toolchain- 20011020-1.src.rpm
H.J.
Quoted 6 lines · Matthew Dharm
As an aside, it looks like you can't rebuild this from source without gettext installed, but that isn't a pre-req given in the spec file.
It looks like there is code to detect gettext and substitute a local copy if it's not available, but that code doesn't seem to work right.
There are many things left out, like gcc, binutils, glibc-devel, ..... I don't like to list all of them. It should be no different to bootstrap gcc.
H.J.