BoardSetup revision 21af7e54
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# autoboot script
46HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = gumstix-factory.script ;
47
48HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
49setenv bootargs debug_screen true; \
50if mmcinit; then \
51	fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
52	bootm $(HAIKU_BOARD_LOADER_UIBASE); \
53fi" ;
54
55HAIKU_BOARD_SDIMAGE_FILES =
56	haiku_loader
57	haiku_loader.ub
58	haiku_loader_nbsd.ub
59	$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
60;
61
62
63#
64# gcc flags for the specific cpu
65#
66
67HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
68HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
69HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=xscale -D__XSCALE__ ;
70
71# Workaround for ld using 32k for alignment despite forcing it in the config...
72# should definitely not be needed!
73HAIKU_KERNEL_LINKFLAGS +=
74	-Wl,-z -Wl,max-page-size=0x1000
75	-Wl,-z -Wl,common-page-size=0x1000 ;
76HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
77	-Wl,-z -Wl,max-page-size=0x1000
78	-Wl,-z -Wl,common-page-size=0x1000 ;
79