Executing from alternative partitions

Discussion and questions about programming with Ultibo.
procount
Posts: 2
Joined: Mon Mar 04, 2019 12:15 am

Executing from alternative partitions

Postby procount » Mon Mar 04, 2019 12:33 am

Hi @Ultibo team.

I am the author of PINN for multi-booting different OSes. A user asked for some help porting IchigoJam Basic to be installed by NOOBS/PINN as his converted version would not run properly, producing some "File Error".
I noticed that Ultibo was mentioned in the credits, so I'm assuming it is an Ultibo project.

So could you tell me if (in general) there is any limitation with Ultibo projects running from an alternative partition other than /dev/mmcblk0p1 (say /dev/mmcblk0p6 or /dev/sda6 for examples)?
If not I guess it is more an issue with IchigoJam Basic itself.

Thanks for your time.
ProCount.
User avatar
Ultibo
Site Admin
Posts: 2208
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Executing from alternative partitions

Postby Ultibo » Mon Mar 04, 2019 2:10 am

procount wrote:So could you tell me if (in general) there is any limitation with Ultibo projects running from an alternative partition other than /dev/mmcblk0p1 (say /dev/mmcblk0p6 or /dev/sda6 for examples)?
If not I guess it is more an issue with IchigoJam Basic itself.

Hi ProCount,

There is nothing we know of in Ultibo that is dependent on being loaded from a specific partition, we rely on the Pi firmware to load our kernel image and pass all the relevant information during boot, access to disks, partitions and filesystems is optional and is loaded later in the boot process.

Happy to help so if you find anything that appears to point to an Ultibo issue please let us know.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Executing from alternative partitions

Postby Gavinmc42 » Mon Mar 04, 2019 2:54 am

I think it is commandline.txt that points the bootloader to the kernel file?
Been so long since I used that ;)
I think there is also the option of different drives etc

I should have a play with that, it is on my list to get Ultibo booting from network drives.
Too many of my SD cards are getting worn out that I need to try this again.
procount
Posts: 2
Joined: Mon Mar 04, 2019 12:15 am

Re: Executing from alternative partitions

Postby procount » Mon Mar 04, 2019 11:12 am

@Ultibo - Thanks, I suspected that, so I'll have to contact the IchigoJam team next.

@Gavinmc42 - Yes, sometimes the kernel and rootfs are specified in cmdline.txt for Linux systems, but this is not necessarily the case for UBoot based systems, or more bare-metal type systems such as Ultibo. In the IchigoJam case there is no cmdline.txt and config.txt is not helpful either. With it being more bare-metal I suspect everything is rolled up into the kernel.img file, but IchigoJam has some additional bin files which I think it is trying to load from the wrong partition.
pik33
Posts: 857
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Executing from alternative partitions

Postby pik33 » Tue Mar 05, 2019 5:39 am

In a multidrive environment in Ultibo if one uses drive letters, they may change from boot to boot. And the boot partition don't have to be ''C:\" If the project uses more files AND drive letters to access them, it has to detect where these file are.
PaulBreneman
Posts: 25
Joined: Thu May 12, 2016 3:35 am

Re: Executing from alternative partitions

Postby PaulBreneman » Sun May 05, 2019 9:54 pm

Gavinmc42 wrote:I think it is commandline.txt that points the bootloader to the kernel file?
Been so long since I used that ;)
I think there is also the option of different drives etc

I should have a play with that, it is on my list to get Ultibo booting from network drives.
Too many of my SD cards are getting worn out that I need to try this again.


Please let us know about what you figure out! I hope to dual boot NOOBS and update this old page soon (NOOBS near bottom): http://turbocontrol.com/easyultibo.htm
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Executing from alternative partitions

Postby Gavinmc42 » Mon May 06, 2019 5:19 am

Paul, NOOBs seems a bit restrictive or the converse, too inclusive ;)

pik33's solution is the more interesting one at the moment.
viewtopic.php?f=9&t=404&p=2147&hilit=microdos#p2147
This method of self hosting is able to use Raspbian as the host OS.
Now that there is a lite Desktop version, I need to re-look at this way.
Especially now I know how VNC works ;)

The way I have been using PiCore Linux on Pi's is three partitions, Boot, OS, Data.
This has been command line only.
I have yet to figure out how to get Laz/FPC on PiCore.

Some nice links on that page
Gavinmc42
Posts: 1589
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Executing from alternative partitions

Postby Gavinmc42 » Mon May 06, 2019 11:19 am

PINN ia not Noobs.
https://github.com/procount/pinn

I have used neither, time to learn how they works?
PaulBreneman
Posts: 25
Joined: Thu May 12, 2016 3:35 am

Re: Executing from alternative partitions

Postby PaulBreneman » Mon May 06, 2019 1:02 pm

Gavinmc42 wrote:PINN ia not Noobs.
https://github.com/procount/pinn

I have used neither, time to learn how they works?


Thanks for all of your comments! I hope to investigate PINN more:
https://github.com/procount/pinn/wiki/How-to-Create-a-Multi-Boot-SD-card-out-of-2-existing-OSes-using-PINN

Best Regards,
Paul
http://www.ControlPascal.com

Return to “General”

Who is online

Users browsing this forum: No registered users and 0 guests