BoardSetup revision b2bdabc7
1# BeagleBoard board-specific definitions
2
3HAIKU_BOARD_DESCRIPTION = "BeagleBoard" ;
4HAIKU_BOARD_FDT_NAME = "omap3-beagle-xm" ;
5
6
7#
8# Various hardcoded addresses
9#
10
11# load address for haiku_loader
12HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
13# entry points (raw binary, and netbsd loader emulation)
14HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
15HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
16HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
17
18HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
19HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
20
21# load address for haiku_loader uimage
22# (must be different than real load address)
23HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
24
25#
26# Flash image
27#
28
29# OMAP x-loader image, must be first file on FAT partition
30HAIKU_BOARD_MLO_IMAGE ?= MLO ;
31HAIKU_BOARD_MLO_IMAGE_URL =
32       http://downloads.angstrom-distribution.org/demo/beagleboard/MLO ;
33
34# u-boot binary image filename, to build the flash image
35# XXX: Locate it somehow (for now just put it in generated/)
36HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.img ;
37HAIKU_BOARD_UBOOT_IMAGE_URL =
38       http://downloads.angstrom-distribution.org/demo/beagleboard/u-boot.img ;
39
40#
41# mmc/SD image
42#
43
44# in MB
45HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
46
47# in MB
48HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
49
50mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
51        : $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
52
53ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
54        : $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
55
56# U-Boot environment
57# We load the uImage 2MB above its final destination, bootm will decode
58# it to the proper location. Our image is smaller than 2MB so this works.
59#HAIKU_BOARD_SDIMAGE_UBOOT_UENV_NAME = uEnv.txt ;
60HAIKU_BOARD_SDIMAGE_UBOOT_UENV = "uenvcmd=run loadImage; run mmcboot; \
61		loadImage=fatload mmc0 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_linux.ub; fatload mmc 0 0x80100000 $(HAIKU_BOARD_FDT_NAME).dtb; fatload mmc 0 0x81200000 haiku-floppyboot.tgz.ub; \
62		mmcboot=bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000" ;
63
64HAIKU_BOARD_SDIMAGE_FILES =
65	$(mloFile)
66	$(ubootFile)
67	haiku_loader_nbsd.ub
68	haiku_loader_linux.ub
69	haiku-floppyboot.tgz.ub
70	$(HAIKU_BOARD_FDT_NAME).dtb
71;
72
73
74#
75# gcc flags for the specific cpu
76
77local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
78
79HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
80HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
81HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
82