I am using raspberry zero with USB OTG to my linux LMDE based this instruction , so when i install something like lcd 5inch driver, the files which changed in the boot's SD card folder. and the files config.txt changed to this:

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border

# uncomment to force a console size. By default it will be display's size minus
# overscan.

# uncomment if hdmi display is not detected and composite is being output

# uncomment to force a specific HDMI mode (this will force VGA)

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display

# uncomment for composite PAL

#uncomment to overclock the arm. 700 MHz is the default.

# Uncomment some or all of these to enable the optional hardware interfaces
# Uncomment this to enable the lirc-rpi module

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
hdmi_cvt 800 480 60 6 0 0 0

without the dtoverlay=dwc2 text in this file.

and the file cmdline.txt is this kind:

dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait  fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo

and the modules-load=dwc2,g_ether text in file has been deleted.

And the ssh file in boot folder also deleted.

SO this happened many times when i want to update the rasbian OS or install new package via USB OTG Connection to my PC (Linux LMDE), and this files changed .

why this happened?


  • What are the commands do you use to update the Raspbian OS and to install new package? – Ingo Jun 12 '19 at 12:20
  • it is happened by different condition, sometimes by apt-get update or by installing lcd driver from git-hub. – Soheil Paper Jun 12 '19 at 14:57

sudo apt-get update does not touch /boot/cmdline.txt and boot/config.txt if you use the default Raspbian repositories. So it must be the driver (what driver?) from github (where from github?). The appended settings

fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo

to cmdline.txt also indicate that this is from a display driver. It may also be possible the driver checks on every boot if it has its settings in the two system files and correct them if not. So you should look at the driver installation what it is doing.

You don't tell us if the modified files are a problem for you. It is possible that the display driver need this settings and everything is good.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.