- s->cpu->env->regs[15] = S3C_SRAM_BASE_NANDBOOT; /* start address, u-boot relocati
- 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);
- s->cpu->env->regs[15] = S3C_RAM_BASE | 0x03f80000; /* start address, u-boot
- }
- }
:
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 already relo
- }
-#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 relocating code
- 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);
- s->cpu->env->regs[15] = S3C_RAM_BASE | 0x03f80000; /* start address, u-boot already
- }
- }
- /*
- * if a kernel was explicitly specified, we load it too
- */
- if (s->kernel) {
- image_size = load_image(s->kernel, qemu_get_ram_ptr(0x02000000));
:
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 already relocated
- }
-#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 relocating code */
上一篇:ecos on QEMU for mini2440 编译方法
下一篇:minigui1.6移植到mini2440
推荐阅读最新更新时间:2024-11-17 02:22
设计资源 培训 开发板 精华推荐
- Allegro MicroSystems 在 2024 年德国慕尼黑电子展上推出先进的磁性和电感式位置感测解决方案
- 左手车钥匙,右手活体检测雷达,UWB上车势在必行!
- 狂飙十年,国产CIS挤上牌桌
- 神盾短刀电池+雷神EM-i超级电混,吉利新能源甩出了两张“王炸”
- 浅谈功能安全之故障(fault),错误(error),失效(failure)
- 智能汽车2.0周期,这几大核心产业链迎来重大机会!
- 美日研发新型电池,宁德时代面临挑战?中国新能源电池产业如何应对?
- Rambus推出业界首款HBM 4控制器IP:背后有哪些技术细节?
- 村田推出高精度汽车用6轴惯性传感器
- 福特获得预充电报警专利 有助于节约成本和应对紧急情况
- 【双11特别推荐】新产品,新方案,#TI“芯”世界#之电机驱动器
- 【ST板卡来了(下)】 品读STM32实战经验,汲取FAE经验闯关去抽奖
- ADI & 世健 新基建系列第二期——储能 答题赢好礼!
- 免费下载 | 注册施耐德电气,下载《施耐德电气参考指南》白皮书
- EEWorld加磅双重礼 ELEXCON深圳国际电子展诚邀您参加
- ST AMG SensorTile开发大赛驾到,重磅大奖与知识兼得,速来~
- 技术直播【安森美功率器件在新能源市场中的应用】(9:30入场)
- 泰克MDO3000系列示波器结合MDO3PWR功率分析模块 立即询价享春季好礼!
- 电子工程师,如何更好地拥抱GaN?参与问卷有好礼!