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