Jump to content


Photo

Zgemma H5 errormessage while booting with SD-card inserted

Zgemma SD-card

  • Please log in to reply
15 replies to this topic

#1 Vaio1

  • Member
  • 19 posts

0
Neutral

Posted 9 January 2017 - 20:47

Hi i get this message in the initial startupscreen when i have a SD-card inserted:

 

cat: cant open `/sys/block/mmc/removable` : No such file or directory

sh: bad number

cat: cant open `/sys/block/mmc/device/model` : No such file or directory

 

When i tested Openatv with  SD-card inserted there were no errors.... But i like Openpli and i just prefer to use it.

 

all is working but it is possible to get rid of this error message in the startupscreen or maybe some other setting i can do.

I hope someone has a solution.

 

 

 

 



Re: Zgemma H5 errormessage while booting with SD-card inserted #2 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 10 January 2017 - 06:17

 

23:59:00.6331 Components/Harddisk.py:803 enumerateBlockDevices  [Harddisk] enumerating block devices...
23:59:00.7099 Components/Harddisk.py:950 getUserfriendlyDeviceName  couldn't read model:  [Errno 2] No such file or directory: '/sys/devices/platform/sdhci-brcmstb.0/mmc_host/mmc0/mmc0:0001/model'
23:59:00.7144 Components/Harddisk.py:107 __init__  new Harddisk mmcblk0 -> /dev/mmcblk0 -> /dev/mmcblk0
23:59:00.7239 Components/Harddisk.py:950 getUserfriendlyDeviceName  couldn't read model:  [Errno 2] No such file or directory: '/sys/block/mmcblk0p1/device/model'
 

The above quoted enigma2 log is from the H5 OpenATv image. So the same error is listed in both images. The only difference is you do not see it in the ATV image start-up or boot screen.

 

IMO, this is no big deal unless you want it to be. It would be nice if the little disk could be named and have a model number, then these errors would not exist?

Attached is a screenshot of the error message. This message is visible on my Zgemma for a second or two. This error is not hurting the function of the sd card and exists in both images.

Attached Files



Re: Zgemma H5 errormessage while booting with SD-card inserted #3 WanWizard

  • PLi® Core member
  • 68,614 posts

+1,739
Excellent

Posted 10 January 2017 - 16:22

Two completely different set of error messages.

 

The OpenATV messages shouldn't be visible in OpenPLi, our Harddisk.py catches these exceptions. The messages in your OpenPLi boot screen are from the mdev mounter (https://github.com/O...ev-mount.sh#L60).

 

Can you dump the directory contents of /sys/block/mmc and post that here?


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: Zgemma H5 errormessage while booting with SD-card inserted #4 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 10 January 2017 - 16:57

The problem is in the fact that is used $DEVBASE, which is only the first three characters from the $MDEV: https://github.com/O...ev-mount.sh#L22
 
Of course, the /sys/block/mmc does not exist, exist mmcblk0:
root@h3:~# ls -la /sys/block
drwxr-xr-x   14 root     root             0 Jan 10 17:46 .
dr-xr-xr-x   12 root     root             0 Jan  1  1970 ..
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop0
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop1
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop2
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop3
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop4
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop5
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop6
drwxr-xr-x    7 root     root             0 Jan 10 17:47 loop7
drwxr-xr-x    7 root     root             0 Jan 10 17:47 mmcblk0
drwxr-xr-x    6 root     root             0 Jan 10 17:47 mtdblock0
drwxr-xr-x    6 root     root             0 Jan 10 17:47 mtdblock1
drwxr-xr-x    6 root     root             0 Jan 10 17:47 mtdblock2
root@h3:~# ls -la /sys/block/mmcblk0
drwxr-xr-x    7 root     root             0 Jan 10 17:47 .
drwxr-xr-x   14 root     root             0 Jan 10 17:46 ..
-r--r--r--    1 root     root          4096 Jan 10 17:48 alignment_offset
lrwxrwxrwx    1 root     root             0 Jan 10 17:48 bdi -> ../../devices/virtual/bdi/179:0
-r--r--r--    1 root     root          4096 Jan 10 17:48 capability
-r--r--r--    1 root     root          4096 Jan 10 17:48 dev
lrwxrwxrwx    1 root     root             0 Jan 10 17:48 device -> ../../devices/platform/sdhci-brcmstb.0/mmc_host/mmc0/mmc0:0007
-r--r--r--    1 root     root          4096 Jan 10 17:48 discard_alignment
-r--r--r--    1 root     root          4096 Jan 10 17:48 ext_range
-rw-r--r--    1 root     root          4096 Jan 10 17:48 force_ro
drwxr-xr-x    2 root     root             0 Jan 10 17:48 holders
-r--r--r--    1 root     root          4096 Jan 10 17:48 inflight
drwxr-xr-x    4 root     root             0 Jan 10 17:48 mmcblk0p1
drwxr-xr-x    2 root     root             0 Jan 10 17:48 power
drwxr-xr-x    3 root     root             0 Jan 10 17:48 queue
-r--r--r--    1 root     root          4096 Jan 10 17:48 range
-r--r--r--    1 root     root          4096 Jan 10 17:48 removable
-r--r--r--    1 root     root          4096 Jan 10 17:48 ro
-r--r--r--    1 root     root          4096 Jan 10 17:48 size
drwxr-xr-x    2 root     root             0 Jan 10 17:48 slaves
-r--r--r--    1 root     root          4096 Jan 10 17:48 stat
lrwxrwxrwx    1 root     root             0 Jan 10 17:48 subsystem -> ../../block
-rw-r--r--    1 root     root          4096 Jan 10 17:48 uevent
I think that everywhere in mdev-mount.sh need change /sys/block/${DEVBASE} to the /sys/block/${MDEV}.

