资源简介
友善之臂mini2440的u-boot,我自己移植的,可能还不太完善,我的板子内存型号是k4s561632n,nand是K9F2G08X0C,和友善之臂mini2440光盘里面的不太一样,可能有的板跑不起来,下载解压执行#make mini2440_config&make即可
代码片段和文件信息
/*
* (C) Copyright 2007 Semihalf
*
* Written by: Rafal Jaworowski
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston
* MA 02111-1307 USA
*
*/
#include
#include
#include
#include
#include
#include
#include
#include “api_private.h“
#define DEBUG
#undef DEBUG
/* U-Boot routines needed */
extern int do_reset (cmd_tbl_t *cmdtp int flag int argc char *argv[]);
/*****************************************************************************
*
* This is the API core.
*
* API_ functions are part of U-Boot code and constitute the lowest level
* calls:
*
* - they know what values they need as arguments
* - their direct return value pertains to the API_ “shell“ itself (0 on
* success some error code otherwise)
* - if the call returns a value it is buried within arguments
*
****************************************************************************/
#ifdef DEBUG
#define debugf(fmt args...) do { printf(“%s(): “ __func__); printf(fmt ##args); } while (0)
#else
#define debugf(fmt args...)
#endif
typedef int (*cfp_t)(va_list argp);
static int calls_no;
/*
* pseudo signature:
*
* int API_getc(int *c)
*/
static int API_getc(va_list ap)
{
int *c;
if ((c = (int *)va_arg(ap u_int32_t)) == NULL)
return API_EINVAL;
*c = getc();
return 0;
}
/*
* pseudo signature:
*
* int API_tstc(int *c)
*/
static int API_tstc(va_list ap)
{
int *t;
if ((t = (int *)va_arg(ap u_int32_t)) == NULL)
return API_EINVAL;
*t = tstc();
return 0;
}
/*
* pseudo signature:
*
* int API_putc(char *ch)
*/
static int API_putc(va_list ap)
{
char *c;
if ((c = (char *)va_arg(ap u_int32_t)) == NULL)
return API_EINVAL;
putc(*c);
return 0;
}
/*
* pseudo signature:
*
* int API_puts(char **s)
*/
static int API_puts(va_list ap)
{
char *s;
if ((s = (char *)va_arg(ap u_int32_t)) == NULL)
return API_EINVAL;
puts(s);
return 0;
}
/*
* pseudo signature:
*
* int API_reset(void)
*/
static int API_reset(va_list ap)
{
do_reset(NULL 0 0 NULL);
/* NOT REACHED */
return 0;
}
/*
* pseudo signature:
*
* int API_get_sys_info(struct sys_info *si)
*
* fill out the sys_info struct containing selected pa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-09-08 16:23 u-boot-2010.03\
文件 732 2010-04-01 05:54 u-boot-2010.03\.gitignore
目录 0 2014-09-08 00:46 u-boot-2010.03\api\
文件 14253 2010-04-01 05:54 u-boot-2010.03\api\api.c
文件 2521 2010-04-01 05:54 u-boot-2010.03\api\api_net.c
文件 1605 2010-04-01 05:54 u-boot-2010.03\api\api_platform-arm.c
文件 2184 2010-04-01 05:54 u-boot-2010.03\api\api_platform-ppc.c
文件 1503 2010-04-01 05:54 u-boot-2010.03\api\api_private.h
文件 8996 2010-04-01 05:54 u-boot-2010.03\api\api_storage.c
文件 1163 2010-04-01 05:54 u-boot-2010.03\api\Makefile
文件 1873 2010-04-01 05:54 u-boot-2010.03\api\README
目录 0 2014-09-08 00:46 u-boot-2010.03\board\
目录 0 2014-09-08 00:46 u-boot-2010.03\board\a3000\
文件 3226 2010-04-01 05:54 u-boot-2010.03\board\a3000\a3000.c
文件 962 2010-04-01 05:54 u-boot-2010.03\board\a3000\config.mk
文件 11115 2010-04-01 05:54 u-boot-2010.03\board\a3000\flash.c
文件 1355 2010-04-01 05:54 u-boot-2010.03\board\a3000\Makefile
文件 633 2010-04-01 05:54 u-boot-2010.03\board\a3000\README
目录 0 2014-09-08 00:46 u-boot-2010.03\board\actux1\
文件 3852 2010-04-01 05:54 u-boot-2010.03\board\actux1\actux1.c
文件 2218 2010-04-01 05:54 u-boot-2010.03\board\actux1\actux1_hw.h
文件 140 2010-04-01 05:54 u-boot-2010.03\board\actux1\config.mk
文件 1434 2010-04-01 05:54 u-boot-2010.03\board\actux1\Makefile
文件 1604 2010-04-01 05:54 u-boot-2010.03\board\actux1\u-boot.lds
目录 0 2014-09-08 00:46 u-boot-2010.03\board\actux2\
文件 3361 2010-04-01 05:54 u-boot-2010.03\board\actux2\actux2.c
文件 2183 2010-04-01 05:54 u-boot-2010.03\board\actux2\actux2_hw.h
文件 140 2010-04-01 05:54 u-boot-2010.03\board\actux2\config.mk
文件 1434 2010-04-01 05:54 u-boot-2010.03\board\actux2\Makefile
文件 1610 2010-04-01 05:54 u-boot-2010.03\board\actux2\u-boot.lds
目录 0 2014-09-08 00:46 u-boot-2010.03\board\actux3\
............此处省略7203个文件信息
相关资源
- TIny4412 uboot
- tiny6410 uboot代码145866
- itop4412 UBOOT源代码
- tiny6410 uboot代码
- uboot代码详细分析完整88页版.pdf
- mini2440arm基于qt4的MP3源码
- 史上最详细最全面的uboot启动过程分析
- Uboot-1.1.2 for PXA270源码分析.pdf
- uboot启动流程的详细分析
- UBOOT代码详细分析88页PDF
- linux下为SD卡烧写uboot.bin的原理与方法
- 一步步教你移植uboot(超精华版).r
- 嵌入式LINUX基础教程中文第2版 --百度
- ARM Mini2440 电路图.
- arm cortex-A8 am335x uboot移植
- ar9341_uboot支持HTTPD
- mini2440在MDK上完整启动代码
- 简单、规范的Linux下的ds18b20驱动基于
- mini2440的u-boot.bin 2012.04.01版
- Keil Mdk5.15下移植ucosii到mini2440s3c2440
-
用Jli
nk烧写bootloader到mini2440的Nor f - mini2440裸机实现简易u-boot代码.rar
- mini2440实现采集摄像头数据在开发板的
- 嵌入式linux之mini2440的hc-sr04超声波驱动
- superboot-20110405.bin
- LG Capl 5000/6000 免硬改不死Uboot
- orangepi one gboot 点亮LED
- mini2440简易bootloader源码
- mini2440的按键,led灯裸机程序,不使用
- 华清远见uboot和linux内核移植实验手册
评论
共有 条评论