Jump to content

Recommended Posts

Posted

I've done a discovery : when using current Armbian overlays in 5.0.y thru dynamic loading (aka : /sys/kernel/config/devices-tree/overlays) , although working, it produced the following warning in "dmesg" :

 

WARNING: memory leak will occur if overlay removed

 

Example, loading i2c overlays produce :

[   80.494728] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /aliases/i2c0
[   80.494745] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /aliases/i2c1
[   80.494752] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /aliases/i2c2
[   80.494789] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@1c2ac00/status
[   80.494798] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@1c2b000/clock-frequency
[   80.494805] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@1c2b000/status
[   80.494813] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@1c2b400/status

Googling reveal those links, it is all about overlays refactoring :

 

https://lkml.org/lkml/2018/10/5/146

https://elinux.org/images/8/86/Overlay_frank.pdf

 

So, we will have to upgrade those overlays when we get a change ... :unsure:

Posted

@martinayotte

 

Have you started pushing the 5.x stuff up to master yet or would you be willing to work out of a branch from sunxi kernel 5 until its stable? 

 

Might make it easier to divide and conquer on the different surprises

Posted

I've done several local builds with success, although some patches are still failing, they don't prevent doing a build.

I will push preliminary stuff soon ...

Posted
  On 3/14/2019 at 10:00 AM, Werner said:

4.20 has been archvied https://github.com/armbian/build/releases/tag/sunxi-4.20 so I assume 5.0 can be pushed directly to master. And if it breaks does not matter as it is dev.

Expand  

 

Fair enough.  I know the branch conversation has happened more than once on the forum, and generally the added complexity hasnt been appealing.   

 

I suppose viewing armbian as a rolling release and embracing next as "mainline stable" supports the model?

Posted
  On 3/14/2019 at 10:43 PM, martinayotte said:

I've committed the initial stuff ! :rolleyes:

Now, I will pursue the patch cleaning ...

Let me know if you are unable to build 5.0.y on some Allwinner boards ...

Expand  

 

Crashed on DTS patches for H6 OpiOnePlus

 

  Reveal hidden contents



ill try some other boards.

Posted

Similar failure with H5 OpiPC2.   Seems to be building for H3 OpiLite okay.

Posted
  On 3/15/2019 at 3:05 AM, martinayotte said:

Great ! Happy 5.0.y ! :D

Expand  



totally!

 

  Reveal hidden contents


 

20190314_233048.jpg

Posted

Uhh so i installed mate desktop...and other than stuck with a 1024x768 modeline... the display driver is crazy fast!

Posted

NanoPi Neo2 (non-LTS) also running here with Kernel 5.0.1
i2c0-overlay doesnt show a memory-leak in dmesg

UTF8-charset doesnt seem to work right (lines around the menu) while using de-utf8

[EDIT] also doesnt work on one of my Neo2 with 4.20.7-sunxi64, but one does show it right.
and I copied the putty-session-settings...so putty shouldnt be the problem :(

NanoPi_Neo2_Kernel_501.jpg

Posted
  On 3/15/2019 at 6:06 PM, guidol said:

i2c0-overlay doesnt show a memory-leak in dmesg

Expand  

The memory-leak issue is not when overlays are loaded by U-boot, but only when loaded dynamically using Overlay-FS, aka via /sys/kernel/config/device-tree/overlays/ from userspace, for example :

mkdir /sys/kernel/config/device-tree/overlays/myoverlay
cat myoverlay.dtbo > /sys/kernel/config/device-tree/overlays/myoverlay/dtbo
cat /sys/kernel/config/device-tree/overlays/myoverlay/status

 

Posted
  On 3/15/2019 at 6:23 PM, martinayotte said:

The memory-leak issue is not when overlays are loaded by U-boot, but only when loaded dynamically using Overlay-FS, aka via /sys/kernel/config/device-tree/overlays/ from userspace,

Expand  

OK, I was thinking about the (dynamic) i2c0 overlay from armbian-config --> /boot/armbianEnv.txt

  Reveal hidden contents

 

Posted
  On 3/15/2019 at 6:32 PM, guidol said:

overlays=analog-codec i2c0 usbhost1 usbhost2

Expand  

Right ! Those are Ok !

That one of the reason there is no hurry to fix memory-leak issue, since I'm probably the only one who is using "dynamic" userspace method ... :lol:

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines