Page 1 of 2

Boot problem

PostPosted: Wed Sep 30, 2015 10:59 pm
by Dinos52
My matrix runs on internal flash with OpenELEC 5.95.5. If I connect to a running system a 64GB uSD card (exFAT) with directories and mp3 music files only, the card will be mounted and I can access the card. Then, if I boot the system, OpenElec does not start and after some seconds I get an error message:
Code: Select All Code
*** Error in mount_flash: mount_common: Could not mount /dev/mmcblk0p1
### Starting debugging shell... type exit to quit ###
sh: can't access tty; job control turned off

No chance to boot OpenELEC without disconnecting the card (s). Same with a SD Card, no problem with an USB memory stick. What's wrong with my system? Help!

Re: Boot problem

PostPosted: Thu Oct 01, 2015 1:16 am
by vpeter
It should work even with SD card attached. But I need to check this myself. Will let you know in a few days.

Re: Boot problem

PostPosted: Thu Oct 01, 2015 7:47 pm
by Dinos52
Thanks!
BTW: Similiar issue with /flash/uEnv.txt:
Code: Select All Code
zImage=/KERNEL
bootfile=/KERNEL
mmcargs=setenv bootargs 'boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 dmfc=3 consoleblank=0'
uenvcmd=if test -n $ethaddr; then true; else setenv ethaddr 1E:ED:19:27:1A:B2; fi

If I change (mount /flash -o remount,rw) the string "1920x1080M@60" to "1920x1080M@50" the system hangs on boot. No message, cursor only. Is this file secured by a checksum?

Re: Boot problem

PostPosted: Thu Oct 01, 2015 8:46 pm
by vpeter
Dinos52 Wrote:If I change the string "1920x1080M@60" to "1920x1080M@50" the system hangs on boot. No message, cursor only. Is this file secured by a checksum?

Nothing is secured. And why do you need to change this value?
In such cases serial console is more that useful.

Re: Boot problem

PostPosted: Fri Oct 02, 2015 4:40 pm
by Dinos52
Nothing is secured.

Then it could be a little bug!?
And why do you need to change this value?

It's easy, my LG TV produces a much better picture with 50Hz than with 60Hz. Additionally, the system sometimes forget's the system setting 50Hz (System/Settings/Video Output) after cold start. So I hoped to eliminate the manual change by patching uEnv.txt.
In such cases serial console is more that useful.

Don't understand! I am using SSH and edit the file with nano editor.

But this is not so tragic. It was thought to be a hint for a possible issue. The problem with (u)SD cards is much more important. Any news?

Re: Boot problem

PostPosted: Fri Oct 02, 2015 5:59 pm
by vpeter
I will try to change to @50 myself. System should not hang at least ssh should still work but no picture on TV.
For serial console I mean USB to RS232 adapter. With this you can see boot messages - has nothing to do with ssh.

I suspect that saveenv overwritten something on SD card. Will check. In next 2 days I hope.

Re: Boot problem; 50/60Hz

PostPosted: Fri Oct 02, 2015 11:04 pm
by Dinos52
It just happened that the matrix switched off by shutdown timer. I switched it on again with the power switch (at the front) and recognized, that the physical refresh rat is 60Hz. In system settings, the Matrix indicates 50Hz (wrong!). Now I must switch to 60Hz and back to 50Hz to get 50Hz physically. CEC Adapter is disabled. Question, is there a possibility to set the video output fixed to 1920x1080/50Hz?

Re: Boot problem; 50/60Hz

PostPosted: Sat Oct 03, 2015 9:17 pm
by vpeter
Dinos52 Wrote:is there a possibility to set the video output fixed to 1920x1080/50Hz?
If you mean from boot parameters then change file /flash/uEnv.txt. Don't touch and save parameters in u-boot prompt.
Code: Select All Code
mount -o remount,rw /flash
sed -i 's|1920x1080M@60|1920x1080M@50|g' /flash/uEnv.txt
sync
mount -o remount,ro /flash
reboot

I didn't have time to check this myself.

Re: Boot problem

PostPosted: Sat Oct 03, 2015 10:51 pm
by Dinos52
Thanks!
Code: Select All Code
sed 's|1920x1080M@60|1920x1080M@50|g' /flash/uEnv.txt

Don't know why but sed command did not work. I saw the change on console only. If I list the file after sync (cat uEnv.txt), "60" is still present. Could it be that a save command is missing in the command string?

However, I tried again to change that file with nano. Then I noticed (cat uEnv.txt) that 60 has been changed to 50 but nano has inserted CRLFs after "quiet" and "dmfc=3" in the 3rd string. This was possibly the reason for system hang after boot. Now, after eliminating the CRs, the system boots with 50Hz from begin :D

Re: Boot problem

PostPosted: Sat Oct 03, 2015 11:02 pm
by vpeter
So now all is ok?

About sed: I forgot to use -i argument which means edit in place . Without this only on console you see the output changed.