Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CM4 IO Board USB #475

Closed
NumberOneGit opened this issue Jan 30, 2021 · 21 comments
Closed

CM4 IO Board USB #475

NumberOneGit opened this issue Jan 30, 2021 · 21 comments

Comments

@NumberOneGit
Copy link

To enable USB on the IO Board for the CM4 the following has to be added to config.txt:
"dtoverlay=dwc2,dr_mode=host"
This works in both RP OS and Ubuntu, but adding it to the config.txt in PINN has no effect and I am unable to use a keyboard or WiFi dongle. I'm new to PINN, so hopefully I'm not missing something obvious.

@NumberOneGit NumberOneGit changed the title CM4 Module USB CM4 IO Board USB Jan 30, 2021
@procount
Copy link
Owner

PINN does not include the dwc2 USB kernel driver, which is why your config.txt setting has no effect.
I suspect the same is true of NOOBS too.

@lurch
Copy link
Contributor

lurch commented Jan 30, 2021

See also raspberrypi/noobs#620
(I like to keep related issues interlinked)

@procount
Copy link
Owner

I'll try and include it in the next version for you to test it out.

@NumberOneGit
Copy link
Author

NumberOneGit commented Jan 30, 2021

Amazing! That is greatly appreciated... the Compute Module 4's with WiFi are currently on an ambiguous backorder status of anywhere from two to six months. I'm not sure how many users will be using PINN on CM's but for those of us that are it will be a huge help. I had intended to run everything from SSD, but in the meantime am trying to get it up and running via ethernet cable and VPN. Thanks again for your great work.

@lurch
Copy link
Contributor

lurch commented Jan 30, 2021

Huh? I'm fairly sure that PINN doesn't include any VPN support...?

@NumberOneGit
Copy link
Author

Sorry, typo.. VNC

@procount
Copy link
Owner

I don't have a CM4, so you'll have to be my guinea pig to test it.

@NumberOneGit
Copy link
Author

Absolutely. Happy to do so!

@procount
Copy link
Owner

procount commented Feb 1, 2021

I've uploaded a new version
https://sourceforge.net/projects/pinn/files/testing/pinn-354g.zip/download
Please check if it now works.

@NumberOneGit
Copy link
Author

This works perfectly. Keyboard and mouse up and running, WiFi dongle not working but will seek list of compatible ones. Thank you for getting this up and running so quickly!

@procount
Copy link
Owner

procount commented Feb 1, 2021

Cool! Glad it now works.
Which wifi dongle chip are you using? I did add some new versions, but I had to remove some with the upgrade to the kernel until I can find new compatible versions.

@NumberOneGit
Copy link
Author

NumberOneGit commented Feb 1, 2021

A bit off topic, but is this list specifically showing OS's that are recommended for the CM4 or for the Pi4B... I was expecting to see Lineage OS and RPOS 64-bit. I know I can use showall command but was just generally wondering if there was a known compatibility issue. Will send that WiFi model over in a moment, it's BlueShadow and I believe RTL8821CU but will double check that.. is there another device ID you need? I will need to re-install some version of Linux to get that but working on that now.

@procount
Copy link
Owner

procount commented Feb 1, 2021

I don't have a CM4, so I can't test them. If you can set showall and test any OSes that you think should work (i,e, those for the Pi4) and let me know which one's work, I'll gladly update them so they are available for the CM4 too.
RTL8821CU is sufficient. I haven't even tried to include that one.

@NumberOneGit
Copy link
Author

It is a little buggy where I have to unplug/re-plug the device in to get it to work, but once it works it works. Just making a note for anyone else that may have this issue. I'm not using a powered USB hub at the moment, so it's possible that that would resolve the issue. I'll have a better idea through regular use and update if I figure out a pattern.

@NumberOneGit
Copy link
Author

No issues when using powered USB hub.

@NumberOneGit
Copy link
Author

NumberOneGit commented Feb 2, 2021

This is a separate issue, so I'm not sure if you would rather I start a new thread but I'm trying to install versions of other OS's that are more up to date, such as Lineage 18.1 and a nightly build of LibreElec.. the problem I'm facing is that the "reserve" command seems to possibly be SD Card specific.. I get an infinite "Waiting for SD card (settings partition)" loop.

@procount
Copy link
Owner

procount commented Feb 2, 2021

How are you installing (or converting) these newer OSes?
Are you using the "reserve=X" or "reserve=+X" formats?
Why are you storing your images on the SD card for installation, instead of putting them on a USB stick? The latter will save more space on your SD card to be used by your OS installations.
(EDIT: Sorry I forgot you have a CM4, so maybe you don't have a USB socket....?)

@NumberOneGit
Copy link
Author

My theory was that PINN was defaulting to looking for an SD card because that's the default for a normal Pi. However, the error may just be related to trying to set "reserve=" to too high a value. I'll try the USB method as soon as I get back home to try that out on. That's the most sensible route and I realized that last night after reading through the README a bit more. I assume it will work as expected.

@procount
Copy link
Owner

procount commented Feb 2, 2021

OK, but how are you trying to planning to "install versions of other OS's that are more up to date, such as Lineage 18.1"?
Have you converted them already to .tar.xz format for use by PINN? PINN cannot install .img files.

Repository owner deleted a comment from NumberOneGit Feb 3, 2021
@procount
Copy link
Owner

procount commented Feb 3, 2021

OK. For both of them (especially lineage) you would need to run the partition_setup.sh script from the Fixup menu after overwriting the partitions.

@procount
Copy link
Owner

DWC2 included in V3.5.5 Just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants