Springen naar inhoud


Foto

eudev or mdev


  • Please log in to reply
Er zijn 11 reacties in dit onderwerp

#1 WTE

  • Senior Member
  • 821 berichten

+36
Good

Geplaatst op 24 november 2019 - 01:40

I have build the branch thud with eudev and removed mdev.

I was pretty surprised with minimal adjustment that it works inside e2 already good.

 

/media is actually not needed but as most people check this map it's in the patch mount to /run/media

 

I have only test the input and hardware devices like harddisk, usb stick sdcard, wifi sticks and internal ethernet.

I made an small patch for test and I hope we can switch from mdev to eudev.

 

todo

test nfs/cifs shares and mount/unmount

Rules for internal eMMC you can easily blacklist it but as some models use mmcblk0 and other mmcblk1 I have not added yet.

/hdd mount to disk I think it never work like it should been. Probably fstab or a rule is needed to assign a disk to HDD.

In Openembedded there only a couple links to /media left. As I do not know the application I left it along for now.

Bijgevoegde Bestanden


Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: eudev or mdev #2 WanWizard

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 24 november 2019 - 02:39

:thumbs-up:


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: eudev or mdev #3 WTE

  • Senior Member
  • 821 berichten

+36
Good

Geplaatst op 26 november 2019 - 00:04

I have test from box to box with CIFS and NFS protocol. Both works fine with automount.xml solution.

I do not see an issue with my tests and I hope Openpli will adapt eudev. In future probably autofs is even easier and more powersave but for start automount.xml seems to to work well.

//192.168.1.21/usb = cifs/samba

192.168.1.21:/media/hdd = NFS

 

(I found a small bug with mount process as when I setup a second mount it will stop all mounts and start only the new mount. When I restart the box all mounts are mount.)

 

In my setup I have blacklist mmcblk0 (as otherwise it mounts all ext* FAT partities of my internal eMMC)

For test just add a line in mount.blacklist

echo /dev/mmcblk0 >> /etc/udev/mount.blacklist

 

root@hd60:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/mmcblk0p23        5455808   2067192   3091760  40% /
devtmpfs                958012         4    958008   0% /dev
tmpfs                   958288       284    958004   0% /run
tmpfs                   958288        68    958220   0% /var/volatile
/dev/mmcblk1p1        15457280        32  15457248   0% /run/media/mmcblk1p1
/dev/sda1            240232960     60564 227946144   0% /run/media/sda1
//192.168.1.21/usb   976559616 164042752 812516864  17% /run/media/net/usb@HD530C
192.168.1.21:/media/hdd
                     976559616 162994176 812516864  17% /run/media/net/HD530C

 

 

 

Otherwise you see all partitions which can been mount:

 

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mmcblk0p23        5455808   2067192   3091760  40% /
devtmpfs                958012         4    958008   0% /dev
tmpfs                   958288       284    958004   0% /run
tmpfs                   958288        68    958220   0% /var/volatile
/dev/mmcblk0p13        1015704    902348     96972  90% /run/media/mmcblk0p13
/dev/mmcblk0p18           3952        40      3752   1% /run/media/mmcblk0p18
/dev/mmcblk0p16         253920       148    248532   0% /run/media/mmcblk0p16
/dev/mmcblk0p14         147072     56572     87428  39% /run/media/mmcblk0p14
/dev/mmcblk1p1        15457280        32  15457248   0% /run/media/mmcblk1p1
/dev/mmcblk0p4            2028        18      2010   1% /run/media/mmcblk0p4
/dev/sda1            240232960     60564 227946144   0% /run/media/sda1
//192.168.1.21/usb   976559616 164042752 812516864  17% /run/media/net/usb@HD530C
192.168.1.21:/media/hdd
                     976559616 162994176 812516864  17% /run/media/net/HD530C


Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: eudev or mdev #4 WanWizard

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 26 november 2019 - 01:09

(I found a small bug with mount process as when I setup a second mount it will stop all mounts and start only the new mount. When I restart the box all mounts are mount.)

 

Thanks, I'll have a look tomorrow.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: eudev or mdev #5 Erik Slagter

  • PLi® Core member
  • 46951 berichten

+541
Excellent

Geplaatst op 1 december 2019 - 14:17

We already changed to the (non publicly built) pyro branch. It worked surprisingly well, besided a few small issues. IMHO there is no reason to keep using the obsolete mdev variant.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: eudev or mdev #6 rantanplan

  • PLi® Contributor
  • 1762 berichten

+81
Good

Geplaatst op 1 december 2019 - 14:31

But I guess you did not test the autoresore yet, did you?



Re: eudev or mdev #7 betacentauri

  • PLi® Core member
  • 7185 berichten

+323
Excellent

Geplaatst op 1 december 2019 - 16:07

We already changed to the (non publicly built) pyro branch. It worked surprisingly well, besided a few small issues. IMHO there is no reason to keep using the obsolete mdev variant.

 

There was a big bug in the pyro implementation. The data on e.g. a attached USB stick was deleted in some cases. Don't exactly know anymore in which cases.


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: eudev or mdev #8 WanWizard

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 2 december 2019 - 13:14

 

(I found a small bug with mount process as when I setup a second mount it will stop all mounts and start only the new mount. When I restart the box all mounts are mount.)

 

Thanks, I'll have a look tomorrow.

 

Took a wee bit longer, but the issue should be fixed now.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: eudev or mdev #9 WTE

  • Senior Member
  • 821 berichten

+36
Good

Geplaatst op 10 december 2019 - 16:07

I have upload my changes for thud.

https://github.com/w...re/commits/thud

 

It should work still with qthbbtv, qtstalker, a webbrowser with html5 support and qtwebflix.

For start the plugin in shell first set a couple values:

 

export QTWEBENGINE_DISABLE_SANDBOX=1

export QT_QPA_FONTDIR=/usr/share/fonts

export $(dbus-launch)

 

On Hisilicon and maybe some broadcom boxes Netflix should work (if you have an account)

It's not perfect but a start.

 

Enigma2 plugin I will try to make but I have actually to little knowledges about it.


Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: eudev or mdev #10 MiLo

  • PLi® Core member
  • 14042 berichten

+298
Excellent

Geplaatst op 10 december 2019 - 18:23

I have build the branch thud with eudev and removed mdev.

I was pretty surprised with minimal adjustment that it works inside e2 already good.

 

Basic stuff isn't bothered, there's not much really that udev does differently.

 

Things to really try are the rarely used ones, such as formatting a disk (there's a provision in there to stop mdev from mounting things while formatting and partitioning, something similar must be arranged for udev), restoring backups, mounting stuff through fstab and such.


Real musicians never die - they just decompose

Re: eudev or mdev #11 WanWizard

  • PLi® Core member
  • 68312 berichten

+1719
Excellent

Geplaatst op 10 december 2019 - 18:31

There is also mdev stuff related to Samba (which auto-creates shares when devices are plugged in), which I need to look at. But low prio to me atm...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: eudev or mdev #12 Erik Slagter

  • PLi® Core member
  • 46951 berichten

+541
Excellent

Geplaatst op 13 december 2019 - 19:11

But I guess you did not test the autoresore yet, did you?

Autorestore is not related to udev anyway.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



1 gebruiker(s) lezen dit onderwerp

0 leden, 1 bezoekers, 0 anonieme gebruikers