BoardSetup revision 21af7e54
1# Gumstix Verdex board-specific definitions
2
3HAIKU_BOARD_DESCRIPTION = "Openmoko Neo FreeRunner" ;
4
5#
6# Various hardcoded addresses
7#
8
9# load address for haiku_loader
10HAIKU_BOARD_LOADER_BASE = 0x32000000 ;
11# entry points (raw binary, and netbsd loader emulation)
12HAIKU_BOARD_LOADER_ENTRY_RAW = 0x32000000 ;
13HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x32000008 ;
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 = 0x34000000 ;
21
22HAIKU_BOARD_LOADER_STACK_BASE = 0x34000000 ;
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/)
30#HAIKU_BOARD_UBOOT_IMAGE ?= u-boot-verdex-400-r1604.bin ;
31#HAIKU_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 = uImage.bin ;
47
48HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
49if mmcinit; then \
50	neo backlight off; \
51	fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
52	neo backlight on; \
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
68HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
69HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
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
80