Giter Club home page Giter Club logo

berryconverter's Introduction

BerryConverter

Berryboot image conversion script, berryboot converter.

Prerequisites:

A regular Linux desktop computer that has kpartx and mksquashfs installed.

Setup

copy berryboot_conv.sh in a folder of your choice togheter with the Raspberry image file. Change the script permission to executable with:

chmod 755 berryboot_conv.sh

Usage:

./berryboot_conv.sh <name_image_to_convert> <name_converted_image>

Example:

./berryboot_conv.sh raspios.img raspios_berry.img

The converted image file can be copied to a USB stick and then choosen to be installed in berryboot. The converted image can be used also in a local network repository.

BerryConverter GUI (Beta)

Prerequisites:

A regular Linux desktop computer that has kpartx and mksquashfs installed along with Python3

Setup

Copy the file berryconv_gui.py in a folder of your choice, open a terminal in the same location and lunch it as below:

python3 berryconv_gui.py

  1. Use the button "Source IMG" to select the source image to be converted
  2. Use the button "Converted IMG" to select the destination folder and img file name (default is the source name + "_bb")
  3. Click on "Convert"to start the conversion, the sudo password will be requested in the opened terminal.
  4. wait for the process to finish.

berryconverter's People

Contributors

kingo71 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

berryconverter's Issues

Failed to start Remount root and Kernel File systems

I got this error during boot system with BerryBoot.
Failed to start Remount root and Kernel File systems

Steps:

  1. I downloaded official image from Ubuntu 20.04 Server arm64 https://cdimage.ubuntu.com/releases/20.04.2/release/ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz
  2. I converted this file with unxz command:
    unxz ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz
  3. I converted image with your script:
    ./berryboot_conv.sh ubuntu-20.04.2-preinstalled-server-arm64+raspi.img ubuntu-20.04.2-arm64.berryboot.img
  4. I copied this final image to usb stick and add it simply to berryboot.

Do you know how to fix this problem?

Converting images

Hello happy new year
I used your script to convert the last 2 raspbian buster images desktop and cli version,the conversion finished without errors.
Upon running and trying to install for example hdparm in cli i got an dpkg error about that libpython3.7 is an empty directory,i tried to install other things also and get the same error

Any help??

Thanks in advance

Convert Chromium OS image?

Hi I've been working to try to convert Chromium OS to BerryBoot image.
root@server:/home/user# kpartx -av chromiumos_image_r92r2-rpi4b.img add map loop7p1 (253:1): 0 8388717 linear 7:7 4612096 add map loop7p2 (253:2): 0 49152 linear 7:7 20480 add map loop7p3 (253:3): 0 4194304 linear 7:7 417792 add map loop7p4 (253:4): 0 49152 linear 7:7 69632 add map loop7p5 (253:5): 0 4096 linear 7:7 413696 add map loop7p6 (253:6): 0 1 linear 7:7 16448 add map loop7p7 (253:7): 0 1 linear 7:7 16449 add map loop7p8 (253:8): 0 32768 linear 7:7 118784 add map loop7p9 (253:9): 0 1 linear 7:7 16450 add map loop7p10 (253:10): 0 1 linear 7:7 16451 add map loop7p11 (253:11): 0 16384 linear 7:7 64 add map loop7p12 (253:12): 0 131072 linear 7:7 282624

It's creating a tiny .img file as output, only 4k.

berryconv_gui.py changes source image

$ sudo dcfldd if=/dev/sdb of=$(date +%Y%m%d)Xub20p04RPi3BplusHAL3.img
479744 blocks (14992Mb) written.
479744+0 records in
479744+0 records out
$ sudo sync
$ ls -alt *.img
-rw-r--r-- 1 root root 15720251392 Apr 27 16:42 20210427Xub20p04RPi3BplusHAL3.img
$ sudo dcfldd if=/dev/sdb vf=20210427Xub20p04RPi3BplusHAL3.img
Total: Match

$ sudo md5sum /dev/sdb 20210427Xub20p04RPi3BplusHAL3.img
185eb0ba37e247f08ded4a5aacd6b7c4  /dev/sdb
185eb0ba37e247f08ded4a5aacd6b7c4  20210427Xub20p04RPi3BplusHAL3.img

(Deploying berryconv_gui.py with source 20210427Xub20p04RPi3BplusHAL3.img)

$ ls -alt 20210427Xub20p04RPi3BplusHAL3_bb.img
-rw-r--r-- 1 root root 5159284736 Apr 27 18:08 20210427Xub20p04RPi3BplusHAL3_bb.img
$ md5sum 20210427Xub20p04RPi3BplusHAL3*.img
113b55dff49b0c9332ade62fa6efa4d3  20210427Xub20p04RPi3BplusHAL3_bb.img
592640bb29afa5e864e96e74b45245fe  20210427Xub20p04RPi3BplusHAL3.img
$ ls -alt 20210427Xub20p04RPi3BplusHAL3.img
-rw-r--r-- 1 root root 15720251392 Apr 27 19:10 20210427Xub20p04RPi3BplusHAL3.img

After using berryconv_gui.py the source length agrees but MD5SUM has changed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.