1
0
forked from me/IronOS

Deployed c0f1c35b with MkDocs version: 1.5.2

This commit is contained in:
github-actions[bot]
2023-08-07 23:46:18 +00:00
parent 31a1006b40
commit fba67701a6
4 changed files with 53 additions and 37 deletions

View File

@@ -81,9 +81,13 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="#flashing-the-logo">Flashing the Logo</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#miniware-ts100ts80ts80p">Miniware (TS100/TS80/TS80P)</a>
<li class="toctree-l3"><a class="reference internal" href="#upload-via-virtual-disk-ts100ts101ts80ts80ps60mhp30">Upload via virtual disk (TS100,TS101,TS80,TS80P,S60,MHP30)</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#pinecil-v1">Pinecil V1</a>
<li class="toctree-l3"><a class="reference internal" href="#upload-via-gui-flash-tool-pinecilv1v2">Upload via GUI flash tool (PinecilV1/V2)</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#upload-via-dfu-util-pinecilv1ironos-dfu">Upload via dfu-util (PinecilV1/IronOS-DFU)</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#upload-via-blisp-pinecilv2">Upload via blisp (PinecilV2)</a>
</li>
</ul>
</li>
@@ -135,45 +139,57 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="startup-logos">Startup Logos</h1>
<p>This firmware supports a user created bootup logo.
By default, there is <em>not</em> one included in the firmware. This means that once flashed they generally stay. If you want no logo again, you would have to flash a blank image to the bootup logo. </p>
<h1 id="startup-logo-animation">Startup Logo / Animation</h1>
<p>When the device starts, you can have it optionally show either a static image or an animation. You can also set if these should stay on the screen or dismiss after some amount of time.
These can be an elegant way to personalise your device or just mark it as your one at a meetup where there may be multiple.</p>
<p>All devices supported by IronOS support this logo, and follow a similar process for setting one up. Please read the below general information as well as any model specific notes.</p>
<p>Bootup logos are stored at the end of the flash storage in the Iron; next to the user settings. By locating them at the end of storage they are not erased during the normal firmware upgrade process. Once a logo is set it should stay (unless we need to change things in the main firmware); so to erase your logo you will also find that we generate an erase file. Alternatively your method of flashing <em>may</em> support doing a full erase flash which will also work for this.</p>
<h2 id="generating-the-logo-files">Generating the Logo files</h2>
<p>There are community logo's already converted and ready to use in <a href="https://github.com/Ralim/IronOS-Meta/releases">IronOS-Meta/releases</a>.
<p>Because logos are stored at a fixed location in the device's internal flash; we can use the same method to flash these as you would normal firmware.
This does also mean that we need to convert the image/animation file into the format that IronOS understands.</p>
<p>IronOS uses a pre-processed file format to dramatically reduce the amount of space required to store the image; allowing for animations and saving space.</p>
<p>In the <a href="https://github.com/Ralim/IronOS-Meta">IronOS-Meta</a> repository is a <code>python</code> script to convert images into this pre-processed file format.
Additionally, memebers of the community have contributed back their logo images as well. We provide these pre-converted for all models and ready to use in <a href="https://github.com/Ralim/IronOS-Meta/releases">IronOS-Meta/releases</a>.
Download the zip for Pinecil or Miniware and then install using the instructions in the Flashing section below.</p>
<p>If you want to make custom art then it needs to be converted with a Python script. The script and other needed files are in <a href="https://github.com/Ralim/IronOS-Meta/">IronOS-Meta</a>. Go to that folder, then it is easiest to select the green Code button (upper right), then Download Zip. This way you get all the files you need and some extras. You only need what is inside Boot Logos. Put your custom image inside the Boot Logos folder with all python script files already there.</p>
<p>The Python script converts an image passed into it on the command line into both a <code>.hex</code> file and a <code>.dfu</code> to be uploaded to the iron in DFU mode. The image can be in color and any size, but it will be resized and converted to 1-bit color. However, it looks best if you create a 96x16 image (Png or Bmp) in any image editor and color the pixels black &amp; white manually.</p>
<p>The converter requires at least Python3 and Pillow apps. Follow online instructions for installing Python and Pillow.</p>
<p>For Windows, it is recommended to use Windows PowerShell instead of Command.
Open Powershell (run as administrator), type python to install it, it will open microsoft store where you can install it free.
Go back to Powershell and install Pillow. What works can vary, but this command may work:</p>
<pre><code>python -m pip install Pillow
</code></pre>
<p>or
python3 -m pip install pillow</p>
<p>If the above does not work, see <a href="https://stackoverflow.com/a/20061019/6705343">this page</a> on StackOverflow about installing Pillow.
Now that Python and Pillow are successfuly installed, you can convert an image.</p>
<p>Go back to Powershell and type this command (change infile.png to the name of your image):</p>
<p>If you want to make custom art then it needs to be converted with the Python script.
You can checkout the repository or use the download-as-zip button in the Github web interface to download the code.</p>
<p>Inside the download code is a <code>Boot Logos</code> folder, inside here is the python script required for logo conversion.
It is easiest if you copy your logo file to be converted into this folder too, in order to keep commands shorter.</p>
<p>The image can be in color and any size, but it will be resized and converted to 1-bit color. However, it looks best if you create a 96x16 image (<code>png</code> or <code>bmp</code>) in any image editor and color the pixels black &amp; white manually. The thresholding used for converting colour to B&amp;W may not always work as well as one would hope.</p>
<p>The converter requires at least Python3 and Pillow apps. Follow online instructions for installing Python and Pillow on your machine. Any reasonably recent version should work well.</p>
<p>When running the script on the Windows operating system; it is recommended to use <code>Powershell</code> rather than the old <code>Command Prompt</code>.</p>
<p>For installing pillow; you can install it via your package manager (Debian and similar distros) or via pip. To install via pip the command should be <code>python -m pip install pillow</code>.</p>
<p>In your shell you can now execute <code>python img2logo.py input.png out -m ${model}</code> to convert the file <code>input.png</code> and create output files in the folder <code>out</code>.
The model should be replaced by one of the following options:</p>
<ul>
<li><code>python img2logo.py infile.png out -m</code> for Miniware</li>
<li><code>python img2logo.py infile.png out -p</code> for Pinecil</li>
<li><code>miniware</code> for older Miniware Irons -&gt; TS100, TS80, TS80P</li>
<li><code>pinecilv1</code> for the Pinecil V1</li>
<li><code>pinecilv2</code> for the Pinecil V2</li>
<li><code>ts101</code> for the Miniware TS101 [^1]</li>
<li><code>s60</code> for the Squire S60 [^1]</li>
<li><code>mhp30</code> for the Miniware MHP30</li>
</ul>
<p>Run <code>python img2logo.py --help</code> to see available options. Replace the word python with python3 if you have multiple versions of python installed. </p>
<p>Different models are used for different flash locations for the image storage.
This means that files are <strong>not</strong> interchangeable between devices. If you are flashing multiple devices you will need to create a different file for different models.</p>
<p>After processing its expected to have a <code>.hex</code> and <code>.dfu</code> file created to be used. Which one to use will depend on your device.</p>
<p>Note: make sure your image file is in the same folder as script files (img2logo.py, output_dfu.py, output_hex.py).</p>
<p>[^1] Note that these devices have larger resolution screens that the logo system supports right now. Fixes are coming for this soon, roughly scheduled for 2.23.</p>
<h2 id="flashing-the-logo">Flashing the Logo</h2>
<h3 id="miniware-ts100ts80ts80p">Miniware (TS100/TS80/TS80P)</h3>
<p>Upload the HEX file to the iron in DFU mode and, if the file's extension changes to .RDY, your custom splash screen should show up on startup.
You perform this the same way as if you were flashing a new firmware, and all the existing notes around this apply.</p>
<p>If you have flashed the <code>IronOS-dfu</code> alternative bootloader, you should use the <code>.dfu</code> files instead</p>
<h3 id="pinecil-v1">Pinecil V1</h3>
<p>For Pinecil V1, we require using dfu-util to flash the logo art (Pinecil does not use hex).
<a href="https://github.com/pine64/pine64_updater/releases">Pine64 Updater</a> is the easiest way to load the Bootup logo onto Pinecil as it already includes the necessary DFU library. Connect Pinecil to a PC, and open the Updater the same as updating firmware.
Select Custom &gt; Browse to the DFU image file you just made &gt; Update to install.</p>
<p>The bootup logo is stored in a separate location than the IronOS firmware and you do not have to worry about it changing or breaking the IronOS.</p>
<p>You could also use dfu-util and use Command line to install it.</p>
<ul>
<li><code>dfu-util -D logo_file.dfu</code></li>
</ul>
<h3 id="upload-via-virtual-disk-ts100ts101ts80ts80ps60mhp30">Upload via virtual disk (TS100,TS101,TS80,TS80P,S60,MHP30)</h3>
<p>If you normally update your firmware by having your device show up as a flash drive this is the method for you.
This applies to all Miniware + S60 devices running the stock DFU bootloader.</p>
<p>Place your device into update mode (usually by holding the B button when connecting your device to your pc via USB).
Upload the <code>.hex</code> file you created earlier as if it was a firmware update. Do any normal tricks required for firmware flashing if any are required.
Afterwards the firmware should indicate that it has worked (often by creating a <code>.rdy</code> file).</p>
<p>At this point unplug your iron and re-connect it to power to start normally and the logo should welcome you.</p>
<h3 id="upload-via-gui-flash-tool-pinecilv1v2">Upload via GUI flash tool (PinecilV1/V2)</h3>
<p>If you normally upload your firmware using a helper application, they should accept the files from the bootlogo the same as the normal firmware.
Try the <code>.dfu</code> file first and then the <code>.hex</code>. If neither work then the application may not be updated to be able to handle boot logos. And you may need to use a different/newer tool.</p>
<h3 id="upload-via-dfu-util-pinecilv1ironos-dfu">Upload via dfu-util (PinecilV1/IronOS-DFU)</h3>
<p>For the PinecilV1 and for any devices that have been converted to use <code>IronOS-DFU</code> as the bootloader you can flash these via the <code>dfu-util</code> command line tool.
For these flash as per usual using the <code>.dfu</code> file. Afterwards power cycle and the logo should show up.</p>
<h3 id="upload-via-blisp-pinecilv2">Upload via blisp (PinecilV2)</h3>
<p>For the PinecilV2 we suggest <code>blisp</code> as the command line tool to use if you are not using a GUI tool. <code>blsip</code> has been updated to accept <code>.dfu</code> files as well as the <code>.bin</code> files it historically used. As such you use the <code>.dfu</code> file for the logo and flash as per normal otherwise and it will work and reboot at the end. It should show you your new logo after flashing.</p>
</div>
</div><footer>

View File

@@ -339,5 +339,5 @@ When on the main screen and having the tip plugged in, the unit shows a pair of
<!--
MkDocs version : 1.5.2
Build Date UTC : 2023-08-07 11:18:29.069436+00:00
Build Date UTC : 2023-08-07 23:46:18.828779+00:00
-->

File diff suppressed because one or more lines are too long

Binary file not shown.