RTEMS 的 MINI2440 QEMU 移植之bsp_libc_init与 rtems_libio_init
来源:互联网 发布:安卓虚拟机软件 编辑:程序博客网 时间:2024/06/09 22:22
这段时间疯子一样的做RTEMS的移植,一直未果,遇到如下问题。
1. bsp_libc_init 问题,执行之前
gdb 调试信息
ricky@ricky-laptop:~/rtems/rtems-4.9.5/examples-4.9.5/hello_world_c$arm-rtems4.9-gdb o-optimize/hello.exe
GNUgdb 6.8
Copyright(C) 2008 Free Software Foundation, Inc.
LicenseGPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>
Thisis free software: you are free to change and redistribute it.
Thereis NO WARRANTY, to the extent permitted by law. Type "showcopying"
and"show warranty" for details.
ThisGDB was configured as "--host=x86_64-unknown-linux-gnu--target=arm-rtems4.9"...
(gdb)target remote :1234
Remotedebugging using :1234
[NewThread 1]
0x30000000in arm_reset_vect ()
(gdb)load
Loadingsection .text, size 0xe1d0 lma 0x30000100
Loadingsection .init, size 0x20 lma 0x3000e2d0
Loadingsection .jcr, size 0x4 lma 0x3000e2f0
Loadingsection .fini, size 0x1c lma 0x3000e2f4
Loadingsection .rodata, size 0xb08 lma 0x3000e310
Loadingsection .ctors, size 0x8 lma 0x3000ee18
Loadingsection .dtors, size 0x8 lma 0x3000ee20
Loadingsection .eh_frame, size 0x4 lma 0x3000ee28
Loadingsection .data, size 0xb18 lma 0x3000ee2c
Startaddress 0x30000100, load size 63556
Transferrate: 12413 KB/sec, 1629 bytes/write.
(gdb)b bsp_libc_init
Breakpoint1 at 0x30001104: file/home/ricky/rtems/rtems-4.9.5/rtems-4.9/c/src/lib/libbsp/arm/mini2440/../../shared/bsplibc.c,line 20.
(gdb)c
Continuing.
Breakpoint1, bsp_libc_init (heap_start=0x3001bfa0, heap_size=66994272,sbrk_amount=0) at/home/ricky/rtems/rtems-4.9.5/rtems-4.9/c/src/lib/libbsp/arm/mini2440/../../shared/bsplibc.c:20
20 RTEMS_Malloc_Initialize( heap_start, heap_size, sbrk_amount );
(gdb)
执行结果
ricky@ricky-laptop:~/rtems/rtems-4.9.5/examples-4.9.5/hello_world_c$ sh qemu.sh
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded kernel o-optimize/hello.exe at 0x30000000
S3C: CLK=240 HCLK=60 PCLK=30 UCLK=57
S3C: CLK=400 HCLK=100 PCLK=50 UCLK=57
3. 只有simple_main是可以用的,说明了什么呢。
有做了些测试,发现 disable itron以后,可以用simple_main, 能说明什么问题呢?
ricky@ricky-laptop:~/rtems/rtems-4.9.5/examples-4.9.5/simple_main$ sh qemu.sh
S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57
QEMU: ee24c08_init
DM9000: INIT QEMU MAC : 52:54:00:12:34:56
QEMU mini2440_reset: loaded kernel o-optimize/simple_main.exe at 0x30000000
S3C: CLK=240 HCLK=60 PCLK=30 UCLK=57
S3C: CLK=400 HCLK=100 PCLK=50 UCLK=57
*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***
- RTEMS 的 MINI2440 QEMU 移植之bsp_libc_init与 rtems_libio_init
- RTEMS 4.11 的 MINI2440 QEMU 移植补丁
- RTEMS 4.9.5 在 MINI2440 QEMU的移植
- RTEMS 4.10.1 的 MINI2440 QEMU 移植补丁
- RTEMS 4.11 的 MINI2440 QEMU BSP 移植小记
- RTEMS 4.9.5 在 QEMU MINI2440 上的移植发布啦……
- rtems系统在mini2440上的移植
- RTEMS yield_flash on MINI2440 QEMU
- RTEMS 4.9.5 关于 QEMU MINI2440 的开发小技巧
- RTEMS DM9000网卡驱动在MINI2440 QEMU上的实现
- 用qemu-mini2440仿真rtems时的小问题
- rtems-4.11移植到MINI2440 (二) 之移植
- rtems-4.11移植到MINI2440 (一) 之环境搭建
- Microwindows 在 MINI2440 QEMU上的移植
- RTEMS Hello World for MINI2440 QEMU
- mini2440 qemu 用u-boot 加载 RTEMS
- rtems在mini2440上的移植(ubuntu)
- 关于RTEMS MINI2440的QEMU仿真从UBOOT加载问题的研究
- Tomcat6.0数据源配置
- 数学之美系列文章列表地址
- JAVA编程实例--汉诺塔小游戏
- C语言清空输入缓冲区的几种方法对比
- 偷东西的小孩与他母亲
- RTEMS 的 MINI2440 QEMU 移植之bsp_libc_init与 rtems_libio_init
- java.io.IOException: Too many open files
- 表单提交的两种方法
- HTTP状态代码集
- 猫 和 鼠
- STM32 RTC小结
- Android输出logs到文件
- 太阳结婚
- 【转】curl