Moderator Control Panel ]

Boot problem

Boot problem

Postby Dinos52 » Wed Sep 30, 2015 10:59 pm

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!
Dinos52
 
Posts: 64
Joined: Sun Dec 07, 2014 7:57 pm
Location: Germany

Re: Boot problem

Postby vpeter » Thu Oct 01, 2015 1:16 am

It should work even with SD card attached. But I need to check this myself. Will let you know in a few days.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Boot problem

Postby Dinos52 » Thu Oct 01, 2015 7:47 pm

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?
Dinos52
 
Posts: 64
Joined: Sun Dec 07, 2014 7:57 pm
Location: Germany

Re: Boot problem

Postby vpeter » Thu Oct 01, 2015 8:46 pm

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.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Boot problem

Postby Dinos52 » Fri Oct 02, 2015 4:40 pm

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?
Dinos52
 
Posts: 64
Joined: Sun Dec 07, 2014 7:57 pm
Location: Germany

Re: Boot problem

Postby vpeter » Fri Oct 02, 2015 5:59 pm

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.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Boot problem; 50/60Hz

Postby Dinos52 » Fri Oct 02, 2015 11:04 pm

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?
Dinos52
 
Posts: 64
Joined: Sun Dec 07, 2014 7:57 pm
Location: Germany

Re: Boot problem; 50/60Hz

Postby vpeter » Sat Oct 03, 2015 9:17 pm

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.
Last edited by vpeter on Sat Oct 03, 2015 11:00 pm, edited 1 time in total.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Re: Boot problem

Postby Dinos52 » Sat Oct 03, 2015 10:51 pm

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
Dinos52
 
Posts: 64
Joined: Sun Dec 07, 2014 7:57 pm
Location: Germany

Re: Boot problem

Postby vpeter » Sat Oct 03, 2015 11:02 pm

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.
You can help me buy new work notebook with paypal donation, after 8 years it's time to upgrade.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FLVT7ACMYAPS6
vpeter
 
Posts: 427
Joined: Sun Jul 27, 2014 2:12 am
Location: Slovenia

Next

Return to Install and setup

Who is online

Users browsing this forum: No registered users and 2 guests