瑞芯微RK3568鸿蒙开发板OpenHarmony系统修改cfg文件权限方法,深圳触觉智能鸿蒙硬件
<div class='showpostmsg'> 本帖最后由 Industio_触觉智能 于 2024-11-12 10:17 编辑<p>本文适用OpenHarmony开源鸿蒙系统,本次使用的是深圳触觉智能专注研发生产的鸿蒙开发板,搭载瑞芯微RK3568芯片。</p>
<p> </p>
<section data-color="#027bd3" data-id="89226" data-role="title" data-tools="135编辑器">
<section>
<section><strong>一、查看文件路径</strong></section>
</section>
</section>
<p> </p>
<section>
<section> </section>
<section> </section>
</section>
<section data-color="#027bd3" data-id="89204" data-role="title" data-tools="135编辑器">
<section>首先init.rkxxx.cfg文件在系统路径<code class="hljs">/vendor/etc/</code>,如下图所示:</section>
</section>
<p><br />
<img _src="/data/attachment/ueditor/image/20241112/1731376108353336.png" alt="" src="https://blog.eetop.cn/data/attachment/ueditor/image/20241112/1731376108353336.png" title="1731376108353336.png" /></p>
<section data-color="#027bd3" data-id="89226" data-role="title" data-tools="135编辑器">
<section>
<section><strong>二、文件传至本地</strong></section>
</section>
</section>
<p> </p>
<section>
<section> </section>
<section> </section>
</section>
<section data-color="#027bd3" data-id="89204" data-role="title" data-tools="135编辑器">
<section> </section>
<p>将需要需要修改的cfg文件从文件系统中拉下来放在本地目录,命令是:<code class="hljs">hdc file recv '系统路径' '本地文件路径'</code>,如下图所示:</p>
</section>
<p><img _src="/data/attachment/ueditor/image/20241112/1731376121911709.png" alt="" src="https://blog.eetop.cn/data/attachment/ueditor/image/20241112/1731376121911709.png" title="1731376121911709.png" /></p>
<section data-color="#027bd3" data-id="89226" data-role="title" data-tools="135编辑器">
<section>
<section><strong>三、修改文件</strong></section>
</section>
</section>
<p> </p>
<section>
<section> </section>
<section> </section>
</section>
<section data-color="#027bd3" data-id="89204" data-role="title" data-tools="135编辑器">
<section> </section>
<p>在cfg文件中增加权限,注意在对文件修改不要使用TAB键,复制前一行代码后再修改防止出错</p>
</section>
<p><img _src="/data/attachment/ueditor/image/20241112/1731376144469181.png" alt="" src="https://blog.eetop.cn/data/attachment/ueditor/image/20241112/1731376144469181.png" title="1731376144469181.png" /></p>
<p><img _src="/data/attachment/ueditor/image/20241112/1731376156213135.png" alt="" src="https://blog.eetop.cn/data/attachment/ueditor/image/20241112/1731376156213135.png" title="1731376156213135.png" /></p>
<section data-color="#027bd3" data-id="89226" data-role="title" data-tools="135编辑器">
<section>
<section><strong>四、文件推送</strong></section>
</section>
</section>
<p> </p>
<section>
<section> </section>
<section> </section>
</section>
<section data-color="#027bd3" data-id="89204" data-role="title" data-tools="135编辑器">
<section> </section>
<p>当修改完成后将文件推送回去,命令如下:</p>
</section>
<ul>
<li>
<p> </p>
</li>
<li>
<p> </p>
</li>
</ul>
<pre data-lang="swift">
hdc shell mount -o remount,rw /vendor //重新挂载设备,将设备改为可读可写
hdc file send “本地路径” “/vendor/etc/init.rkxxx.cfg” //将修改好的文件覆盖到系统当中
hdc shell reboot //将文件推送回去,系统重启
</pre>
<p> </p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>图没有显示出来,好像没有编辑好吧</p>
页:
[1]