[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
# Gumstix Overo board-specific definitions
|
|
|
|
|
|
|
|
HAIKU_BOARD_DESCRIPTION = "Gumstix Overo" ;
|
2014-11-01 04:06:06 +03:00
|
|
|
HAIKU_BOARD_FDT_NAME = "omap3-overo-tobi" ;
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Various hardcoded addresses
|
|
|
|
#
|
|
|
|
|
|
|
|
# load address for haiku_loader
|
2014-11-03 20:44:56 +03:00
|
|
|
HAIKU_BOARD_LOADER_BASE = 0x80800000 ;
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
# entry points (raw binary, and netbsd loader emulation)
|
2014-11-03 20:44:56 +03:00
|
|
|
HAIKU_BOARD_LOADER_ENTRY_RAW = 0x80800000 ;
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY_NBSD = 0x80800008 ;
|
|
|
|
HAIKU_BOARD_LOADER_ENTRY_LINUX = 0x80800010 ;
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +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 ;
|
|
|
|
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
# load address for haiku_loader uimage
|
|
|
|
# (must be different than real load address)
|
2014-11-03 20:44:56 +03:00
|
|
|
HAIKU_BOARD_LOADER_UIBASE = 0x82800000 ;
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
|
2014-11-01 04:27:57 +03:00
|
|
|
#
|
|
|
|
# Flash image
|
|
|
|
#
|
|
|
|
|
2014-11-01 07:38:44 +03:00
|
|
|
# cf. http://gumstix.org/how-to/70-writing-images-to-flash.html
|
|
|
|
|
2014-11-01 04:27:57 +03:00
|
|
|
# OMAP x-loader image, must be first file in Flash image
|
|
|
|
HAIKU_BOARD_MLO_IMAGE ?= MLO ;
|
|
|
|
HAIKU_BOARD_MLO_IMAGE_URL =
|
|
|
|
http://cumulus.gumstix.org/images/angstrom/developer/current/MLO ;
|
|
|
|
|
|
|
|
# u-boot binary image filename, to build the flash image
|
|
|
|
# XXX: Locate it somehow (for now just put it in generated/)
|
|
|
|
HAIKU_BOARD_UBOOT_IMAGE ?= u-boot.bin ;
|
|
|
|
HAIKU_BOARD_UBOOT_IMAGE_URL =
|
|
|
|
http://cumulus.gumstix.org/images/angstrom/developer/current/u-boot.bin ;
|
|
|
|
|
|
|
|
mloFile = [ DownloadFile $(HAIKU_BOARD_MLO_IMAGE)
|
|
|
|
: $(HAIKU_BOARD_MLO_IMAGE_URL) ] ;
|
|
|
|
|
|
|
|
ubootFile = [ DownloadFile $(HAIKU_BOARD_UBOOT_IMAGE)
|
|
|
|
: $(HAIKU_BOARD_UBOOT_IMAGE_URL) ] ;
|
|
|
|
|
2014-11-01 07:38:44 +03:00
|
|
|
FLASH_IMAGE_PARTS =
|
|
|
|
$(mloFile)
|
|
|
|
$(ubootFile)
|
|
|
|
;
|
|
|
|
|
|
|
|
# flash offsets:
|
|
|
|
# in kB
|
|
|
|
FLASH_IMAGE_LOADER_OFFSET = 31744 ;
|
|
|
|
|
|
|
|
FLASH_OFFSET on $(mloFile) = 0 ;
|
|
|
|
FLASH_OFFSET on $(ubootFile) = 512 ;
|
|
|
|
|
2014-11-01 04:27:57 +03:00
|
|
|
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
#
|
|
|
|
# mmc/SD image
|
|
|
|
#
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_SIZE = 256 ;
|
|
|
|
|
|
|
|
# in MB
|
|
|
|
HAIKU_BOARD_SDIMAGE_FAT_SIZE = 32 ;
|
|
|
|
|
|
|
|
# autoboot script
|
2014-11-01 07:38:44 +03:00
|
|
|
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME = boot.scr ;
|
2009-08-13 09:28:30 +04:00
|
|
|
HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT = "\
|
|
|
|
setenv bootargs debug_screen true; \
|
2014-11-01 07:42:47 +03:00
|
|
|
if mmc rescan; then \
|
2014-11-01 19:11:39 +03:00
|
|
|
fatload mmc 0 0x80100000 $(HAIKU_BOARD_FDT_NAME).dtb ; \
|
2014-11-03 20:44:56 +03:00
|
|
|
fatload mmc 0 0x81200000 haiku-floppyboot.tgz.ub; \
|
2014-11-01 19:11:39 +03:00
|
|
|
fatload mmc 0 $(HAIKU_BOARD_LOADER_UIBASE) haiku_loader_linux.ub; \
|
2014-11-03 20:44:56 +03:00
|
|
|
bootm $(HAIKU_BOARD_LOADER_UIBASE) 0x81200000 0x80100000; \
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
fi" ;
|
|
|
|
|
|
|
|
HAIKU_BOARD_SDIMAGE_FILES =
|
2014-11-01 07:38:44 +03:00
|
|
|
$(mloFile)
|
|
|
|
$(ubootFile)
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
haiku_loader
|
|
|
|
haiku_loader.ub
|
2014-11-01 19:11:39 +03:00
|
|
|
haiku_loader_linux.ub
|
2009-08-13 09:28:30 +04:00
|
|
|
haiku_loader_nbsd.ub
|
2014-11-01 19:11:39 +03:00
|
|
|
haiku-floppyboot.tgz.ub
|
|
|
|
$(HAIKU_BOARD_FDT_NAME).dtb
|
[ARM]
- consolidate board specific definitions into build/jam/board/*/BoardSetup to avoid duplicating address values everywhere,
- add various addresses, boot script, custom C/C++ flags and SD card definition,
- not sure BoardSetup is included at the best place though,
- replaced board-specific ldscript with passing the loader address directly to LD from BoardSetup,
- added haiku.mmc target which generates an mmc/SD card image with a FAT partition with the files needed to boot for the board, should later be integrated with haiku.image with the BFS partition offset passed to bfs_shell, requires apt:sfdisk,mtools on GNU/Linux,
- added some more rules, one to build a script for the SD image,
- fake a NetBSD loader for now, U-Boot doesn't know haiku, and we'll need a way to pass the tgz image and RAM size, we'll either use standlone way (usual C argv[]) or the NetBSD args,
- style fixes,
- 80 cols, /me pets Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 20:12:35 +04:00
|
|
|
$(HAIKU_BOARD_SDIMAGE_UBOOT_SCRIPT_NAME)
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# gcc flags for the specific cpu
|
|
|
|
#
|
|
|
|
|
2014-11-01 03:18:40 +03:00
|
|
|
local flags = -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard ;
|
|
|
|
|
|
|
|
HAIKU_ASFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_CCFLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|
|
|
|
HAIKU_C++FLAGS_$(HAIKU_PACKAGING_ARCH) += $(flags) ;
|