Max

Re: Berryboot v1.1 - Boot menu / OS installer

Wed Aug 01, 2012 3:25 pm

RichShumaker wrote:Thank you.
I wanted something like this as I a creating a closed box Pi and won't be able to swap the chip easily.
One question as I am about to start, can you specify X amt of memory that all installs share?
So on a 16gb chip with 4 2gb OS's the other 8gb could be shared for storage. An example would be that you create a song in your Audio OS and play it on your Media Player OS both systems write to the same location.
If you start the OpenELEC media player, go to the file manager, select your SD card there so that it mounts it, and go to /data/name_of_other_operating_system/home/pi you can simply access your home directory at the other operating system.

(Linux allows a drive to have more than one mount point, so that the SD card is already mounted by Berryboot is not a problem)

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 12:46 am

Max wrote:

Code: Select all

aa8ade3406be09c7c13104b243a19ed6aac8a497  /mnt/images/Debian_Wheezy_Raspbian.img192
If you get any other code, your downloaded file is corrupt.
When downloading through the installer the integrity is automatically checked, but when you copy files manually from usb no such check can be performed, and there are a number of ways your file can get corrupted.
I suppose I could modify my image-downloader script to also write out e.g. Debian_Wheezy_Raspbian.sha1 (or Debian_Wheezy_Raspbian.img192.sha1 ?) and then Berryboot could be modified to look for this file and (if found) use it to verify the image? 8-)

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 1:19 pm

AndrewS wrote:
Max wrote:

Code: Select all

aa8ade3406be09c7c13104b243a19ed6aac8a497  /mnt/images/Debian_Wheezy_Raspbian.img192
If you get any other code, your downloaded file is corrupt.
When downloading through the installer the integrity is automatically checked, but when you copy files manually from usb no such check can be performed, and there are a number of ways your file can get corrupted.
I suppose I could modify my image-downloader script to also write out e.g. Debian_Wheezy_Raspbian.sha1 (or Debian_Wheezy_Raspbian.img192.sha1 ?) and then Berryboot could be modified to look for this file and (if found) use it to verify the image? 8-)
Could indeed add a check for a .sha1 file in the next version.

Although I'm not sure if that's waterproof either.
Haven't checked how Windows write caching works, if a user downloads the files to hard disk first, then copies them to usb stick, and removes the usb stick too soon.
Will the stick only have the first part of the .img and no .sha1? (if it copies them in alphabetical order)
Or will the stick have the first part of the .img and an empty .sha1? (if it forces file system meta data updates to disk before the data itself)

ejsolutions
Posts: 96
Joined: Fri Jun 29, 2012 2:27 pm
Location: In the sticks of Haggisland

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 2:35 pm

..and removes the usb stick too soon.
There's just no helping some Windoze lusers ;)

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 2:47 pm

ejsolutions wrote:
..and removes the usb stick too soon.
There's just no helping some Windoze lusers ;)
I surely hope that there is some way to use advanced cryptographic and holographic technology to deal with and apply data correction technology to the all-too-common problem of the dog peeing on the USB stick.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 2:59 pm

Joe Schmoe wrote: I surely hope that there is some way to use advanced cryptographic and holographic technology to deal with and apply data correction technology to the all-too-common problem of the dog peeing on the USB stick.
Puppy Linux?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 3:07 pm

heh heh!
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
Mr.Dave
Posts: 148
Joined: Sat Jun 30, 2012 6:59 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 3:12 pm

Would it be possible to add XBian to the OS selection?
http://www.raspberrypi.org/phpBB3/viewt ... 35&t=12893

Would be great to have XBian and normal Desktop distro running as dual boot

Thanks

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 3:43 pm

Mr.Dave wrote:Would it be possible to add XBian to the OS selection?
http://www.raspberrypi.org/phpBB3/viewt ... 35&t=12893

Would be great to have XBian and normal Desktop distro running as dual boot
Does it provides any clear advantages over OpenELEC which provides XBMC as well?

I am assuming the claimed higher performance is due to the overclocking used?
Berryboot doesn't currently support that as I am not convinced that is not going to cause stability issues. (elsewhere on the forum someone reported Openarena didn't work properly when overclocked)

User avatar
Mr.Dave
Posts: 148
Joined: Sat Jun 30, 2012 6:59 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 3:52 pm

Max wrote:
Mr.Dave wrote:Would it be possible to add XBian to the OS selection?
http://www.raspberrypi.org/phpBB3/viewt ... 35&t=12893

Would be great to have XBian and normal Desktop distro running as dual boot
Does it provides any clear advantages over OpenELEC which provides XBMC as well?

I am assuming the claimed higher performance is due to the overclocking used?
Berryboot doesn't currently support that as I am not convinced that is not going to cause stability issues. (elsewhere on the forum someone reported Openarena didn't work properly when overclocked)

It does seem noticeably smoother than the alternative xbmc builds, I have had no stability issues running the latest 0.3 XBian, the initial release was overclocked too high for most people and I had to manually drop the speeds, but 0.3 booted without issue and has been stable so far.

