pbreneman wrote: ↑Sat Sep 28, 2019 3:05 pm
I've now used PINN Lite to install only Raspbian Lite (on a zero wireless) and compiled Ultibo and it's Hello World program (see wiki page above for details). I now hope to change PINN to boot a second OS (not really an OS but the Ultibo Hello World program) on the same SD card. Can anyone help me?
Sorry, I've not had time to look at this for you yet.
Unfortunately, it's not easy to add more OSes after you installed them since it allocates the whole of the SD card to all the OSes that you initially install. (The projectSpaces are a way around this for most common OSes.)
The easiest way (not necessarily the best, but what I can think off the top of my head) to do this for you now is as follows:
1. Format a USB memory stick as FAT32
2. Make a directory on it called 'os' (no quotes)
3. Use PINN to backup your existing Raspbian-Lite to the USB stick (see the PINN
README.md for full details)
4.Now you have to use PINN to install your backup copy of Raspbian-lite AND a ProjectSpace.
As you have a PiZeroW, you may also need a USB hub or a usb shim at the least to attach your USB stick.
If you don't have these, an alternative is to just start again with PINN and this time install a new copy of Raspbian-Lite AND a ProjectSpace. If you can copy your ultibo files first and then restore them to the new copy afterwards, that may be just as good.
The idea is to use the BOOT partition of your ProjectSpace for your ultibo projects, but you have to tell PINN this ProjectSpace is now in use.
From PINN. press ctrl-alt-F2 and login with username=root, password=raspberry.
Then:
Code: Select all
cd \settings
cp installed_os.json installed_os.bak
nano installed_os.json
The installed_os.json must be in valid JSON format, so please try to keep all synta the same, otherwise PINN may not work, hence the command to backup it first above, so you can recover if you make a mistake.
You should see two entries in there: one for RaspbianLite and the other for ProjectSpace1.
In the ProjectSpace1 entry, IIRC, you need to change bootable to TRUE for the entry to be visinble in PINN's Bootmenu.
Here you can also change the name (to Ultibo?) and maybe the description to something more useful.
Make a note of the 2 partition references used for this ProjectSpace/Ultibo. the first one is the partition nuber that you will use to store your new Ultibo programs on, so you would mount it from Raspbian Lite and store all necessary firmware, boot and ultibo files that you need.
Save it and reboot.
Sorry these are brief instructions. I may make a specific Ultibo installer when I have more time.