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
orangepi5.wip
: initial OrangePi5 support; collab with @efectn
#4582
orangepi5.wip
: initial OrangePi5 support; collab with @efectn
#4582
Conversation
Test image is building (on arm64), should be up at https://github.com/rpardini/armbian-release/releases/tag/20221218b if all goes well. |
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.
It looks okay to me. Only one synergy that I am aware of that might be of interest.
The 2002-OrangePi5-dubious-Motcomm-stuff-extracted-from-Xun.patch.disabled looks at first glance similar to the patch in rockchip64 add-driver-for-Motorcomm-YT85xx+PHYs.patch that I added for the yt8531C in the orangepi-r1-plus-lts. I remember going through a number of variants before the current one. It seems to work well for that chip. I couldn't find anyone to test any of the other chips.
Thanks, I thought I saw that indeed. I wonder if the OPi5 has any Motorcomm PHY's in it; otherwise why would Xunlong add this to their tree. |
@efectn Image is built, wonder if boots & works. https://github.com/rpardini/armbian-release/releases/download/20221218b/Armbian_20221218b-rpardini_Orangepi5_kinetic_legacy_5.10.110.img.xz |
Will try it |
You're right. Opi 5 also uses YT8531C, as you can see here https://drive.google.com/drive/u/0/mobile/folders/1Bre2q0bGgXQuQlYaYDMvwstpvtHLmcgX?usp=share_link |
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.
enable test images cli and deskotp and merge when confirmed working
Can't boot. Just blinks |
UART logs? |
@efectn drafted this until we get it booting If it really has absolutely nothing on UART with this image, we gotta get UART logs with xunlong's image to compare / eliminate obvious stuff like "bootloader in SPI intereferring". Otherwise two directions possible, either:
|
I tried to generate an image in my PC and it worked. I used uboot and kernel sources from orange pi. Also i used orange pi's kernel config. I think the problem may be related to that. |
I couldn't debug UART due to my USB-TTL converter didn't work. |
Hmm, it's 1500000 baud indeed so not all adapters work. Worth investing though.
Great! I've vendor u-boot implemented, will force push. Please push the .config? |
b4790a2
414775e
to
b4790a2
Compare
I think we should also use kernel config as same as https://github.com/orangepi-xunlong/orangepi-build/blob/next/external/config/kernel/linux-rockchip-rk3588-legacy.config. I think we can specify this in rockchip-rk3588.conf or orange pi conf |
Yep, I'll try to merge .config's, let's see how it goes. Meanwhile a image is building with full Xunlong vendor u-boot. |
Cool. I'm generating image with xunlong vendored uboot and orange pi's kernel now. I hope it'll work. Looks like the PR will be ready for merging after doing these stuff. |
Added the config, in 3 commits
|
Didn't boot. I think you forgot patching something that's exists in xunlog's kernel tree and not exists in patches and radxa's kernel tree. (Maybe in one of Makefiles) |
|
Same as Orange Pi images. Can you check typec on Orange Pi image and Armbian with usb2 service? There shouldn't be any problem |
@rpardini I think we should add this service into the bsp? What would you mean |
I tried to install orange-build kernel&dtb&uboot, now typec is ok! lshw:
|
I think we should try PWM, I2C, SPI functionalities before merging the PR. I'm not much sure that they work properly due to we haven't added overlays. Orange Pi has different GPIO schema than Rock 5B |
if only there were any approving reviews... |
Have you tested type-c? I'm sure this time that type-c wasn't working before installing the orangepi kernel... edit: sorry I forgot you don't have an otg cable... |
I can test pwm, i2c etc. today or tomorrow. I don't have a possibility to test type c 😓 |
Please those testings here https://forum.armbian.com/topic/24900-orange-pi-5-support/ |
ok |
I think that you should be able to set usb to host mode also in dtb file |
I think we should enable the patch and make changes in dtb file like how Khadas does |
This is the dts of orangepi, I think it is similar to that of khadas?
usbhost_dwc3_0 looks like Type-A USB3.0, it works fine |
This comment was marked as spam.
This comment was marked as spam.
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.
Tested rock-5b and it works...while I don't have a Orange PI 5 the code looks good
I made images, but no hardware around to verify. They contain all fixes that has been merged: @efectn Would you like to serve as official maintainer? |
Sure. I can maintain OPi 5 |
Cool! Check and proceed via that document to understand expectations, provide contact details via form, ... only together we can keep devices in good shape. Happy new year! |
Did a small test run with
Those work on the Debian-image from OrangePi. Hope this helps and looking forward to a version that's en par with OrangePi's, |
I tested with
Those doesn't work in the images from OrangePI either. ZfsWhen installing zfs-dkms from backports BridgeWhen setting up the bridge in
The IP is recognized by Earlier I tested this setup with the orangepi debian image the results were the same. But I also experienced that an external usb network interface works with this settings. Maybe It helps you to figure out what is happening here. Nico |
Hello don't know where to ask seems active here... someone knows how to deal with maskrom and recovery button got maskrom mode enabled and can't get rid of. Got maskrom mode a first time get rid of don't how have booted fine on Armbian then again in maskrom mode :/ |
|
orangepi5.wip
: initial OrangePi5 supportrockchip-rk3588
family- using original config from vendor, needs
BOOT_SOC
- Only enable the DT patch and the Motorcomm PHY patch
- Other stuff that looks might be useful is grouped in a few other disabled patches
- Most panel/overlays/etc from Xunlong tree not included
rockchip-rk3588-legacy
: add patch to remove chosen > bootargs fromrk3588-linux.dtsi
rock-5b
linux-rockchip-rk3588-legacy
:.config
updated to 5.10.110; no actual changeslinux-rockchip-rk3588-legacy
:.config
Xunlong config, manually merged; preserved previous PR'srockchip-rk3588-legacy
:.config
re-updated to 5.10.110 after Xunlong changes1fdbab3 bf3b8a8 7a3ad3a f1952f9 ab70cb2 62adba7 ba10622 cd4da2a 7b3325c b4945d9 a8473e8
.disabled
patches included is actually useful?