I can't vouch for Openarena, have not tried that yet, but XBian has recently included Airplay which caught peoples attention, and I believe CEC HDMI is also included in 0.3

Along with daily build updates, I have chosen it as my xbmc daily driver

Might be worth discussing with the dev if there could be a separate stock clock branch for your server to ensure maximum stability, anyone who wants to OC can do so after the install ?

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 4:24 pm

Mr.Dave wrote: It does seem noticeably smoother than the alternative xbmc builds
If you remove the overclock settings, and compare it with OpenELEC, is it still smoother?
I can't vouch for Openarena, have not tried that yet, but XBian has recently included Airplay which caught peoples attention, and I believe CEC HDMI is also included in 0.3
The other distributions have those as well.


My current preference towards OpenELEC is based on:
  • uses SquashFS file format already (you can take the SYSTEM file of an OpenELEC build and use it unmodified in Berryboot)
  • known to leave the rest of the SD card alone. (autoupdate can be easily disabled without having to dig through source code)
  • does not claim superiority over others.
I'm not opposed to adding additional flavors, but they do need to add something extra above vanilla XBMC.
If the next version of XBian comes with custom developed extra software, a custom designed skin or something else that sets it apart, I'm happy to add it.

User avatar
Mr.Dave
Posts: 148
Joined: Sat Jun 30, 2012 6:59 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 4:37 pm

Max wrote:
Mr.Dave wrote: It does seem noticeably smoother than the alternative xbmc builds
If you remove the overclock settings, and compare it with OpenELEC, is it still smoother?
I can't vouch for Openarena, have not tried that yet, but XBian has recently included Airplay which caught peoples attention, and I believe CEC HDMI is also included in 0.3
The other distributions have those as well.


My current preference towards OpenELEC is based on:
  • uses SquashFS file format already (you can take the SYSTEM file of an OpenELEC build and use it unmodified in Berryboot)
  • known to leave the rest of the SD card alone. (autoupdate can be easily disabled without having to dig through source code)
  • does not claim superiority over others.
I'm not opposed to adding additional flavors, but they do need to add something extra above vanilla XBMC.
If the next version of XBian comes with custom developed extra software, a custom designed skin or something else that sets it apart, I'm happy to add it.
I haven't tried it without an overclock yet, but that sounds fair and less unnecessary work until there is something that makes it stand out from the crowd other than it being possibly down to the OC

Thanks for the reply :)

DaRk_ViVi
Posts: 1
Joined: Thu Aug 02, 2012 4:36 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 4:38 pm

I have Raspbian Wheezy on my SD with some settings/software installed.
Is it possible to export it into an image (like using Win32DiskImages "Read" option) and the install this image from Berryboot using the Install From USB option?

User avatar
Mr.Dave
Posts: 148
Joined: Sat Jun 30, 2012 6:59 pm

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 5:43 pm

Max wrote:
Mr.Dave wrote: It does seem noticeably smoother than the alternative xbmc builds
If you remove the overclock settings, and compare it with OpenELEC, is it still smoother?
I can't vouch for Openarena, have not tried that yet, but XBian has recently included Airplay which caught peoples attention, and I believe CEC HDMI is also included in 0.3
The other distributions have those as well.


My current preference towards OpenELEC is based on:
  • uses SquashFS file format already (you can take the SYSTEM file of an OpenELEC build and use it unmodified in Berryboot)
  • known to leave the rest of the SD card alone. (autoupdate can be easily disabled without having to dig through source code)
  • does not claim superiority over others.
I'm not opposed to adding additional flavors, but they do need to add something extra above vanilla XBMC.
If the next version of XBian comes with custom developed extra software, a custom designed skin or something else that sets it apart, I'm happy to add it.

