-
Notifications
You must be signed in to change notification settings - Fork 210
Linux 5.10.y: ethernet, wifi, leds, nvme and otg for Rock Pi 4C+ #18
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
Conversation
Signed-off-by: Marco Nelissen <[email protected]>
Signed-off-by: Marco Nelissen <[email protected]>
Signed-off-by: Marco Nelissen <[email protected]>
Signed-off-by: Marco Nelissen <[email protected]>
Rock Pi 4C+ is advertised as having one USB3 OTG port, so make it so. Signed-off-by: Marco Nelissen <[email protected]>
thanks for updates. |
4C+ doesn't have hw switch for the USB OTG, we must set the USB OTG as |
In the stable 4.4 branch and in the 4.4-based images that Radxa provides, OTG is configured by default in the main dtb, not in an overlay. |
I believe @RadxaStephen should fix stable 4.4 branch as well. Without hardware switch, the port can not be called OTG, either |
Either way seems fine, though changing the behavior now might affect upgrading users that rely on the existing behavior. For that reason it seems perhaps better to have "1 OTG + 1 host" be the default, and provide an overlay to make it 2 host ports. |
This is how stable 4.4 branch do right now, an overlay to make HOST default. |
RK3399-T doesn't support PCIe. is NVMe working on your 4C+? |
NVME works for me if I apply the corresponding change from this PR. |
I think we can just leave the PCIe enabled. Some 4C+ v1.2 there on the market has M.2 because we tested it's working and the later 4C+ v1.4 removed because of no Rockchip official statement. |
Do you mean current 4C+ boards don't have the M.2 slot on the board? |
4C+ v1.2 has M.2 connector, 4C+ v1.4 and later doesn't have M.2 connector. |
For me, this works perfect with 5.19.10. Thanks @marcone. Without your version, very little worked. I just had to add
..for panfrost, which is working great BTW. sway and phoc (wayland) work fast and smooth. and
..for temperature sensors I did change the usbotg back to host though. I just want all 4 USB ports to work for peripherals. |
One last thing I needed to change <&hdmi> and add in <&i2c3> in order for HDMI DDC to work properly with HDMI to DVI adapter.
My notes from testing: |
Hi @jack-ma @RadxaNaoki @RadxaStephen @RadxaYuntian can I ask you what is the state of this PR? |
This branch is no longer in use, as we now provide 5.10 kernel based on Rockchip linux-5.10-gen-rkr3.4 release. |
@floion you might want to check out Armbian, which supports the 4C+ now and uses newer kernels. |
I'll close this for now, unless @floion has some dependency with our @marcone , we have a mainline Linux based profile in our |
@RadxaYuntian so you have kernel 5.10 for the 4C / 4C+ on which branch of this bsp layer? |
thanks @marcone , we need to use this yocto bsp layer though |
We are currently supporting ROCK 4 series on linux-5.10-gen-rkr3.4 kernel branch. If you are asking about Yocto @RadxaStephen can answer that. |
Yes, I was asking about Yocto support for it. @RadxaStephen any insight? |
commit 2a4a62a upstream. syscall_stub_data() expects the data_count parameter to be the number of longs, not bytes. ================================================================== BUG: KASAN: stack-out-of-bounds in syscall_stub_data+0x70/0xe0 Read of size 128 at addr 000000006411f6f0 by task swapper/1 CPU: 0 PID: 1 Comm: swapper Not tainted 5.18.0+ #18 Call Trace: show_stack.cold+0x166/0x2a7 __dump_stack+0x3a/0x43 dump_stack_lvl+0x1f/0x27 print_report.cold+0xdb/0xf81 kasan_report+0x119/0x1f0 kasan_check_range+0x3a3/0x440 memcpy+0x52/0x140 syscall_stub_data+0x70/0xe0 write_ldt_entry+0xac/0x190 init_new_ldt+0x515/0x960 init_new_context+0x2c4/0x4d0 mm_init.constprop.0+0x5ed/0x760 mm_alloc+0x118/0x170 0x60033f48 do_one_initcall+0x1d7/0x860 0x60003e7b kernel_init+0x6e/0x3d4 new_thread_handler+0x1e7/0x2c0 The buggy address belongs to stack of task swapper/1 and is located at offset 64 in frame: init_new_ldt+0x0/0x960 This frame has 2 objects: [32, 40) 'addr' [64, 80) 'desc' ================================================================== Fixes: 858259c ("uml: maintain own LDT entries") Signed-off-by: Vincent Whitchurch <[email protected]> Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
I noticed a recent network related update to the 4C+ dts in the 5.10.y branch, however with that change I still didn't get working ethernet or wifi. This set of patches remedies that. I've split them into 5 separate changes that: