BoardSetup revision 1bd23f72
1# Raspberry Pi 2 board-specific definitions
2
3HAIKU_BOARD_DESCRIPTION = "Raspberry Pi 2" ;
4HAIKU_BOOT_PLATFORM = u-boot ;
5
6#
7# Various hardcoded addresses
8#
9
10HAIKU_BOARD_LOADER_BASE = 0x00080000 ;
11HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
12HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
13HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
14
15HAIKU_BOARD_BOOT_ARCHIVE_BASE = 0x02100000 ;
16HAIKU_BOARD_BOOT_ARCHIVE_SIZE = 0x00400000 ;
17	# TODO: needs to be configured in the config.txt
18	#	ramfsfile=haiku-floppyboot.tgz and ramfsaddr=x
19
20#
21# Flash image
22#
23
24# N/A for Raspberry Pi
25
26#
27# mmc/SD image
28#
29
30HAIKU_BOARD_FIRMWARE_URL = http://github.com/raspberrypi/firmware/raw/master/boot/ ;
31HAIKU_BOARD_FIRMWARE_FILES =
32	bootcode.bin
33	loader.bin
34	arm224_start.elf # start.elf
35	LICENSE.broadcom
36;
37
38# in MB
39HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
40HAIKU_BOARD_SDIMAGE_FAT_FILES =
41	$(HAIKU_BOARD_FIRMWARE_FILES)
42	haiku_loader
43;
44
45# in MB
46HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
47
48#
49# gcc flags for the specific cpu
50#
51
52local flags = -mtune=arm1176jzf-s -march=armv7-a ;
53
54HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
55HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
56HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
57
58# Workaround for ld using 32k for alignment despite forcing it in the config...
59# should definitely not be needed!
60HAIKU_KERNEL_LINKFLAGS +=
61	-Wl,-z -Wl,max-page-size=0x1000
62	-Wl,-z -Wl,common-page-size=0x1000 ;
63HAIKU_LINKFLAGS_$(HAIKU_PACKAGING_ARCH) +=
64	-Wl,-z -Wl,max-page-size=0x1000
65	-Wl,-z -Wl,common-page-size=0x1000 ;
66
67