Well I have just installed OpenELEC via berryboot and the difference is very noticable (Note I can't seem to SSH into openELEC to OC it)

XBian 0.3 = nice smooth experience with 50% average CPU usage idle
openELEC = laggy and annoying with idle CPU usage maxed out constantly

The above is my personal experience and might not be the same for everyone, but the difference is really night and day between them for me.

(How can I SSH into openELEC? PuTTY just keeps saying connection refused, thanks)
Last edited by Mr.Dave on Thu Aug 02, 2012 5:47 pm, edited 1 time in total.

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 5:44 pm

DaRk_ViVi wrote:I have Raspbian Wheezy on my SD with some settings/software installed.
Is it possible to export it into an image (like using Win32DiskImages "Read" option) and the install this image from Berryboot using the Install From USB option?
There is currently not an "export" button.

But mksquashfs does support appending extra files to an existing squashfs file.
Something like this might work if done from another operating system than the one you want to image (not tested):

Code: Select all

# mount the raw disk as /mnt
sudo mount /dev/mmcblk0p2 /mnt

# go to the folder where the image files are kept
cd /mnt/images

# lets copy the existing Squashfs file to a new file
sudo cp name_of_existing_image.img  new_image.img

# the changes the user made to the file system are in /data, lets append them to new_image.img
# exclude persistent rules in /etc/udev that are specific to a single Pi
sudo mksquashfs /mnt/data/name_of_existing_image.img new_image.img -e /etc/udev/rules.d
Last edited by Max on Thu Aug 02, 2012 6:09 pm, edited 1 time in total.

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 5:52 pm

can you not just use the 'read' option of Win32 Disk Imager?

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 5:57 pm

pygmy_giant wrote:can you not just use the 'read' option of Win32 Disk Imager?
Yes, but that will result in an image file the size of your SD card.
Which might not be preferable if it's say a larger 16 GB one.

El_Presidente
Posts: 36
Joined: Tue Apr 03, 2012 7:02 am
Location: Bolton, UK

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 8:24 pm

Mightily impressed with this - fantastic work!
I'm currently booting to the Raspbian Wheezy image as downloaded via Berryboot and I'd like to use Hexxeh's rpi-update.
Tried changing the ROOT_PATH and BOOT_PATH options when running rpi-update but it seems to get tied in knots.

Is this possible? If so, anyone got instructions or advice?
-----------------------------------------------------------------------------------------
Never trust a man, who when left alone with a tea cosey, doesn't try it on.

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Thu Aug 02, 2012 8:38 pm

El_Presidente wrote:I'm currently booting to the Raspbian Wheezy image as downloaded via Berryboot and I'd like to use Hexxeh's rpi-update.
Not possible.
Berryboot uses a modified kernel with AUFS patches ( http://aufs.sourceforge.net/ ), and an initramfs with the Berryboot startup script.
The standard rPi kernel will not work.


That is also the reason the kernel is named kernel_berryboot.img instead of kernel.img, and /boot is not mounted.
To prevent anyone from overwriting it with the standard kernel by accident. ;)

ejsolutions
Posts: 96
Joined: Fri Jun 29, 2012 2:27 pm
Location: In the sticks of Haggisland

Re: Berryboot v1.1 - Boot menu / OS installer

Sun Aug 05, 2012 10:23 pm

I'm having trouble enabling bluetooth in the Foundation Raspbian, that's been booted from Berryboot. Could it be that your cutdown kernel doesn't have a bluetooth module compiled in fully, or there's a /lib/module missing?
It's a fairly common chipset:

Code: Select all

# lsusb
Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

# modprobe btusb
FATAL: Module btusb not found.
Regards,
EJ

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Mon Aug 06, 2012 9:37 pm

ejsolutions wrote:I'm having trouble enabling bluetooth in the Foundation Raspbian, that's been booted from Berryboot. Could it be that your cutdown kernel doesn't have a bluetooth module compiled in fully, or there's a /lib/module missing?
Could add the modules if there is demand.

But where do you plan to use Bluetooth for?
Be aware that native bluetooth keyboard and mouses (that do not emulate a normal USB hid keyboard/mouse) are unlikely to work in the Berryboot menu itself as we do not have anything in place to handle pairing.

ejsolutions
Posts: 96
Joined: Fri Jun 29, 2012 2:27 pm
Location: In the sticks of Haggisland

Re: Berryboot v1.1 - Boot menu / OS installer

Mon Aug 06, 2012 10:14 pm

..But where do you plan to use Bluetooth for?
In my particular case it's actually for a wiimote (I use 'the other type' of wireless keypad/trackball) and the handling of the wiimote is done within the distro, as long as the device is detected (in theory).

ejsolutions
Posts: 96
Joined: Fri Jun 29, 2012 2:27 pm
Location: In the sticks of Haggisland

Re: Berryboot v1.1 - Boot menu / OS installer

Mon Aug 06, 2012 10:17 pm

To upgrade a pre-existing SD card to the latest release of Berryboot, can you confirm which files should be overwritten? I was going to experiment but I don't fancy screwing up my quadruple boot card, if I can help it. ;) TIA

Regards,
EJ

Max

Re: Berryboot v1.1 - Boot menu / OS installer

Mon Aug 06, 2012 10:44 pm

ejsolutions wrote:To upgrade a pre-existing SD card to the latest release of Berryboot, can you confirm which files should be overwritten? I was going to experiment but I don't fancy screwing up my quadruple boot card, if I can help it.
If it is an older version (before the GUI, that has update capabilities):
  • extract the contents of the berryboot.zip to the FAT partition.
  • in cmdline.txt put "datadev=mmcblk0p2" so that it knows that the data is already on the SD card (without datadev it will start a new installation).
  • extract the contents of shared.tgz (found inside berryboot.zip) to /shared on the ext4 partition. This are the modules shared between operating systems.

ejsolutions
Posts: 96
Joined: Fri Jun 29, 2012 2:27 pm
Location: In the sticks of Haggisland

Re: Berryboot v1.1 - Boot menu / OS installer

Mon Aug 06, 2012 10:51 pm

Brilliant.
Max wrote:..If it is an older version (before the GUI, that has update capabilities)..
'Tis actually the version just prior to sorting out the SDTV dialogue box size. :)

Return to “General discussion”