os/nandboot-R2_0_4/bootconfig.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 *!
00003 *! FILE NAME  : bootconfig.h
00004 *!
00005 *! DESCRIPTION: Boot loader configuration
00006 *!
00007 *! ---------------------------------------------------------------------------
00008 *! (C) Copyright 2006-2007, Axis Communications AB, LUND, SWEDEN
00009 *!
00010 *! This program is free software; you can redistribute it and/or modify
00011 *! it under the terms of the GNU General Public License as published by
00012 *! the Free Software Foundation; either version 2 of the License, or
00013 *! (at your option) any later version.
00014 *!
00015 *! This program is distributed in the hope that it will be useful,
00016 *! but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 *! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 *! GNU General Public License for more details.
00019 *!
00020 *! You should have received a copy of the GNU General Public License
00021 *! along with this program; if not, write to the Free Software
00022 *! Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023 *!
00024 *!***************************************************************************/
00025 
00026 #ifndef _BOOTCONFIG_H_
00027 #define _BOOTCONFIG_H_
00028 
00029 #define RAM_INIT_MAGIC 0x56902387
00030 #define NAND_BOOT_MAGIC 0x9A9DB001
00031 
00032 #ifdef NANDBOOT_LINUX
00033 
00034 #include <linux/autoconf.h>
00035 #define FETCH_ADDR (CONFIG_ETRAX_PTABLE_SECTOR)
00036 #define STORE_ADDR (CONFIG_ETRAX_PTABLE_SECTOR + 0x40400000) /* dram + 4Meg */
00037 #define LOAD_SIZE  (1024 * 1024 * 2)
00038 #define BOOT_ADDR  STORE_ADDR
00039 
00040 #else
00041 #ifdef NANDBOOT_AXISRFL
00042 
00043 #define FETCH_ADDR (0x4000) /* +16k */
00044 #define STORE_ADDR (0x40000000) /* dram */
00045 #define LOAD_SIZE  (1024 * 128)
00046 #define BOOT_ADDR  STORE_ADDR
00047 
00048 #else
00049 
00050 #error No boot parameters defined. Cannot configure boot loader. Stop.
00051 
00052 #endif
00053 #endif
00054 
00055 #endif /* _BOOTCONFIG_H_ */

Generated on Fri Nov 28 00:06:24 2008 for elphel by  doxygen 1.5.1