完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我现在在OK6410的开发板上刚刚学linux,这两天我想用OPENJTAG将linux内核加载到SDRAM中运行,可以加载但是不运行,是什么原因呢?我试了linux 的zImage和Image两种映像,是编译映像文件的问题吗?(没将其设为SDRAM中运行)
在openocd中具体的命令如下: [taikonaut@sky workspace]$ telnet localhost 4444 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > reset halt JTAG tap: s3c6410.etb tap/device found: 0x2b900f0f (mfg: 0x787, part: 0xb900, ver: 0x2) JTAG tap: s3c6410.cpu tap/device found: 0x07b76f0f (mfg: 0x787, part: 0x7b76, ver: 0x0) found ARM1176 s3c6410.cpu: ran after reset and before halt ... target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x20000113 pc: 0x000001a4 > arm mcr 15 0 1 0 0 0 > step target state: halted target halted in ARM state due to single-step, current mode: Supervisor cpsr: 0x20000113 pc: 0x000001a8 > load_image init.bin 0x0c000000 776 bytes written at address 0x0c000000 downloaded 776 bytes in 0.043064s (17.597 KiB/s) > resume 0x0c000000 invalid mode value encountered 8 target state: halted unrecognized psr mode: 0x8 target halted in ARM state due to breakpoint, current mode: UNRECOGNIZED cpsr: 0x0c000308 pc: 0x0c000300 > halt target state: halted target halted in ARM state due to debug-request, current mode: Supervisor cpsr: 0x200001d3 pc: 0x0c0000d8 > load_image zImage 0x50800000 2142188 bytes written at address 0x50800000 downloaded 2142188 bytes in 66.627258s (31.398 KiB/s) > bp 0x50800000 4 hw breakpoint set at 0x50800000 > bp 0x50800000, 0x4, 0 > resume > 使用resume命令后内核也没有运行起来,我改变了内核的加载地址情况也一样,是不是地址还有问题? 谢谢! |
|
相关推荐
2个回答
|
|
|
应该是没有设命令行参数,
你可以执行halt命令看一下,可以看到内核已经运行了,看它的PC值; 内核要能正确把启动信息打到串口去,你必须先初始化串口,并且要把命令行参数 console=ttySAC0传给内核。 你也可以不传参数,但是要在内核里配置好 |
|
|
|
|
|
谢谢,我再试试
|
|
|
|
|
只有小组成员才能发言,加入小组>>
296个成员聚集在这个小组
加入小组为什么点亮LED的例子放在NORFlash上跑会出现奇怪的现象?
2466 浏览 6 评论
2201 浏览 5 评论
韦东山老师推出的《玩转ARM裸机实战》课程将帮你以上问题一扫而光!
4828 浏览 1 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 21:37 , Processed in 0.794837 second(s), Total 46, Slave 36 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1725