CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 6904|回复: 2

[已解决]cubietruck安装cubieez系统在nand中,如何更换内核?

[复制链接]
发表于 2015-8-19 16:39:51 | 显示全部楼层 |阅读模式
本帖最后由 qiancuo 于 2015-8-23 15:04 编辑

我使用的是cubietruck,上面跑cubieez系统,现在要在spi驱动中添加一个中断处理。
一开始在ubuntu上编译了一个spi的驱动代码,但是替换原来的驱动文件,发现出现错误,无法替换,dmesg之后发现:
spi-sun7i: disagrees about versions of symbol module_layout,但是我编译驱动时使用的内核文件和配置kernelconfig都是下载的标准版本,并没有更改,而且查看版本信息也完全一致,这是为啥?
之后想要替换板子上的内核,于是在ubuntu上编译内核生成了lib文件夹和uimage文件,替换了cubieez系统中的lib文件夹下的modules文件夹和/dev/nanda 下的uimage文件,但是reboot之后卡死在启动界面。这是为什么啊?
求大神指点!!

20150822 已解决:
原因是编译器版本不对,最好采用相同的编译器。
回复

使用道具 举报

发表于 2015-8-20 17:19:41 | 显示全部楼层
接串口看一下打印启动到哪?

更换内核和驱动你的的做法应该没错: 把内核uImage拷贝nanda分区, 驱动模块拷贝到/lib/modules .
mount /dev/nanda /mnt
cp uImage /mnt  

cp   -rf  3.4.79    /lib/modules/


回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-8-21 09:36:04 | 显示全部楼层
本帖最后由 qiancuo 于 2015-8-21 09:41 编辑

Checking all file systems.
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Setting kernel variables ... /etc/sysctl.conf...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Configuring network interfaces...<1>Unable to handle kernel paging request at virtual address c04b3230
Unable to handle kernel paging request at virtual address c04b3230
<1>pgd = ee684000
pgd = ee684000
<1>[c04b3230] *pgd=6f7fd801[c04b3230] *pgd=6f7fd801, *pte=404b34df, *pte=404b34df, *ppte=404b365e, *ppte=404b365e

