Kernel oops on nano on 2.6.35-8-ARCH+, power system related

Started by olinuxino0000, December 03, 2013, 12:58:34 PM

Previous topic - Next topic

olinuxino0000

Dear all,

I have grabbed the Arch Linux kernel sd-card image from here: https://www.olimex.com/wiki/IMX233
Which boots: Linux version 2.6.35-8-ARCH+ (nobody@fermium) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #1 PREEMPT Fri Sep 21 17:02:25 UTC 2012
This is the best 'officially' known to be good kernel for the imx23 based boards, correct?

Board: Nano, LiPO 3.7V, 4400mAh, external power supply (wallplug and lab-bench - good transients on load changes, checked), USB serial cable (PL2303HX) to laptop on battery (so no ground loop). 

It does not boot with ext power enabled and LiPO plugged in.
There is a kernel Oops (See below kernel Oops II) and it gets stuck after the block devices, see below.

When booting only from battery (no ext pwr), it boots fine.
Then when switching the external power on, the same kernel oops (See  kernel Oops I) appears.

This seems to happen on the Maxi board as well. Is this a know problem?

There is this post which seems to mention a problem with the power driver here:
https://community.freescale.com/thread/296480
Does anyone know if the patch has been incorporated into the used 2.6.35 kernel, or is there a fix?

The above does not happen on a 3.12 kernel I built following http://www.jann.cc. But battery charging does not work there.
Has anyone battery charging working on a 3.x kernel (or a patch)?
Does the Debian based 3.11 image has aworking power system?


Kernel Oops I

Unable to handle kernel NULL pointer dereference at virtual address 0000001d
pgd = c3458000
[0000001d] *pgd=43502031, *pte=00000000, *ppte=00000000
Internal error: Oops: 1 [#1] PREEMPT
last sysfs file: /sys/class/gpio/gpio65/value
Modules linked in:
CPU: 0    Not tainted  (2.6.35-8-ARCH+ #1)
PC is at regulator_is_enabled+0x8/0x34
LR is at state_machine_work+0x98/0x224
pc : [<c01886a4>]    lr : [<c01f404c>]    psr: a0000013
sp : c3c33f88  ip : 00000000  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : c379c704
r7 : c01f3fb4  r6 : c379c6dc  r5 : c3c007c0  r4 : ffffffed
r3 : 00000000  r2 : ffff9faf  r1 : 00000000  r0 : ffffffed
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 43580000  DAC: 00000017
Process events/0 (pid: 5, stack limit = 0xc3c32270)
Stack: (0xc3c33f88 to 0xc3c34000)
3f80:                   00000000 c379c704 c3c007c0 c01f404c c379c708 c3c007c0
3fa0: c3c32000 c0054d98 c0054c2c 00000000 c3c22e00 c0058b00 c3c33fb8 c3c33fb8
3fc0: c3c25f60 c0054c2c c3c007c0 00000013 00000000 c005848c 00000000 00000000
3fe0: c3c33fe0 c3c33fe0 c3c25f60 c0058414 c00297ec c00297ec 00000000 00000000
[<c01886a4>] (regulator_is_enabled+0x8/0x34) from [<c01f404c>] (state_machine_work+0x98/0x224)
[<c01f404c>] (state_machine_work+0x98/0x224) from [<c0054d98>] (worker_thread+0x16c/0x220)
[<c0054d98>] (worker_thread+0x16c/0x220) from [<c005848c>] (kthread+0x78/0x84)
[<c005848c>] (kthread+0x78/0x84) from [<c00297ec>] (kernel_thread_exit+0x0/0x8)
Code: e1a00004 e8bd80f8 e92d4038 e1a04000 (e5900030)
---[ end trace fd859eaa85ed0125 ]---



Kernel Oops II
HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC
PowerPrep start initialize power...
Battery Voltage = 3.66V
5v source detected.Valid battery            voltage detected.Booting from battery            voltage source.
LLCSep 19 201201:24:06
...
mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 14 ERRIRQ 15
Unable to handle kernel NULL pointer dereference at virtual address 0000001d
pgd = c0004000
[0000001d] *pgd=00000000
Internal error: Oops: 1 [#1] PREEMPT
last sysfs file:
Modules linked in:
CPU: 0    Not tainted  (2.6.35-8-ARCH+ #1)
PC is at regulator_is_enabled+0x8/0x34
LR is at state_machine_work+0x98/0x224
pc : [<c01886a4>]    lr : [<c01f404c>]    psr: a0000013
sp : c3c33f88  ip : c03db2b0  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : c379a704
r7 : c01f3fb4  r6 : c379a6dc  r5 : c3c007c0  r4 : ffffffed
r3 : 00000000  r2 : ffff8c35  r1 : 00000000  r0 : ffffffed
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 40004000  DAC: 00000017
Process events/0 (pid: 5, stack limit = 0xc3c32270)
Stack: (0xc3c33f88 to 0xc3c34000)
3f80:                   00000000 c379a704 c3c007c0 c01f404c c379a708 c3c007c0
3fa0: c3c32000 c0054d98 c0054c2c 00000000 c3c22e00 c0058b00 c3c33fb8 c3c33fb8
3fc0: c3c25f60 c0054c2c c3c007c0 00000013 00000000 c005848c 00000000 00000000
3fe0: c3c33fe0 c3c33fe0 c3c25f60 c0058414 c00297ec c00297ec 00000000 00000000
[<c01886a4>] (regulator_is_enabled+0x8/0x34) from [<c01f404c>] (state_machine_work+0x98/0x224)
[<c01f404c>] (state_machine_work+0x98/0x224) from [<c0054d98>] (worker_thread+0x16c/0x220)
[<c0054d98>] (worker_thread+0x16c/0x220) from [<c005848c>] (kthread+0x78/0x84)
[<c005848c>] (kthread+0x78/0x84) from [<c00297ec>] (kernel_thread_exit+0x0/0x8)
Code: e1a00004 e8bd80f8 e92d4038 e1a04000 (e5900030)
---[ end trace 385734508c7a97e8 ]---

...
mmc0: new high speed SD card at address b368
mmcblk0: mmc0:b368 00000 1.86 GiB
mmcblk0: p1 p2 p3


and then stuck.






tyrreus

Same thing here. Have you found resolution of this issue? Or anybody know anything more?

xterminhate

Hello,

Same thing here. Oops when connecting external power to the nano anytime.

How is it supposed to work ? My Lipo is low, and the card randmly reboot after booting.

Very disapointed. Going from duino world to linux card....

X.