<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://f256wiki.wildbitscomputing.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Strick9</id>
	<title>Foenix F256 / Wildbits/K2 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://f256wiki.wildbitscomputing.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Strick9"/>
	<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=Special:Contributions/Strick9"/>
	<updated>2026-04-18T10:42:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=427</id>
		<title>OS-9</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=427"/>
		<updated>2024-06-26T21:51:03Z</updated>

		<summary type="html">&lt;p&gt;Strick9: The new commands did not work, so I&amp;#039;m adding back the old one&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The FNX6809 combined with the F256 makes a great system for running OS-9/6809. [[wikipedia:OS-9|OS-9]] is a real-time, embedded operating system created by [[wikipedia:Microware|Microware Systems Corporation]]. While it was used in many areas of industry, home computer users know it best for its implementation on the [[wikipedia:TRS-80_Color_Computer|Tandy Color Computer]] sold by Radio Shack&lt;br /&gt;
&lt;br /&gt;
Today, a community effort has led to the creation of [https://github.com/nitros9project/nitros9 NitrOS-9], an open source version of the OS-9 operating system. Throughout this page, I&#039;ll refer to NitrOS-9 as OS-9.&lt;br /&gt;
&lt;br /&gt;
== A word about platforms ==&lt;br /&gt;
This page assumes you&#039;re running on Linux or macOS. If you&#039;re using Windows, these instructions don&#039;t apply, and someone will have to step up and write steps to develop on that platform.&lt;br /&gt;
&lt;br /&gt;
== Tooling ==&lt;br /&gt;
Cross-hosted development is the fastest way to develop for the F256. For this you need the following:&lt;br /&gt;
&lt;br /&gt;
* [http://www.lwtools.ca lwtools] - an assembler/linker package&lt;br /&gt;
* [https://github.com/nitros9project/toolshed ToolShed] - a set of tools for creating disk images&lt;br /&gt;
* [https://github.com/nitros9project/nitros9 NitrOS-9] - the NitrOS-9 operating system in source form&lt;br /&gt;
* [https://github.com/pweingar/FoenixMgr FoenixMgr] - tools to load code into RAM or Flash of the F256.&lt;br /&gt;
&lt;br /&gt;
You can pull these down individually, or better yet, use [https://github.com/strickyak @strickyak]&#039;s great [https://github.com/strickyak/coco-shelf/ CoCo Shelf repository]. It has a &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; which gets all of the above and puts it in a convenient location (note that you&#039;ll have to update your shell script of choice to include the locations of the binaries in the &amp;lt;code&amp;gt;PATH&amp;lt;/code&amp;gt; environment variable).&lt;br /&gt;
&lt;br /&gt;
Here are the terminal commands for Linux and macOS to pull down all the required software:&lt;br /&gt;
 cd&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/strickyak/coco-shelf.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd coco-shelf&lt;br /&gt;
 export PATH=&amp;quot;$PATH:$HOME/coco-shelf/bin&amp;quot;&lt;br /&gt;
 make ANON=1 nitros9/done FoenixMgr/done&lt;br /&gt;
&lt;br /&gt;
(If you have a github account and your github ssh key is loaded,&lt;br /&gt;
you can omit `ANON=1` on the last command,&lt;br /&gt;
so it will check out git repositories using your github username,&lt;br /&gt;
in case you want to push changes.)&lt;br /&gt;
&lt;br /&gt;
There is a special Make target for re-flashing the F256Jr or F256K,&lt;br /&gt;
but first time you run this command, it should fail.  &lt;br /&gt;
Then you have to edit the `port=` line in `FoenixMgr/foenixmgr.ini`&lt;br /&gt;
and run the command again (with the cable plugged in): &lt;br /&gt;
 make ANON=1 run-f256-flash        # Old command for F256Jr that works?&lt;br /&gt;
or&lt;br /&gt;
 make ANON=1 run-f256jr-flash      # TODO fix this&lt;br /&gt;
or&lt;br /&gt;
 make ANON=1 run-f256k-flash       # TODO fix this&lt;br /&gt;
&lt;br /&gt;
== Building FEU and OS-9 Level 1 from scratch ==&lt;br /&gt;
FEU is the Foenix Executive Utility. It resides in flash and hosts a debugger and booters that can bring up operating systems like OS-9. FEU runs under OS-9 Level 1, so go ahead and build the entire operating system:&lt;br /&gt;
 cd nitros9&lt;br /&gt;
 export NITROS9DIR=$PWD&lt;br /&gt;
 cd level1/f256&lt;br /&gt;
 make &lt;br /&gt;
 cd feu&lt;br /&gt;
Now you can flash the image into the F256. You must have a USB cable connected to the system from your computer. Note: if you&#039;re using a Mac, you won&#039;t be able to upload code into the F256 due to the [https://www.maxlinear.com/support/design-tools/software-drivers driver manufacturer] being so behind on updates. You can use a Linux VM and FoenixMgr tools in bridge mode on the Mac.&lt;br /&gt;
&lt;br /&gt;
There are distinct builds of FEU for the F256 Jr and the F256K. Power up the machine, then select the correct command:&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256jr&lt;br /&gt;
or&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256k&lt;br /&gt;
Once the flash completes, restart the machine and FEU should come up.&lt;br /&gt;
&lt;br /&gt;
== Building OS-9 Level 2 ==&lt;br /&gt;
To build OS-9 Level 2, run these commands:&lt;br /&gt;
 cd ../../level2/f256&lt;br /&gt;
 make dsk&lt;br /&gt;
&lt;br /&gt;
This produces the following disk images for the F256 Jr and the F256K:&lt;br /&gt;
&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_sd.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_sd.dsk&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;dw&#039;&#039; disk images are for booting from DriveWire. The &#039;&#039;sd&#039;&#039; disk image are for booting from the SD card. You need to write the images onto an SD card, then insert the SD card into the F256 and restart.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to image the SD card.&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
On Linux, insert the SD card into your computer. Ttype &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; to find the correct device and replace &#039;&#039;sdx&#039;&#039; on the command line below with it:&lt;br /&gt;
&lt;br /&gt;
 dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;sdx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== macOS ====&lt;br /&gt;
On macOS, insert the SD card into your Mac. A dialog will likely appear telling you that the disk you attached isn&#039;t readable. Click the &amp;quot;ignore&amp;quot; button, then type &amp;lt;code&amp;gt;diskutil list external&amp;lt;/code&amp;gt; to obtain the device name of the SD card and replace &#039;&#039;diskx&#039;&#039; on the command line below with it:&lt;br /&gt;
 sudo dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
Once the command completes, type:&lt;br /&gt;
 diskutil eject /dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
You can then safely remove the SD card.&lt;/div&gt;</summary>
		<author><name>Strick9</name></author>
	</entry>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=426</id>
		<title>OS-9</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=426"/>
		<updated>2024-06-26T21:44:21Z</updated>

		<summary type="html">&lt;p&gt;Strick9: support both Jr and K with the flash command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The FNX6809 combined with the F256 makes a great system for running OS-9/6809. [[wikipedia:OS-9|OS-9]] is a real-time, embedded operating system created by [[wikipedia:Microware|Microware Systems Corporation]]. While it was used in many areas of industry, home computer users know it best for its implementation on the [[wikipedia:TRS-80_Color_Computer|Tandy Color Computer]] sold by Radio Shack&lt;br /&gt;
&lt;br /&gt;
Today, a community effort has led to the creation of [https://github.com/nitros9project/nitros9 NitrOS-9], an open source version of the OS-9 operating system. Throughout this page, I&#039;ll refer to NitrOS-9 as OS-9.&lt;br /&gt;
&lt;br /&gt;
== A word about platforms ==&lt;br /&gt;
This page assumes you&#039;re running on Linux or macOS. If you&#039;re using Windows, these instructions don&#039;t apply, and someone will have to step up and write steps to develop on that platform.&lt;br /&gt;
&lt;br /&gt;
== Tooling ==&lt;br /&gt;
Cross-hosted development is the fastest way to develop for the F256. For this you need the following:&lt;br /&gt;
&lt;br /&gt;
* [http://www.lwtools.ca lwtools] - an assembler/linker package&lt;br /&gt;
* [https://github.com/nitros9project/toolshed ToolShed] - a set of tools for creating disk images&lt;br /&gt;
* [https://github.com/nitros9project/nitros9 NitrOS-9] - the NitrOS-9 operating system in source form&lt;br /&gt;
* [https://github.com/pweingar/FoenixMgr FoenixMgr] - tools to load code into RAM or Flash of the F256.&lt;br /&gt;
&lt;br /&gt;
You can pull these down individually, or better yet, use [https://github.com/strickyak @strickyak]&#039;s great [https://github.com/strickyak/coco-shelf/ CoCo Shelf repository]. It has a &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; which gets all of the above and puts it in a convenient location (note that you&#039;ll have to update your shell script of choice to include the locations of the binaries in the &amp;lt;code&amp;gt;PATH&amp;lt;/code&amp;gt; environment variable).&lt;br /&gt;
&lt;br /&gt;
Here are the terminal commands for Linux and macOS to pull down all the required software:&lt;br /&gt;
 cd&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/strickyak/coco-shelf.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd coco-shelf&lt;br /&gt;
 export PATH=&amp;quot;$PATH:$HOME/coco-shelf/bin&amp;quot;&lt;br /&gt;
 make ANON=1 nitros9/done FoenixMgr/done&lt;br /&gt;
&lt;br /&gt;
(If you have a github account and your github ssh key is loaded,&lt;br /&gt;
you can omit `ANON=1` on the last command,&lt;br /&gt;
so it will check out git repositories using your github username,&lt;br /&gt;
in case you want to push changes.)&lt;br /&gt;
&lt;br /&gt;
There is a special Make target for re-flashing the F256Jr or F256K,&lt;br /&gt;
but first time you run this command, it should fail.  &lt;br /&gt;
Then you have to edit the `port=` line in `FoenixMgr/foenixmgr.ini`&lt;br /&gt;
and run the command again (with the cable plugged in): &lt;br /&gt;
 make ANON=1 run-f256jr-flash&lt;br /&gt;
or&lt;br /&gt;
 make ANON=1 run-f256k-flash&lt;br /&gt;
&lt;br /&gt;
== Building FEU and OS-9 Level 1 from scratch ==&lt;br /&gt;
FEU is the Foenix Executive Utility. It resides in flash and hosts a debugger and booters that can bring up operating systems like OS-9. FEU runs under OS-9 Level 1, so go ahead and build the entire operating system:&lt;br /&gt;
 cd nitros9&lt;br /&gt;
 export NITROS9DIR=$PWD&lt;br /&gt;
 cd level1/f256&lt;br /&gt;
 make &lt;br /&gt;
 cd feu&lt;br /&gt;
Now you can flash the image into the F256. You must have a USB cable connected to the system from your computer. Note: if you&#039;re using a Mac, you won&#039;t be able to upload code into the F256 due to the [https://www.maxlinear.com/support/design-tools/software-drivers driver manufacturer] being so behind on updates. You can use a Linux VM and FoenixMgr tools in bridge mode on the Mac.&lt;br /&gt;
&lt;br /&gt;
There are distinct builds of FEU for the F256 Jr and the F256K. Power up the machine, then select the correct command:&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256jr&lt;br /&gt;
or&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256k&lt;br /&gt;
Once the flash completes, restart the machine and FEU should come up.&lt;br /&gt;
&lt;br /&gt;
== Building OS-9 Level 2 ==&lt;br /&gt;
To build OS-9 Level 2, run these commands:&lt;br /&gt;
 cd ../../level2/f256&lt;br /&gt;
 make dsk&lt;br /&gt;
&lt;br /&gt;
This produces the following disk images for the F256 Jr and the F256K:&lt;br /&gt;
&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_sd.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_sd.dsk&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;dw&#039;&#039; disk images are for booting from DriveWire. The &#039;&#039;sd&#039;&#039; disk image are for booting from the SD card. You need to write the images onto an SD card, then insert the SD card into the F256 and restart.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to image the SD card.&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
On Linux, insert the SD card into your computer. Ttype &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; to find the correct device and replace &#039;&#039;sdx&#039;&#039; on the command line below with it:&lt;br /&gt;
&lt;br /&gt;
 dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;sdx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== macOS ====&lt;br /&gt;
On macOS, insert the SD card into your Mac. A dialog will likely appear telling you that the disk you attached isn&#039;t readable. Click the &amp;quot;ignore&amp;quot; button, then type &amp;lt;code&amp;gt;diskutil list external&amp;lt;/code&amp;gt; to obtain the device name of the SD card and replace &#039;&#039;diskx&#039;&#039; on the command line below with it:&lt;br /&gt;
 sudo dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
Once the command completes, type:&lt;br /&gt;
 diskutil eject /dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
You can then safely remove the SD card.&lt;/div&gt;</summary>
		<author><name>Strick9</name></author>
	</entry>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=425</id>
		<title>OS-9</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=425"/>
		<updated>2024-06-26T21:40:28Z</updated>

		<summary type="html">&lt;p&gt;Strick9: specify that my flash command is for the Jr&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The FNX6809 combined with the F256 makes a great system for running OS-9/6809. [[wikipedia:OS-9|OS-9]] is a real-time, embedded operating system created by [[wikipedia:Microware|Microware Systems Corporation]]. While it was used in many areas of industry, home computer users know it best for its implementation on the [[wikipedia:TRS-80_Color_Computer|Tandy Color Computer]] sold by Radio Shack&lt;br /&gt;
&lt;br /&gt;
Today, a community effort has led to the creation of [https://github.com/nitros9project/nitros9 NitrOS-9], an open source version of the OS-9 operating system. Throughout this page, I&#039;ll refer to NitrOS-9 as OS-9.&lt;br /&gt;
&lt;br /&gt;
== A word about platforms ==&lt;br /&gt;
This page assumes you&#039;re running on Linux or macOS. If you&#039;re using Windows, these instructions don&#039;t apply, and someone will have to step up and write steps to develop on that platform.&lt;br /&gt;
&lt;br /&gt;
== Tooling ==&lt;br /&gt;
Cross-hosted development is the fastest way to develop for the F256. For this you need the following:&lt;br /&gt;
&lt;br /&gt;
* [http://www.lwtools.ca lwtools] - an assembler/linker package&lt;br /&gt;
* [https://github.com/nitros9project/toolshed ToolShed] - a set of tools for creating disk images&lt;br /&gt;
* [https://github.com/nitros9project/nitros9 NitrOS-9] - the NitrOS-9 operating system in source form&lt;br /&gt;
* [https://github.com/pweingar/FoenixMgr FoenixMgr] - tools to load code into RAM or Flash of the F256.&lt;br /&gt;
&lt;br /&gt;
You can pull these down individually, or better yet, use [https://github.com/strickyak @strickyak]&#039;s great [https://github.com/strickyak/coco-shelf/ CoCo Shelf repository]. It has a &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; which gets all of the above and puts it in a convenient location (note that you&#039;ll have to update your shell script of choice to include the locations of the binaries in the &amp;lt;code&amp;gt;PATH&amp;lt;/code&amp;gt; environment variable).&lt;br /&gt;
&lt;br /&gt;
Here are the terminal commands for Linux and macOS to pull down all the required software:&lt;br /&gt;
 cd&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/strickyak/coco-shelf.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd coco-shelf&lt;br /&gt;
 export PATH=&amp;quot;$PATH:$HOME/coco-shelf/bin&amp;quot;&lt;br /&gt;
 make ANON=1 nitros9/done FoenixMgr/done&lt;br /&gt;
&lt;br /&gt;
(If you have a github account and your github ssh key is loaded,&lt;br /&gt;
you can omit `ANON=1` on the last command,&lt;br /&gt;
so it will check out git repositories using your github username,&lt;br /&gt;
in case you want to push changes.)&lt;br /&gt;
&lt;br /&gt;
There is a special Make target for re-flashing the F256 Jr,&lt;br /&gt;
but first time you run this command, it should fail.  &lt;br /&gt;
Then you have to edit the `port=` line in `FoenixMgr/foenixmgr.ini`&lt;br /&gt;
and run the command again (with the cable plugged in): &lt;br /&gt;
 make ANON=1 run-f256-flash&lt;br /&gt;
&lt;br /&gt;
== Building FEU and OS-9 Level 1 from scratch ==&lt;br /&gt;
FEU is the Foenix Executive Utility. It resides in flash and hosts a debugger and booters that can bring up operating systems like OS-9. FEU runs under OS-9 Level 1, so go ahead and build the entire operating system:&lt;br /&gt;
 cd nitros9&lt;br /&gt;
 export NITROS9DIR=$PWD&lt;br /&gt;
 cd level1/f256&lt;br /&gt;
 make &lt;br /&gt;
 cd feu&lt;br /&gt;
Now you can flash the image into the F256. You must have a USB cable connected to the system from your computer. Note: if you&#039;re using a Mac, you won&#039;t be able to upload code into the F256 due to the [https://www.maxlinear.com/support/design-tools/software-drivers driver manufacturer] being so behind on updates. You can use a Linux VM and FoenixMgr tools in bridge mode on the Mac.&lt;br /&gt;
&lt;br /&gt;
There are distinct builds of FEU for the F256 Jr and the F256K. Power up the machine, then select the correct command:&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256jr&lt;br /&gt;
or&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256k&lt;br /&gt;
Once the flash completes, restart the machine and FEU should come up.&lt;br /&gt;
&lt;br /&gt;
== Building OS-9 Level 2 ==&lt;br /&gt;
To build OS-9 Level 2, run these commands:&lt;br /&gt;
 cd ../../level2/f256&lt;br /&gt;
 make dsk&lt;br /&gt;
&lt;br /&gt;
This produces the following disk images for the F256 Jr and the F256K:&lt;br /&gt;
&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_sd.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_sd.dsk&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;dw&#039;&#039; disk images are for booting from DriveWire. The &#039;&#039;sd&#039;&#039; disk image are for booting from the SD card. You need to write the images onto an SD card, then insert the SD card into the F256 and restart.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to image the SD card.&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
On Linux, insert the SD card into your computer. Ttype &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; to find the correct device and replace &#039;&#039;sdx&#039;&#039; on the command line below with it:&lt;br /&gt;
&lt;br /&gt;
 dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;sdx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== macOS ====&lt;br /&gt;
On macOS, insert the SD card into your Mac. A dialog will likely appear telling you that the disk you attached isn&#039;t readable. Click the &amp;quot;ignore&amp;quot; button, then type &amp;lt;code&amp;gt;diskutil list external&amp;lt;/code&amp;gt; to obtain the device name of the SD card and replace &#039;&#039;diskx&#039;&#039; on the command line below with it:&lt;br /&gt;
 sudo dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
Once the command completes, type:&lt;br /&gt;
 diskutil eject /dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
You can then safely remove the SD card.&lt;/div&gt;</summary>
		<author><name>Strick9</name></author>
	</entry>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=424</id>
		<title>OS-9</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=OS-9&amp;diff=424"/>
		<updated>2024-06-26T21:23:31Z</updated>

		<summary type="html">&lt;p&gt;Strick9: /* Tooling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The FNX6809 combined with the F256 makes a great system for running OS-9/6809. [[wikipedia:OS-9|OS-9]] is a real-time, embedded operating system created by [[wikipedia:Microware|Microware Systems Corporation]]. While it was used in many areas of industry, home computer users know it best for its implementation on the [[wikipedia:TRS-80_Color_Computer|Tandy Color Computer]] sold by Radio Shack&lt;br /&gt;
&lt;br /&gt;
Today, a community effort has led to the creation of [https://github.com/nitros9project/nitros9 NitrOS-9], an open source version of the OS-9 operating system. Throughout this page, I&#039;ll refer to NitrOS-9 as OS-9.&lt;br /&gt;
&lt;br /&gt;
== A word about platforms ==&lt;br /&gt;
This page assumes you&#039;re running on Linux or macOS. If you&#039;re using Windows, these instructions don&#039;t apply, and someone will have to step up and write steps to develop on that platform.&lt;br /&gt;
&lt;br /&gt;
== Tooling ==&lt;br /&gt;
Cross-hosted development is the fastest way to develop for the F256. For this you need the following:&lt;br /&gt;
&lt;br /&gt;
* [http://www.lwtools.ca lwtools] - an assembler/linker package&lt;br /&gt;
* [https://github.com/nitros9project/toolshed ToolShed] - a set of tools for creating disk images&lt;br /&gt;
* [https://github.com/nitros9project/nitros9 NitrOS-9] - the NitrOS-9 operating system in source form&lt;br /&gt;
* [https://github.com/pweingar/FoenixMgr FoenixMgr] - tools to load code into RAM or Flash of the F256.&lt;br /&gt;
&lt;br /&gt;
You can pull these down individually, or better yet, use [https://github.com/strickyak @strickyak]&#039;s great [https://github.com/strickyak/coco-shelf/ CoCo Shelf repository]. It has a &amp;lt;code&amp;gt;Makefile&amp;lt;/code&amp;gt; which gets all of the above and puts it in a convenient location (note that you&#039;ll have to update your shell script of choice to include the locations of the binaries in the &amp;lt;code&amp;gt;PATH&amp;lt;/code&amp;gt; environment variable).&lt;br /&gt;
&lt;br /&gt;
Here are the terminal commands for Linux and macOS to pull down all the required software:&lt;br /&gt;
 cd&lt;br /&gt;
 git clone &amp;lt;nowiki&amp;gt;https://github.com/strickyak/coco-shelf.git&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 cd coco-shelf&lt;br /&gt;
 export PATH=&amp;quot;$PATH:$HOME/coco-shelf/bin&amp;quot;&lt;br /&gt;
 make ANON=1 nitros9/done FoenixMgr/done&lt;br /&gt;
&lt;br /&gt;
(If you have a github account and your github ssh key is loaded,&lt;br /&gt;
you can omit `ANON=1` on the last command,&lt;br /&gt;
so it will check out git repositories using your github username,&lt;br /&gt;
in case you want to push changes.)&lt;br /&gt;
&lt;br /&gt;
There is a special Make target for re-flashing the F256,&lt;br /&gt;
but first time you run this command, it should fail.  &lt;br /&gt;
Then you have to edit the `port=` line in `FoenixMgr/foenixmgr.ini`&lt;br /&gt;
and run the command again (with the cable plugged in): &lt;br /&gt;
 make ANON=1 run-f256-flash&lt;br /&gt;
&lt;br /&gt;
== Building FEU and OS-9 Level 1 from scratch ==&lt;br /&gt;
FEU is the Foenix Executive Utility. It resides in flash and hosts a debugger and booters that can bring up operating systems like OS-9. FEU runs under OS-9 Level 1, so go ahead and build the entire operating system:&lt;br /&gt;
 cd nitros9&lt;br /&gt;
 export NITROS9DIR=$PWD&lt;br /&gt;
 cd level1/f256&lt;br /&gt;
 make &lt;br /&gt;
 cd feu&lt;br /&gt;
Now you can flash the image into the F256. You must have a USB cable connected to the system from your computer. Note: if you&#039;re using a Mac, you won&#039;t be able to upload code into the F256 due to the [https://www.maxlinear.com/support/design-tools/software-drivers driver manufacturer] being so behind on updates. You can use a Linux VM and FoenixMgr tools in bridge mode on the Mac.&lt;br /&gt;
&lt;br /&gt;
There are distinct builds of FEU for the F256 Jr and the F256K. Power up the machine, then select the correct command:&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256jr&lt;br /&gt;
or&lt;br /&gt;
 cd feu&lt;br /&gt;
 make flash_f256k&lt;br /&gt;
Once the flash completes, restart the machine and FEU should come up.&lt;br /&gt;
&lt;br /&gt;
== Building OS-9 Level 2 ==&lt;br /&gt;
To build OS-9 Level 2, run these commands:&lt;br /&gt;
 cd ../../level2/f256&lt;br /&gt;
 make dsk&lt;br /&gt;
&lt;br /&gt;
This produces the following disk images for the F256 Jr and the F256K:&lt;br /&gt;
&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256jr_sd.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_dw.dsk&lt;br /&gt;
 NOS9_6809_L2_v030300_f256k_sd.dsk&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;dw&#039;&#039; disk images are for booting from DriveWire. The &#039;&#039;sd&#039;&#039; disk image are for booting from the SD card. You need to write the images onto an SD card, then insert the SD card into the F256 and restart.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s how to image the SD card.&lt;br /&gt;
&lt;br /&gt;
==== Linux ====&lt;br /&gt;
On Linux, insert the SD card into your computer. Ttype &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt; to find the correct device and replace &#039;&#039;sdx&#039;&#039; on the command line below with it:&lt;br /&gt;
&lt;br /&gt;
 dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;sdx&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== macOS ====&lt;br /&gt;
On macOS, insert the SD card into your Mac. A dialog will likely appear telling you that the disk you attached isn&#039;t readable. Click the &amp;quot;ignore&amp;quot; button, then type &amp;lt;code&amp;gt;diskutil list external&amp;lt;/code&amp;gt; to obtain the device name of the SD card and replace &#039;&#039;diskx&#039;&#039; on the command line below with it:&lt;br /&gt;
 sudo dd if=NOS9_6809_L2_v030300_f256k_sd.dsk of=/dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
Once the command completes, type:&lt;br /&gt;
 diskutil eject /dev/&#039;&#039;diskx&#039;&#039;&lt;br /&gt;
You can then safely remove the SD card.&lt;/div&gt;</summary>
		<author><name>Strick9</name></author>
	</entry>
</feed>