board/BuR/kwb: Redesign default-environment

Due to several changes in the boot-process we do a complete redesign of the
default environment.

Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
master
Hannes Petermaier 10 years ago committed by Tom Rini
parent c818456c44
commit d2eb73d757
  1. 81
      include/configs/kwb.h

@ -43,49 +43,58 @@
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
#define CONFIG_SPL_MMC_SUPPORT #define CONFIG_SPL_MMC_SUPPORT
#undef CONFIG_SPL_OS_BOOT /* Always 64 KiB env size */
#ifdef CONFIG_SPL_OS_BOOT #define CONFIG_ENV_SIZE (64 << 10)
#define CONFIG_SYS_SPL_ARGS_ADDR 0x80F80000
/* RAW SD card / eMMC */
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR 0x900 /* address 0x120000 */
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR 0x80 /* address 0x10000 */
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS 0x80 /* 64KiB */
#endif /* CONFIG_SPL_OS_BOOT */
/* Always 128 KiB env size */
#define CONFIG_ENV_SIZE (128 << 10)
#ifndef CONFIG_SPL_BUILD #ifndef CONFIG_SPL_BUILD
#define CONFIG_EXTRA_ENV_SETTINGS \ #define CONFIG_EXTRA_ENV_SETTINGS \
"autoload=0\0" \ BUR_COMMON_ENV \
"loadaddr=0x80100000\0" \ "vx_romfsbase=0x800E0000\0" \
"bootfile=arimg\0" \ "vx_romfssize=0x20000\0" \
"usbboot=echo Booting from USB-Stick ...; " \ "vx_memtop=0x8FBEF000\0" \
"usb start; " \ "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
"fatload usb 0 ${loadaddr} ${bootfile}; " \ "autoload=0\0" \
"usb stop; " \ "loadaddr=0x80100000\0" \
"go ${loadaddr};\0" \ "logoaddr=0x82000000\0" \
"netboot=echo Booting from network ...; " \ "defaultARlen=0x8000\0" \
"setenv autoload 0; " \ "loaddefaultAR=mmc read ${loadaddr} 800 ${defaultARlen}\0" \
"dhcp; " \ "defaultAR=run loadromfs; run loaddefaultAR; go ${loadaddr}\0" \
"tftp ${loadaddr} arimg; " \ "logo0=fatload mmc 0:1 ${logoaddr} SYSTEM/ADDON/Bootlogo/Bootlogo.bmp.gz && " \
"go ${loadaddr}\0" \ "bmp display ${logoaddr} 0 0\0" \
"usbupdate=echo Updating UBOOT from USB-Stick ...; " \ "logo1=fatload mmc 0:1 ${logoaddr} SYSTEM/BASE/Bootlogo/Bootlogo.bmp.gz && " \
"usb start; " \ "bmp display ${logoaddr} 0 0\0" \
"fatload usb 0 0x80000000 updateubootusb.img; " \ "mmcboot=echo booting AR from eMMC-flash ...; "\
"source;\0" \ "run logo0 || run logo1; " \
"netupdate=echo Updating UBOOT from Network (TFTP) ...; " \ "run loadromfs; " \
"setenv autoload 0; " \ "fatload mmc 0:1 ${loadaddr} arimg && go ${loadaddr}; " \
"dhcp;" \ "run defaultAR;\0" \
"tftp 0x80000000 updateUBOOT.img;" \ "netboot=echo booting AR from network ...; " \
"source;\0" "run loadromfs; " \
"tftp ${loadaddr} arimg && go ${loadaddr}; " \
"puts 'networkboot failed!';\0" \
"usbupdate=echo updating u-boot from usb ...; " \
"usb start; " \
"fatload usb 0 0x80000000 updateubootusb.img && source; " \
"puts 'usbupdate failed!'\0" \
"netscript=echo running script from network (tftp) ...; " \
"tftp 0x80000000 netscript.img && source; " \
"puts 'netscript load failed!'\0" \
"netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \
"tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \
"netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \
"if tftp 0x80100000 arimg.bin; " \
"then mmc write 0x80100000 800 ${defaultARlen}; " \
"else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \
"netupdateROMFS=echo updating romfs from network (tftp) ...; " \
"if tftp 0x80100000 romfs.bin; " \
"then mmc write 0x80100000 700 100; " \
"else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0"
#endif /* !CONFIG_SPL_BUILD*/ #endif /* !CONFIG_SPL_BUILD*/
#define CONFIG_BOOTCOMMAND \ #define CONFIG_BOOTCOMMAND \
"run usbupdate;" "run usbupdate;"
#define CONFIG_BOOTDELAY 1 /* TODO: für release auf 0 setzen */ #define CONFIG_BOOTDELAY 0
/* undefine command which we not need here */ /* undefine command which we not need here */
#undef CONFIG_BOOTM_NETBSD #undef CONFIG_BOOTM_NETBSD

Loading…
Cancel
Save