WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: boot piCore from different partition (not /dev/mmcblk0p2)  (Read 269 times)

Offline paulwratt

  • WikiUser
  • *
  • Posts: 2
boot piCore from different partition (not /dev/mmcblk0p2)
« on: April 14, 2017, 11:53:39 PM »
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

Offline polikuo

  • Full Member
  • ***
  • Posts: 185
Re: boot piCore from different partition (not /dev/mmcblk0p2)
« Reply #1 on: April 15, 2017, 12:49:28 AM »
Use boot code tce=UUID="your-uuid"
To check out UUID, run "blkid"

Offline paulwratt

  • WikiUser
  • *
  • Posts: 2
Re: boot piCore from different partition (not /dev/mmcblk0p2)
« Reply #2 on: April 15, 2017, 01: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