/sys folder empty after deploying the image on the SD card

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

/sys folder empty after deploying the image on the SD card

1,657件の閲覧回数
lordtheo
Contributor I

Hi Everyone

Please Help!!!

I am using imx6ulevk for my embedded application.

After I deployed the whole image on the sd card with the following command

$ sudo dd if=build/tmp/deploy/images/imx6ulevk/fsl-image-qt5-imx6ulevk.sdcard of=/dev/<sdcard dev>

 i figured out that my /sys folder inside the SD is empty. Nothing inside, 0 bytes.

I can boot the Linux on imx6ulevk board but I cannot  stop the LCD for turning blank after 5min

because "$ echo 0 > /sys/class/graphics/fb0/blank" and others similar commands will not work since /sys folder is empty.

when " $ du -hs /sys" returns 0 bytes and " $ vi  sys/class/graphics/fb0/blank" returns "cannot read the file"

I tried everything below to disable the blanking  but without succes:

echo -e '\033[9]' > /dev/tty0

echo -e '\033[9;0]' > /dev/tty1

echo 0 > /sys/class/graphics/fb0/blank

echo 0 > /sys/class/graphics/fb1/blank

passing consoleblank=0 to bootargs

modifying drivers/tty/vt/vt.c with static int blankinterval = 0;

Disabling CONFIG_VT_CONSOLE

setterm -blank 0

 

Any help will be welcome.

 

Best Regards,

--

Theo.

0 件の賞賛
返信
3 返答(返信)

1,256件の閲覧回数
b36401
NXP Employee
NXP Employee

sysfs should be mounted on /sys in the filesystem. You can check it such way:

# mount|grep sysfs
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
#

I suppose it is not in your case for some reason.

There shouls be a script named like mountkernfs.sh in the system. This script mounts sysfs among other kernel filesystems. I suppose it of its work is broken somehow.

As a workaround you can mount it with the command like this:

# mount -t sysfs none /sys

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,256件の閲覧回数
BiyongSUN
NXP Employee
NXP Employee

You can download the binary release to try

For avoid the auto blank, you can give the kernel parameters consoleblank=0 by uboot boot args, which is in the Linux source tree document Documentation\kernel-parameters.txt

                If the device connected to the port is not a TTY but a braille device, prepend "brl," before the device type, for instance console=brl,ttyS0 For now, only VisioBraille is supported.
 consoleblank= [KNL] The console blank (screen saver) timeout in seconds. Defaults to 10*60 = 10mins. A value of 0
   disables the blank timer.
 coredump_filter= [KNL] Change the default value for
   /proc/<pid>/coredump_filter.
   See also Documentation/filesystems/proc.txt.

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/arm-mcus-and-mpus/i....

Untitled2.png

0 件の賞賛
返信

1,256件の閲覧回数
lordtheo
Contributor I

Hi Biyong

Thank you for the help.

Following the advice from Eric Chen, I finally got it solved. The trick was to:

create this file: 

root@imx6ulevk:~# cat /etc/default/weston

OPTARGS="-i30000"

 

-i<sec> for the idle timeout.

Best Regards,

--

Theo

0 件の賞賛
返信