Skip to content

5. Install software

Frank1119 edited this page Apr 6, 2019 · 3 revisions

Some extra software

To install the needed software enter the following:

sudo apt-get update
sudo apt-get install bc libncurses5-dev python3-gpiozero

Update your system

sudo apt-get dist-upgrade

This will take a while! There might be some question and messages to respond to. Make sure to look every now and then, otherwise you will be waiting, while the upgrade is waiting for you to respond.

Reboot

When the upgrade has completed successfully, reboot your Raspberry Pi

Install kernel sources

The usb mass storage gadget can emulate a CD-ROM, however, this gadget has a limitation of only allowing CD-ROM's from about 2.4 GB (http://linux-sunxi.org/USB_Gadget/Mass_storage). That is enough for real CD-ROM's, but the same gadget can also emulate DVD's, which tend to be larger than 2.4GB. This limitation is hard-coded in one of the modules of the gadget: see this feature request

To overcome this limitation, it can be altered and the module recompiled. If this is wise to do, can be debated. Normally I would advise against it, but given that:

  • The CD-berry will be a dedicated device, so a crash should not have big consequences And
  • The limit will be raised, not removed

... I think it is justifiable to patch the module

Disclaimer: regardless of the arguments above, it is your decision whether you patch the module or use the original pristine version.

To install the headers do the following:

sudo -i
wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source 
chmod +x /usr/bin/rpi-source
/usr/bin/rpi-source -q --tag-update

This will download, unpack and prepare the kernel headers and sources. This will take a while because the size is over 150MB