hiho,
i built a kernel with ide and xfs as modules.
but the kernel crashes at startup (see below).
some info about the environment:
redhat 7.1
gcc-2.96
kernel-2.4.5
linux-2.4.5-xfs-06112001
command used for building the ramdisk image:
mkinitrd --preload pagebuf --preload xfs_supprt --preload xfs
i also tried to preload all ide/xfs modules, no success.
then i used kgcc (egcs-2.91.66), and surprise!, everythings works.
the top Makefile says, rh7.1's gcc appears to generate good code,
but in this case, it isn't true. maybe the statement in the makefile should
be revised.
-ap
-- log
Loading ide-mod module
Loading ide-mod-probe module
Loading ide-disk module
Loading pagebuf module
Loading xfs_support module
Loading xfs module
Start mounting filesystem: ide0(3,1)
Ending clean XFS mount for filesystem: ide0(3,1)
VFS: Mounted root (xfs filesystem) readonly.
change_root: old_root has d_count=2
Trying to unmount old root ... <1>Unable to handle kernel NULL pointer
dereference at virtual address 00000292
printing eip:
c016df16
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c016df16>]
EFLAGS: 00010202
eax: 00000282 ebx: 00001261 ecx: 00000000 edx: c12fbd74
esi: 00000000 edi: c12c87e0 ebp: c12c5160 esp: c12fbd54
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 1, stackpage=c12fb000)
Stack: c12fa000 ffffffff c12c87e0 c0138317 c12fbd74 00000000 00001261
00000000
c12fbd88 c7cd5040 00000000 c9046819 c12fbd8c 00000282 c0200ecc
000000001
00000282 00000001 00000000 c0179e60 c02666e0 c01761e4 c0260100
0000001f
Call Trace: [<c0138317>] [<c9046819>] [<c0179e60>] [<c01761e4>] [<c0174dd0>]
[<c0174ddb>] [<c011bdd3>]
[<c0118f2c>] [<c0118e36>] [<c0133271>] [<c010843f>] [<c016de76>]
[<c0134ec4>] [<c0133207>] [<c01239e5>]
[<c0143850>] [<c0144f30>] [<c0138511>] [<c01366fc>] [<c0105000>]
[<c0118086>] [<c0105000>] [<c01051da>]
[<c010520e>] [<c0105000>] [<c01056a6>] [<c0105200>]
Code: 8b 40 10 83 f8 02 7e 62 b8 f0 ff ff ff eb 74 85 c9 b8 ea ff
Kernel panic: Attempted to kill init!
--
Andreas Piesk a.piesk@xxxxxxx
PGP-Fingerprint: 23CB A7E2 2E53 373C DBCD 8EFC 7777 61C1
|