mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
7df55bb9b5
Both U-boot and Linux kernel have grown over the last releases and don't fit anymore in the 2M EPROM of the board. So, rework the setup to allow storing the Linux kernel image on the UBIFS NAND Flash. Also add support to FIT images as this is what the Linux kernel look like nowadays. Also increase CFG_SYS_BOOTMAPSZ to 32Mbytes and define CONFIG_SYS_BOOTM_LEN with the same value, otherwise it defaults to 8M which is not sufficient anymore with nowadays Linux kernels. And set the netmask to 255.255.255.0 as a class C address is used. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by: FRANJOU Stephane <stephane.franjou@csgroup.eu>
40 lines
1 KiB
C
40 lines
1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2010-2017 CS Systemes d'Information
|
|
* Christophe Leroy <christophe.leroy@c-s.fr>
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
/* High Level Configuration Options */
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
/* Definitions for initial stack pointer and data area (in DPRAM) */
|
|
#define CFG_SYS_INIT_RAM_ADDR (CONFIG_SYS_IMMR + 0x2800)
|
|
#define CFG_SYS_INIT_RAM_SIZE (0x2e00 - 0x2800)
|
|
|
|
/* RAM configuration (note that CFG_SYS_SDRAM_BASE must be zero) */
|
|
#define CFG_SYS_SDRAM_BASE 0x00000000
|
|
|
|
/* FLASH organization */
|
|
#define CFG_SYS_FLASH_BASE CONFIG_TEXT_BASE
|
|
|
|
/*
|
|
* For booting Linux, the board info and command line data
|
|
* have to be in the first 32 MB of memory, since this is
|
|
* the maximum mapped by the Linux kernel during initialization.
|
|
*/
|
|
#define CFG_SYS_BOOTMAPSZ (32 << 20)
|
|
|
|
/* Environment Configuration */
|
|
|
|
/* environment is in FLASH */
|
|
|
|
/* Ethernet configuration part */
|
|
|
|
/* NAND configuration part */
|
|
#define CFG_SYS_NAND_BASE 0x0C000000
|
|
|
|
#endif /* __CONFIG_H */
|