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 15# load address for haiku_loader uimage 16# (must be different than real load address) 17HAIKU_BOARD_LOADER_UIBASE = 0xa4000000 ; 18 19HAIKU_BOARD_LOADER_STACK_BASE = 0xa4000000 ; 20 21# 22# Flash image 23# 24 25# u-boot binary image filename, to build the flash image 26# XXX: Locate it somehow (for now just put it in generated/) 27HAIKU_BOARD_UBOOT_IMAGE ?= u-boot-verdex-400-r1604.bin ; 28HAIKU_BOARD_UBOOT_IMAGE_URL = 29 http://www.gumstix.net/feeds/u-boot/u-boot-verdex-400-r1604.bin ; 30 31 32# 33# mmc/SD image 34# 35 36# in MB 37HAIKU_BOARD_SDIMAGE_SIZE = 256 ; 38 39# in MB 40HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ; 41 42# offset in blocks XXX: FIXME 43# (autodetect from sfdisk or use cylinder count for fat size) 44#HAIKU_BOARD_SDIMAGE_BFS_OFFSET = ; 45 46# autoboot script 47HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = gumstix-factory.script ; 48 49HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\ 50setenv bootargs debug_screen true; \ 51if mmcinit; then \ 52 fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \ 53 bootm $(HAIKU_BOARD_LOADER_UIBASE); \ 54fi" ; 55 56HAIKU_BOARD_SDIMAGE_FILES = 57 haiku_loader 58 haiku_loader.ub 59 haiku_loader_nbsd.ub 60 $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME) 61; 62 63 64# 65# gcc flags for the specific cpu 66# 67 68TARGET_KERNEL_CCFLAGS += -mcpu=xscale ; 69TARGET_KERNEL_C++FLAGS += -mcpu=xscale ; 70TARGET_CCFLAGS += -mcpu=xscale ; 71TARGET_C++FLAGS += -mcpu=xscale ; 72 73# Workaround for ld using 32k for alignment despite forcing it in the config... 74# should definitely not be needed! 75TARGET_KERNEL_LINKFLAGS += 76 -Wl,-z -Wl,max-page-size=0x1000 77 -Wl,-z -Wl,common-page-size=0x1000 ; 78TARGET_LINKFLAGS += 79 -Wl,-z -Wl,max-page-size=0x1000 80 -Wl,-z -Wl,common-page-size=0x1000 ; 81 82