1 # Gumstix Overo board-specific definitions
3 HAIKU_BOARD_DESCRIPTION = "Gumstix Overo" ;
4 HAIKU_BOARD_FDT_NAME = "omap3-overo-tobi" ;
7 # Various hardcoded addresses
10 # load address for haiku_loader
11 HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
12 # entry points (raw binary, and netbsd loader emulation)
13 HAIKU_BOARD_LOADER_ENTRY_RAW = 0x80800000 ;
14 HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x80800008 ;
15 HAIKU_BOARD_LOADER_ENTRY_LINUX = 0x80800010 ;
17 HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
18 HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
20 # load address for haiku_loader uimage
21 # (must be different than real load address)
22 HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
28 # cf. http://gumstix.org/how-to/70-writing-images-to-flash.html
30 # OMAP x-loader image, must be first file in Flash image
31 HAIKU_BOARD_MLO_IMAGE ?= MLO ;
32 HAIKU_BOARD_MLO_IMAGE_URL =
33 http://cumulus.gumstix.org/images/angstrom/developer/current/MLO ;
35 # u-boot binary image filename, to build the flash image
36 # XXX: Locate it somehow (for now just put it in generated/)
37 HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.bin ;
38 HAIKU_BOARD_UBOOT_IMAGE_URL =
39 http://cumulus.gumstix.org/images/angstrom/developer/current/u-boot.bin ;
41 mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
42 : $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
44 ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
45 : $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
54 FLASH_IMAGE_LOADER_OFFSET = 31744 ;
56 FLASH_OFFSET on $(mloFile) = 0 ;
57 FLASH_OFFSET on $(ubootFile) = 512 ;
65 HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
68 HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
71 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = boot.scr ;
72 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
73 setenv bootargs debug_screen true; \
75 fatload mmc 0 0x80100000 /fdt/$(HAIKU_BOARD_FDT_NAME).dtb ; \
76 fatload mmc 0 0x81200000 haiku-floppyboot.tgz.ub; \
77 fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_linux.ub; \
78 bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000; \
81 HAIKU_BOARD_SDIMAGE_FILES =
88 haiku-floppyboot.tgz.ub
89 $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
94 # gcc flags for the specific cpu
97 local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
99 HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
100 HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
101 HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;