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
[WIP]rockchip64: bump rockchip64-edge kernel to 6.5 #5657
Conversation
Cherry-picked, built, builds OK. Rebased, OK.
|
(also on RockPro64)
|
@amazingfate added the rebase for the patches, just so work is not lost. Hope you don't mind. |
I think this is a fix for this: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm64/boot/dts/rockchip?h=v6.5&id=ebceec271e552a2b05e47d8ef0597052b1a39449 There are a lot of vcc supplies not ready, but upstream 6.5 doesn't have change for rockpro64's devicetree. |
@rpardini for rockpro64, what about trying kernel arg |
Indeed,
Yeah, but consider the rp64 was OK in 6.4.y.... I'm gonna take a look at our patches, a lot of rp64 stuff in there. |
Hmm @amazingfate. I'm reworking the .config and will test. |
Bingo. When I re-enabled the RK808, Paolo's patch broke; I fixed it, and RockPro64 works now. Feel free to squash the commits I pushed. |
I ran a quick test last night on Orange Pi R1 Plus LTS (RK3328) did not boot. |
Yes, could be, since |
Orange Pi R1 Plus LTS - booting got further this time, starting the kernel. No networking. extraargs="fw_devlink=on" makes no difference. Using dtb from 6.4 makes no difference. I eventually managed to retrieve the hardware log. Relevant log section: |
Tested it on my PBP, and abused it pretty hard... wifi, bluetooth, sound.. panfrost. all good |
This issue is caused by a change in the format of the netdev trigger parameters and the armbian-led-state.service, armbian-led-state-save.sh and armbian-led-state-restore.sh not being able to handle it. If I set the netdev trigger manually as follows, the LED's behave as expected:
If I modify the armbian-led-state-restore.sh script to exit0 at the start of the script so that it does not execute on startup, then the device boots (without restoring the LED's). If I remove the exit0 set the LED's manually and reboot then the device fails to boot. |
Try to build |
Tested on Opi4-LTS (rk3399), wifi, bluetooth, hdmi, emmc, sdcard, USB2 tested and works but:
Full log at https://paste.armbian.com/ohewilejaq I don't know if other are having such issues with usb3 phy, in the device tree nothing changed and the whole phy definition comes from the base rk3399.dtsi (the device label is Going to investigate a bit into |
Tested on CSC Rockpi-E (rk3328), boots and works pretty well, both ethernet ports work fine, but 8821cu onboard wifi chip hangs with:
the firmware file looks like is in the right place, but the driver isn't able to proceed further and the wifi chip isn't able to connect to local router. |
Tested a couple of rk3318/rk3328 tv boxes: armbian boots but there is no HDMI output at all on both. These boards worked fine with 6.1 kernel. |
Could you run the two .sh scripts manually as superuser and report the error you get? edit: btw, I don't have "netdev" argument for the trigger file, did you enabled it in the kernel config by hand?
|
f5a8cbf
to
0c75dc4
Compare
@paolosabatino - I have been working on debugging this. The scripts are working manually. I initially thought that they needed changes, but it was a partial restore that confused me. The restore script caused the boot to fail, even if I set all exit 1 to exit 0. Edit: Modifying the service to use
My board might be the only one that uses netdev by default and it is not an essential function.
MODULES="ledtrig_netdev" in the board file. This modified file works on this board with ledtrig_netdev:
Is this only my board or all of rockchip64? I don't have another suitable board to test. |
@schwar3kat you found a quite interesting issue; actually the restore script is set, in the service, to boot as early as possible skipping the "default" dependencies check. (see
Why you need to start the script after timers target in systemd since it should be a kernel-only setting amuses me, but it can indeed be changed in the service file to fix the issue. It would be nice to understand why this happens to avoid possible breakage of such kind in other situations though. |
I would like to know if it is all rockchip64, or rk3328/33xx, or only this one board, or some other functionality, but I don't have other boards to test, and I don't know of any other board using this trigger. I'm not 100% sure whether it is safe to modify the armbian-led-state.service order for all boards. I suspect that it is probably safe, and it would be a universal fix. Maybe we should do this and see if there are complaints? @paolosabatino - What would you advise? I have created Jira issue AR-1857 |
I agree with fixing for all the devices moving after timers; moving back and forth in the boot order should cause no harm to the script which in turn is quite simple task and actually only requires access to rootfs and /sys filesystems. Perhaps the issue is not the script precedence/order in itself but (uneducated guess follows) the kernel module for the netdev trigger may have some internal issues or kind of cyclic dependency making the system unable to boot when it is instructed too early. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy for this to be merged when other maintainers agree.
The issue with Orange Pi R1 Plus LTS is being dealt with in AR-1875
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say merge it, that way it is easier for moar peeps to get involved....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets do it, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd try
… bunch of RK stuff disappears: ``` CONFIG_INPUT_RK805_PWRKEY=y CONFIG_PINCTRL_RK805=y CONFIG_CHARGER_RK817=m CONFIG_MFD_RK808=y CONFIG_REGULATOR_RK808=y CONFIG_SND_SOC_RK817=m CONFIG_RTC_DRV_RK808=y CONFIG_COMMON_CLK_RK808=y ```
…isappeared, replaced by `MFD_RK8XX_I2C` and `MFD_RK8XX_SPI` - restore the victims as well ``` CONFIG_INPUT_RK805_PWRKEY=y CONFIG_PINCTRL_RK805=y CONFIG_CHARGER_RK817=m CONFIG_REGULATOR_RK808=y CONFIG_SND_SOC_RK817=m CONFIG_RTC_DRV_RK808=y CONFIG_COMMON_CLK_RK808=y ```
…ch-voltage-steps.patch` (client_dev -> dev)
f8dfd52
to
d8922d1
Compare
@paolosabatino I can confirm no HDMI output on rk3328 box. Here is relevant parts of dmesg diff on 6.1 vs 6.5 kernels: < platform ff370000.vop: Fixed dependency cycle(s) with /hdmi@ff3c0000
---
> platform ff3c0000.hdmi: Fixed dependency cycle(s) with /vop@ff370000/port/endpoint@0
10c10,14
< rockchip-drm display-subsystem: [drm] fb0: rockchipdrmfb frame buffer device
---
> rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
> rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
> rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes It seems |
Description
Patches are updated and build is successful. I haven't tested the kernel yet.
Here are patch fixes:
1, add-rockchip-iep-driver.patch:
rk3288.dtsi
is moved toarch/arm/boot/dts/rockchip/rk3288.dtsi
2, general-possibility-of-disabling-rk808-rtc.patch:
drivers/mfd/rk808.c
is moved todrivers/mfd/rk8xx-core.c
3, rk356x-rga.patch: removed becaused of upstream merged
4, board-rockpis-0001-arm64-dts.patch: fixed due to upstream change
5, board-nanopi-r2c-plus.patch: new added patch fixing missing
&vcc_io_33
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
Checklist: