BoardSetup revision 8c54af56
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# 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 = uImage.bin ;
51
52HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
53if mmcinit; then \
54	neo backlight off; \
55	fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_nbsd.ub; \
56	neo backlight on; \
57	bootm $(HAIKU_BOARD_LOADER_UIBASE); \
58fi" ;
59
60HAIKU_BOARD_SDIMAGE_FILES =
61	haiku_loader
62	haiku_loader.ub
63	haiku_loader_nbsd.ub
64	$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
65;
66
67
68#
69# gcc flags for the specific cpu
70#
71
72HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
73HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += -mcpu=arm920t ;
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
84