log in | register | forums
Show:
Go:
Welcome
The Icon Bar is the longest running RISC OS portal. The sensibilities that Acorn instilled in us still influence our interests and writing.

Buy swag
Got news?
Let us know!
Free ads
Free ads
Cheap as chips!
Subscriptions RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
Podcasts
Subscribe | iTunes | List
Latest MP3
Site Search
 
Article archives

Updating RPCEmu to 5.28

Posted by Mark Stephens on 08:10, 24/11/2020 |
 
Last time round, I updated my Pi to RISC OS 5.28. This time I am going to update my copy of RPCEmu running on my Mac from 5.27 to the new release which is a very similar process.
 
Continue reading "Updating RPCEmu to 5.28" | Comment in the forums

Upgrading your RISC OS system to 5.28

Posted by Mark Stephens on 15:23, 20/11/2020 |
 
With the arrival of RISC OS 5.28 you are probably thinking about updating an existing machine. This has become a lot easier with recent RISC OS releases.
 
Continue reading "Upgrading your RISC OS system to 5.28" | 4 comments in the forums

PackMan in practice, part 2

Posted by Jeffrey Lee on 09:00, 16/11/2018 | , , ,
 
As mentioned at the end of part one, this article about creating PackMan packages is going to look at what's necessary to generate distribution index files, ROOL pointer files, and how these tasks can be automated. Towards the end I'll also be taking a look at some options for automating the uploading of the files to your website.
 
 
Continue reading "PackMan in practice, part 2" | 1 comment in the forums

PackMan in practice

Posted by Jeffrey Lee on 08:00, 14/9/2018 | , , ,
 
For this first article looking at how to create PackMan/RiscPkg packages, I've decided to use my SunEd program as a guinea pig. Being a simple C application with no dependencies on other packages, it'll be one of the most straightforward things on my site to get working, and one of the easiest for other people to understand.
 
Read on to discover how to turn simple apps like SunEd into RiscPkg packages, and more importantly, how to automate the process.
 
 
Continue reading "PackMan in practice" | Comment in the forums

Power Switching a RaspberryPi

Posted by Mark Stephens on 09:27, 28/4/2018 | ,
 
Chris Hall has been trying to make the most of power for a RISC OS based RaspberryPi for his GPS system. In his guest post , he lifts the lid on how he does this...
 
A Raspberry Pi can be powered by a mains adapter or by a powerbank. I found myself often pulling out the power plug to power cycle the Pi and came up with a software power switching method that would allow power to be removed under software control.
 

 
A 'power booster' board allows an internal 3.7V Lithium-Polymer battery to produce a 5.2V output and any external 5V power source will take over this rule and charge the internal battery until fully charged. Switching on and off is controlled by an 'ENABLE' input, pulled high by default. A blue LED lights if power is being supplied to the computer. With the booster board output disabled, only a minimal current is drawn from the internal battery. A red LED lights if the internal battery becomes discharged below 3V (and if a diode is fitted to the 'LBO' pad this can disable the output automatically). Fully discharging the internal battery is likely to damage it.
 
While the internal battery is being charged a yellow LED lights, turning green when it is fully charged. A small current drain to light the green LED to show a full charge seems enough to keep some power banks happy even whilst the unit is otherwise powered down and the internal battery fully charged.
 
This means the external source can be connected and disconnected without affecting the operation of the device except to extend battery life.
 

 
Power control
With no power control hardware it is difficult to ensure that the computer is not, inadvertently,turned off during a write operation to the SD card, which can corrupt the file or the whole card. My power control circuit allows power to be applied at any time by pressing the 'on' button. The 'off' button simply signals that a power off has been requested, which can be detected in software. A shutdown/restart cycle will then remove power as soon as the system has been shut down and the CMOS updated.
 
If software detects a 'power off' request then all it has to do (once it has completed any essential tasks) is to issue the command:
 
SYS "TaskManager_Shutdown",162
 
which will do a shutdown/restart cycle.
 
