mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
moveconfig: prepare moving CONFIG_SYS_SPI_U_BOOT_OFFS to Kconfig step 1
Some boards have coded this offset with formula or bitshifts in their board-config. Manually convert these things into hex-values to be able using moveconfig.py afterwards. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
This commit is contained in:
committed by
Tom Rini
parent
c680df7e84
commit
015287919f
@@ -559,7 +559,7 @@ header and skipping every second 2KB block. Then the U-Boot image is written at
|
|||||||
offset 128KB and the whole image is padded to 4MB which is the SPI flash size.
|
offset 128KB and the whole image is padded to 4MB which is the SPI flash size.
|
||||||
The position of U-Boot is controlled with this setting in U-Boot:
|
The position of U-Boot is controlled with this setting in U-Boot:
|
||||||
|
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
|
||||||
|
|
||||||
If you have a Dediprog em100pro connected then you can write the image with:
|
If you have a Dediprog em100pro connected then you can write the image with:
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
#define CONFIG_MACH_TYPE 4122
|
#define CONFIG_MACH_TYPE 4122
|
||||||
|
|
||||||
#ifdef CONFIG_SPL
|
#ifdef CONFIG_SPL
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -166,7 +166,7 @@
|
|||||||
/* SPL */
|
/* SPL */
|
||||||
#include "imx7_spl.h"
|
#include "imx7_spl.h"
|
||||||
#ifdef CONFIG_SPL_BUILD
|
#ifdef CONFIG_SPL_BUILD
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#endif /* CONFIG_SPL_BUILD */
|
#endif /* CONFIG_SPL_BUILD */
|
||||||
|
|
||||||
#endif /* __CONFIG_H */
|
#endif /* __CONFIG_H */
|
||||||
|
@@ -207,7 +207,7 @@
|
|||||||
|
|
||||||
/* SPL */
|
/* SPL */
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
|
|
||||||
/* Display */
|
/* Display */
|
||||||
#define CONFIG_IMX_HDMI
|
#define CONFIG_IMX_HDMI
|
||||||
|
@@ -114,7 +114,7 @@
|
|||||||
|
|
||||||
/* SPL defines. */
|
/* SPL defines. */
|
||||||
#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + (128 << 20))
|
#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + (128 << 20))
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (256 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000
|
||||||
#define CONFIG_SYS_MONITOR_LEN (512 * 1024)
|
#define CONFIG_SYS_MONITOR_LEN (512 * 1024)
|
||||||
|
|
||||||
/* EEPROM */
|
/* EEPROM */
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#define CONFIG_MXC_UART
|
#define CONFIG_MXC_UART
|
||||||
|
|
||||||
#ifdef CONFIG_SPL
|
#ifdef CONFIG_SPL
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@
|
|||||||
/* SPL */
|
/* SPL */
|
||||||
#ifdef CONFIG_SPL
|
#ifdef CONFIG_SPL
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CONFIG_FEC_MXC
|
#define CONFIG_FEC_MXC
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#define __PCM058_CONFIG_H
|
#define __PCM058_CONFIG_H
|
||||||
|
|
||||||
#ifdef CONFIG_SPL
|
#ifdef CONFIG_SPL
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#define __PCM058_CONFIG_H
|
#define __PCM058_CONFIG_H
|
||||||
|
|
||||||
#ifdef CONFIG_SPL
|
#ifdef CONFIG_SPL
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x10000
|
||||||
#include "imx6_spl.h"
|
#include "imx6_spl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
|
#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
|
||||||
|
|
||||||
/* RAW SD card / eMMC locations. */
|
/* RAW SD card / eMMC locations. */
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
|
||||||
|
|
||||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
#define CONFIG_IRAM_BASE 0xff700000
|
#define CONFIG_IRAM_BASE 0xff700000
|
||||||
|
|
||||||
/* RAW SD card / eMMC locations. */
|
/* RAW SD card / eMMC locations. */
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
|
||||||
|
|
||||||
/* FAT sd card locations. */
|
/* FAT sd card locations. */
|
||||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
|
#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
|
||||||
|
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
|
||||||
|
|
||||||
/* FAT sd card locations. */
|
/* FAT sd card locations. */
|
||||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
#define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ 200000000
|
#define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ 200000000
|
||||||
|
|
||||||
/* RAW SD card / eMMC locations. */
|
/* RAW SD card / eMMC locations. */
|
||||||
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
|
||||||
|
|
||||||
/* FAT sd card locations. */
|
/* FAT sd card locations. */
|
||||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||||
|
Reference in New Issue
Block a user