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
  • 57 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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
Excellent

Posted 16 March 2017 - 01:44

Which box?


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #3 WTE

  • Senior Member
  • 502 posts

+24
Neutral

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

  • Senior Member
  • 1,800 posts

+65
Good

Posted 16 March 2017 - 10:02

Have you installed some sort of MultiBoot?


Xtrend ET-9000 Openpli 4.0: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W  + Sundtek DVB-C

VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C)

Zgemma H5: 1*DVB-S2 + 1*DVB-C

 


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

  • Member
  • 10 posts

+1
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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
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).


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #7 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
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?


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #9 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
Excellent

Posted 17 March 2017 - 14:20

Looks a lot more complex than my suggestion? ;)


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #11 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
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".


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #13 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
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? 


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #15 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
Excellent

Posted 19 March 2017 - 14:40

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


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


Re: During booting: cant open /sys/block/mmc/removable #17 Taapat

  • PLi® Core member
  • 1,006 posts

+53
Good

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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
Excellent

Posted 19 March 2017 - 20:50

What is the output of

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

?


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
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...


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)


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

  • Forum Moderator
    PLi® Core member
  • 32,565 posts

+448
Excellent

Posted 19 March 2017 - 22:34

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


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

Currently in use: VU+Duo2 (3xS2), HD2400 (4xS2), Formuler F1 (2xS2), Zgemma H2.H (S2+C), VU+Zero, Edision OS mini+ 

On the test stack: ET10000 (4xS2)XP1000Miraclebox Premium Micro (S2+C/T),  ET7500 (S2)ET8500 (S2), Zgemma H5.2TC (S2+C/T), SAB TripleAlpha (S2+C/T)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users