WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to have multiple configurations to boot in picore+  (Read 5687 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
how to have multiple configurations to boot in picore+
« on: October 25, 2014, 10:43:16 PM »
what can be grub2 (of desktop pc) like arrangement here ?
example - i want to be asked at boot which entry i want . all entries will have different  kernel  options .

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: how to have multiple configurations to boot in picore+
« Reply #1 on: October 26, 2014, 12:59:23 AM »

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: how to have multiple configurations to boot in picore+
« Reply #2 on: October 26, 2014, 03:35:01 AM »
i meant , booting of raspberry pi b+ does not involve grub2 or similar boot loader .

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #3 on: October 26, 2014, 04:03:17 AM »
No bootloader like grub, it is an embedded system.

You must change config.txt and cmdline.txt either manually or by script (program) and reboot. You can use multiple TCE directories too. I have multiple versions on a single SD card, it works fine.
« Last Edit: October 26, 2014, 04:05:00 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
Re: how to have multiple configurations to boot in picore+
« Reply #4 on: October 26, 2014, 06:23:47 AM »
i meant , booting of raspberry pi b+ does not involve grub2 or similar boot loader .

you can use
'uboot.bin - Third stage: U-Boot loader '
**FreeBSD/ARM on Raspberry Pi is using it !

I would be intrested in "multiple configurations" via some kind of menu (if any one know a way that works, do tell )

From what little i know it might be possible with uboot
But i have thus far been to distracted to setup a test..... 

Quote
Anatomy of a Raspberry Pi Boot Image

A FreeBSD bootable image for Raspberry Pi has both FAT and UFS partitions containing the following files:

    FAT Partition
        bootcode.bin - First stage boot
        start.elf - Second stage boot
        config.txt - configuration for start.elf
        rpi.dtb - FDT file loaded via config.txt
        uboot.bin - Third stage: U-Boot loader
        uEnv.txt - configuration file for U-Boot
        ubldr - Fourth stage: FreeBSD bootloader

** https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi

** http://kernelnomicon.org/?p=133#"U-Boot for Raspberry Pi, the last step"
« Last Edit: October 26, 2014, 06:36:04 AM by mocore »

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: how to have multiple configurations to boot in picore+
« Reply #5 on: October 26, 2014, 06:39:05 AM »
Hi...

I am in for writing a script, which lets you choose kernel versions, at SSH-login prompt.

I got the main part working, but needs to figure out, howto use multible TCE -dir's (TCE-A, TCE-B etc...)
Havent dig into it yet though!

Any hint Bela' ?

Regard;
   Jesper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #6 on: October 26, 2014, 06:50:56 AM »

I got the main part working, but needs to figure out, howto use multible TCE -dir's (TCE-A, TCE-B etc...)
Havent dig into it yet though!


Use tce= command line parameter to specify it explicitely.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #7 on: October 26, 2014, 06:55:56 AM »
uboot: it would be good to have it working with piCore too as an alternative to the manistream booting. I'm busy with the base system and extensions, no time to work on uboot. Contrybutions are highly appreciated!
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: how to have multiple configurations to boot in picore+
« Reply #8 on: October 26, 2014, 07:04:19 AM »
 :)

Quote
Use tce= command line parameter to specify it explicitely.

Okay, so i simply use e.g ::

tce=/dev/mmcblk0p2/tce-a smsc95xx.turbo_mode=N dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 initrd=0xa00000,3787852 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 waitusb=5

or "default" ::

tce=/dev/mmcblk0p2/tce smsc95xx.turbo_mode=N dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 initrd=0xa00000,3787852 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 waitusb=5

well i try it out !

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #9 on: October 26, 2014, 07:12:44 AM »
By default no hardwired tce directory, system is searching mountable fat and ext partions for /tce and uses the first found. Same as on x86
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: how to have multiple configurations to boot in picore+
« Reply #10 on: October 26, 2014, 07:25:58 AM »
 8)

Quote
By default no hardwired tce directory, system is searching mountable fat and ext partions for /tce and uses the first found. Same as on x86

Multible questions then ::

1/ If i use more than one tce-dir, then i can set in cmdline.txt tce=/dev/mmcblk0p2/tce-a for boot into eg. kernel a - Will it work for default location like tce=/dev/mmcblk0p2/tce ???

2/ Do i then have to make persist in /opt/.filetool.lst eg. dev/mmcblk0p2/tce-a ?

Okay... enough for a start!

Regards;
   Jesper.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #11 on: October 26, 2014, 07:40:04 AM »
1) Yes

2) No, /mnt/mmcblk0p2 is the 2nd partition of your SD card which is persistent
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: how to have multiple configurations to boot in picore+
« Reply #12 on: October 26, 2014, 08:42:13 AM »
bmarkus ,
please ,  can you show your config.txt & cmdline.txt ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: how to have multiple configurations to boot in picore+
« Reply #13 on: October 26, 2014, 09:11:03 AM »
bmarkus ,
please ,  can you show your config.txt & cmdline.txt ?

Just the default with tce boot code, nothing special.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: how to have multiple configurations to boot in picore+
« Reply #14 on: October 26, 2014, 01:40:21 PM »
Hi...

I have been trying, without luck, to paste the tce=/dev/mmcblk0p2/tce, RPI boots, but no ethernet ???

Whats the right syntax ???

Code: [Select]
tce=/dev/mmcblk0p2/tce smsc95xx.turbo_mode=N dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 initrd=0xa00000,3787852 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 waitusb=5
Regards;
   Jesper.