2010-06-30 21:24:11 +04:00
|
|
|
# BeagleBoard board-specific definitions
|
|
|
|
|
|
|
|
HAIKU_BOARD_DESCRIPTION = "BeagleBoard" ;
|
2014-10-31 12:59:58 +03:00
|
|
|
HAIKU_BOARD_FDT_NAME = "omap3-beagle-xm" ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Various hardcoded addresses
|
|
|
|
#
|
|
|
|
|
|
|
|
# load address for haiku_loader
|
2014-08-08 18:44:54 +04:00
|
|
|
HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
|
2010-06-30 21:24:11 +04:00
|
|
|
# entry points (raw binary, and netbsd loader emulation)
|
2014-08-08 18:44:54 +04:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY_RAW = $(HAIKU_BOARD_LOADER_BASE) ;
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY_NBSD = `printf \"obase=16;ibase=16;8 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
|
2014-11-01 22:34:38 +03:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY_LINUX = `printf \"obase=16;ibase=16;10 + %x\\n\" $(HAIKU_BOARD_LOADER_BASE)|bc` ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
2012-05-18 02:39:37 +04:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY = $(HAIKU_BOARD_LOADER_ENTRY_NBSD) ;
|
|
|
|
HAIKU_BOARD_LOADER_FAKE_OS = netbsd ;
|
|
|
|
|
2010-06-30 21:24:11 +04:00
|
|
|
# load address for haiku_loader uimage
|
|
|
|
# (must be different than real load address)
|
2014-08-08 18:44:54 +04:00
|
|
|
HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Flash image
|
|
|
|
#
|
|
|
|
|
|
|
|
# OMAP x-loader image, must be first file on FAT partition
|
|
|
|
HAIKU_BOARD_MLO_IMAGE ?= MLO ;
|
2014-05-01 14:50:11 +04:00
|
|
|
HAIKU_BOARD_MLO_IMAGE_URL =
|
2014-06-13 19:15:24 +04:00
|
|
|
http://downloads.angstrom-distribution.org/demo/beagleboard/MLO ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
|
|
|
# u-boot binary image filename, to build the flash image
|
|
|
|
# XXX: Locate it somehow (for now just put it in generated/)
|
2014-06-13 19:15:24 +04:00
|
|
|
HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.img ;
|
2014-05-01 14:50:11 +04:00
|
|
|
HAIKU_BOARD_UBOOT_IMAGE_URL =
|
2014-06-13 19:15:24 +04:00
|
|
|
http://downloads.angstrom-distribution.org/demo/beagleboard/u-boot.img ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# mmc/SD image
|
|
|
|
#
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_SIZE = 64 ;
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
|
|
|
|
|
2014-06-13 19:15:24 +04:00
|
|
|
mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
|
|
|
|
: $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
|
|
|
|
|
|
|
|
ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
|
|
|
|
: $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
|
2010-06-30 21:24:11 +04:00
|
|
|
|
2014-11-01 21:48:06 +03:00
|
|
|
# U-Boot environment
|
|
|
|
# We load the uImage 2MB above its final destination, bootm will decode
|
|
|
|
# it to the proper location. Our image is smaller than 2MB so this works.
|
|
|
|
#HAIKU_BOARD_SDIMAGE_UBOOT_UENV_NAME = uEnv.txt ;
|
|
|
|
HAIKU_BOARD_SDIMAGE_UBOOT_UENV = "uenvcmd=run loadImage; run mmcboot; \
|
2014-11-01 22:34:38 +03:00
|
|
|
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; \
|
|
|
|
mmcboot=bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000" ;
|
2014-11-01 21:48:06 +03:00
|
|
|
|
2010-06-30 21:24:11 +04:00
|
|
|
HAIKU_BOARD_SDIMAGE_FILES =
|
2014-06-13 19:15:24 +04:00
|
|
|
$(mloFile)
|
|
|
|
$(ubootFile)
|
2010-06-30 21:24:11 +04:00
|
|
|
haiku_loader_nbsd.ub
|
2014-11-01 22:34:38 +03:00
|
|
|
haiku_loader_linux.ub
|
|
|
|
haiku-floppyboot.tgz.ub
|
2015-04-24 03:27:55 +03:00
|
|
|
$(HAIKU_BOARD_FDT_NAME).dtb
|
2010-06-30 21:24:11 +04:00
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# gcc flags for the specific cpu
|
|
|
|
|
2014-09-07 00:25:31 +04:00
|
|
|
local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
|
2014-08-18 11:00:50 +04:00
|
|
|
|
|
|
|
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|