Skip to content

sensor jxf23 not initialized in Xiaofang 1S #11

Description

@mikolaj-kow

Hi,

i have Xiaofang 1S, 64M model. It worked well with cfw. With this rootfs sensor can not be used.

Some debug and my configuration:

[root@DafangHacks:init.d]# echo 1 >/proc/jz/sinfo/info
[root@DafangHacks:init.d]# cat /proc/jz/sinfo/info
sensor not found

[root@DafangHacks:init.d]# lsmod
sensor_jxf23 9120 1 - Live 0xc0605000 (O)
tx_isp 357073 0 - Live 0xc0596000 (O)
sinfo 7814 0 - Live 0xc0527000 (O)
sample_motor 11647 0 - Live 0xc051c000 (O)
rtl8189fs 1594052 0 - Live 0xc028f000

[root@DafangHacks:init.d]# cat /proc/cmdline 
console=ttyS1,115200n8 mem=41700K@0x0 ispmem=8M@0x28B9000 rmem=15644K@0x30B9000 init=/linuxrc root=/dev/mmcblk0p1 rootwait rootfstype=ext3 rw mtdparts=jz_sfc:256k(boot),2048k(kernel),3392k(root),640k(driver),4736k(appfs),2048k(backupk),640k(backupd),2048k(backupa),256k(config),256k(para),-(flag)

[root@DafangHacks:init.d]# free -m
             total       used       free     shared    buffers     cached
Mem:            34         31          3          0          5         15
-/+ buffers/cache:         10         24
Swap:            0          0          0

I've also found this in dmesg

[   23.938817] probe ok ------->jxf23
[   24.089668] -----jxf23_detect: 434 ret = 0, v = 0x0f
[   24.090085] -----jxf23_detect: 442 ret = 0, v = 0x23
[   24.090099] jxf23 0-0040: jxf23 chip found @ 0x40 (i2c0)
[   24.095605] tx_isp: Registered sensor subdevice jxf23 0-0040
[   24.101577] CPU 0 Unable to handle kernel paging request at virtual address 00000044, epc == c05a485c, ra == c05a4858
[   24.112634] Oops[#1]:
[   24.114996] CPU: 0 PID: 215 Comm: v4l2rtspserver- Tainted: G           O 3.10.14 #77
[   24.123025] task: 81b39440 ti: 811ce000 task.ti: 811ce000
[   24.128618] $ 0   : 00000000 7fab0fb4 00000000 815f0224
[   24.134047] $ 4   : 80c5931c 816af7a0 00000000 8028c444
[   24.139482] $ 8   : 00000000 80c5931c 00000000 00000000
[   24.144915] $12   : 00000000 00000001 00000000 00000000
[   24.150347] $16   : 80c59204 80c59200 815f0224 800c56c0
[   24.155775] $20   : 00000010 00000000 00000000 00000000
[   24.161205] $24   : 00000000 7762ac50                  
[   24.166637] $28   : 811ce000 811cfbf0 00000000 c05a4858
[   24.172067] Hi    : 00000000
[   24.175049] Lo    : 0000030c
[   24.178149] epc   : c05a485c isp_core_ops_ioctl+0x128/0xf48 [tx_isp]
[   24.184733]     Tainted: G           O
[   24.188717] ra    : c05a4858 isp_core_ops_ioctl+0x124/0xf48 [tx_isp]
[   24.195299] Status: 10001c03 KERNEL EXL IE 
[   24.199645] Cause : 40808008
[   24.202625] BadVA : 00000044
[   24.205609] PrId  : 00d00101 (Ingenic Xburst)
[   24.210121] Modules linked in: sensor_jxf23(O) tx_isp(O) sinfo(O) sample_motor(O) rtl8189fs
[   24.218809] Process v4l2rtspserver- (pid: 215, threadinfo=811ce000, task=81b39440, tls=77be0460)
[   24.227913] Stack : 00000006 8003b9a0 10001c03 00000000 000001ad 00000001 40809000 801ec360
[   24.227913]    10001c01 80522eaa 00000000 811cfc88 00000000 815f0224 800c56c0 00000010
[   24.227913]    00000000 c059bd54 00000000 00000000 00000000 00000000 00000000 00000001
[   24.227913]    816af75c 80761000 811cfd78 811cfd78 814b4b00 816af600 815f0000 811cfd78
[   24.227913]    00000000 c05976e4 00000000 803b5834 811cfd78 814b4b00 816af75c 815f0000
[   24.227913]    ...
[   24.264854] Call Trace:
[   24.267487] [<c05a485c>] isp_core_ops_ioctl+0x128/0xf48 [tx_isp]
[   24.273906] [<c059bd54>] tx_isp_v4l2_dev_notify+0xa8/0x1d0 [tx_isp]
[   24.280590] [<c05976e4>] subdev_core_ops_set_input+0x230/0x348 [tx_isp]
[   24.287631] [<c0597a68>] video_in_core_ops_ioctl+0x1a0/0x6fc [tx_isp]
[   24.294405] [<8028cbf4>] subdev_do_ioctl+0x7b0/0x7d8
[   24.299557] [<80284f10>] video_usercopy+0x2c0/0x430
[   24.304616] [<8028c438>] subdev_ioctl+0x14/0x20
[   24.309313] [<8027eabc>] v4l2_ioctl+0x94/0x164
[   24.313926] [<800e7e3c>] vfs_ioctl+0x2c/0x4c
[   24.318346] 
[   24.319885] 
[   24.319885] Code: 0040f809  24060044  8e020104 <94430044> 3c02c05d  1000036c  a443777a  3c02801f  00002821 
[   24.330661] ---[ end trace 76ead447877c6302 ]---

Is this a problem with memory allocation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions