moker
发表于 2016-4-17 10:53:31
编译:
masong@hydra:~/Coding/learnUbuntu/firefly-rk3288-kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j8 firefly-rk3288.img
最后出现这样就说明编译成功了
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Image:kernel.img is ready
Pack to resource.img successed!
Image:resource.img (with firefly-rk3288.dtb logo.bmp) is ready
牛头
发表于 2016-4-18 09:49:07
你提出的es8323问题,我们会去跟进的。
牛头
发表于 2016-4-18 09:49:47
你提出的es8323问题,我们会去跟进的。
zouxf
发表于 2016-4-18 09:59:42
zhansb
发表于 2016-4-18 11:26:46
moker 发表于 2016-4-16 12:57
感觉es8323启动中间异常了,有没有firefly的开发过来看下~
8323的驱动是android和ubuntu内核共用,create file失败是因为ubuntu没有/data目录,可以在probe中把路径改一下
moker
发表于 2016-4-18 14:33:15
zouxf 发表于 2016-4-18 09:59
ES8323 和 HDMI 是两个声卡,如果你要验证ES8323是否正常,可以使用aplay来播放wav文件测试。
可以验证es8323驱动是正常的,只是插上HDMI的线,会优先使用HDMI播放声音,当去除掉HDMI线时,耳机声音就正常了。
moker
发表于 2016-4-19 14:14:57
感觉音频es8323这块的问题好大
昨天查看的启动信息补全,完全的是这样的
root@firefly:~# dmesg |grep 8323
[ 1.190306] ES8323 2-0010: Error applying setting, reverse things back
[ 1.190606] es8323 probe i2c recv ok
[ 1.192087] es8323_probe
[ 1.192175] es8323_probe:register ISR (irq=194)
[ 1.825600] ES8323 2-0010: ASoC: no dapm match for LINPUT1 --> NULL --> Left Line Mux
[ 1.825623] ES8323 2-0010: ASoC: Failed to add route LINPUT1 -> NULL -> Left Line Mux
[ 1.825638] ES8323 2-0010: ASoC: no dapm match for LINPUT2 --> NULL --> Left Line Mux
[ 1.825652] ES8323 2-0010: ASoC: Failed to add route LINPUT2 -> NULL -> Left Line Mux
[ 1.825666] ES8323 2-0010: ASoC: no dapm match for Left PGA Mux --> NULL --> Left Line Mux
[ 1.825679] ES8323 2-0010: ASoC: Failed to add route Left PGA Mux -> NULL -> Left Line Mux
[ 1.825694] ES8323 2-0010: ASoC: no dapm match for RINPUT1 --> NULL --> Right Line Mux
[ 1.825706] ES8323 2-0010: ASoC: Failed to add route RINPUT1 -> NULL -> Right Line Mux
[ 1.825720] ES8323 2-0010: ASoC: no dapm match for RINPUT2 --> NULL --> Right Line Mux
[ 1.825733] ES8323 2-0010: ASoC: Failed to add route RINPUT2 -> NULL -> Right Line Mux
[ 1.825747] ES8323 2-0010: ASoC: no dapm match for Right PGA Mux --> NULL --> Right Line Mux
[ 1.825760] ES8323 2-0010: ASoC: Failed to add route Right PGA Mux -> NULL -> Right Line Mux
[ 1.825775] ES8323 2-0010: ASoC: no dapm match for LINPUT1 --> LAMP --> Left PGA Mux
[ 1.825787] ES8323 2-0010: ASoC: Failed to add route LINPUT1 -> LAMP -> Left PGA Mux
[ 1.825801] ES8323 2-0010: ASoC: no dapm match for LINPUT2 --> LAMP --> Left PGA Mux
[ 1.825814] ES8323 2-0010: ASoC: Failed to add route LINPUT2 -> LAMP -> Left PGA Mux
[ 1.825829] ES8323 2-0010: ASoC: no dapm match for Differential Mux --> LAMP --> Left PGA Mux
[ 1.825842] ES8323 2-0010: ASoC: Failed to add route Differential Mux -> LAMP -> Left PGA Mux
[ 1.825857] ES8323 2-0010: ASoC: no dapm match for RINPUT1 --> RAMP --> Right PGA Mux
[ 1.825870] ES8323 2-0010: ASoC: Failed to add route RINPUT1 -> RAMP -> Right PGA Mux
[ 1.825883] ES8323 2-0010: ASoC: no dapm match for RINPUT2 --> RAMP --> Right PGA Mux
[ 1.825897] ES8323 2-0010: ASoC: Failed to add route RINPUT2 -> RAMP -> Right PGA Mux
[ 1.825911] ES8323 2-0010: ASoC: no dapm match for Differential Mux --> RAMP --> Right PGA Mux
[ 1.825924] ES8323 2-0010: ASoC: Failed to add route Differential Mux -> RAMP -> Right PGA Mux
[ 1.825939] ES8323 2-0010: ASoC: no dapm match for LINPUT1 --> LAMP --> Differential Mux
[ 1.825952] ES8323 2-0010: ASoC: Failed to add route LINPUT1 -> LAMP -> Differential Mux
[ 1.825965] ES8323 2-0010: ASoC: no dapm match for RINPUT1 --> RAMP --> Differential Mux
[ 1.825978] ES8323 2-0010: ASoC: Failed to add route RINPUT1 -> RAMP -> Differential Mux
[ 1.825993] ES8323 2-0010: ASoC: no dapm match for LINPUT2 --> LAMP --> Differential Mux
[ 1.826005] ES8323 2-0010: ASoC: Failed to add route LINPUT2 -> LAMP -> Differential Mux
[ 1.826020] ES8323 2-0010: ASoC: no dapm match for RINPUT2 --> RAMP --> Differential Mux
[ 1.826032] ES8323 2-0010: ASoC: Failed to add route RINPUT2 -> RAMP -> Differential Mux
[ 1.826057] ES8323 2-0010: ASoC: no dapm match for LINPUT1 --> LAMP --> Left Line Mux
[ 1.826070] ES8323 2-0010: ASoC: Failed to add route LINPUT1 -> LAMP -> Left Line Mux
[ 1.826084] ES8323 2-0010: ASoC: no dapm match for LINPUT2 --> LAMP --> Left Line Mux
[ 1.826096] ES8323 2-0010: ASoC: Failed to add route LINPUT2 -> LAMP -> Left Line Mux
[ 1.826112] ES8323 2-0010: ASoC: no dapm match for Left PGA Mux --> LAMP --> Left Line Mux
[ 1.826124] ES8323 2-0010: ASoC: Failed to add route Left PGA Mux -> LAMP -> Left Line Mux
[ 1.826139] ES8323 2-0010: ASoC: no dapm match for RINPUT1 --> RAMP --> Right Line Mux
[ 1.826152] ES8323 2-0010: ASoC: Failed to add route RINPUT1 -> RAMP -> Right Line Mux
[ 1.826166] ES8323 2-0010: ASoC: no dapm match for RINPUT2 --> RAMP --> Right Line Mux
[ 1.826178] ES8323 2-0010: ASoC: Failed to add route RINPUT2 -> RAMP -> Right Line Mux
[ 1.826192] ES8323 2-0010: ASoC: no dapm match for Right PGA Mux --> RAMP --> Right Line Mux
[ 1.826204] ES8323 2-0010: ASoC: Failed to add route Right PGA Mux -> RAMP -> Right Line Mux
[ 1.826345] ES8323 2-0010: ASoC: mux Right Line Mux has no paths
[ 1.826360] ES8323 2-0010: ASoC: mux Left Line Mux has no paths
[ 1.826373] ES8323 2-0010: ASoC: mux Right PGA Mux has no paths
[ 1.826386] ES8323 2-0010: ASoC: mux Left PGA Mux has no paths
[ 1.826408] ES8323 2-0010: ASoC: mux Differential Mux has no paths
[ 1.832507] rockchip-es8323 rockchip-es8323.26:ES8323 HiFi <-> ff890000.rockchip-i2s mapping ok
[ 2.364435] #0: RK_ES8323
[ 9.077320] es8323_create file error
moker
发表于 2016-4-19 14:28:08
写好的东西不能加载进去,直接使用阿sai的hello模块,使用insmod插入提示为:
root@firefly:~/Coding# insmod hello.ko
Segmentation fault
查看了下模块信息如下:
root@firefly:~/Coding# modinfo hello.ko
filename: /root/Coding/hello.ko
license: GPL
description: Firefly hello driver
author: sai <271319925@qq.com>
depends:
intree: Y
vermagic: 3.10.0 SMP preempt mod_unload ARMv7 p2v8
查看了下内核记录如下:
root@firefly:~/Coding# dmesg |grep Hello
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 0
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 1
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 2
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 3
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 4
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 5
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 6
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 7
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 8
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 9
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 10
成功打印出来了。但是查看了下dmesg的信息,发现是这样的:
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 0
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 1
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 2
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 3
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 4
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 5
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 6
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 7
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 8
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 9
~~~~~~~~~~~~~~~~~~~~~~~~Hello world~~~~~~~~~~~~~~~~~~~~~~~~ 10
Unable to handle kernel paging request at virtual address 0131d004
pgd = dccec000
*pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT SMP ARM
Modules linked in: hello
CPU: 1 PID: 1444 Comm: insmod Not tainted 3.10.0 #17
task: dccd1a40 ti: de8ec000 task.ti: de8ec000
PC is at module_put+0x38/0x10c
LR is at do_init_module+0xf4/0x168
pc : [<c00896b0>] lr : [<c0841a54>] psr: a0070013
sp : de8edf28ip : 00000000fp : 00000000
r10: 00000000r9 : de8ec000r8 : c0841a54
r7 : 0000017br6 : b6ef8398r5 : bf000094r4 : bf000094
r3 : de8ec000r2 : 00000004r1 : 0131d000r0 : bf000094
Flags: NzCvIRQs onFIQs onMode SVC_32ISA ARMSegment user
Control: 10c5387dTable: 1ccec06aDAC: 00000015
PC: 0xc0089630:
963030d11003 33a03000 e3530000 1a000004 e1a01006 eb07b4ad e3500000 0a000007
9650ea000003 e3520000 0a000004 e1a01002 eb07be06 e5940000 e3e0500d eb01b187
9670e1a00005 e8bd8070 e92d41f0 e2505000 e1a0800e 08bd81f0 e1a0200d e3c23d7f
9690e3c3303f e5932004 e2822001 e5832004 f57ff05a e595216c ee1d1f90 e2822004
96b0e7910002 e2800001 e7810002 e59f20bc e5921018 e3510000 0a00001c e5931004
96d0e2811001 e5831004 e5926024 e3560000 0a00000c e2867008 e1a04006 e5943000
96f0e1a01005 e5940004 e1a02008 e2844008 e12fff33 e0663004 e0833007 e5133008
9710e3530000 1afffff4 e1a0200d e3c23d7f e3c3303f e5932004 e2422001 e5832004
LR: 0xc08419d4:
19d4ebe121f7 e3a02000 e59f00d4 e3a01003 e1a03002 ea00002e 0a000006 e59f10c4
19f4e284200c e1a03005 e59f00bc e58d1000 ebfff9f3 eb0024a0 e3a01000 e1a02004
1a14e5841000 e59f0094 ebe065f3 e1a0200d e3c23d7f e3c3303f e593300c e593300c
1a34e3130901 0a000000 ebe06a49 e59f007c e3a05000 eb0060e9 e1a00004 ebe11f08
1a54e1a00004 ebe8df8b e594311c e59410c0 e1a00004 e5843118 e5943114 e5843110
1a74e5943124 e5843120 ebe121ca e59f003c e58450c0 e58450c8 e58450d8 e58450d0
1a94eb00603f e59f0018 e3a01003 e1a02005 e1a03005 ebe07404 e1a00005 e8bd807c
1ab4c0c1ff48 c0c1ff3c c0861c58 c0a4f9f4 c0c1ff24 e1a03000 e59f00d4 e92d40f0
SP: 0xde8edea8:
dea8fd640800 c05d39a8 de8edefc 00005dbf 00000006 00000000 c0d8d000 de8ec000
dec800000000 c00896b0 a0070013 ffffffff de8edf14 c000d598 bf000094 0131d000
dee800000004 de8ec000 bf000094 bf000094 b6ef8398 0000017b c0841a54 de8ec000
df0800000000 00000000 00000000 de8edf28 c0841a54 c00896b0 a0070013 ffffffff
df28bf000094 00000000 b6ef8398 0000017b c000db84 c0841a54 bf000094 00000000
df4800000000 00000003 b6ef8398 c008b048 e1a31000 00000ca7 e1a314b4 e1a313a1
df68e1a31ba4 000001fc 0000029c 00000000 00000000 00000000 00000017 00000018
df880000000f 00000000 0000000c 00000000 be9d3504 be9d3684 5f434600 c000da00
R3: 0xde8ebf80:
bf80de8ebf80 de8ebf80 00000000 00000000 de8ebf90 de8ebf90 de8ebfac de87bed0
bfa0c0056070 00000000 00000000 c000da98 00000000 00000000 00000000 00000000
bfc000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfe000000000 00000000 00000000 00000000 00000013 00000000 ffff5fff f8ffdffd
c00000000000 00000002 00000000 dccd1a40 c0c1c178 00000001 00000015 dccd1a40
c020c1f13cc0 de8ec000 c5b9f340 00000000 000000be de89c980 de8ede8c de8ede08
c040c085aba4 00000000 00000000 00000000 00000000 00000000 01000000 00000000
c060b6efe850 00000000 00000000 00000000 00000000 00000000 00000000 00000000
R8: 0xc08419d4:
19d4ebe121f7 e3a02000 e59f00d4 e3a01003 e1a03002 ea00002e 0a000006 e59f10c4
19f4e284200c e1a03005 e59f00bc e58d1000 ebfff9f3 eb0024a0 e3a01000 e1a02004
1a14e5841000 e59f0094 ebe065f3 e1a0200d e3c23d7f e3c3303f e593300c e593300c
1a34e3130901 0a000000 ebe06a49 e59f007c e3a05000 eb0060e9 e1a00004 ebe11f08
1a54e1a00004 ebe8df8b e594311c e59410c0 e1a00004 e5843118 e5943114 e5843110
1a74e5943124 e5843120 ebe121ca e59f003c e58450c0 e58450c8 e58450d8 e58450d0
1a94eb00603f e59f0018 e3a01003 e1a02005 e1a03005 ebe07404 e1a00005 e8bd807c
1ab4c0c1ff48 c0c1ff3c c0861c58 c0a4f9f4 c0c1ff24 e1a03000 e59f00d4 e92d40f0
R9: 0xde8ebf80:
bf80de8ebf80 de8ebf80 00000000 00000000 de8ebf90 de8ebf90 de8ebfac de87bed0
bfa0c0056070 00000000 00000000 c000da98 00000000 00000000 00000000 00000000
bfc000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
bfe000000000 00000000 00000000 00000000 00000013 00000000 ffff5fff f8ffdffd
c00000000000 00000002 00000000 dccd1a40 c0c1c178 00000001 00000015 dccd1a40
c020c1f13cc0 de8ec000 c5b9f340 00000000 000000be de89c980 de8ede8c de8ede08
c040c085aba4 00000000 00000000 00000000 00000000 00000000 01000000 00000000
c060b6efe850 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Process insmod (pid: 1444, stack limit = 0xde8ec238)
Stack: (0xde8edf28 to 0xde8ee000)
df20: bf000094 00000000 b6ef8398 0000017b c000db84 c0841a54
df40: bf000094 00000000 00000000 00000003 b6ef8398 c008b048 e1a31000 00000ca7
df60: e1a314b4 e1a313a1 e1a31ba4 000001fc 0000029c 00000000 00000000 00000000
df80: 00000017 00000018 0000000f 00000000 0000000c 00000000 be9d3504 be9d3684
dfa0: 5f434600 c000da00 be9d3504 be9d3684 00000003 b6ef8398 00000000 00000000
dfc0: be9d3504 be9d3684 5f434600 0000017b b6f04ea8 00000000 b6ef4b60 00000000
dfe0: be9d34b0 be9d34a0 b6eef177 b6e5f982 80070030 00000003 440a2930 72637365
[<c00896b0>] (module_put+0x38/0x10c) from [<c0841a54>] (do_init_module+0xf4/0x168)
[<c0841a54>] (do_init_module+0xf4/0x168) from [<c008b048>] (SyS_finit_module+0x6c/0x94)
[<c008b048>] (SyS_finit_module+0x6c/0x94) from [<c000da00>] (ret_fast_syscall+0x0/0x30)
Code: f57ff05a e595216c ee1d1f90 e2822004 (e7910002)
---[ end trace a4f74d77999ba5be ]---
moker
发表于 2016-4-19 14:28:46
谁来帮我解释下,一个printk就快要把我给搞疯掉!!!
牛头
发表于 2016-4-19 14:36:49
.ko你自己编译的吗?不要用现成的.ko,在自己的内核里编译出来。