DeskPi-Team / deskpi

DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.
GNU General Public License v3.0
145 stars 47 forks source link

Raspberry bullseye arm64 front usb ports not enabled #152

Closed mgrouch closed 6 months ago

mgrouch commented 1 year ago

It seems the script no longer adds

dtoverlay=dwc2,dr_mode=host

into /boot/config.txt

paulwratt commented 1 year ago

not so:

sudo sed -i '/dtoverlay=dwc2*/d' /boot/config.txt 
sudo sed -i '$a\dtoverlay=dwc2,dr_mode=host' /boot/config.txt 

that should delete any entry already in there then append a new one to the end ($a)

yoyojacky commented 6 months ago

It seems the script no longer adds

dtoverlay=dwc2,dr_mode=host

into /boot/config.txt

new OS has been change to /boot/firmware/config.txt so, just modify to:

sudo sh -c "sudo sed -i  '/dtoverlay=dwc2*/d' /boot/firmware/config.txt 
sudo sh -c "sudo sed -i  '\$a\dtoverlay=dwc2,dr_mode=host' /boot/firmware/config.txt 

and do remember reboot your Raspberry Pi to take effect