<0>Internal error: Oops: 80f [#1] PREEMPT SMP ARM
Internal error: Oops: 80f [#1] PREEMPT SMP ARM
<d>Modules linked in:Modules linked in: sunxi_cedar_mod sunxi_cedar_mod mali mali ump ump lcd lcd sunxi_gmac sunxi_gmac pwm_sunxi pwm_sunxi


感觉从上面开始就出错了,但是没有看出来原因是什么?

CPU: 0    Not tainted  (3.4.79 #1)
CPU: 0    Not tainted  (3.4.79 #1)
PC is at patch_text+0x10/0x24
PC is at patch_text+0x10/0x24
LR is at __jump_label_update+0x64/0x6c
LR is at __jump_label_update+0x64/0x6c
pc : [<c0014548>]    lr : [<c00a593c>]    psr: 80000013
sp : ee65bf18  ip : 00000980  fp : ee65a000
pc : [<c0014548>]    lr : [<c00a593c>]    psr: 80000013
sp : ee65bf18  ip : 00000980  fp : ee65a000
r10: eeca4fc0  r9 : 00000001  r8 : be9105b4
r10: eeca4fc0  r9 : 00000001  r8 : be9105b4
r7 : 00000001  r6 : c096a524  r5 : c09e7d5c  r4 : c09e77f8
r7 : 00000001  r6 : c096a524  r5 : c09e7d5c  r4 : c09e77f8
r3 : c09694ec  r2 : c04b3230  r1 : ea000097  r0 : c04b3230
r3 : c09694ec  r2 : c04b3230  r1 : ea000097  r0 : c04b3230
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 6e68406a  DAC: 00000015
Control: 10c5387d  Table: 6e68406a  DAC: 00000015

PC: 0xc00144c8:

PC: 0xc00144c8:
44c8 44c8  2a000002 2a000002 e7f73153 e7f73153 e1820003 e1820003 e8bd8038 e8bd8038 e59f402c e59f402c e5d45000 e5d45000 e3550000 e3550000 0a000001 0a000001

44e8 44e8  e3a00000 e3a00000 e8bd8038 e8bd8038 e59f0018 e59f0018 e3a0102e e3a0102e eb008874 eb008874 e3a03001 e3a03001 e1a00005 e1a00005 e5c43000 e5c43000

4508 4508  e8bd8038 e8bd8038 c09e770d c09e770d c081a4d8 c081a4d8 e92d4008 e92d4008 e30934ec e30934ec e34c3096 e34c3096 e1a02000 e1a02000 e4821004 e4821004

4528 4528  e1a01002 e1a01002 e5933010 e5933010 e12fff33 e12fff33 e8bd8008 e8bd8008 e92d4008 e92d4008 e30934ec e30934ec e34c3096 e34c3096 e1a02000 e1a02000

4548 4548  e4821004 e4821004 e1a01002 e1a01002 e5933010 e5933010 e12fff33 e12fff33 e8bd8008 e8bd8008 e92d4010 e92d4010 e24dd048 e24dd048 e1a0400d e1a0400d

4568 4568  e8841fff e8841fff e1a0300d e1a0300d e58de038 e58de038 e28f1000 e28f1000 e10f2000 e10f2000 e58d2040 e58d2040 e58d3034 e58d3034 e58d103c e58d103c

4588 4588  eb0a9cdd eb0a9cdd e1a01000 e1a01000 e59f0038 e59f0038 eb16b7d9 eb16b7d9 eb0a9cd9 eb0a9cd9 e1a01000 e1a01000 e1a0000d e1a0000d eb01b846 eb01b846

45a8 45a8  e59f3024 e59f3024 e5933004 e5933004 e12fff33 e12fff33 e59f301c e59f301c e1932f9f e1932f9f e2422001 e2422001 e1831f92 e1831f92 e3310000 e3310000


LR: 0xc00a58bc:

LR: 0xc00a58bc:
58bc 58bc  e1530002 e1530002 3a000002 3a000002 93a00000 93a00000 83a00001 83a00001 e12fff1e e12fff1e e3e00000 e3e00000 e12fff1e e12fff1e e1510002 e1510002

58dc 58dc  e92d40f8 e92d40f8 e1a04001 e1a04001 e1a05002 e1a05002 e1a07003 e1a07003 28bd80f8 28bd80f8 e5916008 e5916008 e1500006 e1500006 0a000006 0a000006

58fc 58fc  e8bd80f8 e8bd80f8 e284400c e284400c e1550004 e1550004 98bd80f8 98bd80f8 e5940008 e5940008 e1500006 e1500006 1a000009 1a000009 e5940000 e5940000

591c 591c  e3500000 e3500000 0afffff6 0afffff6 ebfea0c8 ebfea0c8 e3500000 e3500000 0afffff3 0afffff3 e1a00004 e1a00004 e1a01007 e1a01007 ebfdbaba ebfdbaba

593c 593c  eaffffef eaffffef e8bd80f8 e8bd80f8 e92d41f0 e92d41f0 e1a05000 e1a05000 e5908004 e5908004 e1a06001 e1a06001 ebff583e ebff583e e5954008 e5954008

595c 595c  e3c88001 e3c88001 e3540000 e3540000 e1a07000 e1a07000 0a00000b 0a00000b e5942008 e5942008 e1a00005 e1a00005 e5941004 e5941004 e1a03006 e1a03006

597c 597c  e592c138 e592c138 e5922134 e5922134 e08cc08c e08cc08c e082210c e082210c ebffffd1 ebffffd1 e5944000 e5944000 e3540000 e3540000 1afffff3 1afffff3

599c 599c  e3570000 e3570000 059f2028 059f2028 15973138 15973138 15972134 15972134 10833083 10833083 10822103 10822103 e3580000 e3580000 08bd81f0 08bd81f0


SP: 0xee65be98:

SP: 0xee65be98:
be98 be98  00000200 00000200 00000000 00000000 00000000 00000000 c09e0e14 c09e0e14 000080d0 000080d0 c0969df8 c0969df8 c09e0e14 c09e0e14 000000d0 000000d0

beb8 beb8  c0014548 c0014548 80000013 80000013 ffffffff ffffffff ee65bf04 ee65bf04 be9105b4 be9105b4 c000e7d8 c000e7d8 c04b3230 c04b3230 ea000097 ea000097

bed8 bed8  c04b3230 c04b3230 c09694ec c09694ec c09e77f8 c09e77f8 c09e7d5c c09e7d5c c096a524 c096a524 00000001 00000001 be9105b4 be9105b4 00000001 00000001

bef8 bef8  eeca4fc0 eeca4fc0 ee65a000 ee65a000 00000980 00000980 ee65bf18 ee65bf18 c00a593c c00a593c c0014548 c0014548 80000013 80000013 ffffffff ffffffff

bf18 bf18  00000001 00000001 c00a593c c00a593c 00000001 00000001 c096a524 c096a524 00000001 00000001 0000001d 0000001d 00000004 00000004 c00a5de4 c00a5de4

bf38 bf38  ee750000 ee750000 c04a8d60 c04a8d60 c09732f8 c09732f8 c0047988 c0047988 00000001 00000001 ee65a000 ee65a000 ee65bf64 ee65bf64 c005c154 c005c154

bf58 bf58  fffffff7 fffffff7 00000004 00000004 00000001 00000001 eeca4fc0 eeca4fc0 0000001d 0000001d be9105b4 be9105b4 ee65a000 ee65a000 00000000 00000000

bf78 bf78  b6ebd4d0 b6ebd4d0 c04a4df0 c04a4df0 00000004 00000004 ee65a000 ee65a000 00000000 00000000 00000000 00000000 00000004 00000004 b6fc79cc b6fc79cc


FP: 0xee659f80:

FP: 0xee659f80:
9f80 9f80  00000000 00000000 ee659f84 ee659f84 ee659f84 ee659f84 ee659f8c ee659f8c ee659f8c ee659f8c eede3388 eede3388 00000000 00000000 00000000 00000000

9fa0 9fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

9fc0 9fc0  ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffbffff fffbffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff

9fe0 9fe0  ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff

a000 a000  00000002 00000002 00000002 00000002 00000000 00000000 ee690a80 ee690a80 c0971dc8 c0971dc8 00000000 00000000 00000015 00000015 ee5df340 ee5df340

a020 a020  00000000 00000000 ee690a80 ee690a80 d100f480 d100f480 ee865f80 ee865f80 c0969df8 c0969df8 ee65a000 ee65a000 ee65bc8c ee65bc8c ee65bbe0 ee65bbe0

a040 a040  c05c98b4 c05c98b4 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 01000000 00000000 00000000

a060 a060  b6ebd4c0 b6ebd4c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


R0: 0xc04b31b0:

R0: 0xc04b31b0:
31b0 31b0  e8bd87f0 e8bd87f0 e284007c e284007c e594100c e594100c e2842008 e2842008 ebf82249 ebf82249 e3a00003 e3a00003 ebee256e ebee256e eaffffc4 eaffffc4

31d0 31d0  c0969df8 c0969df8 c0956ac0 c0956ac0 c096a488 c096a488 e92d4038 e92d4038 e1a04000 e1a04000 e5903000 e5903000 e3a05000 e3a05000 e5932000 e5932000

31f0 31f0  e1a00003 e1a00003 e5842000 e5842000 e5835000 e5835000 ebffe257 ebffe257 e5943000 e5943000 e3530000 e3530000 1afffff7 1afffff7 e5943018 e5943018

3210 3210  e3530000 e3530000 08bd8038 08bd8038 e1a00004 e1a00004 e12fff33 e12fff33 e8bd8038 e8bd8038 e92d4ff0 e92d4ff0 e24dd01c e24dd01c e58d000c e58d000c

3230 3230  e1a00000 e1a00000 e1a04000 e1a04000 e5943014 e5943014 e283207c e283207c e593307c e593307c e1530002 e1530002 0a000015 0a000015 e10f6000 e10f6000

3250 3250  f10c0080 f10c0080 e5943014 e5943014 e59352a8 e59352a8 e3550000 e3550000 0a00000b 0a00000b e5952010 e5952010 e2853010 e2853010 e1520003 e1520003

3270 3270  0a0000a5 0a0000a5 e2857008 e2857008 e1a00007 e1a00007 eb045ec6 eb045ec6 e5955004 e5955004 e3550000 e3550000 1a0000a4 1a0000a4 e1a00007 e1a00007

3290 3290  eb045d9b eb045d9b e121f006 e121f006 e3550000 e3550000 1a00008a 1a00008a e59d400c e59d400c e5943078 e5943078 e3a09001 e3a09001 e5945014 e5945014


回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-27 11:30 , Processed in 0.022584 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部