Doing a manual shutdown (CTRL-SHIFT-f12) and then pressing 'Restart' will also remove power (if a 'power off' request has been issued).
 

 
How Does It Work?
 
Software can detect the 'on' button being pressed or held down by reading the GPIO 19 line and can use this information for any purpose. The fact that the 'off' button has been pressed (and the 'on' button remains open circuit) can be detected by reading GPIO 26, meaning that 'power off' has been requested.
 
A little piece of software in !Boot.Choices.Boot.PreDesk sets GPIO 4 to output high (which ensures power stays on even after a 'power off' request).
 
During a restart cycle, before any writes are made to the SD card, the ROM modules are reset which takes GPIO 4 to high impedance: with a 'power off' request pending this will remove power.
 
Provided that the unit has been operating for at least six seconds (enough time for the RISC OS desktop to start), the 'off' button will pull GPIO 26 low but do nothing else. Software can detect this, complete any essential tasks and then either explicitly set GPIO 4 low (if a Witty Pi is present, this will remove power immediately) or (if not) perform a complete system shutdown using the command SYS "TaskManager_Shutdown",162 which will shutdown all applications tidily and restart RISC OS. The effect of this is to update the CMOS ęlast time onë setting and restart the ROM. As the ROM reinitialises, GPIO 4 becomes high impedance thus removing power.
 

 
The 'on' button has some additional functions: whilst pressed, components (R6, R7 and LED) may also be fitted to present an LED load to any external power source that will only light if the external source is healthy (this works by sensing whether Vs from the power boost board is 3.7V or 5.2V). If a voltmeter is fitted as shown, the voltage of the internal LiPo battery is displayed whilst the button is depressed. A power meter can also be connected between the power boost board and the Raspberry Pi giving a voltage, current and power consumption readout.
 

 
Battery Life
With an internal 4400mAh LiPo battery, a Raspberry Pi Zero with an OLED display and GPS module (but with no HDMI connection) uses about 170mA (at 5V) and the battery should therefore last for about (4400 x 3.7)/(170 x 5.2)h which is just over 18 hours. A 5000mAh 5V powerbank should extend this by about 28 hours.
 

 
Chris Hall's website
 
1 comment in the forums

ROM release for your Titanium - What is new

Posted by Mark Stephens on 08:35, 28/7/2017 | , ,
 
In a previous article, we looked at installing the new ROM for your Titanium. This time we will look at what the new release offers.
 
This is actually quite a major update and there is a long list of changes. The offical full list of changes is on the ROOL website. Some of the changes are not really relevant to Titanium users (Pico build fix, introduce iMx6 to ROOL repository) but there are lots of interest.
 


 
From a user's point of view, there are 3 major new features
 
The first is the addition of 256 colour modes.


 
This makes it much easier to use old software which was written for these modes.
 
Another bounty enhancement is the new EDID support means that your machine can be much 'smarter' when you plug a monitor into it. It is not Titanium-specific (but very nice to have). This is the result of the EDID bounty from ROOL.
 
Improvements to ADFS now mean that you can have up to 8 terabytes of storage on RISC OS (and RISC OS uses large drives more efficiently).
 
A nice little enhancement for Paint is the addition of a timer control for the spray can (which was previously a little unwieldy on fast new modern machines). Paint is now version 2.21 (last updated May 2017).
 
BASIC and the Chars and Draw applications both get enhancements and bug fixes.
 
The whole package is free to download and brings the Titanium bang up to date with RISC OS developments. What are your impressions of the new update? Have you found any problems?
 
Comment in the forums

Installing the new ROM release for your Titanium

Posted by Mark Stephens on 09:23, 22/7/2017 | , ,
 
Elesar emailed all its clients and announced on the newsgroups that there was a new software update for the Titanium. In this article we will download and install it with a sequel to look at the new features.
 
