haiku/build/jam/board/overo/BoardSetup

102 lines
2.5 KiB
Plaintext
Raw Normal View History

# Gumstix Overo board-specific definitions
HAIKU_BOARD_DESCRIPTION = "Gumstix Overo" ;
2014-11-01 04:06:06 +03:00
HAIKU_BOARD_FDT_NAME = "omap3-overo-tobi" ;
#
# Various hardcoded addresses
#
# load address for haiku_loader
HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
# entry points (raw binary, and netbsd loader emulation)
HAIKU_BOARD_LOADER_ENTRY_RAW = 0x80800000 ;
HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x80800008 ;
HAIKU_BOARD_LOADER_ENTRY_LINUX = 0x80800010 ;
HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
# load address for haiku_loader uimage
# (must be different than real load address)
HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
#
# Flash image
#
2014-11-01 07:38:44 +03:00
# cf. http://gumstix.org/how-to/70-writing-images-to-flash.html
# OMAP x-loader image, must be first file in Flash image
HAIKU_BOARD_MLO_IMAGE ?= MLO ;
HAIKU_BOARD_MLO_IMAGE_URL =
http://cumulus.gumstix.org/images/angstrom/developer/current/MLO ;
# u-boot binary image filename, to build the flash image
# XXX: Locate it somehow (for now just put it in generated/)
HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.bin ;
HAIKU_BOARD_UBOOT_IMAGE_URL =
http://cumulus.gumstix.org/images/angstrom/developer/current/u-boot.bin ;
mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
: $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
: $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
2014-11-01 07:38:44 +03:00
FLASH_IMAGE_PARTS =
$(mloFile)
$(ubootFile)
;
# flash offsets:
# in kB
FLASH_IMAGE_LOADER_OFFSET = 31744 ;
FLASH_OFFSET on $(mloFile) = 0 ;
FLASH_OFFSET on $(ubootFile) = 512 ;
#
# mmc/SD image
#
# in MB
HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
# in MB
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
# autoboot script
2014-11-01 07:38:44 +03:00
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = boot.scr ;
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
setenv bootargs debug_screen true; \
if mmc rescan; then \
fatload mmc 0 0x80100000 /fdt/$(HAIKU_BOARD_FDT_NAME).dtb ; \
fatload mmc 0 0x81200000 haiku-floppyboot.tgz.ub; \
fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_linux.ub; \
bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000; \
fi" ;
HAIKU_BOARD_SDIMAGE_FILES =
2014-11-01 07:38:44 +03:00
$(mloFile)
$(ubootFile)
haiku_loader
haiku_loader.ub
haiku_loader_linux.ub
haiku_loader_nbsd.ub
haiku-floppyboot.tgz.ub
$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
;
#
# gcc flags for the specific cpu
#
local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;