- * if a u--boot is available as a file, we always use it
- */
- {
- image_size = load_image('mini2440/u-boot.bin', qemu_get_ram_ptr(0x03f8000
:
diff --git a/hw/mini2440.c b/hw/mini2440.c
index 5decf4b..7a70aae 100644
--- a/hw/mini2440.c
+++ b/hw/mini2440.c
@@ -258,46 +258,15 @@ static void mini2440_reset(void *opaque)
struct mini2440_board_s *s = (struct mini2440_board_s *) opaque;
uint32_t image_size;
- /*
- * Normally we would load 4 KB of nand to SRAM and jump there, but
- * it is not working perfectly as expected, so we cheat and load
- * it from nand directly relocated to 0x33f80000 and jump there
- */
- if (mini2440_load_from_nand(s->nand, 0, S3C_RAM_BASE | 0x03f80000, 256*1024)> 0)
- mini2440_printf('loaded default u-boot from NAND/n');
- s->cpu->env->regs[15] = S3C_RAM_BASE | 0x03f80000; /* start address, u-b
- }
-#if 0 && defined(LATER)
- if (mini2440_load_from_nand(s->nand, 0, S3C_SRAM_BASE_NANDBOOT, S3C_SRAM_SIZE) >
- s->cpu->env->regs[15] = S3C_SRAM_BASE_NANDBOOT; /* start address, u-boot
- mini2440_printf('4KB SteppingStone loaded from NAND/n');
- }
-#endif
- /*
- * if a u--boot is available as a file, we always use it
- */
- {
- image_size = load_image('mini2440/u-boot.bin', qemu_get_ram_ptr(0x03f80000))
- if (image_size < 0)
- image_size = load_image('u-boot.bin', qemu_get_ram_ptr(0x03f80000));
- if (image_size > 0) {
:
diff --git a/hw/mini2440.c b/hw/mini2440.c
index 5decf4b..7a70aae 100644
--- a/hw/mini2440.c
+++ b/hw/mini2440.c
@@ -258,46 +258,15 @@ static void mini2440_reset(void *opaque)
struct mini2440_board_s *s = (struct mini2440_board_s *) opaque;
uint32_t image_size;
- /*
- * Normally we would load 4 KB of nand to SRAM and jump there, but
- * it is not working perfectly as expected, so we cheat and load
- * it from nand directly relocated to 0x33f80000 and jump there
- */
- if (mini2440_load_from_nand(s->nand, 0, S3C_RAM_BASE | 0x03f80000, 256*1024)> 0) {
- mini2440_printf('loaded default u-boot from NAND/n');
- s->cpu->env->regs[15] = S3C_RAM_BASE | 0x03f80000; /* start address, u-boot
- }
-#if 0 && defined(LATER)
- if (mini2440_load_from_nand(s->nand, 0, S3C_SRAM_BASE_NANDBOOT, S3C_SRAM_SIZE) > 0)
- s->cpu->env->regs[15] = S3C_SRAM_BASE_NANDBOOT; /* start address, u-boot rel
- mini2440_printf('4KB SteppingStone loaded from NAND/n');
- }
-#endif
- /*
- * if a u--boot is available as a file, we always use it
- */
- {
- image_size = load_image('mini2440/u-boot.bin', qemu_get_ram_ptr(0x03f80000));
- if (image_size < 0)
- image_size = load_image('u-boot.bin', qemu_get_ram_ptr(0x03f80000));
- if (image_size > 0) {
- if (image_size & (512 -1)) /* round size to a NAND block size *
- image_size = (image_size + 512) & ~(512-1);
- mini2440_printf('loaded override u-boot (size %x)/n', image_size);
:
diff --git a/hw/mini2440.c b/hw/mini2440.c
index 5decf4b..7a70aae 100644
--- a/hw/mini2440.c
+++ b/hw/mini2440.c
@@ -258,46 +258,15 @@ static void mini2440_reset(void *opaque)
struct mini2440_board_s *s = (struct mini2440_board_s *) opaque;
uint32_t image_size;
- /*
- * Normally we would load 4 KB of nand to SRAM and jump there, but
- * it is not working perfectly as expected, so we cheat and load
- * it from nand directly relocated to 0x33f80000 and jump there
- */
- if (mini2440_load_from_nand(s->nand, 0, S3C_RAM_BASE | 0x03f80000, 256*1024)> 0) {
- mini2440_printf('loaded default u-boot from NAND/n');
- s->cpu->env->regs[15] = S3C_RAM_BASE | 0x03f80000; /* start address, u-boot alrea
- }
-#if 0 && defined(LATER)
- if (mini2440_load_from_nand(s->nand, 0, S3C_SRAM_BASE_NANDBOOT, S3C_SRAM_SIZE) > 0) {
上一篇:ecos on QEMU for mini2440 编译方法
下一篇:minigui1.6移植到mini2440
推荐阅读最新更新时间:2024-11-17 02:23
设计资源 培训 开发板 精华推荐
- 使用 MaxLinear, Inc 的 SPX385S-1.2 的参考设计
- 具有外部频率同步功能的 LTC3728LIGN-1、5V/4A、3.3V/5A 稳压器的典型应用电路
- AM6TW-4803DZ ±3.3V 6 瓦双输出 DC/DC 转换器的典型应用
- LT1172CQ、-28/1.25A 负升压稳压器的典型应用
- 使用 Analog Devices 的 LTC6905CS5-100 的参考设计
- 效果器模拟开关旁路
- LT3089ER 高效可调电源的典型应用电路
- 2019年全国电子设计大赛D题国家二等奖代码(简易电路特性测试仪)
- 使用 Richtek Technology Corporation 的 RT9468GQW 的参考设计
- C723944_IP65xx快充协议DC-DC芯片方案验证板
- Allegro MicroSystems 在 2024 年德国慕尼黑电子展上推出先进的磁性和电感式位置感测解决方案
- 左手车钥匙,右手活体检测雷达,UWB上车势在必行!
- 狂飙十年,国产CIS挤上牌桌
- 神盾短刀电池+雷神EM-i超级电混,吉利新能源甩出了两张“王炸”
- 浅谈功能安全之故障(fault),错误(error),失效(failure)
- 智能汽车2.0周期,这几大核心产业链迎来重大机会!
- 美日研发新型电池,宁德时代面临挑战?中国新能源电池产业如何应对?
- Rambus推出业界首款HBM 4控制器IP:背后有哪些技术细节?
- 村田推出高精度汽车用6轴惯性传感器
- 福特获得预充电报警专利 有助于节约成本和应对紧急情况