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
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/)
28#HAIKU_BOARD_UBOOT_IMAGE ?= u-boot-verdex-400-r1604.bin ;
29#HAIKU_BOARD_UBOOT_IMAGE_URL =
30#	http://www.gumstix.net/feeds/u-boot/u-boot-verdex-400-r1604.bin ;
31
32
33#
34# mmc/SD image
35#
36
37# in MB
38HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
39
40# in MB
41HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
42
43# autoboot script
44HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = uImage.bin ;
45
46HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
47if mmcinit; then \
48	neo backlight off; \
49	fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
50	neo backlight on; \
51	bootm $(HAIKU_BOARD_LOADER_UIBASE); \
52fi" ;
53
54HAIKU_BOARD_SDIMAGE_FILES =
55	haiku_loader
56	haiku_loader.ub
57	haiku_loader_nbsd.ub
58	$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
59;
60
61
62#
63# gcc flags for the specific cpu
64#
65
66HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
67HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
68
69# Workaround for ld using 32k for alignment despite forcing it in the config...
70# should definitely not be needed!
71HAIKU_KERNEL_LINKFLAGS +=
72	-Wl,-z -Wl,max-page-size=0x1000
73	-Wl,-z -Wl,common-page-size=0x1000 ;
74HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
75	-Wl,-z -Wl,max-page-size=0x1000
76	-Wl,-z -Wl,common-page-size=0x1000 ;
77
78