搜索
123
返回列表

8

主题

30

帖子

177

积分

注册会员

Rank: 2

积分
177
发表于 2017-3-3 11:20:28
TOPEET_Sun 发表于 2014-6-19 17:44
iTOP-4412开发板,开发板上的几个按键,怎么样定义成自己需要的功能?

解答:

你好,我想请问一下   我android系统检测物理按键, 这个怎么实现呢?
回复 点赞

使用道具 举报

48

主题

604

帖子

1923

积分

版主

Rank: 7Rank: 7Rank: 7

积分
1923
发表于 2017-3-6 09:36:17
你需要做什么呢?能不能描述下
回复 点赞

使用道具 举报

8

主题

30

帖子

177

积分

注册会员

Rank: 2

积分
177
发表于 2017-3-9 15:53:24
TOPEET_moon 发表于 2017-3-6 09:36
你需要做什么呢?能不能描述下

我想在自己做几个按键,然后当按键按下之后,android系统能检测到这个按键按下,然后做相应的操作。就比如home按键,当我按下之后,android就回到主界面。
回复 点赞

使用道具 举报

19

主题

48

帖子

232

积分

中级会员

Rank: 3Rank: 3

积分
232
发表于 2017-4-8 15:32:11

背景:SCP核心板,2G或者1G的,无论是在Android4.0还是Android4.4情况下。当Android启动之后输入dumpstate或者是

cat /proc/pagetypeinfo 都会死机,但是pop的核心板没有这种现象


现象 :


