mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-11 05:13:13 +02:00
install LCD only on rPi running Raspbian
This commit is contained in:
12
README.md
12
README.md
@@ -424,12 +424,10 @@ DietPi is a lightweight operating system based Debian (just like Raspbian).
|
|||||||
It is compatible with a range of ARM based SBC-s.
|
It is compatible with a range of ARM based SBC-s.
|
||||||
Check it out on: [dietpi.com](https://dietpi.com)
|
Check it out on: [dietpi.com](https://dietpi.com)
|
||||||
|
|
||||||
This guide was tested on:
|
Issues:
|
||||||
|
* Setup is not automated yet - more steps required than running on Raspbian.
|
||||||
|
* There is no LCD support yet on DietPi.
|
||||||
|
|
||||||
* Odroid HC1
|
See the instructions using DietPi for multiple kind of hardware: [dietpi/README.md](dietpi/README.md)
|
||||||
* Odroid HC2 (the same board except it accommodates a 3.5" 12V HDD)
|
|
||||||
|
|
||||||
see the instructions: [dietpi/README.md](dietpi/README.md)
|
after installing DietPi and buliding the SDcard the setup continues from [Documentation](#documentation))
|
||||||
(after installing DietPi and buliding the SDcard the setup continues from [Documentation](#documentation))
|
|
||||||
|
|
||||||
* hoping to extend this list with more compatible boards especially the ROCK64
|
|
@@ -547,61 +547,66 @@ echo ""
|
|||||||
echo "IMPORTANT IF WANT TO MAKE A RELEASE IMAGE FROM THIS BUILD:"
|
echo "IMPORTANT IF WANT TO MAKE A RELEASE IMAGE FROM THIS BUILD:"
|
||||||
echo "login once after reboot without HDD and run 'XXprepareRelease.sh'"
|
echo "login once after reboot without HDD and run 'XXprepareRelease.sh'"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Press ENTER to install LCD and reboot ..."
|
echo "to continue reboot with `sudo shutdown -r now` and login with admin"
|
||||||
read key
|
|
||||||
|
|
||||||
# give Raspi a default hostname (optional)
|
# install LCD only on an rPI running Raspbian
|
||||||
sudo raspi-config nonint do_hostname "RaspiBlitz"
|
if [ "${baseImage}" = "raspbian" ]; then
|
||||||
|
echo "Press ENTER to install LCD and reboot ..."
|
||||||
|
read key
|
||||||
|
|
||||||
# *** Display selection ***
|
# give Raspi a default hostname (optional)
|
||||||
dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!" 6 80
|
sudo raspi-config nonint do_hostname "RaspiBlitz"
|
||||||
defaultDisplay=$?
|
|
||||||
|
|
||||||
if [[ $defaultDisplay -eq 0 ]]
|
# *** Display selection ***
|
||||||
then
|
dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!" 6 80
|
||||||
# *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
|
defaultDisplay=$?
|
||||||
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
|
|
||||||
cd /home/admin/
|
|
||||||
sudo apt-mark hold raspberrypi-bootloader
|
|
||||||
git clone https://github.com/goodtft/LCD-show.git
|
|
||||||
sudo chmod -R 755 LCD-show
|
|
||||||
sudo chown -R admin:admin LCD-show
|
|
||||||
cd LCD-show/
|
|
||||||
sudo ./LCD35-show
|
|
||||||
else
|
|
||||||
# Download and install the driver
|
|
||||||
# based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps
|
|
||||||
|
|
||||||
cd /boot
|
if [[ $defaultDisplay -eq 0 ]]
|
||||||
sudo wget http://www.raspberrypiwiki.com/download/RPI-HD-35-INCH-TFT/dt-blob-For-3B-plus.bin
|
then
|
||||||
sudo mv dt-blob-For-3B-plus.bin dt-blob.bin
|
# *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
|
||||||
cat <<EOF >> config.txt
|
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
|
||||||
|
cd /home/admin/
|
||||||
|
sudo apt-mark hold raspberrypi-bootloader
|
||||||
|
git clone https://github.com/goodtft/LCD-show.git
|
||||||
|
sudo chmod -R 755 LCD-show
|
||||||
|
sudo chown -R admin:admin LCD-show
|
||||||
|
cd LCD-show/
|
||||||
|
sudo ./LCD35-show
|
||||||
|
else
|
||||||
|
# Download and install the driver
|
||||||
|
# based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps
|
||||||
|
|
||||||
dtparam=spi=off
|
cd /boot
|
||||||
dtparam=i2c_arm=off
|
sudo wget http://www.raspberrypiwiki.com/download/RPI-HD-35-INCH-TFT/dt-blob-For-3B-plus.bin
|
||||||
|
sudo mv dt-blob-For-3B-plus.bin dt-blob.bin
|
||||||
|
cat <<EOF >> config.txt
|
||||||
|
|
||||||
# Set screen size and any overscan required
|
dtparam=spi=off
|
||||||
overscan_left=0
|
dtparam=i2c_arm=off
|
||||||
overscan_right=0
|
|
||||||
overscan_top=0
|
# Set screen size and any overscan required
|
||||||
overscan_bottom=0
|
overscan_left=0
|
||||||
framebuffer_width=800
|
overscan_right=0
|
||||||
framebuffer_height=480
|
overscan_top=0
|
||||||
|
overscan_bottom=0
|
||||||
|
framebuffer_width=800
|
||||||
|
framebuffer_height=480
|
||||||
|
|
||||||
|
|
||||||
enable_dpi_lcd=1
|
enable_dpi_lcd=1
|
||||||
display_default_lcd=1
|
display_default_lcd=1
|
||||||
dpi_group=2
|
dpi_group=2
|
||||||
dpi_mode=87
|
dpi_mode=87
|
||||||
dpi_output_format=0x6f015
|
dpi_output_format=0x6f015
|
||||||
|
|
||||||
# set up the size to 800x480
|
# set up the size to 800x480
|
||||||
hdmi_timings=480 0 16 16 24 800 0 4 2 2 0 0 0 60 0 32000000 6
|
hdmi_timings=480 0 16 16 24 800 0 4 2 2 0 0 0 60 0 32000000 6
|
||||||
|
|
||||||
#rotate screen
|
#rotate screen
|
||||||
display_rotate=3
|
display_rotate=3
|
||||||
|
|
||||||
dtoverlay=i2c-gpio,i2c_gpio_scl=24,i2c_gpio_sda=23
|
dtoverlay=i2c-gpio,i2c_gpio_scl=24,i2c_gpio_sda=23
|
||||||
EOF
|
EOF
|
||||||
init 6
|
init 6
|
||||||
|
fi
|
||||||
fi
|
fi
|
@@ -1,7 +1,16 @@
|
|||||||
# ⚡️ RaspiBlitz on DietPi ⚡️
|
# ⚡️ RaspiBlitz on DietPi ⚡️
|
||||||
# A hardware agnostic platform
|
# A hardware agnostic platform
|
||||||
|
|
||||||
First tested on an Odroid HC1. It has no connection for an LCD, but the [hardware specs](hw_comparison.md) make up for it.
|
|
||||||
|
This guide was tested on:
|
||||||
|
|
||||||
|
* Odroid HC1
|
||||||
|
* Odroid HC2 (the same board except it accommodates a 3.5" 12V HDD)
|
||||||
|
* Raspberry Pi 3 B Plus - no LCD support so far
|
||||||
|
* hoping to extend this list with more compatible boards especially the ROCK64
|
||||||
|
|
||||||
|
See the hardware specs: [hardware specs](hw_comparison.md).
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -93,8 +102,6 @@ password: raspiblitz
|
|||||||
|
|
||||||
### The setup continues as described in the RaspiBlitz setup [README.md](/README.md#documentation)
|
### The setup continues as described in the RaspiBlitz setup [README.md](/README.md#documentation)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Examples of copying the blockchain data from a HDD using a powered USB to SATA adapter
|
### Examples of copying the blockchain data from a HDD using a powered USB to SATA adapter
|
||||||
|
|
||||||

|

|
||||||
@@ -114,6 +121,8 @@ To test a new configuration run XXcleanHDD.sh and strictly restart
|
|||||||
`sudo journalctl -f -u lnd`
|
`sudo journalctl -f -u lnd`
|
||||||
`./home/admin/XXdebugLogs.sh` - debug log collection on the raspiblitz
|
`./home/admin/XXdebugLogs.sh` - debug log collection on the raspiblitz
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
Currently the DietPi update process has a bug causing bootloop if left alone. Will be sorted once the current, >6.2 version is uploaded as the starting image.
|
Currently the DietPi update process has a bug causing bootloop if left alone. Will be sorted once the current, >6.2 version is uploaded as the starting image.
|
||||||
Here find some excerpts from the deafult dietpi.txt (https://github.com/Fourdee/DietPi/blob/master/dietpi.txt) to be used once the automatic install is feasible:
|
Here find some excerpts from the deafult dietpi.txt (https://github.com/Fourdee/DietPi/blob/master/dietpi.txt) to be used once the automatic install is feasible:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user