

jernej
-
Posts
1151 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by jernej
-
-
1 hour ago, danboid said:
you think the DRAM config could be causing my HDMI issues?
No, not really, only general instability (app crashes, kernel lockups, etc.). Note that Android has completely different display stack, so you can't compare it to X11. If you really want to prove it's driver issue, you would need to create BSP based image and test it there. But I never done that for 64-bit Allwinner SoCs, so I have no idea how hard it would be.
1 hour ago, danboid said:My T95 MAX doesn't have an LED display so that shouldn't matter
Strange, your DT blob has this:
awleds { device_type = "awleds"; compatible = "allwinner,fd6513_dev"; status = "okay"; leds_clk = <0x87 0x07 0x05 0x01 0xffffffff 0xffffffff 0x00>; leds_dat = <0x87 0x07 0x06 0x01 0xffffffff 0xffffffff 0x00>; phandle = <0x1bd>; };
which clearly indicates it should have FD6513 LED driver and thus display. Maybe it's one image for several box variants.
-
Few differences I see:
- different drive strength for wifi (lower than TX6) - not that important
- slightly different eMMC settings (lower frequency, etc) - might be important
- different IR key codes (nothing surprising)
- it seems that slightly different LED display driver is used (can't be sure unless I see detailed PCB photo)
- T95 max has slightly higher DRAM frequency (672 MHz) vs. TX6 (666 MHz)
- different DRAM config, but it's unclear how much they influence stability
-
7 hours ago, awawa said:
I wonder what the hardware difference of the T95 MAX could be
It's possible T95 MAX uses slightly different DRAM configuration. Ideally, you should extract DTB file from Android (/sys/firmware/fdt is actually DTB file used by kernel) and then we can compare settings.
-
I know about the changes, I'm the one who made them. However, everything works for me
. Note that there are some issues with 5.17-rc releases due to some sunxi pinctrl driver bugs, which were resolved recently. Last patch is not applied yet.
-
17 hours ago, awawa said:
I think we will wait until 5.17 and not use openvfd.
You don't need to wait so long, just pick mentioned DT lines.
-
43 minutes ago, danboid said:
I've been pretty fascinated watching Hector Martin port Linux to the M1. Its insane how much he knows about this stuff! Have you watched any of them? Obviously I'd need to learn to walk before I port Linux to the M1
No, because I don't care about Apple products.
-
Just now, danboid said:
Do you work for Collabora, if you don't mind me asking?
No, but I'm in contact with few of them. In fact, my job has nothing to do with Linux, although this will probably change in near future. It's just a hobby for getting some experience with developing various Linux drivers and learn how things work nowadays. You won't see me writting userspace apps, except for testing purposes or improving existing code which use drivers I'm working on.
2 minutes ago, danboid said:How did you learn to write drivers?
I follow few tutorials for character devices on net. But I find it easier to study existing drivers, especially if working on something new. Linux has well documented common code and there is a ton of helper functions. Reading various slides from presentations of particular subsystem also helps. You have to find the method which works for you.
9 minutes ago, danboid said:Whats the best book / guide / resource on reverse engineering?
There is no single source for that either. Also depends what you mean by reverse engineering. Nowadays there is BSP linux source which means you just have to understand that code, but many times even this is not an easy task. But if you mean hard core reverse engineering, like analyzing binaries and trying to understand what they do, that's another beast entirely. It helps if you learn assembly language for target system, read a lot of tutorials, guides, etc. If you can solve various crackmes, then you're already better in this than most people. But truthfully, you really don't need that to be good kernel developer. However, I already found few interesting things that way, because Allwinner hid some things in binaries which were later linked in driver directly.
-
11 minutes ago, danboid said:
Have you already written a script to show the time on the LED using this method?
No, that's the only script I wrote. Once things start to work, I lose interest
And I'm not fond of python, either.
-
@danboidif you prefer, we can continue our discussion here.
Note, mesa has nothing to do with HDMI plug detection. GPU is distinct core from display engine (that's why you have two dri cards present). I would say it's X11 issue, but then, I have no experience with it on H6.
Regarding LED driver - you might make it work with above repo, but then there is easier way, at least if you have some python programming knowledge. I recently added a node for LED display in DT and it will debut with kernel 5.17:
Once you have that in DT, together with enabled i2c-gpio and i2c-dev drivers, you can play with LED display as much as you want. For example, with python script using python-periphery library:
from periphery import I2C i2c = I2C("/dev/i2c-0") # adjust path as needed msgs = [I2C.Message([0x03], flags=I2C._I2C_M_IGNORE_NAK)] i2c.transfer(0x24, msgs) # enable display msgs = [I2C.Message([0xff, 0x67, 0x63, 0x63, 0x47], flags=I2C._I2C_M_IGNORE_NAK)] i2c.transfer(0x33, msgs) # set LEDs i2c.close()
Note, that ignore NAK flag is important. FD650 LED driver is not exactly your standard I2C device.
-
1 hour ago, umtkyck said:
Is there any version for kodi using kernel 5.4? so i can port it.
Sure, just check git history of LibreELEC. Generally, each kernel version is supported at some point in nightly images, except when we're preparing on release. So only 5.11 and 5.12 (maybe 5.13?) were skipped. But as I said, there are always bugs regarding codecs and fixes appear only for current kernel version.
-
IIRC only MPEG2 worked with 4.20. just dig into git history. Note that HEVC bugs are being squashed even now, so anything from that era is (almost) useless. H264 bugs were common till last year...
P.S.: I don't care if you're trying to waste your time with this. I certainly wont. I'll only talk from memory, nothing more.
-
Kernel 4.19 was one of the first which has anything of request API framework IIRC. Task of porting mainlined patches there will be even harder. You can use WIP patches from Bootlin and accompanying libs, but then expect that many videos won't work, especially interlaced H264. Also gstreamer or patched ffmpeg won't be compatible with that API. That's even more futile IMO and don't expect any help from me.
-
On 2/5/2022 at 4:49 PM, umtkyck said:
Just taking the cedrus drivers will not help generally, right?
You'll have to also port headers and maybe more. This is generally not something I'd spend time on. It should be easier to update Linux package on openwrt.
-
hm... that's unexpected. I assumed XR819 comes only with lower specs TX6 (2G version).
-
4 hours ago, Ehsan Vahab said:
I haven't found any other news expect that uboborov's sunxi cedar mainline for Allwinner H3 on legacy kernel.
Now I don't know whether there is an hardware encoder driver for H5 or not?
H3 and H5 have same encoder, so H3 encoder should also work on H5, but I didn't test.
-
13 hours ago, umtkyck said:
how can i find armbian kernel 5.14 for orangepi pc?
There is no 5.14 kernel available in Armbian, I talked about minimum version. In general, codecs are improved with (almost) every release, so latest version is best. I only see images with kernel 5.13 on download page, which should in theory work. You can build your own Armbian image with kernel 5.15 (edge).
-
10 hours ago, Pic55 said:
Unfortunatly I can not upload the pictures (code 200).
You can still use services like imgur.
10 hours ago, Pic55 said:one with 2G of RAM TX6P - probably what you call the mini, and one with 4G of RAM TX6A 6B
I'm still not sure if TX6 variant with 2 GB RAM got renamed to TX6 mini or are these two different products. I only own TX6 with 4 GB RAM, which has RTL8822BS wifi+bt combo.
-
1 hour ago, umtkyck said:
I am using armbian latest stable version : Linux orangepipc 5.10.60-sunxi #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021 armv7l armv7l armv7l GNU/Linux
5.10 is ancient for video decoding purposes. Codecs started stabilizing after 5.11. With 5.14 you'll have stable and fully working MPEG2, VP8 and H264. If you need low effort solution, build latest gstreamer 1.20 RC with gst-plugins-bad with one of the latest kernels. With proper pipeline, it works. If you need out of the box solution, use LibreELEC distro.
-
There are 3 possibilities regarding wifi on TX6:
- XR819 - wifi only - TX6 mini
- RTL8822BS - presumably older TX6
- RTL8822CS - presumably newer TX6
-
FYI, I ported wifi driver to mainline (top two commits): https://github.com/jernejsk/linux-1/commits/h616-full
To say that code is convoluted is a big understatement.
-
4 hours ago, dotbg said:
Is there any way to to boot directly from USB in case of NAND flash on board?
If by that you mean using USB dongle then no. However, if you put your box in FEL mode, you can load U-Boot via USB using another machine. But that's meant more for developers or unbricking and it's not friendly at all for everyday use.
-
1 hour ago, ArkhanLK said:
would the images and procedure for H616 work on a H313 board?
In theory, yes. As long as it has DDR3 RAM (no other RAM type is supported currently).
1 hour ago, ArkhanLK said:Just wondering if someone else has done it.
Not to my knowledge.
-
8 hours ago, Nurali said:
Is there a way to get hw acceleration for video encoding on recent kernels (5.10.y) for Orange pi one?
Nothing out of the box, but someone forward ported BSP driver to mainline and used that with encoding software that was developed back then. However, if you do that, you would lose mainline Cedrus driver (you can't have two drivers loaded for same core).
I didn't try it myself, so I suggest you search this forum. IIRC it was discussed on this forum somewhere.
-
9 hours ago, usual user said:
But I still don't understand why you insist to involve the 3D accelerator in the video pipeline while the VOP can scan out video formats directly.
GPU rendering is usually preferred in X11 environment. I don't think DRM rendering is implemented in most players under X11. Another common reason would be to use various fancy shaders for post-processing, for features that are not yet supported in driver or not at all in HW.
Allwinner H6
in Allwinner CPU Boxes
Posted
SPDIF is already included in base H6 DTSI file (any board can easily enable it, if present) and it will be enabled for Tanix TX6 by default in 5.17