root@smdk4x12:/ # cat /proc/pagetypeinfo [   56.041558] Unable to handle kernel NULL pointer dereference at virtual address 00000004
[   56.048176] pgd = cf044000
[   56.050866] [00000004] *pgd=00000000
[   56.054427] Internal error: Oops: 5 [#1] PREEMPT SMP
[   56.059372] Modules linked in: wlan_mt6620 mtk_wmt_wifi bt_uhid mtk_stp_bt mtk_stp_uart mtk_stp_wmt mtk_hif_sdio
[   56.069530] CPU: 0    Not tainted  (3.0.15 #9)
[   56.073965] PC is at get_pageblock_flags_group+0x60/0x15c
[   56.079339] LR is at pagetypeinfo_showblockcount_print+0x25c/0x2d8
[   56.085501] pc : [<c00dd4a4>]    lr : [<c00f186c>]    psr: 600100d3
[   56.085504] sp : cf033e18  ip : 00000000  fp : cf033e34
[   56.096957] r10: c09a8280  r9 : 00000001  r8 : d0b4bc60
[   56.102165] r7 : c09d5b80  r6 : 000bff00  r5 : 00000000  r4 : 00000000
[   56.108675] r3 : 0000fe08  r2 : 00000002  r1 : 00000000  r0 : 00000000
[   56.115186] Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment user
[   56.122477] Control: 10c5387d  Table: 4f04404a  DAC: 00000015
[   56.128205]
[   56.128207] PC: 0xc00dd424:
[   56.132457] d424  21a0100c e1a002c1 e792c100 e1a0133c e2210001 e2000001 e89da800 c09147a4
[   56.140616] d444  e1a0c00d e92dd8f0 e24cb004 e305cb80 e5904000 e34cc09d e59c3000 e3530000
[   56.148775] d464  0a000001 e1a04e24 e0833184 e5933000 e3c35003 e0650000 e1a002c0 e1a03ca0
[   56.156935] d484  e79cc103 e1a03820 e35c0000 0a000002 e1a03b83 e1a05ba3 e08cc185 e7e405d0
[   56.165094] d4a4  e59c5004 e0800080 e1510002 ca000038 e0803001 e0614002 e3a0c001 e3140001
[   56.173253] d4c4  e3a00000 1a00001c e283701f e2811001 e0177043 31a07003 e1a0408c e1a062c7
[   56.181412] d4e4  e7957106 e203601f e1a06637 e3160001 0a000000 e180000c e1520001 e283c001
[   56.189571] d504  b89da8f0 e35c0000 a1a0700c b2837020 e1a032c7 e20c701f e7956103 e1a03736
[   56.197731]
[   56.197733] LR: 0xc00f17ec:
[   56.201984] 17ec  e34c1088 eb010c3a e1a00008 e51b2030 e3051f4c e34c1088 eb010c35 e1a00008
[   56.210143] 180c  e3a0100a eb010942 e24bd028 e89daff0 e24b102c e0812100 e5123014 e283e001
[   56.218302] 182c  e502e014 eaffffb4 e5972000 e3520000 0affff8f e1a03b83 e1a0eba3 e092318e
[   56.226461] 184c  0affff8b e5930000 e3100002 0affff88 e3c02003 e0820005 e3a02002 ebffaef5
[   56.234621] 186c  e3500004 caffff82 e24be02c e08ec100 e53c0014 e2801001 e58c1000 eaffff7c
[   56.242780] 188c  e5972000 e3520000 0affff82 e1a01b83 e1a03ba1 e0923183 0affff7e e5933000
[   56.250939] 18ac  e3130002 0affff7b e3c32003 e3a01000 e0820005 e3a02002 ebffaede e3500004
[   56.259098] 18cc  caffff74 e24b302c e083e100 e53e0014 e280c001 e58ec000 eaffff6e e1a0c00d
[   56.267258]
[   56.267260] SP: 0xcf033d98:
[   56.271511] 3d98  c0885f4c c0885f52 d1583000 d1582668 cf033e0c d1582668 ffffffff cf033e04
[   56.279670] 3db8  000bff00 c09d5b80 cf033e34 cf033dd0 c00462ec c003f52c 00000000 00000000
[   56.287829] 3dd8  00000002 0000fe08 00000000 00000000 000bff00 c09d5b80 d0b4bc60 00000001
[   56.295988] 3df8  c09a8280 cf033e34 00000000 cf033e18 c00f186c c00dd4a4 600100d3 ffffffff
[   56.304147] 3e18  0006e000 00dc0000 000bff00 c09d5b80 cf033e84 cf033e38 c00f186c c00dd450
[   56.312307] 3e38  cf033e84 c09a7f60 c00f11e0 00000000 00000000 00000000 00000000 00000000
[   56.320466] 3e58  c0120de8 c09a7f60 c09a8280 c00f1610 d0b4bc60 c09a82a0 c09a7f60 20010053
[   56.328625] 3e78  cf033eac cf033e88 c00f105c c00f161c d0b4bc60 c09a7f60 00000000 407498d8
[   56.336785]
[   56.336786] FP: 0xcf033db4:
[   56.341037] 3db4  cf033e04 000bff00 c09d5b80 cf033e34 cf033dd0 c00462ec c003f52c 00000000
[   56.349197] 3dd4  00000000 00000002 0000fe08 00000000 00000000 000bff00 c09d5b80 d0b4bc60
[   56.357356] 3df4  00000001 c09a8280 cf033e34 00000000 cf033e18 c00f186c c00dd4a4 600100d3
[   56.365515] 3e14  ffffffff 0006e000 00dc0000 000bff00 c09d5b80 cf033e84 cf033e38 c00f186c
[   56.373674] 3e34  c00dd450 cf033e84 c09a7f60 c00f11e0 00000000 00000000 00000000 00000000
[   56.381833] 3e54  00000000 c0120de8 c09a7f60 c09a8280 c00f1610 d0b4bc60 c09a82a0 c09a7f60
[   56.389992] 3e74  20010053 cf033eac cf033e88 c00f105c c00f161c d0b4bc60 c09a7f60 00000000
[   56.398152] 3e94  407498d8 cf033ee8 cf033f78 cf033ecc cf033eb0 c00f1448 c00f0fd4 00000000
[   56.406312]
[   56.406313] R7: 0xc09d5b00:
[   56.410564] 5b00  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.418724] 5b20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.426883] 5b40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.435042] 5b60  00000000 00000000 9d74e35b 00000000 00000000 00000001 d2130400 00000000
[   56.443201] 5b80  c0000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.451360] 5ba0  00000000 00000003 00000000 00000000 00000000 00000000 d2002100 d2002180
[   56.459519] 5bc0  00000000 00000000 d2002200 d2002280 d2002300 d2002380 d2002400 d2002480
[   56.467679] 5be0  d2002500 d2002580 d2002600 d2002080 d2130300 00000000 d2002000 d2008400
[   56.475838]
[   56.475840] R8: 0xd0b4bbe0:
[   56.480091] bbe0  e0000000 ffffffff c0933c00 c09339e8 c09342e0 d0b4b774 c00aaf3c 00000000
[   56.488250] bc00  000029b2 d0b4bc04 d0b4bc04 00000003 d14168b0 00000000 00000000 d09cda00
[   56.496409] bc20  d0fc935c 00000001 00000000 00000000 4004dff0 7210bf60 00001fe5 d0b4bc3c
[   56.504568] bc40  d0b4bc3c 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.512728] bc60  d1582000 00001000 00000000 0000066a 00000000 00000000 00000000 00000000
[   56.520887] bc80  00000000 00000000 00000000 00000000 00000000 d0b4bc94 d0b4bc94 d0b2c960
[   56.529046] bca0  c05cd740 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   56.537205] bcc0  d0b4b840 00002711 00002711 00002711 00002711 00002711 00002711 00002711
[   56.545365]
[   56.545367] R10: 0xc09a8200:
[   56.549705] 8200  00000000 00000000 00000020 000009d5 00000005 00000000 000007e6 00000717
[   56.557864] 8220  0000069d 000001ec 00000000 00000000 00000000 00000000 00000000 00000000
[   56.566023] 8240  00000000 000000bf 000000ba 00000000 00000001 00000000 00000000 00000000
[   56.574182] 8260  c0de8000 00000400 0000000a c09a7f60 00040000 0002e000 0002da40 c0885770
[   56.582341] 8280  00000080 000001f7 0000036e 00000000 00000000 00000000 00000000 c00412b8
[   56.590500] 82a0  00000001 00000000 00000000 c19d6e38 c19d6e78 c09a82b4 c09a82b4 c18582d8
[   56.598660] 82c0  c18bb098 c09a82c4 c09a82c4 c09a82cc c09a82cc 000000cd c19d6dd8 c19d6dd8
[   56.606819] 82e0  c09a82e0 c09a82e0 c185a798 c18bc698 c09a82f0 c09a82f0 c09a82f8 c09a82f8
[   56.614980] Process sh (pid: 2183, stack limit = 0xcf0322f0)
[   56.620622] Stack: (0xcf033e18 to 0xcf034000)
[   56.624963] 3e00:                                                       0006e000 00dc0000
[   56.633124] 3e20: 000bff00 c09d5b80 cf033e84 cf033e38 c00f186c c00dd450 cf033e84 c09a7f60
[   56.641282] 3e40: c00f11e0 00000000 00000000 00000000 00000000 00000000 c0120de8 c09a7f60
[   56.649442] 3e60: c09a8280 c00f1610 d0b4bc60 c09a82a0 c09a7f60 20010053 cf033eac cf033e88
[   56.657601] 3e80: c00f105c c00f161c d0b4bc60 c09a7f60 00000000 407498d8 cf033ee8 cf033f78
[   56.665760] 3ea0: cf033ecc cf033eb0 c00f1448 c00f0fd4 00000000 d0b4bc60 cf0195a0 c05cd740
[   56.673919] 3ec0: cf033f1c cf033ed0 c0134cb0 c00f122c 00000000 d0b4bc88 00001000 407498d8
[   56.682078] 3ee0: d1582006 d200d0a0 00000000 00000000 00000101 d25f9200 c0134aa0 cf0195a0
[   56.690238] 3f00: 407498d8 00001000 cf032000 cf033f78 cf033f44 cf033f20 c015ff4c c0134aac
[   56.698397] 3f20: cf0195a0 00001000 407498d8 cf033f78 c0046ae8 00000000 cf033f74 cf033f48
[   56.706556] 3f40: c0112c64 c015fee4 cf033f94 cf033f58 c011076c cf0195a0 407498d8 00000000
[   56.714715] 3f60: 00000000 c0046ae8 cf033fa4 cf033f78 c0112dd8 c0112bc0 00000000 00000000
[   56.722874] 3f80: c0046ae8 00000000 00000004 4074515c 00000000 00000003 00000000 cf033fa8
[   56.731034] 3fa0: c0046940 c0112da4 00000004 4074515c 00000004 407498d8 00001000 00000000
[   56.739193] 3fc0: 00000004 4074515c 00000000 00000003 00001000 407498d8 40061b64 40057dd9
[   56.747352] 3fe0: 40058829 bedb6830 40050937 4024f380 60010050 00000004 fb3a1e7f 00000000
[   56.755508] Backtrace:
[   56.757945] [<c00dd444>] (get_pageblock_flags_group+0x0/0x15c) from [<c00f186c>] (pagetypeinfo_showblockcount_print+0x25c/0x2d8)
[   56.769483]  r7:c09d5b80 r6:000bff00 r5:00dc0000 r4:0006e000
[   56.775132] [<c00f1610>] (pagetypeinfo_showblockcount_print+0x0/0x2d8) from [<c00f105c>] (walk_zones_in_node+0x94/0xe4)
[   56.785893] [<c00f0fc8>] (walk_zones_in_node+0x0/0xe4) from [<c00f1448>] (pagetypeinfo_show+0x228/0x230)
[   56.795355] [<c00f1220>] (pagetypeinfo_show+0x0/0x230) from [<c0134cb0>] (seq_read+0x210/0x4e4)
[   56.804029]  r6:c05cd740 r5:cf0195a0 r4:d0b4bc60 r3:00000000
[   56.809678] [<c0134aa0>] (seq_read+0x0/0x4e4) from [<c015ff4c>] (proc_reg_read+0x74/0xa0)
[   56.817838] [<c015fed8>] (proc_reg_read+0x0/0xa0) from [<c0112c64>] (vfs_read+0xb0/0x14c)
[   56.825994] [<c0112bb4>] (vfs_read+0x0/0x14c) from [<c0112dd8>] (sys_read+0x40/0x78)
[   56.833715]  r8:c0046ae8 r7:00000000 r6:00000000 r5:407498d8 r4:cf0195a0
[   56.840406] [<c0112d98>] (sys_read+0x0/0x78) from [<c0046940>] (ret_fast_syscall+0x0/0x30)
[   56.848644]  r7:00000003 r6:00000000 r5:4074515c r4:00000004
[   56.854290] Code: e1a03b83 e1a05ba3 e08cc185 e7e405d0 (e59c5004)
[   56.860846] ---[ end trace 23d1b087f31882e3 ]---
[   56.864963] ***********enter  Panic*********
[   56.869230] panic_dump_info_set: 0x 0
[   56.872903] first 0xe4120001
[   56.875739] info is : 0xe4120001
[   56.879025] Kernel panic - not syncing: Fatal exception
[   56.884243] Backtrace:
[   56.886673] [<c004ae70>] (dump_backtrace+0x0/0x11c) from [<c05c3974>] (dump_stack+0x18/0x1c)
[   56.895095]  r6:0000000f r5:cf033c48 r4:c09acd00 r3:cf032000
[   56.900729] [<c05c395c>] (dump_stack+0x0/0x1c) from [<c05c3a10>] (panic+0x98/0x144)
[   56.908438] [<c05c3978>] (panic+0x0/0x144) from [<c004b3ec>] (die+0x1c8/0x1d8)
[   56.915580]  r3:c09acd10 r2:cf033c70 r1:cf032000 r0:c0878fc4
[   56.921216] [<c004b224>] (die+0x0/0x1d8) from [<c004f7d0>] (__do_kernel_fault+0x7c/0x8c)
[   56.929293]  r8:d26ea9c0 r7:00000005 r6:00000000 r5:00000004 r4:cf033dd0
[   56.935971] [<c004f754>] (__do_kernel_fault+0x0/0x8c) from [<c004f91c>] (do_page_fault+0x13c/0x1f0)
[   56.945073]  r8:d0b4bc60 r7:cf033dd0 r6:00000004 r5:00000005 r4:d26ea9c0
[   56.951503] r3:cf033dd0
[   56.954112] [<c004f7e0>] (do_page_fault+0x0/0x1f0) from [<c004fae8>] (do_translation_fault+0xa4/0xa8)
[   56.963328] [<c004fa44>] (do_translation_fault+0x0/0xa8) from [<c003f55c>] (do_DataAbort+0x3c/0xa4)
[   56.972399]  r8:d0b4bc60 r7:cf033dd0 r6:00000004 r5:c091c9f0 r4:00000005
[   56.978844] r3:c091c9a0
[   56.981455] [<c003f520>] (do_DataAbort+0x0/0xa4) from [<c00462ec>] (__dabt_svc+0x4c/0x60)
[   56.989619] Exception stack(0xcf033dd0 to 0xcf033e18)
[   56.994655] 3dc0:                                     00000000 00000000 00000002 0000fe08
[   57.002869] 3de0: 00000000 00000000 000bff00 c09d5b80 d0b4bc60 00000001 c09a8280 cf033e34
[   57.010975] 3e00: 00000000 cf033e18 c00f186c c00dd4a4 600100d3 ffffffff
[   57.017568]  r7:c09d5b80 r6:000bff00 r5:cf033e04 r4:ffffffff
[   57.023207] [<c00dd444>] (get_pageblock_flags_group+0x0/0x15c) from [<c00f186c>] (pagetypeinfo_showblockcount_print+0x25c/0x2d8)
[   57.034810]  r7:c09d5b80 r6:000bff00 r5:00dc0000 r4:0006e000
[   57.040393] [<c00f1610>] (pagetypeinfo_showblockcount_print+0x0/0x2d8) from [<c00f105c>] (walk_zones_in_node+0x94/0xe4)
[   57.051167] [<c00f0fc8>] (walk_zones_in_node+0x0/0xe4) from [<c00f1448>] (pagetypeinfo_show+0x228/0x230)
[   57.060627] [<c00f1220>] (pagetypeinfo_show+0x0/0x230) from [<c0134cb0>] (seq_read+0x210/0x4e4)
[   57.069359]  r6:c05cd740 r5:cf0195a0 r4:d0b4bc60 r3:00000000
[   57.074939] [<c0134aa0>] (seq_read+0x0/0x4e4) from [<c015ff4c>] (proc_reg_read+0x74/0xa0)
[   57.083109] [<c015fed8>] (proc_reg_read+0x0/0xa0) from [<c0112c64>] (vfs_read+0xb0/0x14c)
[   57.091267] [<c0112bb4>] (vfs_read+0x0/0x14c) from [<c0112dd8>] (sys_read+0x40/0x78)
[   57.099038]  r8:c0046ae8 r7:00000000 r6:00000000 r5:407498d8 r4:cf0195a0
[   57.105665] [<c0112d98>] (sys_read+0x0/0x78) from [<c0046940>] (ret_fast_syscall+0x0/0x30)
[   57.113916]  r7:00000003 r6:00000000 r5:4074515c r4:00000004




