Commit 8fcebe2f authored by Steve Revill's avatar Steve Revill
Browse files

Added Disc and OMAP4Dev ABRelease resources

Added autobuild resources for the OMAP4Dev and Disc builds. Both of
which are untested but at least the OMAP4Dev one should be fine as
it's just a copy of the OMAP3Dev resources (with a couple of edits).

The Disc build stuff is about building a (zip compressed) Filecore
disc image of the resulting stuff. This would be good for 'burning'
straight onto a USB memory stick (e.g. with the Unix 'dd' command)
to boot machines from. WORK IN PROGRESS!

Version 0.20. Tagged as 'ABRelease-0_20'
parent 8d1d0036
fatload mmc 0:1 0x81000000 riscos
go 0x81000000
mkimage -A arm -O u-boot -T script -C none -n "RISC OS BeagleBoard boot script" -d <Obey$Dir>.beagle <Obey$Dir>.^.BeagleBoard/scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS DevKit8000 boot script" -d <Obey$Dir>.devkit <Obey$Dir>.^.DevKit8000/scr
mkimage -A arm -O u-boot -T script -C none -n "RISC OS IGEPv2 boot script" -d <Obey$Dir>.igep <Obey$Dir>.^.IGEPv2/ini
mkimage -A arm -O u-boot -T script -C none -n "RISC OS Pandora boot script" -d <Obey$Dir>.pandora <Obey$Dir>.^.Pandora/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
uenvcmd=fatload mmc ${mmcdev} ${loadaddr} riscos;go ${loadaddr}
scsi
basic
10REM Turn off alignment exceptions on ARMv7 machines
20DIM code% 256
30P%=code%
40[ OPT 0
50SWI "OS_EnterOS"
60MRC CP15,0,R0,C1,C0,0
70BIC R0,R0,#2
80MCR CP15,0,R0,C1,C0,0
90MSR CPSR_c,#&10
100MOV PC,R14
110]
120CALL code%
RUN
*changedynamicarea -ramfssize 32m
*ram
SAVE"RAM::RamDisc0.$.AOff"
10REM Turn on alignment exceptions on ARMv7 machines
70ORR R0,R0,#2
SAVE"RAM::RamDisc0.$.AOn"
*scsi
NEW
10REM Create and save a text file of instructions
20:
30REM Assumes a RAM disc is present
40:
50ONERRORCLOSE#x:REPORT:PRINT" at line ";ERL:END
60READline$
70x=OPENOUT"RAM::RamDisc0.$.HD4Instruct"
80WHILE line$<>""
90BPUT#x,line$
100READline$
110ENDWHILE
120CLOSE#x
130*settype RAM::RamDisc0.$.HD4instruct &fff
140END
150:
1000DATA" Creating your HardDisc4 boot disc"
1010DATA" ================================="
1020DATA" "
1030DATA"1. Connect the new device you want to format, and"
1040DATA" note its drive number on the icon bar."
1050DATA"2. Unplug the FAT formatted device you used to get"
1060DATA" to this point, if you wish."
1070DATA"3. To reformat this new device, run SCSIForm from"
1080DATA" its shortcut placed on the Pinboard."
1090DATA"4. In the RAM::RamDisc0.$.HardDisc4 directory"
1100DATA" display, click Menu -> Select all."
1110DATA"5. Drag the selection onto the iconbar drive icon"
1120DATA" for the newly formatted device."
1130DATA"6. When copying is complete (i.e. Copying files"
1140DATA" window disappears), click Menu -> Dismount on"
1150DATA" the iconbar drive icon."
1160DATA"7. You are now free to restart the machine, which"
1170DATA" will boot from the newly installed HardDisc4"
1180DATA" !Boot sequence."
1190DATA""
RUN
NEW
10REM Run self-extracting HardDisc4 image
20REM which provides the !Boot sequence and
30REM SCSI ADFS formatter
40:
50REM Assumes a RAM disc of minimum size 32MB is present
60:
70*copy SCSI::0.HardDisc4/util RAM::RamDisc0.$.HD4 ~c
80*dismount :0
90*settype RAM::RamDisc0.$.HD4 &ffc
100*key0|m*delete RAM::RamDisc0.$.HD4|m*pin RAM::RamDisc0.$.HardDisc4.Utilities.USB-Mass.!SCSIForm 32 152|m*filer_opendir RAM::RamDisc0.$|m*filer_opendir RAM::RamDisc0.$.HardDisc4|m*filer_run RAM::RamDisc0.$.HD4instruct|m
110*key1|m|m|m|m|m|mREM **********************|mREM * Finished. *|mREM * You may safely *|mREM * CLOSE this window. *|mREM **********************|m|mQUIT|mshellcli_taskquit|m
120*fx15,0
130*fx138,0,128
140*fx138,0,129
150*ram
160*/ RAM::RamDisc0.$.HD4
RUN
RISC OS Open Release Archive
============================
This is the OMAP4 (PandaBoard) development ROM image. It is a bleeding-edge
build which comes from the latest revisions of all the relevant sources in
our source code repository and is completely untested.
Using this ROM image in your board should only be done if you are confident
that you know what you are doing! It is likely to be functionally incomplete
and probably unstable in various ways.
Some components in this archive are released under the licence (included in
this archive as Licence_v1.pdf), or see:
http://www.castle-technology.co.uk/riscosbaselicence.htm
How to install the ROM image
============================
The easiest way to install the ROM image onto an SD card is to use the
included !SDCreate application. If you have the RISC OS 5 USB mass storage
drivers then !SDCreate can write the image straight to an SD card.
Alternatively you can create a disc image file which can then be written to a
card using any ordinary Windows/Linux/Mac PC. For more information, including
a description of the SD card structure, see the !SDCreate help file or the
RISC OS Open wiki:
http://www.riscosopen.org/wiki/documentation/pages/Using+the+Cortex-A8+port
The 'InstallHD4' script, and setting up a !Boot sequence
========================================================
For details of how to setup up a !Boot sequence for your OMAP4 machine, please
see the 'Putting the HardDisc4 image onto a USB drive' section of this wiki
page:
http://www.riscosopen.org/wiki/documentation/pages/Using+the+Cortex-A8+port
The 'InstallHD4' script supplied with this archive is intended to be used in
conjunction with the installation steps given on the above page.
An important note about CMOS RAM
================================
The OMAP port of RISC OS now has the ability to use CMOS settings that are
saved to the SD card alongside the ROM image. However, RISC OS currently
lacks the ability to write updated settings back to the card. Therefore if
you make any configuration changes that will affect CMOS RAM (e.g. switching
to boot from drive 4 instead of 0) then you must make sure you manually save
the settings using *SaveCMOS and copy the new file onto the SD card. For more
information about how the CMOS file is handled, please see the !SDCreate help
file.
-- RISC OS Open
\ No newline at end of file
| Copyright 2011 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.
|
| Set up and/or override some system variables
Set ab_local$zip rom-omap/5/xx/zip
| Remove any old crud from our resources directory
x Wipe <ab_res$dir>.zip ~cfr~v
Remove <ab_res$dir>.<ab_local$zip>
\ No newline at end of file
| Copyright 2011 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
| Run our clean script
Run <ab_res$dir>.clean
| 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.riscos ~cf~r~v
| Copy !SDCreate into the zip directory
CDir <ab_res$dir>.zip.!SDCreate
CDir <ab_res$dir>.zip.!SDCreate.scripts
CDir <ab_res$dir>.zip.!SDCreate.scripts.source
Copy ab_res:!SDCreate.!Boot <ab_res$dir>.zip.!SDCreate.!Boot ~cf~r~v
Copy ab_res:!SDCreate.!Help <ab_res$dir>.zip.!SDCreate.!Help ~cf~r~v
Copy ab_res:!SDCreate.!Run <ab_res$dir>.zip.!SDCreate.!Run ~cf~r~v
Copy ab_res:!SDCreate.!Sprites <ab_res$dir>.zip.!SDCreate.!Sprites ~cf~r~v
Copy ab_res:!SDCreate.!Sprites22 <ab_res$dir>.zip.!SDCreate.!Sprites22 ~cf~r~v
Copy ab_res:!SDCreate.blank <ab_res$dir>.zip.!SDCreate.blank ~cf~r~v
Copy ab_res:!SDCreate.Desc <ab_res$dir>.zip.!SDCreate.Desc ~cf~r~v
Copy ab_res:!SDCreate.Messages <ab_res$dir>.zip.!SDCreate.Messages ~cf~r~v
Copy ab_res:!SDCreate.SDCreate <ab_res$dir>.zip.!SDCreate.SDCreate ~cf~r~v
Copy ab_res:!SDCreate.Templates <ab_res$dir>.zip.!SDCreate.Templates ~cf~r~v
Copy ab_res:!SDCreate.scripts.BeagleBoard/scr <ab_res$dir>.zip.!SDCreate.scripts.BeagleBoard/scr ~cf~r~v
Copy ab_res:!SDCreate.scripts.DevKit8000/scr <ab_res$dir>.zip.!SDCreate.scripts.DevKit8000/scr ~cf~r~v
Copy ab_res:!SDCreate.scripts.IGEPv2/ini <ab_res$dir>.zip.!SDCreate.scripts.IGEPv2/ini ~cf~r~v
Copy ab_res:!SDCreate.scripts.Pandora/scr <ab_res$dir>.zip.!SDCreate.scripts.Pandora/scr ~cf~r~v
Copy ab_res:!SDCreate.scripts.uenv/txt <ab_res$dir>.zip.!SDCreate.scripts.uenv/txt ~cf~r~v
Copy ab_res:!SDCreate.scripts.source.beagle <ab_res$dir>.zip.!SDCreate.scripts.source.beagle ~cf~r~v
Copy ab_res:!SDCreate.scripts.source.convert <ab_res$dir>.zip.!SDCreate.scripts.source.convert ~cf~r~v
Copy ab_res:!SDCreate.scripts.source.devkit <ab_res$dir>.zip.!SDCreate.scripts.source.devkit ~cf~r~v
Copy ab_res:!SDCreate.scripts.source.igep <ab_res$dir>.zip.!SDCreate.scripts.source.igep ~cf~r~v
Copy ab_res:!SDCreate.scripts.source.pandora <ab_res$dir>.zip.!SDCreate.scripts.source.pandora ~cf~r~v
| Copy the InstallHD4 script into the zip directory
Copy ab_res:InstallHD4 <ab_res$dir>.zip.InstallHD4 ~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 ^.<ab_local$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
SetType <ab_res$dir>.<ab_local$zip> &A91
Copy <ab_res$dir>.<ab_local$zip> <ab_zip$file> ~cfr~v
Access <ab_zip$file> rw/r
\ No newline at end of file
/* (0.19) /* (0.20)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * Last processed by srccommit version: 1.1.
* *
*/ */
#define Module_MajorVersion_CMHG 0.19 #define Module_MajorVersion_CMHG 0.20
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 26 Jun 2011 #define Module_Date_CMHG 20 Oct 2011
#define Module_MajorVersion "0.19" #define Module_MajorVersion "0.20"
#define Module_Version 19 #define Module_Version 20
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "26 Jun 2011" #define Module_Date "20 Oct 2011"
#define Module_ApplicationDate "26-Jun-11" #define Module_ApplicationDate "20-Oct-11"
#define Module_ComponentName "ABRelease" #define Module_ComponentName "ABRelease"
#define Module_ComponentPath "castle/RiscOS/Utilities/Autobuild/ABRelease" #define Module_ComponentPath "castle/RiscOS/Utilities/Autobuild/ABRelease"
#define Module_FullVersion "0.19" #define Module_FullVersion "0.20"
#define Module_HelpVersion "0.19 (26 Jun 2011)" #define Module_HelpVersion "0.20 (20 Oct 2011)"
#define Module_LibraryVersionInfo "0:19" #define Module_LibraryVersionInfo "0:20"
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