RPI 4 won't boot with usb hub Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
ProXy
Posts: 14
Joined: Tue Oct 29, 2019 11:32 pm

RPI 4 won't boot with usb hub

Post by ProXy »

Hello,

I am using a RPI4 with an external HDD. There were some power issues so I decided to add a powered USB hub between the rpi and the HDD. To my surprise the system won't boot when the hub is used. Do I need to do a fresh install when adding an USB hub?
User avatar
Joulinar
Posts: 3340
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 4 won't boot with usb hub

Post by Joulinar »

Hi,

did you tried connecting the HUB to all 4 different USB ports USB2 + USB3?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ProXy
Posts: 14
Joined: Tue Oct 29, 2019 11:32 pm

Re: RPI 4 won't boot with usb hub

Post by ProXy »

Hello Joulinar,

not yet, just tried the USB 3 port so far. The system also won't boot when no HDD is attached. I have no micro HDMI cable etm so I ordered one and will take a look at the shell as soon as it arrives..
User avatar
Joulinar
Posts: 3340
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 4 won't boot with usb hub

Post by Joulinar »

well if there is no HDD connected, you would need to use SD card ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ProXy
Posts: 14
Joined: Tue Oct 29, 2019 11:32 pm

Re: RPI 4 won't boot with usb hub

Post by ProXy »

There is of course a sd card inserted. :)
User avatar
Joulinar
Posts: 3340
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 4 won't boot with usb hub

Post by Joulinar »

Puhh it should boot with SD card. Did you removed the USB hub completly? Any a activities on the LED?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ProXy
Posts: 14
Joined: Tue Oct 29, 2019 11:32 pm

Re: RPI 4 won't boot with usb hub

Post by ProXy »

Just got the HDMI cable. When I add the usb hub to the rpi and add the hdd to the hub the rpi shows those messages:

vc_vchi_sm_init: failed to open VCHI service (-1)
[vc_sm_connected_init]: failed to initialize shared memory service

The hdd is powered and I can hear i clicking when rebboting the rpi.

Edit: just found out that those messages are just warnings. The rpi does boot and also the drive is working - at least when the hub itself is not powered. The drive reports some inode errors so I will try to fix it and see if everything works afterwards.

Edit 2: the rpi is working fine, no isses at all. I just have no idea why I could not connect to the shell after adding the usb hub. Sorry to disturb you!
User avatar
Joulinar
Posts: 3340
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 4 won't boot with usb hub

Post by Joulinar »

yes these 2 messages can be ignored safely and we are going to hide them on next release anyway as they are causing to much confusion :)

Do you still have monitor and keyboard attached? Your system is booting and you can login locally? Just SSH access is not working?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ProXy
Posts: 14
Joined: Tue Oct 29, 2019 11:32 pm

Re: RPI 4 won't boot with usb hub

Post by ProXy »

The system is working without keyboard now, even remote access is working again. I have no clue why it did not work last time when running headless.

I added the powered usb hub because the data in my external drive gets corrupted when the drive has to copy and write big data. Sadly the usb hub doesn‘t solve the issue, got some new inode errors within an hour. I just attached the drive to my windows client and checked the SMART values, everything looks good - but the issue persists. Do you have an idea what could mess up my data? Today nothing but NZBGet was running and suddenly the log was spammed with messaged that there is an issue accessing some files NZBGet has created some minutes before. I also reformarted the drive with no success.
User avatar
Joulinar
Posts: 3340
Joined: Sat Nov 16, 2019 12:49 am

Re: RPI 4 won't boot with usb hub

Post by Joulinar »

what is the error message exactly you are facing?

As well you could have a look to kernel messages

Code: Select all

dmesg -l err,crit,alert,emerg
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply