Jump to content


Photo

During booting: cant open /sys/block/mmc/removable


  • Please log in to reply
30 replies to this topic

#1 hispanico957

  • Senior Member
  • 61 posts

+1
Neutral

Posted 16 March 2017 - 00:33

Its strange from first installation with usb stick appear this message/error and also every update from web

 

9k3jZTx.jpg

 

but the image run well without problem ?!?

 

Thank for advise

Hispa


Edited by hispanico957, 16 March 2017 - 00:33.


Re: During booting: cant open /sys/block/mmc/removable #2 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 16 March 2017 - 01:44

Which box?


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: During booting: cant open /sys/block/mmc/removable #3 WTE

  • Senior Member
  • 821 posts

+36
Good

Posted 16 March 2017 - 09:25

It looks like that's just a check to see if an SDcard or internal eMMC is available/connect.


Mut@nt HD51 STB 4K

   :rolleyes:                :rolleyes:


Re: During booting: cant open /sys/block/mmc/removable #4 Pr2

  • PLi® Contributor
  • 6,073 posts

+257
Excellent

Posted 16 March 2017 - 10:02

Have you installed some sort of MultiBoot?


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: During booting: cant open /sys/block/mmc/removable #5 hispanico

  • Senior Member
  • 93 posts

+2
Neutral

Posted 16 March 2017 - 10:20

I have Zgemma h2h and install in normal way no multiboot.
I have a mmc inserted on dec but i dont think is the problem

Hispa

Re: During booting: cant open /sys/block/mmc/removable #6 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 16 March 2017 - 13:23

If you have an MMC inserted, can you telnet into the box, issue the command

ls -l /sys/block/mcc

and post the output here?

 

This is part of the mdev-mount script, the check is done to dfferentiate between an internal MMC card, and an SD-Card plugged into a reader (which should be removable).


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: During booting: cant open /sys/block/mmc/removable #7 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 16 March 2017 - 22:07

On zgemma /sys/block/mmc does not exist, exist mmcblk0.
This already been discussed: https://forums.openp...ed/#entry647457

Edited by Taapat, 16 March 2017 - 22:07.


Re: During booting: cant open /sys/block/mmc/removable #8 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 17 March 2017 - 14:13

Ah, ok.

 

How about this in /etc/mdev/mdev-mount.sh (line 60+):

if [ -d /sys/block/$DEVBASE ]; then
	REMOVABLE=`cat /sys/block/$DEVBASE/removable`
	readlink -fn /sys/block/$DEVBASE/device | grep -qs 'pci\|ahci\|sata'
	EXTERNAL=$?
else
	REMOVABLE=`cat /sys/block/$MDEV/removable`
	readlink -fn /sys/block/$MDEV/device | grep -qs 'pci\|ahci\|sata'
	EXTERNAL=$?
fi

could you check if this fixes it?


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: During booting: cant open /sys/block/mmc/removable #9 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 17 March 2017 - 14:13

What you think?

https://github.com/O...e-core/pull/188



Re: During booting: cant open /sys/block/mmc/removable #10 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 17 March 2017 - 14:20

Looks a lot more complex than my suggestion? ;)


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: During booting: cant open /sys/block/mmc/removable #11 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 17 March 2017 - 14:27

Looking at this issue, I saw that my offer replace DEVBASE with MDEV is incorrect.
For mmc MDEV is mmcblk[0-9]p[0-9] (mmcblk0p1 on my zgemma): https://github.com/O...x/mdev.conf#L41
Therefore require more complex changes to change DEVBASE to mmcblk[0-9] (mmcblk0).

Edited by Taapat, 17 March 2017 - 14:29.


Re: During booting: cant open /sys/block/mmc/removable #12 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 17 March 2017 - 14:42

DEVBASE should be the device. It was originally created for MDEV's like "sda1" etc, where DEVBASE becomes "sda".
 
Perhaps we should say: if the length > 7, use the first 7, otherwise the first 3? So it becomes "mmcblk0".


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: During booting: cant open /sys/block/mmc/removable #13 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 17 March 2017 - 15:04

Please check mdev-mount.sh.
Links are in my post before.
mdev-mount.sh can be used only for [hs]d[a-z][0-9]? with 3 character DEVBASE [hs]d[a-z] and for mmcblk[0-9]p[0-9] with 7 character DEVBASE mmcblk[0-9].
Another option currently is not intended.


Re: During booting: cant open /sys/block/mmc/removable #14 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 17 March 2017 - 21:52

That should be ok.

 

According to your post in the other topic, you have "/sys/block/mmcblk0/removable" so with $MDEV=mmcblk0p1 and $DEVBASE=mmcblk0, it should work for your mmc card if we add support to mdev-mount,sh for a 7-char DEVBASE like I proposed in my previous post? 


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: During booting: cant open /sys/block/mmc/removable #15 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 18 March 2017 - 15:33

You want to set DEVBASE taking into account MDEV length.
Although a specific example how you would like to see are not shown.
 
I propose to set DEVBASE depending on the MDEV type.
I believe that the 7-char DEVBASE is specific only for mmc and may be incorrect for others.
Therefore, I propose to use the 7-char DEVBASE only for mmc.


Re: During booting: cant open /sys/block/mmc/removable #16 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 19 March 2017 - 14:40

You can always double check, since /sys/block/$DEVBASE must exist.


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: During booting: cant open /sys/block/mmc/removable #17 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 19 March 2017 - 20:15

And you're sure that this will not be a reason to mount mtdbloc or something like that, which shall not be mounted?
Therefore I believe that it is better to use the name.
 
But of course, you can make changes to the way witch you feel better.
 
It looks like that the next time, when someone write about this issue, I can point to this unused PR, rather than to another topic ;).


Re: During booting: cant open /sys/block/mmc/removable #18 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 19 March 2017 - 20:50

What is the output of

cat /sys/block/$DEVBASE/device/model

?


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: During booting: cant open /sys/block/mmc/removable #19 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 19 March 2017 - 22:00

Found another issue.

 

MiLo did a merge from master to master-next last year, which caused a merge conflict, after which incorrect parts got into the mdev-mount.sh script.

 

So some cleanup is needed too...


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: During booting: cant open /sys/block/mmc/removable #20 WanWizard

  • PLi® Core member
  • 68,559 posts

+1,737
Excellent

Posted 19 March 2017 - 22:34

https://github.com/O...54898b60b7e6d61 and  https://github.com/O...cb3063adb0a6825


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.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users