Giter VIP home page Giter VIP logo

gadget_cdrom's Introduction

gadget_cdrom

Requirements

Description

Usage

  • You can switch between HDD mode, virtual cdrom mode, and virtual flash drive mode.
  • HDD mode - in that mode your Raspberry Pi is basically USB flash drive connected to your computer.
  • CD mode - in that mode you select some iso you uploaded to Raspberry Pi in HDD mode, and the rpi will pretend to be that cdrom.
  • USB mode - the rpi will pretend to be a flash drive, presenting the usb .img you selected.

Keys

  • Key1 - Activate selected image
  • Key2 - Deactivate image
  • Key3 - Change mode
  • Joystick Down - next image
  • Joystick Up - previous image
  • Joystick Left - shutdown / power on

RPI Images

DietPi + gadget_cdrom image

There are customized DietPi images with gadget_cdrom and kernel patch for big isos in the releases section, just write it to sd-card (you can use rpi-imager, dd, etc.), turn rpi on and wait a few minutes to get everything ready.

Banana Pi M2 Zero Image

https://github.com/rzrbld/gadget_cdrom_bpi_m2_zero

Manual Installation

Install dependencies

sudo apt install -y p7zip-full python3-rpi.gpio python3-smbus python3-spidev \
                    python3-numpy python3-pil fonts-dejavu ntfs-3g

Prepare storage

# sudo ./create_image.sh
Space available: 24G
Size, e.g. 16G? 8G"
Creating 8G image...
Done!

Load modules after boot

  • Add dtoverlay=dwc2 to /boot/config.txt
  • Add dwc2 to /etc/modules
  • Enable SPI
sudo raspi-config
Interfacing Options
SPI
Yes

Install gadget_cdrom

  • Clone gadget_cdrom
cd /opt
sudo git clone https://github.com/tjmnmk/gadget_cdrom.git
  • Enable systemd service:
sudo ln -s /opt/gadget_cdrom/gadget_cdrom.service /etc/systemd/system/gadget_cdrom.service
sudo systemctl enable gadget_cdrom.service
  • reboot rpi
sudo reboot

Optional

Recompile kernel for support isos bigger than ~2.5GB

gadget_cdrom's People

Contributors

tjmnmk avatar rileywilddog avatar lu1as avatar

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.