Edited by Taapat, 10 January 2017 - 16:58.


Re: Zgemma H5 errormessage while booting with SD-card inserted #5 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 10 January 2017 - 16:59

(File attached.)

Attached Files



Re: Zgemma H5 errormessage while booting with SD-card inserted #6 WanWizard

  • PLi® Core member
  • 68,614 posts

+1,739
Excellent

Posted 10 January 2017 - 17:01

@Taapat,

 

makes sense, but that change is above my paygrade I'm afraid. ;)


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: Zgemma H5 errormessage while booting with SD-card inserted #7 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 10 January 2017 - 17:29

That file I posted is the wrong image!
 Will post the correct file in a few minutes.



Re: Zgemma H5 errormessage while booting with SD-card inserted #8 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 10 January 2017 - 17:33

This is the correct one.

Attached Files



Re: Zgemma H5 errormessage while booting with SD-card inserted #9 WanWizard

  • PLi® Core member
  • 68,614 posts

+1,739
Excellent

Posted 10 January 2017 - 17:34

I think the result for the H5 will be the same as for the H3, which Taapat posted.

 

edit: yeah, looks like a bug in the mount-script.


Edited by WanWizard, 10 January 2017 - 17:35.

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: Zgemma H5 errormessage while booting with SD-card inserted #10 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 10 January 2017 - 17:47

DEVBASE build is assuming that we are using the [hs]d[a-z] devices.
Now that's is no longer true. I think that we need to review the DEVBASE construction algorithm.


Re: Zgemma H5 errormessage while booting with SD-card inserted #11 WanWizard

  • PLi® Core member
  • 68,614 posts

+1,739
Excellent

Posted 10 January 2017 - 17:48

Job for MiLo?


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: Zgemma H5 errormessage while booting with SD-card inserted #12 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 10 January 2017 - 17:51

Why, I think for all of us ;).



Re: Zgemma H5 errormessage while booting with SD-card inserted #13 Dimitrij

  • PLi® Core member
  • 10,020 posts

+338
Excellent

Posted 10 January 2017 - 20:20

	def getUserfriendlyDeviceName(self, dev, phys):
		dev, part = self.splitDeviceName(dev)
		description = _("External Storage %s") % dev
		try:
			description = readFile("/sys" + phys + "/model")
-		except IOError, s:
-			print "couldn't read model: ", s
+		except:
+			pass

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Zgemma H5 errormessage while booting with SD-card inserted #14 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 10 January 2017 - 23:13

No, here we need exactly the same fix in the splitDeviceName to properly get dev and part: https://github.com/O...arddisk.py#L814


Edited by Taapat, 10 January 2017 - 23:14.


Re: Zgemma H5 errormessage while booting with SD-card inserted #15 el bandido

  • Senior Member
  • 364 posts

+13
Neutral

Posted 16 January 2017 - 23:59

Fixed? i think so.
No longer see the error message at boot.

Now able to format sd card as hard drive. Could not do this before!

Thanks! EB
 

Attached Files


Edited by el bandido, 17 January 2017 - 00:00.


Re: Zgemma H5 errormessage while booting with SD-card inserted #16 peppinuccio

  • Member
  • 15 posts

0
Neutral

Posted 28 February 2020 - 10:08

This is the correct one.

Hi I have zgemma h5, where put this file, please? thank you




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users