1# Gumstix Verdex board-specific definitions 2 3HAIKU_BOARD_DESCRIPTION = "Gumstix Verdex" ; 4 5# 6# Various hardcoded addresses 7# 8 9# load address for haiku_loader 10HAIKU_BOARD_LOADER_BASE = 0xa2000000 ; 11# entry points (raw binary, and netbsd loader emulation) 12HAIKU_BOARD_LOADER_ENTRY_RAW = 0xa2000000 ; 13HAIKU_BOARD_LOADER_ENTRY_NBSD = 0xa2000008 ; 14 15HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ; 16HAIKU_BOARD_LOADER_FAKE_OS = netbsd ; 17 18# load address for haiku_loader uimage 19# (must be different than real load address) 20HAIKU_BOARD_LOADER_UIBASE = 0xa4000000 ; 21 22# 23# Flash image 24# 25 26# u-boot binary image filename, to build the flash image 27# XXX: Locate it somehow (for now just put it in generated/) 28HAIKU_BOARD_UBOOT_IMAGE ?= u-boot-verdex-400-r1604.bin ; 29HAIKU_BOARD_UBOOT_IMAGE_URL = 30 http://www.gumstix.net/feeds/u-boot/u-boot-verdex-400-r1604.bin ; 31 32# flash offsets: 33# FLASH_IMAGE_BLOCK_SIZE on $(image) = 128k ; 34# FLASH_IMAGE_BLOCK_COUNT on $(image) = 256 ; 35# #FLASH_IMAGE_UBOOT_OFFSET on $(image) = 0 ; 36# FLASH_IMAGE_LOADER_OFFSET on $(image) = 248 ; 37# in kB 38FLASH_IMAGE_LOADER_OFFSET = 31744 ; 39 40# TODO: add U-Boot 41FLASH_IMAGE_PARTS = ; 42 43# 44# mmc/SD image 45# 46 47# in MB 48HAIKU_BOARD_SDIMAGE_SIZE = 256 ; 49 50# in MB 51HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ; 52 53# autoboot script 54HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = gumstix-factory.script ; 55 56HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\ 57setenv bootargs debug_screen true; \ 58if mmcinit; then \ 59 fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \ 60 bootm $(HAIKU_BOARD_LOADER_UIBASE); \ 61fi" ; 62 63HAIKU_BOARD_SDIMAGE_FILES = 64 haiku_loader 65 haiku_loader.ub 66 haiku_loader_nbsd.ub 67 $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME) 68; 69 70 71# 72# gcc flags for the specific cpu 73# 74 75HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ; 76HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ; 77HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ; 78 79# Workaround for ld using 32k for alignment despite forcing it in the config... 80# should definitely not be needed! 81HAIKU_KERNEL_LINKFLAGS += 82 -Wl,-z -Wl,max-page-size=0x1000 83 -Wl,-z -Wl,common-page-size=0x1000 ; 84HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) += 85 -Wl,-z -Wl,max-page-size=0x1000 86 -Wl,-z -Wl,common-page-size=0x1000 ; 87