<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: [Yocto] Run scripts on startup boot</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Run-scripts-on-startup-boot/m-p/2037578#M233582</link>
    <description>&lt;P&gt;Any one Haven't idea for solution?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 08:20:51 GMT</pubDate>
    <dc:creator>webstorage119</dc:creator>
    <dc:date>2025-02-04T08:20:51Z</dc:date>
    <item>
      <title>[Yocto] Run scripts on startup boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Run-scripts-on-startup-boot/m-p/1826962#M221198</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm currently using i.MX Linux Yocto BSP (mickledore-6.1.22-2.0.0)&lt;/P&gt;&lt;P&gt;I added initscripts_%.bbappend file:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

DEPENDS = "update-rc.d-native"
RDEPENDS:${PN} = "update-rc.d"

SRC_URI += " \
	file://backlightset.sh \
"

# Without this it is not possible to patch checkroot
S = "${WORKDIR}"

do_install:append () {
	install -m 0755 ${WORKDIR}/backlightset.sh	${D}${sysconfdir}/init.d

	update-rc.d -r ${D} backlightset.sh start 20 S .
}

MASKED_SCRIPTS += " \
	backlightset \
"&lt;/LI-CODE&gt;&lt;P&gt;and added the script:&amp;nbsp;backlightset.sh&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#!/bin/sh
#
# SPDX-License-Identifier: GPL-2.0-only
#

### BEGIN INIT INFO
# Provides:			backlightset
# Required-Start:	mountvirtfs
# Required-Stop:	
# Default-Start:	S
# Default-Stop:		
# Short-Description: Setup backlight
### END INIT INFO

echo 60 &amp;gt; /sys/class/backlight/lvds_backlight/brightness&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After booting I check the following files:&lt;/P&gt;&lt;P&gt;/etc/init.d/backlightset.sh&lt;/P&gt;&lt;P&gt;/etc/rcS.d/S20backlightset.sh -&amp;gt; ../init.d/backlightset.sh&lt;/P&gt;&lt;P&gt;/etc/systemd/system/backlightset.service -&amp;gt; /dev/null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the script does not seem to be executed.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ cat /sys/class/backlight/lvds_backlight/brightness
80&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 08:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Run-scripts-on-startup-boot/m-p/1826962#M221198</guid>
      <dc:creator>petertseng</dc:creator>
      <dc:date>2024-03-13T08:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: [Yocto] Run scripts on startup boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Run-scripts-on-startup-boot/m-p/2037578#M233582</link>
      <description>&lt;P&gt;Any one Haven't idea for solution?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 08:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Run-scripts-on-startup-boot/m-p/2037578#M233582</guid>
      <dc:creator>webstorage119</dc:creator>
      <dc:date>2025-02-04T08:20:51Z</dc:date>
    </item>
  </channel>
</rss>