As well as the 'vanilla' Titanium, CJEmicro's and R-Comp have systems based on the board. As my machine is from R-CompInfo, I checked with Andrew Rawnsley about whether it was a good idea to install or wait for an official update from them. R-Comp are indeed planning to do a proper machine-specific update once they had done their own testing. You can wait for them or you can use the new update. If you have a machine from CJEmicro's I would confirm their advice first.
 
If your Titanium is your critical work machine, you might want to wait a little while to let others test the upgrade (which is equally valid advice on new MacOS, Linux or Windows updates).
 
The Elesar download link actually takes you to a download page on the ROOL website where you have a choice of downloads, depending on how 'cutting edge' you would like to be. The bottom item is the recommended stable release and it is twice as big because it includes a second version of the ROM.
 


 
The official download is the 5 meg download which contains everything you need to upgrade your Titanium and a clear and helpful readme.
 


 
There is a potential risk for things to go wrong, so you are advised to make sure you have backups of all your data before you start (always a good idea to keep regular backups in any case!). Murphy's law generally means the more prepared you are the less likely things will go wrong...
 
Two versions of the new OS release are supplied, with and without zpp included. Which one you choose will be down to your personal preferences and the software you are using.
 
The actual upgrade consists of 3 steps:-
1. Update the software on your disk (using Merge to update !Boot with any changes).
2. Sanity check by soft loading the ROM on your machine using the softload obey file, just to make sure. If there are any issues, you can then revert back to the original with a quick reboot.
3. Use the FlashSQPI application to burn a new copy of the ROM onto your system. This can be a little time-consuming and should not be interrupted. Once it is done, you can reboot the machine.
 
Before you do any of this, it is worth reading the readme fully TWICE.
 
It is very easy to see if the machine has been updated.
 


 


 
You have an updated machine running the latest version of RISC OS for your machine. Next time we will look at what is new...
 
2 comments in the forums

Getting FAT32FS working on a RiscPC with a Castle USB Card

Posted by Jon Robinson on 13:57, 28/6/2014 | , , , ,
 
I have a RISC OS 4.39 RiscPC with a CastleInfo USB card and Compact Flash card reader attached. This uses Castle‘s !SoftSCSI to access the flash cards.
 
For a long time, I have been frustrated by its inability to mount any flash card larger then 2 GB in size. I really wanted to use a single flash card, to back up my 40 GB hard drive, as having to use a pocket full of 2 GB cards is a real pain.
 
I had been put off experimenting with Jeff Doggett‘s FAT32FS before, because I had read somewhere that it only works with the USB stack on the Iyo.
 
But, as it‘s the only solution, I did have a go at trying to get FAT32FS working on my RiscPC, recently. And, luckily, it turns out that the USB podule card on the RiscPC, is sufficiently similar to the one in the Iyonix, that it does, in fact, work.
 
It did take a bit of experimentation, however, to work out how to do it.
 
 
Continue reading "Getting FAT32FS working on a RiscPC with a Castle USB Card" | Comment in the forums

Getting Unicode Working With RISC OS 4 (and 6?)

Read article... | 20 comments in the forums

Video Processing on RISC OS

Read article... | 19 comments in the forums

Making a Mac mini media centre

Read article... | 4 comments in the forums

Video conversion on RISC OS

Read article... | 1 comment in the forums

Building the Dream 4 - Random city basics

Read article... | Comment in the forums

Building the Dream 3 - Random map generators, redux

Read article... | 1 comment in the forums
Recent discussions
- Asigning and displaying memory on screen. Help please. (Prog:5)
- Messenger Pro hotmail settings (Gen:8)
- November News round-up (News:3)
- Jason Tribbeck talks sound to ROUGOL (News:4)
- Updating RPCEmu to 5.28 (News:)
- Upgrading your RISC OS system to 5.28 (News:4)
- Gerph talks to Rougol online (News:2)
- Free online build service for RISC OS (News:1)
- PiHard 4.0 reviewed (News:2)
- Aemulor (Gen:39)
Services
- Free ads
- Web hosting
Sites we like
- Ganymede & Titan
- pagetable.com
- Kotaku
- Daring Fireball
- Drobe