hello,

i get a segmentation fault while loading ide_core. i'm using a pxa270,
ptxdist-1.0.2 with OSELAS.BSP-Phytec-phyCORE-PXA270-4 and kernel 2.6.23.1.
first i get an error in drivers/ide/arm/ide_arm.c while compiling the
kernel. i solve the problem by changing 'ide_register_hw(&hw, NULL)'
to 'ide_register_hw(&hw, 1, NULL)' and define IDE_ARM_HOST.
It seems that the patch patches/linux-2.6.23.1/generic/BSP-pcm027-ide is
for an older kernel.
The segmentation fault occurs in funktion 'int
ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout)' when getting
the status byte.
It is  impossible to access address 0xee000007. 0xee000000 should be ide
base address right?

here is my dmesg output:
####################################
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Unable to handle kernel paging request at virtual address ee000007
pgd = c3598000
[ee000007] *pgd=00000000
stopped custom tracer.
Internal error: Oops: f5 [#1] PREEMPT
Modules linked in: ide_core mmc_block pxamci mmc_core st24cxx
rtc_pcf8563 rtc_core max7301 pxa2xx_spi pxa27x_gpioevent pxa27x_pwm vfat
fat sd_mod usb_storage scsi_mod usbhid hid mousedev ohci_hcd
CPU: 0    Not tainted  (2.6.23.1-rt5-ptx2-pcm027-1 #1)
PC is at ide_inb+0xc/0x14 [ide_core]
LR is at ide_wait_not_busy+0x30/0x5c [ide_core]
pc : [<bf07e95c>]    lr : [<bf07f050>]    psr: 60000013
sp : c3591d38  ip : c3591d48  fp : c3591d44
r10: 00000000  r9 : 0000004d  r8 : c3591e00
r7 : 00000000  r6 : bf08a860  r5 : bf08a860  r4 : 000088b7
r3 : 00000000  r2 : 000009e8  r1 : 000088b8  r0 : ee000007
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0000397f  Table: a3598000  DAC: 00000015
Process insmod (pid: 654, stack limit = 0xc3590268)
Stack: (0xc3591d38 to 0xc3592000)
1d20:                                                       c3591d5c
c3591d48
1d40: bf07f050 bf07e95c bf08a860 bf08a860 c3591d9c c3591d60 bf0816b0
bf07f02c
1d60: 00000001 00000002 00000000 bf08a870 00000005 bf08a860 bf08a8b8
bf08a860
1d80: 00000000 c3591e00 c3591e3c 00000000 c3591db4 c3591da0 bf082638
bf081640
1da0: bf08a878 bf08a8b8 c3591dec c3591db8 bf07c124 bf082630 0000001d
00000000
1dc0: bf08a6a0 bf08cae0 c3591e00 00000000 0000001d 0000001d bf08a6a0
c4871000
1de0: c3591dfc c3591df0 bf07c17c bf07bf98 c3591e5c c3591e00 bf08f978
bf07c174
1e00: ee000000 ee000001 ee000002 ee000003 ee000004 ee000005 ee000006
ee000007
1e20: ee000800 00000000 0000004d 00000000 00000000 00000000 00000000
00000000
1e40: bf08c240 bf08cae0 00000004 00000000 c3591e7c c3591e60 bf08f230
bf08f8fc
1e60: 0000001d 00000000 00000000 c3a356a0 c3591eec c3591e80 bf08f370
bf08f1cc
1e80: 00000001 0000001d bf08a6a0 c4871000 c3591ebc c3591ea0 c0077658
c0211cac
1ea0: c0061058 00000000 c3a35400 00000014 c3591edc bf08a6a0 c3a35400
c3a356a0
1ec0: 0000001d 0000001d bf08a6a0 c3a35400 c3a356a0 0000001d 0000001d
c4871000
1ee0: c3591fa4 c3591ef0 c0054970 bf08f24c 00000000 c005a7d8 c3524bd0
bf08a6ac
1f00: c3590000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
1f20: 00000000 0000000d 00000000 0000000f 00000000 0000000b 0000001b
c4882b38
1f40: c35835c0 00000000 c487d6b0 c487d5c0 c487d6d8 0000000a 00000000
0000026b
1f60: 0000026b bf085fa8 c487d180 c487d700 00000000 bf0046c0 c007adbc
00000000
1f80: 00020000 befebf22 00000080 c001e124 c3590000 00012018 00000000
c3591fa8
1fa0: c001dfa0 c0054850 00000000 00020000 00012018 000136cc 00012008
00000001
1fc0: 00000000 00020000 befebf22 00000080 00012008 befebf1b 00012018
00000000
1fe0: 00000003 befebcd4 00008d44 400dda94 60000010 00012018 70642a63
2a63692a
Backtrace:
[<bf07e950>] (ide_inb+0x0/0x14 [ide_core]) from [<bf07f050>]
(ide_wait_not_busy+0x30/0x5c [ide_core])
[<bf07f020>] (ide_wait_not_busy+0x0/0x5c [ide_core]) from [<bf0816b0>]
(probe_hwif+0x7c/0x844 [ide_core])
 r5:bf08a860 r4:bf08a860
[<bf081634>] (probe_hwif+0x0/0x844 [ide_core]) from [<bf082638>]
(probe_hwif_init_with_fixup+0x14/0x9c [ide_core])
[<bf082624>] (probe_hwif_init_with_fixup+0x0/0x9c [ide_core]) from
[<bf07c124>] (ide_register_hw_with_fixup+0x198/0x1dc [ide_core])
 r5:bf08a8b8 r4:bf08a878
[<bf07bf8c>] (ide_register_hw_with_fixup+0x0/0x1dc [ide_core]) from
[<bf07c17c>] (ide_register_hw+0x14/0x18 [ide_core])
[<bf07c168>] (ide_register_hw+0x0/0x18 [ide_core]) from [<bf08f978>]
(ide_arm_init+0x88/0x134 [ide_core])
[<bf08f8f0>] (ide_arm_init+0x0/0x134 [ide_core]) from [<bf08f230>]
(init_ide_data+0x70/0x80 [ide_core])
 r6:00000000 r5:00000004 r4:bf08cae0
[<bf08f1c0>] (init_ide_data+0x0/0x80 [ide_core]) from [<bf08f370>]
(init_module+0x130/0x6b0 [ide_core])
 r6:c3a356a0 r5:00000000 r4:00000000
[<bf08f240>] (init_module+0x0/0x6b0 [ide_core]) from [<c0054970>]
(sys_init_module+0x12c/0x1430)
[<c0054844>] (sys_init_module+0x0/0x1430) from [<c001dfa0>]
(ret_fast_syscall+0x0/0x2c)
Code: bf0846c8 e1a0c00d e92dd800 e24cb004 (e5d00000)
################################################################################


i'm grateful for every idea and sorry for my english.

best regards
Stefan Maday



--
ptxdist mailing list
[email protected]

Reply via email to