I was trying to setup the 7 inch touch screen with my raspberry pi. And admittedly, did one blunder after another :(
The information on the internet rare on setting this touchscreen up. So once I get mine working, the first thing I will do is write a tutorial for this.
The raspberry itself was running: Berryboot with an OS image of Raspbian Stretch.
The touch screen tutorial asked to add these settings to the config.txt. To do so, I added the following settings through here:
The settings I added were for the HDMI:
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
I rebooted and the display was distorted a bit. So I installed git library as instructed in screen tutorial:
https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
Ran the command for 7 inch screen:
sudo ./LCD7B-show
And from this moment, I can't get the screen back. I have tried attaching HDMI to tv, to touchscreen. No use. Can't even SSH in.
So to remedy it, I took the sd card out, edited the config.txt file myself and removed all the changes I made. Tried again, the screen did appear but berryboot was stuck on Colorful display it gives in the start.
At this point, I went all in and swapped the config.txt on the SDcard with the default berryboot config.txt file.
Now when I start, berryboot does start to the point where it asks settings for the first login:
I do the settings and get to a linux shell with this written:
Emergency recovery shell activated
/bin/sh: can't access tty; job control turned off
/ #
Hope you guys are still with me till now :)
Now, is there any possibility I can my raspbian image back as it was?
UPDATE:
It is a chinese made 7 inch touchscreen compatible with Raspberry pi 3. The cd drive which came along with it contained the english manual on how to set it up. It also includes an image for the Raspbian-Jessie 2017-01-11 having settings already done for this display.
The last date modified of the files on the CD are August 2016 so I guess this display is not very ancient. It is the same thing as this one.
So the question still stands:
1) Can I somehow recover the data by manipulating the recovery shell? 2) Any guidance on how to set this display up?
UPDATE:
Found this excellent link about this touchscreen. Turns out the version I have is 3.0. So the steps of installing the Github library wasn't needed for my version. I just needed to set up the resolution.