1 # BeagleBone board-specific definitions
3 HAIKU_BOARD_DESCRIPTION = "BeagleBone" ;
4 HAIKU_BOARD_FDT_NAME = "boneblack" ;
6 # Not that many in the wild
7 #HAIKU_BOARD_FDT_NAME = "beaglebone" ;
11 # Various hardcoded addresses
14 # load address for haiku_loader
15 HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
16 HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
17 HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
18 HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
25 HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
26 HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
28 # OMAP x-loader image, must be first file on FAT partition
29 HAIKU_BOARD_MLO_IMAGE_URL = https://github.com/haiku/firmware/raw/master/arm/beaglebone ;
30 mloFile = [ DownloadFile MLO : $(HAIKU_BOARD_MLO_IMAGE_URL)/MLO ] ;
33 HAIKU_BOARD_UBOOT_IMAGE_URL = https://github.com/haiku/firmware/raw/master/arm/beaglebone ;
34 ubootFile = [ DownloadFile u-boot.img : $(HAIKU_BOARD_UBOOT_IMAGE_URL)/u-boot.img ] ;
37 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = boot.scr ;
38 HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
39 fatload mmc 0 ${fdt_addr_r} /fdt/$(HAIKU_BOARD_FDT_NAME).dtb \
40 fdt addr ${fdt_addr_r} \
41 fatload mmc 0 ${ramdisk_addr_r} haiku-floppyboot.tgz.ub \
42 fatload mmc 0 ${kernel_addr_r} haiku_loader_linux.ub \
43 bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}" ;
45 HAIKU_BOARD_SDIMAGE_FILES =
49 haiku-floppyboot.tgz.ub
50 $(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
54 # gcc flags for the specific cpu
56 local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
58 HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
59 HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
60 HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;