// We must set ratios, set memctl, then change FCLK.
packages/hal/arm/arm9/mini2440/current/include/pkgconf/mlt_arm_arm9_mini2440_qemu.h
new file mode 100644
@@ -0,0 +1,20 @@
+// eCos memory layout - Fri Oct 20 05:43:59 2000
+
+// This is a generated file - do not edit
+
+#ifndef __ASSEMBLER__
+#include
+#include
+
+#endif
+#define CYGMEM_REGION_ram (0)
+#define CYGMEM_REGION_ram_SIZE (0x4000000)
+#define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
+#define CYGMEM_REGION_sram (0x40000000)
+#define CYGMEM_REGION_sram_SIZE (0x1000)
+#define CYGMEM_REGION_sram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
+#ifndef __ASSEMBLER__
+extern char CYG_LABEL_NAME (__heap1) [];
+#endif
+#define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1))
+#define CYGMEM_SECTION_heap1_SIZE (0x4000000 - (size_t) CYG_LABEL_NAME (__heap1))
packages/hal/arm/arm9/mini2440/current/include/pkgconf/mlt_arm_arm9_mini2440_qemu.ldi
new file mode 100644
@@ -0,0 +1,30 @@
+// eCos memory layout - Fri Oct 20 05:43:59 2000
+
+// This is a generated file - do not edit
+
+#include
+
+MEMORY
+{
+ ram : ORIGIN = 0, LENGTH = 0x4000000
+ sram : ORIGIN = 0x40000000, LENGTH = 0x1000
+}
+
+SECTIONS
+{
+ SECTIONS_BEGIN
+ SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
+ SECTION_rom_vectors (ram, 0x8000, LMA_EQ_VMA)
+ SECTION_RELOCS (ram, ALIGN (0x1), LMA_EQ_VMA)
+ SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_got (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA)
+ SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
+ CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
+ SECTIONS_END
+}
4. 如何在QEMU中运行
注意一下,需要用我们自己编译出来的qemu-system-arm
qemu-system-arm -M mini2440 -m 128M -kernel install/bin/redboot.elf -show-cursor -serial stdio
ricky@ricky-laptop:~/ecos/projects/mini2440-redboot$ 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 install/bin/redboot.elf at 0x30000000
S3C: CLK=240 HCLK=60 PCLK=30 UCLK=57
S3C: CLK=400 HCLK=100 PCLK=50 UCLK=57
+
RedBoot(tm) bootstrap and debug environment [QEMU]
Non-certified release, version UNKNOWN - built 15:39:35, Mar 1 2011
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc.
RedBoot is free software, covered by the eCos license, derived from the
GNU General Public License. You are welcome to change it and/or distribute
copies of it under certain conditions. Under the license terms, RedBoot's
source code and full license terms must have been made available to you.
Redboot comes with ABSOLUTELY NO WARRANTY.
Platform: MINI2440 system (ARM9)
RAM: 0x00000000-0x04000000 [0x0001aab0-0x04000000 available]
RedBoot> help
Manage machine caches
cache [ON | OFF]
Display/switch console channel
channel [-1| Compute a 32bit checksum [POSIX algorithm] for a range of memory cksum -b Display (hex dump) a range of memory dump -b Execute an image - with MMU off exec [-w timeout] [-b [-r [-c 'kernel command line'] [-t Execute code at a location go [-w Help about help? help [ Display command history history Load a file load [-r] [-v] [-m [-b Compare two blocks of memory mcmp -s Copy memory from one address to another mcopy -s Fill a block of memory with a pattern mfill -b Reset the system reset Display RedBoot version information version Display (hex dump) a range of memory x -b RedBoot>
上一篇:ecos on QEMU for mini2440 编译方法
下一篇:minigui1.6移植到mini2440
推荐阅读最新更新时间:2024-11-17 02:23
设计资源 培训 开发板 精华推荐
- DC2014A,具有 LT8302ES8E 隔离 10V = VIN = 30V,VOUT = 5V @ 2.2A、微功率无光隔离反激转换器的演示板
- 具有欠压锁定功能的 LT1317BCS8 2 节电池至 5V DC/DC 转换器的典型应用电路
- 用于 48V、500W 电动自行车/踏板车的 LTC2992CMS 功率监视器的典型应用
- 基于Blinker和ESP8266的红外学习型遥控器
- NCP2811ADTBRGEVB:双音频电源评估板
- LT1191 的典型应用 - 超高速运算放大器
- ELRS 2.4G高频头
- DC2091A,用于 LTC5599、30MHz 至 1300MHz 低功率直接正交调制器的演示板
- 语音智能小车
- LT8570EDD-1 1MHz 升压转换器的典型应用从 5 至 12V 输入产生 24V
- Allegro MicroSystems 在 2024 年德国慕尼黑电子展上推出先进的磁性和电感式位置感测解决方案
- 左手车钥匙,右手活体检测雷达,UWB上车势在必行!
- 狂飙十年,国产CIS挤上牌桌
- 神盾短刀电池+雷神EM-i超级电混,吉利新能源甩出了两张“王炸”
- 浅谈功能安全之故障(fault),错误(error),失效(failure)
- 智能汽车2.0周期,这几大核心产业链迎来重大机会!
- 美日研发新型电池,宁德时代面临挑战?中国新能源电池产业如何应对?
- Rambus推出业界首款HBM 4控制器IP:背后有哪些技术细节?
- 村田推出高精度汽车用6轴惯性传感器
- 福特获得预充电报警专利 有助于节约成本和应对紧急情况
- ADI 新一期《模拟对话》上线,免费下载ing!
- 有奖直播 | 同质化严重,缺乏创新,ST60毫米波非接触连接器,赋予你独特的产品设计,重拾市场话语权
- 英飞凌开发板618大促:爆款清单揭秘,有好礼!
- 夏末狂欢,观看TI 课程有好礼!
- 直播已结束【使用 TI 低成本 MSPM0 MCU 快速开发 – 生态详解系列之二】(9:45开始入场)
- 福禄克有奖直播|新型8.5位数字多用表技术发展及应用
- 安世半导体&世平集团 Nexperia 在5G基础架构的应用 下载赢好礼!
- 一道题,测试你是不是MSP430的真爱粉儿~
- 开发板芯币竞拍,每日一款!今日竞拍开发板:大黄蜂开发板
- 基于PolarFire® SoC FPGA的Microchip非对称多处理(AMP)解决方案