gioelebianchi00 Posted August 22, 2023 Posted August 22, 2023 Hi. i've compiled udoo quad image using armbian build framework. The kernel is 6.x.x. When i boot the image on sdcard, usb ports don't start: the mouse's led don't turn on and keyboard too. What can i do to solve this problem? what paramaters do i have to enable? thanks 0 Quote
chiefwigms Posted April 1, 2024 Posted April 1, 2024 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. 0 Quote
chiefwigms Posted April 8, 2024 Posted April 8, 2024 (edited) 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 April 8, 2024 by chiefwigms 1 Quote
SteeMan Posted April 8, 2024 Posted April 8, 2024 @chiefwigms please submit a PR for this to get included into Armbian 0 Quote
SteeMan Posted April 8, 2024 Posted April 8, 2024 @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. 0 Quote
MrCapone Posted April 9, 2024 Posted April 9, 2024 @chiefwigms Is there a chance that these fixes will someday be included in the mainline kernel? 0 Quote
chiefwigms Posted April 9, 2024 Posted April 9, 2024 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 🥲 0 Quote
gioelebianchi00 Posted April 9, 2024 Author Posted April 9, 2024 (edited) Help me to understand. Have patches already been into armbian kernel? So I only need to compile armbian kernel right? Edited April 9, 2024 by gioelebianchi00 0 Quote
chiefwigms Posted April 21, 2024 Posted April 21, 2024 you'd need to add a user patch at the moment.. finally had time to make a PR 0 Quote
gioelebianchi00 Posted May 22, 2024 Author Posted May 22, 2024 Thanks. Now it works fine Thank you 0 Quote
unic8 Posted February 9 Posted February 9 I want to revive my UDOO Quad and found the Armbian images for Ubuntu and Debian. Instantly ran into the USB issue and found this post. Searched for the PR https://github.com/armbian/build/pull/6505 and it was merged to "main" on Apr 22, 2024. I don't have a Linux system on hand for building my Armbian - that's why I'd prefer a built image. The newest Debian image https://www.armbian.com/udoo-quad/ is just 3 days old but still doesn't contain the patches or am I missing something? I'm quite new to this topic so sorry for being unaware of releases of Armbian. 0 Quote
Werner Posted February 9 Posted February 9 I guess the patch has not been carried over to 6.12 since the folder is empty: https://github.com/armbian/build/tree/main/patch/kernel/archive/imx6-6.12 1 Quote
Igor Posted February 9 Posted February 9 7 hours ago, unic8 said: but still doesn't contain the patches 6.6. contains it, but we are moving all kernels to 6.12.y, where this seems broken - major kernel upgrades always kills some functionality, which is why our work is hard, stressful and expensive. I have tested booting this device on kernel 6.12.y, but not USB as that would make testing just a lot more expensive. Burning most of project donations, which is all we have, for a device we don't even support, just to fix this problem is destructive for project. Morally and financially. Support rules: https://docs.armbian.com/User-Guide_Board-Support-Rules/#community-maintained 7 hours ago, unic8 said: releases of Armbian This is a problem of this particular device. All I can afford to do is reverting this upgrade and we forget about kernel 6.12 on this device. 0 Quote
unic8 Posted February 9 Posted February 9 (edited) @Igor thank you for your honest and transparent response. As a software developer I fully understand your situation and I really appreciate that there is in general a possibility for this exotic board to survive (support by the manufacturer was dropping constantly after release). vor 2 Stunden schrieb Igor: All I can afford to do is reverting this upgrade and we forget about kernel 6.12 on this device. I just registered today and getting used to this community since I tried the image for the Orange Pi Zero 3 a week ago. So I'm really not representative enough to give you feedback on that topic. Personally I would really appreciate the working USB ports - so just from my perspective 6.6 would be fine I guess. Edited February 9 by unic8 0 Quote
Werner Posted February 10 Posted February 10 Best chances is getting yourself familiar with the build framework and try to port the necessary patch to 6.12.y What I'd do is probably using kernel-patch command along with ./compile.sh (like "./compile.sh BOARD=udoo BRANCH=current kernel-patch") and then manually adding the patch contents. Then copy over the newly created patch into patch/kernel/archive/imx6-6.12 and try to compile. If it works try booting and see if USB are back again. PR is welcome Did a look myself and it seems like it's not that simple. the dts looks good already. But the drivers/usb/misc/onboard_usb_hub.c file is gone entirely. Therefore I guess CONFIG_USB_ONBOARD_HUB=y doesn't make sense in the kernel configuration either. Ahaa, there we go. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/usb/misc?h=v6.12.13&id=31e7f6c015d9eb35e77ae9868801c53ab0ff19ac So things need adaption to the new name 0 Quote
Igor Posted February 12 Posted February 12 @unic8 I look into the code too, but it will have to wait ... not exactly 5 minute job. I have reverted that bump, so we are back at 6.6 and working USB. 1 Quote
Recommended Posts
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.