Commit 02961df4 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Add OMAP3 U-Boot scripts to autobuilder

Detail:
  The OMAP3Dev product now has its own custom release_autobuild script, which adds my U-Boot scripts and their source code to the zip file.
Admin:
  Tested with MkAuto script; seems to work OK!


Version 0.11. Tagged as 'ABRelease-0_11'
parent a5e3c384
......@@ -14,4 +14,21 @@ this archive as Licence_v1.pdf), or see:
http://www.castle-technology.co.uk/riscosbaselicence.htm
U-Boot scripts
==============
In addition to the ROM image, this archive also contains a set of U-Boot scripts to allow you to easily boot RISC OS on machines that use the U-Boot bootloader (e.g. BeagleBoard, IGEPv2, Touch Book, etc.)
In the U-Boot_scripts folder, find the script that corresponds to your machine type and copy it to an SD card along with the RISC OS ROM image. Note that you must also rename the boot script to 'boot.scr' so that U-Boot will find it (with a few exceptions - see below)
Notes:
* Owners of IGEPv2 boards must name the script 'boot.ini'
* If your board contains a version of u-boot prior to 2009.01, the script may instead have to be named 'reset.scr'
* Also note that 'boot.scr' is the Unix/Windows name of the file - if you're using RISC OS to copy the file you'll obviously have to copy it as 'boot/scr' instead (or 'boot/ini', etc.)
* If you use Windows to copy the file, please make sure that 'Hide extensions for known file types' is not enabled in your Folder Options, otherwise you may inadvertently copy the script as 'boot.scr.scr'!
For the curious, the 'source' folder contains the source code for the U-Boot scripts, along with an explanation of how they function.
-- RISC OS Open
RISC OS U-Boot scripts
----------------------
This folder contains the human-readable source to the boot scripts, along with a Unix shell script for converting the scripts to binary format using U-Boot's 'mkimage' tool.
Currently the scripts operate by entering the OMAP ROM image at different entry points - one entry point per machine type. From the entry point used, RISC OS is then able to determine the machine type that it is running on, and thus the correct parameters to use for initialising and communicating with peripherals. The table of entry points is listed below. New entries will only ever be added to the end; existing entries will no be moved/removed.
You can use the table below as a guide for creating your own scripts, or by choosing the right entry point when converting a RISC OS ROM image to a U-Boot uImage.
Machine type Entry point
------------ -----------
BeagleBoard ROM start + &00000000
DevKit8000 ROM start + &00000004
IGEPv2 ROM start + &00000008
Pandora ROM start + &0000000C
Touch Book ROM start + &00000010
Jeffrey Lee, 3/03/2010
me@phlamethrower.co.uk
\ No newline at end of file
fatload mmc 0:1 0x81000000 riscos
go 0x81000000
#!/bin/sh
mkimage -A arm -O u-boot -T script -C none -n "RISC OS BeagleBoard boot script" -d beagle ../BeagleBoard.scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS DevKit8000 boot script" -d devkit ../DevKit8000.scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS IGEPv2 boot script" -d igep ../IGEPv2.scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS Pandora boot script" -d pandora ../Pandora.scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS Touch Book boot script" -d touchbook ../TouchBook.scr
fatload mmc 0:1 0x81000000 riscos
go 0x81000004
fatload mmc 0:1 0x81000000 riscos
go 0x81000008
fatload mmc 0:1 0x81000000 riscos
go 0x8100000c
fatload mmc 0:1 0x81000000 riscos
go 0x81000010
| Copyright 2010 Castle Technology Ltd
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
|
| If there is no ROM image (e.g. the build failed), exit here
IfThere <Build$Dir>.Images.<Build$ImageName> Then Else Obey
| Remove any old crud from our build-specific resources directory
x Wipe <ab_res$dir>.zip ~cfr~v
Remove <ab_res$dir>.tmp/zip
| Create an empty directory to hold the files that will be zipped up
CDir <ab_res$dir>.zip
| Copy the Castle licence file into the zip directory
Copy ab_res:Licence_v1/pdf <ab_res$dir>.zip.Licence_v1/pdf ~cf~r~v
| Copy the ReadMe for this build into the zip directory
Copy ab_res:ReadMe/txt <ab_res$dir>.zip.ReadMe/txt ~cf~r~v
| Copy the ROM image into the zip directory
Copy <Build$Dir>.Images.<Build$ImageName> <ab_res$dir>.zip.<Build$ImageName> ~cf~r~v
| Copy the U-Boot scripts into the zip directory
CDir <ab_res$dir>.zip.U-Boot_scripts
CDir <ab_res$dir>.zip.U-Boot_scripts.source
Copy ab_res:U-Boot_scripts.BeagleBoard/scr <ab_res$dir>.zip.U-Boot_scripts.BeagleBoard/scr ~cf~r~v
Copy ab_res:U-Boot_scripts.DevKit8000/scr <ab_res$dir>.zip.U-Boot_scripts.DevKit8000/scr ~cf~r~v
Copy ab_res:U-Boot_scripts.IGEPv2/scr <ab_res$dir>.zip.U-Boot_scripts.IGEPv2/scr ~cf~r~v
Copy ab_res:U-Boot_scripts.Pandora/scr <ab_res$dir>.zip.U-Boot_scripts.Pandora/scr ~cf~r~v
Copy ab_res:U-Boot_scripts.TouchBook/scr <ab_res$dir>.zip.U-Boot_scripts.TouchBook/scr ~cf~r~v
Copy ab_res:U-Boot_scripts.source.beagle <ab_res$dir>.zip.U-Boot_scripts.source.beagle ~cf~r~v
Copy ab_res:U-Boot_scripts.source.convert/sh <ab_res$dir>.zip.U-Boot_scripts.source.convert/sh ~cf~r~v
Copy ab_res:U-Boot_scripts.source.devkit <ab_res$dir>.zip.U-Boot_scripts.source.devkit ~cf~r~v
Copy ab_res:U-Boot_scripts.source.igep <ab_res$dir>.zip.U-Boot_scripts.source.igep ~cf~r~v
Copy ab_res:U-Boot_scripts.source.pandora <ab_res$dir>.zip.U-Boot_scripts.source.pandora ~cf~r~v
Copy ab_res:U-Boot_scripts.source.ReadMe/txt <ab_res$dir>.zip.U-Boot_scripts.source.ReadMe/txt ~cf~r~v
Copy ab_res:U-Boot_scripts.source.touchbook <ab_res$dir>.zip.U-Boot_scripts.source.touchbook ~cf~r~v
| Set the zip directory as the current directory
Dir <ab_res$dir>.zip
| Create a zip archive with the required files in it
Do zip -9qr ^.tmp/zip *
| Return the CSD to its original state
Back
| Delete any pre-existing zip archive on the autobuild server
Remove <ab_zip$file>
| Copy the template zip archive onto the autobuild server
Copy <ab_res$dir>.tmp/zip <ab_zip$file> ~cfr~v
SetType <ab_zip$file> &A91
Access <ab_zip$file> rw/r
/* (0.10)
/* (0.11)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.10
#define Module_MajorVersion_CMHG 0.11
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 Nov 2009
#define Module_Date_CMHG 03 Mar 2010
#define Module_MajorVersion "0.10"
#define Module_Version 10
#define Module_MajorVersion "0.11"
#define Module_Version 11
#define Module_MinorVersion ""
#define Module_Date "12 Nov 2009"
#define Module_Date "03 Mar 2010"
#define Module_ApplicationDate "12-Nov-09"
#define Module_ApplicationDate "03-Mar-10"
#define Module_ComponentName "ABRelease"
#define Module_ComponentPath "castle/RiscOS/Utilities/Autobuild/ABRelease"
#define Module_FullVersion "0.10"
#define Module_HelpVersion "0.10 (12 Nov 2009)"
#define Module_LibraryVersionInfo "0:10"
#define Module_FullVersion "0.11"
#define Module_HelpVersion "0.11 (03 Mar 2010)"
#define Module_LibraryVersionInfo "0:11"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment