• 大小: 34.62MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-03
  • 语言: 其他
  • 标签: FS4412  uboot移植  

资源简介

FS4412系统移植uboot移植实验代码,包括uboot2013源码,三星加密文件,移植需要修改的代码,移植好的能用的代码

资源截图

代码片段和文件信息

/*
 * (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

/*****************************************************************************
 *
 * 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 parameters about the
 * machine
 */
static int API_get_sys_info(va_list ap)
{
struct sys_info *si;

si =

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-05-20 20:43  第二天\
     目录           0  2016-05-20 20:43  第二天\源码\
     文件          52  2013-01-16 05:47  第二天\源码\pax_global_header
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\
     文件         274  2013-01-16 05:47  第二天\源码\u-boot-2013.01\.checkpatch.conf
     文件         819  2013-01-16 05:47  第二天\源码\u-boot-2013.01\.gitignore
     文件       16398  2013-01-16 05:47  第二天\源码\u-boot-2013.01\COPYING
     文件       12082  2013-01-16 05:47  第二天\源码\u-boot-2013.01\CREDITS
     文件       25914  2013-01-16 05:47  第二天\源码\u-boot-2013.01\MAINTAINERS
     文件       22706  2013-01-16 05:47  第二天\源码\u-boot-2013.01\MAKEALL
     文件       29269  2013-01-16 05:47  第二天\源码\u-boot-2013.01\Makefile
     文件      189614  2013-01-16 05:47  第二天\源码\u-boot-2013.01\README
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\api\
     文件        1195  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\Makefile
     文件        1873  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\README
     文件       15037  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api.c
     文件        1879  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_display.c
     文件        2401  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_net.c
     文件        1605  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_platform-arm.c
     文件        2184  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_platform-powerpc.c
     文件        1640  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_private.h
     文件        8996  2013-01-16 05:47  第二天\源码\u-boot-2013.01\api\api_storage.c
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\arch\
     文件          40  2013-01-16 05:47  第二天\源码\u-boot-2013.01\arch\.gitignore
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\arch\arm\
     文件        3219  2013-01-16 05:47  第二天\源码\u-boot-2013.01\arch\arm\config.mk
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\arch\arm\cpu\
     目录           0  2016-05-20 20:44  第二天\源码\u-boot-2013.01\arch\arm\cpu\arm1136\
     文件        1409  2013-01-16 05:47  第二天\源码\u-boot-2013.01\arch\arm\cpu\arm1136\Makefile
     文件        1416  2013-01-16 05:47  第二天\源码\u-boot-2013.01\arch\arm\cpu\arm1136\config.mk
     文件        3903  2013-01-16 05:47  第二天\源码\u-boot-2013.01\arch\arm\cpu\arm1136\cpu.c
............此处省略8643个文件信息

评论

共有 条评论