解决办法: scp核心板用的是DDR3他的bank是8个,但是pop用的DDR2他的bank应该是小于8(这个我在手册上没有找到,这是根据调试猜测的)。但是内核源码设置的NR_BANKS的值为8,而当NR_BANKS小于等于8的时候会出现错误。

所以解决办法是在

iTop4412_Kernel_3.0/arch/arm/include/asm/setup.h

将 :
#ifndef NR_BANKS
#define NR_BANKS 8
#endif
中的NR_BANKS改为大于8的数,我这里改的是12




回复 点赞

使用道具 举报

0

主题

1

帖子

25

积分

新手上路

Rank: 1

积分
25
QQ
发表于 2017-8-2 18:02:32
有个bug吧。 你们试一下,你们的屏幕分辨率可以修改成800*600嘛?
回复 点赞

使用道具 举报

0

主题

22

帖子

131

积分

注册会员

Rank: 2

积分
131
发表于 2018-8-29 10:46:19
回复 点赞

使用道具 举报

1

主题

2

帖子

22

积分

新手上路

Rank: 1

积分
22
发表于 2019-10-3 18:40:21
求解,USB无响应,我尝试刷过Android、QT、最小linux系统,usb都没有响应,dmesg没有任何输出,/dev/下面也没有相关的节点生成,连lsusb都显示不出来
回复 点赞

使用道具 举报

0

主题

1

帖子

11

积分

新手上路

Rank: 1

积分
11
发表于 2020-8-22 17:35:46
本帖最后由 旭日东升 于 2020-8-22 17:36 编辑


内核注册了驱动,在开发板上加载相应模块程序串口有打印信息但是没生成相应设备节点“HELLO_CTL",怎么回事

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 点赞

使用道具 举报

1

主题

2

帖子

16

积分

新手上路

Rank: 1

积分
16
发表于 2020-8-28 19:55:39
你好,4412精英版怎么设置成高速串口
回复 点赞

使用道具 举报

123
返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

登录或注册

官方客服

QQ:2551456065

官方QQ群

195631883

扫一扫关注迅为公众号

群号652692981

 
快速回复 返回顶部 返回列表