Jump to content

help to fix usb bug in kernel 6.2/6.1 for udoo quad


gioelebianchi00

Recommended Posts

I come back here every few years to rebuild my UDOO home brew controller.. 

 

Seems like USB was disabled around kernel 5.19 (https://github.com/torvalds/linux/commit/8f2ca252ee1f848d3eec9ebbbf3c3881cb423322).  Got in touch with Fabio and he gave a super fast response and put two patches in to review.

https://lore.kernel.org/linux-arm-kernel/20240401023347.3114484-1-festevam@gmail.com/

https://lore.kernel.org/linux-arm-kernel/20240401023347.3114484-2-festevam@gmail.com/

 

I'm building it now - might get around to testing tonight, but will probably be a week or so.

Link to comment
Share on other sites

Okay - finally got around to testing (with more back and forth between Fabio).  There were some updates to what he patched getting it working with kernel 6.9 (ONBOARD_USB_HUB to ONBOAD_USB_DEV), however since armbian is on 6.6/6.7, this patch was needed as well: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/misc/onboard_usb_hub.c?h=v6.9-rc3&id=65e62b8a955adebee8634804d8f72599213c2774.

 

Attached is the patch I used to build & run successfully w/ wifi & usb enabled (for current - i haven't tested edge).  Make sure you do a kernel config and set ONBOARD_USB_HUB to y - seems like config/kernel/linux-imx6-current.config is significantly different than cache/sources/linux-kernel-worktree/6.6__imx6__armhf/arch/arm/configs/imx_v6_v7_defconfig (attached patch only modifies the kernel work tree)

udoo_usb_fix.patch

Edited by chiefwigms
Link to comment
Share on other sites

@chiefwigms As this board is in status community maintained, no Armbian resources are assigned to work on or support this board.  Support/maintenance comes from the community.  That means people like you submitting PRs to maintain/improve functionality.  Without active community participation the board will langish and eventually be moved to end of support/end of life status.

Link to comment
Share on other sites

These two patches:
https://lore.kernel.org/linux-arm-kernel/20240401023347.3114484-1-festevam@gmail.com/

https://lore.kernel.org/linux-arm-kernel/20240401023347.3114484-2-festevam@gmail.com/

Should get in the 6.9 kernel - as well as changing ONBOARD_USB_HUB to ONBOAD_USB_DEV in the kernel config

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/misc/onboard_usb_hub.c?h=v6.9-rc3&id=65e62b8a955adebee8634804d8f72599213c2774 is already in mainline but was committed after 6.6/6.7.

 

I'll make a PR sometime this weekend and try to test with edge, as well as an updated defconfig - don't really have much time these days to do anything 🥲

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines