Ticket #1230 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

oops at boot in rtc_dev_open()

Reported by: dodji@… Owned by: openmoko-kernel@…
Priority: high Milestone:
Component: kernel Version: unspecified
Severity: normal Keywords:
Cc: buglog@…, john_lee@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:


compile a 2.6.24 kernel with patches from
http://svn.openmoko.org/branches/src/target/kernel/2.6.24.x/patches/, svn
revision r4055. Boot it on a gta02 v2 or v4 hardware.

You then get the following oops:

Empty flash at 0x06abb930 ends at 0x06abc000

VFS: Mounted root (jffs2 filesystem).

Freeing init memory: 124K

Unable to handle kernel paging request at virtual address 7ffff0a5

pgd = c710c000

[7ffff0a5] *pgd=00000000

Internal error: Oops: 5 #1 PREEMPT

Modules linked in:

CPU: 0 Not tainted (2.6.24 #2)

PC is at 0xc0746fe0

LR is at rtc_dev_open+0x64/0xdc

pc : [<c0746fe0>] lr : [<c01d7b18>] psr: a0000013

sp : c7121e60 ip : c0744ea4 fp : c7121e7c

r10: c7858b60 r9 : c7120000 r8 : c7c1f5a0

r7 : 8744f439 r6 : 40017dfb r5 : c7d25e00 r4 : c7d25f3c

r3 : c0744f44 r2 : 00000001 r1 : 80000013 r0 : c7c94c28

Flags: NzCv? IRQs on FIQs on Mode SVC_32 ISA ARM Segment user

Control: c000717f Table: 3710c000 DAC: 00000015

Process hwclock (pid: 1037, stack limit = 0xc7120268)

Stack: (0xc7121e60 to 0xc7122000)

1e60: c0289bc0 00000000 c7d25f3c 00000000 c7121eac c7121e80 c00963f0 c01d7ac4

1e80: c7121ea4 00000000 c7121eac c7c1f5a0 00000000 c7ffe53c c0096210 c7c0dc20

1ea0: c7121ed4 c7121eb0 c009110c c0096220 c7c1f5a0 c7121f00 ffffff9c 00000003

1ec0: c7c75000 00000000 c7121ef4 c7121ed8 c00912a0 c0090fdc 00000000 c7c75000

1ee0: c7120000 00020000 c7121f64 c7121ef8 c00912f8 c009127c c7121f00 c002efc4

1f00: c7858b60 c7c0dc20 c7121f34 80000013 00000000 00000101 00000001 00000000

1f20: 00000000 c7ffe354 c71a8268 c71a8260 c7121f64 c7121f40 c0090f94 c003effc

1f40: 00020000 00020001 00000000 c7c1f5a0 00020000 00000000 c7121f94 c7121f68

1f60: c0091358 c00912c8 00000000 00000000 00000000 00000000 000abb88 00000008

1f80: 00000005 c00280e8 c7121fa4 c7121f98 c0091420 c0091310 00000000 c7121fa8

1fa0: c0027f40 c009140c 00000000 000abb88 000abb88 00020000 00000000 00000000

1fc0: 00000000 000abb88 00000008 00000005 00000000 00000000 401fc000 00000000

1fe0: 40191710 bea2fc20 0005f8a8 40191760 60000010 000abb88 2fda3154 000006e3


[<c01d7ab4>] (rtc_dev_open+0x0/0xdc) from [<c00963f0>] (chrdev_open+0x1e0/0x204)

r6:00000000 r5:c7d25f3c r4:00000000

[<c0096210>] (chrdev_open+0x0/0x204) from [<c009110c>] (dentry_open+0x140/0x228)

r8:c7c0dc20 r7:c0096210 r6:c7ffe53c r5:00000000 r4:c7c1f5a0

[<c0090fcc>] (dentry_open+0x0/0x228) from [<c00912a0>]

[<c009126c>] (nameidata_to_filp+0x0/0x4c) from [<c00912f8>] (do_filp_open+0x40/0x48)


[<c00912b8>] (do_filp_open+0x0/0x48) from [<c0091358>] (do_sys_open+0x58/0xe8)

r5:00000000 r4:00020000

[<c0091300>] (do_sys_open+0x0/0xe8) from [<c0091420>] (sys_open+0x24/0x28)

r8:c00280e8 r7:00000005 r6:00000008 r5:000abb88 r4:00000000

[<c00913fc>] (sys_open+0x0/0x28) from [<c0027f40>] (ret_fast_syscall+0x0/0x2c)

Code: 00000000 00000000 00000000 00000000 (75716f6e)

---[ end trace 9b77521852fdd214 ]---

JFFS2 notice: (1052) check_node_data: wrong data CRC in data node at 0x06abb510:
read 0x598c3dfd, calculated 0xcef2d550.

Change History

comment:1 Changed 11 years ago by dodji@…

I have disabled the SDIO stack and tried to reproduce the problem. The problem
is still present.

Please not though that device boots OK after the oops.

comment:2 Changed 11 years ago by john_lee@…

  • Cc john_lee@… added

I got this on gta02v5

power_supply bat: driver failed to report `status' property
Unable to handle kernel paging request at virtual address fffff092
pgd = c7ef8000
[fffff092] *pgd=30002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 #1 PREEMPT
Modules linked in:
CPU: 0 Not tainted (2.6.24 #1)
PC is at 0xc07801a8
LR is at rtc_dev_open+0x64/0xdc
pc : [<c07801a8>] lr : [<c01dc5a8>] psr: a0000013
sp : c7f1fe60 ip : 00000000 fp : c7f1fe7c
r10: c7fcff54 r9 : c7f1e000 r8 : c7fcff48
r7 : 077d2d4c r6 : 3fff1673 r5 : c7fcff54 r4 : 00000000
r3 : c077d2d4 r2 : 00000001 r1 : 00000000 r0 : 00000054
Flags: NzCv? IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 37ef8000 DAC: 00000015
Process hwclock (pid: 1223, stack limit = 0xc7f1e268)
Stack: (0xc7f1fe60 to 0xc7f20000)
fe60: c02b3b20 00000000 c7d3993c 00000000 c7f1feac c7f1fe80 c00973f0 c01dc554
fe80: c7f1fea4 00000000 c7f1feac c7fcff60 00000000 c7f0ab7c c0097210 c7c0de20
fea0: c7f1fed4 c7f1feb0 c009210c c0097220 c7fcff60 c7f1ff00 ffffff9c 00000003
fec0: c7f2f000 00000000 c7f1fef4 c7f1fed8 c00922a0 c0091fdc 00000000 c7f2f000
fee0: c7f1e000 00020000 c7f1ff64 c7f1fef8 c00922f8 c009227c c7f1ff00 c002ffc4
ff00: c785eb40 c7c0de20 c7f1ff34 80000013 00000000 00000101 00000001 00000000
ff20: 00000000 c7f0a994 c7c43e28 c7c43e20 c7f1ff64 c7f1ff40 c0091f94 c003fffc
ff40: 00020000 00020001 00000000 c7fcff60 00020000 00000000 c7f1ff94 c7f1ff68
ff60: c0092358 c00922c8 00000008 00000000 00000000 00000000 000976c0 00000000
ff80: 00000005 c00290e8 c7f1ffa4 c7f1ff98 c0092420 c0092310 00000000 c7f1ffa8
ffa0: c0028f40 c009240c 00000000 000976c0 000976c0 00020000 00000000 00000000
ffc0: 00000000 000976c0 00000000 00000005 00000000 00000000 401df000 00000000
ffe0: 40177ee0 befc7c28 00059c8c 40177f34 60000010 000976c0 00000000 00000000
[<c01dc544>] (rtc_dev_open+0x0/0xdc) from [<c00973f0>] (chrdev_open+0x1e0/0x204)

r6:00000000 r5:c7d3993c r4:00000000

[<c0097210>] (chrdev_open+0x0/0x204) from [<c009210c>] (dentry_open+0x140/0x228)

r8:c7c0de20 r7:c0097210 r6:c7f0ab7c r5:00000000 r4:c7fcff60

[<c0091fcc>] (dentry_open+0x0/0x228) from [<c00922a0>]
[<c009226c>] (nameidata_to_filp+0x0/0x4c) from [<c00922f8>] (do_filp_open+0x40/0x48)


[<c00922b8>] (do_filp_open+0x0/0x48) from [<c0092358>] (do_sys_open+0x58/0xe8)

r5:00000000 r4:00020000

[<c0092300>] (do_sys_open+0x0/0xe8) from [<c0092420>] (sys_open+0x24/0x28)

r8:c00290e8 r7:00000005 r6:00000000 r5:000976c0 r4:00000000

[<c00923fc>] (sys_open+0x0/0x28) from [<c0028f40>] (ret_fast_syscall+0x0/0x2c)
Code: 00000000 00000000 00000000 00000000 (75716f6e)
---[ end trace 33c184c6d2ad84ca ]---
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new interface driver hci_usb
Bluetooth: L2CAP ver 2.9
Bluetooth: L2CAP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8

comment:3 Changed 11 years ago by andy@…

  • Status changed from new to closed
  • Resolution set to fixed

Guys this is fixed some days ago in the PMU patchset of 10 patches I posted to
the kernel list.

It should just kill hwclock and everything else should go on.

When the patches appear in your kernel, the problem will be gone.

The one that actually fixes it is

[PATCH 09/10] fix-pcf50633-charger-type-detect.patch

at the end.

Note: See TracTickets for help on using tickets.