2009-10-20 00:34:55 +04:00
|
|
|
# Gumstix Verdex board-specific definitions
|
|
|
|
|
|
|
|
HAIKU_BOARD_DESCRIPTION = "Openmoko Neo FreeRunner" ;
|
|
|
|
|
|
|
|
#
|
|
|
|
# Various hardcoded addresses
|
|
|
|
#
|
|
|
|
|
|
|
|
# load address for haiku_loader
|
|
|
|
HAIKU_BOARD_LOADER_BASE = 0x32000000 ;
|
|
|
|
# entry points (raw binary, and netbsd loader emulation)
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY_RAW = 0x32000000 ;
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x32000008 ;
|
|
|
|
|
2012-05-18 02:39:37 +04:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
|
|
|
|
HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
|
|
|
|
|
2009-10-20 00:34:55 +04:00
|
|
|
# load address for haiku_loader uimage
|
|
|
|
# (must be different than real load address)
|
|
|
|
HAIKU_BOARD_LOADER_UIBASE = 0x34000000 ;
|
|
|
|
|
|
|
|
#
|
|
|
|
# Flash image
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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-verdex-400-r1604.bin ;
|
2014-05-01 14:50:11 +04:00
|
|
|
#HAIKU_BOARD_UBOOT_IMAGE_URL =
|
2010-06-30 19:50:26 +04:00
|
|
|
# http://www.gumstix.net/feeds/u-boot/u-boot-verdex-400-r1604.bin ;
|
2009-10-20 00:34:55 +04:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# mmc/SD image
|
|
|
|
#
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
|
|
|
|
|
|
|
|
# autoboot script
|
2010-06-30 19:50:26 +04:00
|
|
|
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = uImage.bin ;
|
2009-10-20 00:34:55 +04:00
|
|
|
|
|
|
|
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
|
|
|
|
if mmcinit; then \
|
2010-06-30 19:50:26 +04:00
|
|
|
neo backlight off; \
|
2009-10-20 00:34:55 +04:00
|
|
|
fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
|
2010-06-30 19:50:26 +04:00
|
|
|
neo backlight on; \
|
2009-10-20 00:34:55 +04:00
|
|
|
bootm $(HAIKU_BOARD_LOADER_UIBASE); \
|
|
|
|
fi" ;
|
|
|
|
|
2014-05-01 14:50:11 +04:00
|
|
|
HAIKU_BOARD_SDIMAGE_FILES =
|
2009-10-20 00:34:55 +04:00
|
|
|
haiku_loader
|
|
|
|
haiku_loader.ub
|
|
|
|
haiku_loader_nbsd.ub
|
|
|
|
$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# gcc flags for the specific cpu
|
|
|
|
#
|
|
|
|
|
2013-08-01 10:51:16 +04:00
|
|
|
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
|
|
|
|
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
|
2009-10-20 00:34:55 +04:00
|
|
|
|
|
|
|
# Workaround for ld using 32k for alignment despite forcing it in the config...
|
|
|
|
# should definitely not be needed!
|
2012-05-18 02:39:37 +04:00
|
|
|
HAIKU_KERNEL_LINKFLAGS +=
|
2009-10-20 00:34:55 +04:00
|
|
|
-Wl,-z -Wl,max-page-size=0x1000
|
|
|
|
-Wl,-z -Wl,common-page-size=0x1000 ;
|
2013-08-01 10:51:16 +04:00
|
|
|
HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
|
2009-10-20 00:34:55 +04:00
|
|
|
-Wl,-z -Wl,max-page-size=0x1000
|
|
|
|
-Wl,-z -Wl,common-page-size=0x1000 ;
|
|
|
|
|