Difference between revisions of "Pinecil Firmware"
Line 66: | Line 66: | ||
== Update V2: Linux and Mac == | == Update V2: Linux and Mac == | ||
{{Note|Do not use the DC barrel jack while updating firmware or you may destroy your PC and Pinecil.}} | |||
# For V2, download the CLI [https://github.com/pine64/blisp#how-to-update-pinecil-v2 Blisp Flasher] from Github; get the latest zip file for Linux or Mac. The main page has background info and there are instructions if you want to [https://github.com/pine64/blisp/wiki/Update-Pinecil-V2 build it from code] instead of using the premade executable. | # For V2, download the CLI [https://github.com/pine64/blisp#how-to-update-pinecil-v2 Blisp Flasher] from Github; get the latest zip file for Linux or Mac. The main page has background info and there are instructions if you want to [https://github.com/pine64/blisp/wiki/Update-Pinecil-V2 build it from code] instead of using the premade executable. |
Revision as of 20:44, 13 April 2023
This article is about updating/flashing the Pinecil firmware.
Overview
The firmware that comes with the Pinecil is open source Ralim's IronOS. It's a good idea to check for updates regularly as development is very active and there may be enhancements or bug fixes.
Depending on whether you have a Pinecil V1 or V2, they are updated using different flashers since they have completely different MCU chip (brains). The V1 is any pinecil sold up to July 2022 (has a blue thumb grip). The V2 is any pinecil sold after Aug 1, 2022 (has a green thumb grip). If you don't have the two models mentioned, then you might not have an authentic pinecil. This aritcle is designed and tested on authentic pinecils only.
- Go to the appropriate section below depending on if you have a V1 or V2 model.
- Long hold down
[-]
to see the current firmware version installed. - It is very hard to brick a Pinecil doing a firmware update because of the firmware is in ROM. Usually, just re-flashing it fixes it. Even if the other firmware caused the screen to go black, one could connect, put the Pinecil into flash mode, and flash again to an older or newer version of firmware or a beta version.
- Pinecil V1 only uses *.hex files for both firmware and boot logo art.
- Pinecil V2 uses only *.bin files for firmware.
Flash Mode
Both V1 and V2 connect to the PC/laptop and enter the Flash mode the same way for updating purposes:
- Plug one end of the Usb cable to the PC/laptop.
- Long hold the
[-]
button before plugging the USB-C cable into the back of the Pinecil. Keep holding down the[-]
for ~10-15 seconds after plugging in the cable, then release the button. - Screen should be black/empty which means Pinecil is in Flashing Mode. If you have issues, try again, do not plug the USB-C cable into Pinecil until you first press & hold the
[-]
button. Flip the cable over or try another port/cable/PC if you still have issues. - Unlike irons from other brands, Pinecil will not show in the PC as a USB data drive. On Windows, you will hear a single beep when connected in flash mode.
- Then use one of the flasher methods below based on the OS you have in order to flash new firmware (older V1 instructions are lower down here).
Update V2: Windows
- Blisp runs in a CLI (command line interface or terminal) like Powershell which is already installed on most Windows PC. For using BLISP only a couple basic terminal commands are needed such as
cd
to change directories and the commands will be listed below. - Can install newest Powershell from here.
- Rick click and run Powershell as administrator.
- Enter this command `C:\> Set-ExecutionPolicy RemoteSigned` to enable powershell permissions. It only needs to be done one time and should persist on reboots.
- Check that Powershell has correct permissions,enter `Get-ExecutionPolicy -list`
- LocalMachine should be RemoteSigned.
- For V2, download the Blisp Flasher here.
- Next download the newest firmware, release here. Scroll down to the bottom of the page, under Assets, get the Pinecilv2.zip.
- Right click on all zip files > properties, and check "Unblock" if present to unblock them, then extract the Blisp zip and the Pinecilv2 zip screenshot of Unblock here. If you don't see "Unblock" then keep going.
- From the Pinecilv2 folder you extracted above, copy the
Pinecilv2_EN.bin
(English) file into the Blisp folder (same place as the Blisp.exe). Other languages are available, substitute thePinecil_EN.bin
file for the language file desired (follow 2-letter international language code). The Pinecil Zip can now be deleted, only the single BIN file in the language you want is used. - Run powershell as administrator.
- Now, connect the Pinecil V2 to the PC: hold down the [-] Before plugging the cable to the back of Pinecil. See (Flash Mode section for details).
- Screen on pinecil should be black/empty before proceeding; it means you are in the correct Flash mode. If you are curious, it will connect as a PORT COM device in Device Manager. If your screen is not black, then repeat the connect to PC above. If necessary, change cables or ports, or try a different PC/laptop.
- Use
cd
to change to the Blisp folder (location of blisp.exe and Pinecil_EN.bin).#example change to location of blisp folder
PS C:\> cd G:\Users\name\Downloads\blisp\
- Execute this line (can replace the EN file name with the language bin selected).
#Type the .\ (dot and slash) or it will fail to find the files!
.\blisp.exe write -c bl70x --reset .\Pinecilv2_EN.bin
- After update, unplug and reboot it, then hold down
[-]
for ~3 seconds to see the new version. - See troubleshooting down below if it does not flash.
Bluetooth (BLE) Apps
- First, update firmware to Ralim's IronOS 2.21 or higher. 2.21 is the first stable release that has BLE support built-in for Pinecil V2. Before 2.21, only beta BLE versions of IronOS firmware worked with BLE apps.
- To test V2 with Bluetooth (BLE), get the PineSAM app here or try Joric's BLE website here. These BLE apps are also listed in Development Projects
- Joric's BLE API may be the easiest to get started with as it does not require anything to be installed. It runs off Chrome-like browsers (since they are capable of BLE GATT) and shows a graph of Temperature/Watts (MacOS/iPhone not supported).
- PineSAM is BLE Settings and Menus and will run on any major OS. It allows change of all settings, and can be controlled from Mac, Linux, Windows, iPhone, Android and more; needs python script running as back end. For easy phone connection just open a browser address http://<ipaddress of PC running script>:8080/ (see PineSAM website for details)
Update V2: Linux and Mac
- For V2, download the CLI Blisp Flasher from Github; get the latest zip file for Linux or Mac. The main page has background info and there are instructions if you want to build it from code instead of using the premade executable.
- Extract the Blisp zip, and using a terminal,
cd
to the blisp folder. - Download the latest stable Pinecilv2.zip release (scroll down to the Assets section, get the Pinecilv2.zip).
- Extract the zip file and put
Pinecilv2_EN.bin
(for English) into the Blisp folder (same place as the Blisp executable). Other languages are available, substitute the *EN.bin file for the language file desired (use the 2-digit international language code). If you have the Pinecil Zip, the rest could be deleted, only the single BIN file is needed. Select the appropriate two-letter code for your language. If you accidentally flash *.dfu file on your Pinecil, it will not boot or work - be sure to only use the BIN file. - Connect the V2 to the PC and enter Flash mode: hold down the [-] before plugging the cable to the back of Pinecil. See ( Flash Mode section for details). If you are curious on Linux, it will connect as a serial ttyACM USB ACM type device.
- Screen on pinecil should be black/empty before proceeding or you are not in Flash mode.
- Blisp must have executable permission set.
cd
to the Blisp folder andls -l
to check permissions of blisp.- Make blisp executable:
chmod +x ./blisp
- Then execute:
sudo ./blisp write -c bl70x --reset Pinecilv2_EN.bin
11. After a successful update, unplug and reboot it, then hold down [-]
for ~2 seconds to see the new version.
12. See troubleshooting down below if it does not flash.
13. To Test V2 with BLE Apps, see BLE Bluetooth here.
Troubleshoot V2 Flashing
- Double check that the command is typed exactly, e.g., in Windows, the dot\slash
.\
can not be skipped. - For Windows, instead of powershell, try command (right click, run as administrator) and move into the blisp folder example commands.
- Often, updating issues are related to the USB cable, or the port on the PC does not support a connection to Pinecil, try:
- flipping the cable over, different cables. Try both use-C to C cables and also USB-C to USB-A cables (your cable may be power-only and not able to do firmware data transfers). All working usb-C to usb-C cables can do data transfer but some USB-A cables can only do power and will not work for firmware updates because they can not do data transfers.
- Try other ports on the PC/laptop, or a different machine. There have been issues with some laptop USB-C ports not negotiating correctly, but the flashing worked using the USB-A port. Try a different OS if you can access one, some people who had issues on Linux for example were able to flash on Windows. Note that some virtual environments might have an issue with flashing to USB ports.
- Don't use a hub, connect directly to a port, ports on the back of a PC may sometimes be better as they are directly connected to the motherboard.
- Follow the Flash mode instructions and make sure the [-] button is held down BEFORE plugging in the cable to the back of the Pinecil. And don't release for ~10 seconds.
- If that doesn't work try holding down the
[-]
the whole time (don't let go of the button). - Blisp flashers are from Gamiee's open source Blisp code here. It is only an updater for the BL706 MCU on the Pinecil V2. It is separate from the firmware files needed which are in located in GitHub Ralim's IronOS. The firmware contains all the menus, functions, and languages, and the flasher is the tool to push the firmware onto the MCU chip (the brain). Different MCU's need different flasher tools.
- If you have issues completing the update, try joining the live Pinecil community chat to get tips from volunteers.
- If there was any special work-around you had to do to get the Blisp Flasher to work, or could not get it to work at all, post an Issue in Github Blisp.
- If you are running Windows in a virtual machine and the process fails, make sure you have Microsoft Visual C++ 2015-2022 installed.
- All firmware releases and betas are located in the GitHub Ralim's IronOS here. If you would like to add enhancements/features to the IronOS (firmware that runs the Pinecil) or have an issue, please look at the GitHub documents or submit an issue ticket. It is recommended to read through all the GitHub IronOS documents first as they may have the answers. Screen menus and troubleshooting is documented as well on IronOS and maintained by volunteers.
Build the Blisp Flasher from Code
- If there is a problem with the Blisp flasher, or you have a different Linux architecture like ARM, the Blisp can be built from code.
- See directions at GitHub Blisp Wiki page.
- Blisp will only work on Pinecil V2 or devices with Bouffalo BL70x MCU chips.
Update V1
- Pinecil V1 uses a *.dfu file type for firmware. The newer Pinecil V2 only uses *.bin firmware type files.
- Boot logo art: the same flashers used to install IronOS firmware can be used to install the art. Boot logo art will not overwrite the firmware, it resides in a separate space on the chip.
V1 Windows or Mac
- Follow these instructions on GitHub and download the easy GUI updater app Pine64 Updater.
- Install the app, and follow the screen prompts which requires connecting the Pinecil to the PC.
- Connect the Pinecil to the PC by holding down the [-] before plugging the cable into the back of Pinecil. Keep holding down the [-] button for about ~10 seconds even after plugging in the cable.
- Screen on Pinecil should be black/empty before proceeding or you are not in Flash mode. Repeat the steps if needed. If that does not work, flip the cable, try a new cable, or port or different PC, then see the Troubleshooting section.
- The app will automatically fetch the latest stable Ralim's IronOS firmware, pick the language desired from the drop down list.
- The app also allows browsing to a local folder to install a specific beta firmware file or a boot logo that you may have downloaded or created.
- If multiple firmware flashing is done, the app must be closed and reopened.
V1 Linux or Mac
- Option 1 for Linux, the simple command line DFU-Util can be used per IronOS instructions. Make sure to update to the newest DFU-Util to prevent issues that some members reported with older versions of DFU-util.
- Option 2 works for both Linux or Mac. Download the alternative Pineflash GUI App for Linux and Mac.
- Connect the Pinecil to the PC by holding down the [-] before plugging the cable into the back of Pinecil. Keep holding down the [-] button for about ~10 seconds even after plugging in the cable.
- Screen on Pinecil should be black/empty before proceeding or you are not in Flash mode. If that does not work, flip the cable, try a new cable, or port or different PC, then see the Troubleshooting section.
- PineFlash app will automatically fetch the latest stable Ralim's IronOS firmware, pick the language desired from the drop down list.
- Pineflash app also allows browsing to a local folder to install a specific beta firmware file or a boot logo that you may have downloaded or created.
General Firmware Details
- Do not use the DC barrel jack while updating firmware or you may destroy your PC and Pinecil. Pinecil is designed to only use one power port at a time and never both at the same time.
- Get the beta and release firmware from GitHub with update instructions
- To submit a feature request, or help Ralim enhance the code, create a ticket or start a discussion at Ralim's IronOS
- Ben (ralimtek) supports IronOS out of love for the IronOS creative open community. He volunteers countless hours coding, debugging, and enhancing IronOS with all the feature requests submitted.
- To give some love back, donate to IronOS; buy Ralim a coffee/kofi or donate here.
- One advantage of Pinecil (V1/V2) over other irons (i.e., Miniware) is you can not really brick them since Pinecil's bootloader is in ROM. If there is a problem, just flash the firmware again or a different version. This empowers people to experiment and do forks of the main IronOS firmware without as much risk.
- Problems with IronOS firmware? - read documents here. If the answer is not found, open a ticket here or join the live Pinecil community chat.