Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: paulwratt on April 15, 2017, 12:53:39 AM

Title: boot piCore from different partition (not /dev/mmcblk0p2)
Post by: paulwratt on April 15, 2017, 12:53:39 AM
is there are way to boot any piCore from a different partition other than the default /dev/mmcblk0p2

in raspbian (most OS) this is set in cmdline.txt: root=/dev/sda3

but TC is:  root=/dev/ram0

is it possible with generic kernel parameter like: init=/dev/mmcblk0p5

I know Pi can only have "one boot OS" (/dev/mmcblk0p1), I have script to install correct "boot OS".

What I dont have is a way to tell piCore which partition to use

/dev/mmcblk0p1 = /piCore/8.1.5/boot , /piCore/9.0beta/boot , /piCore/pCP-3.11-Au/boot
/dev/mmcblk0p5 = 8.1.5 rootfs
/dev/mmcblk0p6 = 9.0beta rootfs
/dev/mmcblk0p7 = pCP-3.11Audio rootfs
/dev/mmcblk0p3 = /home
/dev/mmcblk0p4 = swap

like I said I already have working script (that I can share) to install the correct OS boot version into the root of /dev/mmcblk0p1, but I cant use them yet because piCore wants /dev/mmcblk0p2 by default

I hunted for "generic kernel parameters", but I dont have anything yet. There are Grub examples, but "root hd(0,1)" is not what is needed here on a Pi

Please Help

Paul
Title: Re: boot piCore from different partition (not /dev/mmcblk0p2)
Post by: polikuo on April 15, 2017, 01:49:28 AM
Use boot code tce=UUID="your-uuid"
To check out UUID, run "blkid"
Title: Re: boot piCore from different partition (not /dev/mmcblk0p2)
Post by: paulwratt on April 15, 2017, 02:24:41 AM
sweet, thanks

I just uncompressed it initgz's and could find nothing, I would be at a loss right now

I saw the "tce" option but it says "Specify Restore TCE apps directory" which is why I did not explore it

guess it should work now

Cheers

Paul