如何在yocto中禁用psplash屏幕

时间:2017-12-10 12:17:16

标签: linux raspberry-pi yocto splash

我已经花了几个小时来禁用yocto中的psplash图像以生成覆盆子pi的图像。

我创建了一个bbappend文件来删除启动文件,但只有splash.sh被正确删除,结果如psplash_write仍保留在/ usr / bin

yocto docu声明要禁用它我们需要将psplash = false传递给内核命令行,但我怎么能传递它。

感谢您的帮助,谢谢

3 个答案:

答案 0 :(得分:1)

您需要修改图片并添加:

'I am assuming "a_RunAll_PM" is what is called "Macro" in your original question code
Sub a_RunAll_PM(BriefingTemplate As Presentation)

  'Removed "Call" as that is obsolete
  a_Scorecards_PM BriefingTemplate '<-- pass the presentation as a parameter
  CurrentTemps_PM BriefingTemplate '<-- may need to pass to other procedures too?
  RadarSat_PM
  Severe_PM
  Day1_PM
  Day2
  JetStream_PM
  Operational_Impact_PM
  D1_Headlines_PM
  D2_Headlines
End Sub

Sub a_Scorecards_PM(pres as Presentation)
   Dim oPic As Shape
    'Use the "pres" parameter rather than "ActivePresentation"
    Set oPic = pres.Slides(1).Shapes.AddPicture( _
    FileName:="H:\Weather Briefs\Daily Ops Scorecards\SWA_Page_1.jpg", _
    LinkToFile:=msoFalse, _
    SaveWithDocument:=msoTrue, Left:=0, Top:=0, _
    Width:=720, Height:=540)

    pres.Slides(1).Copy
    pres.Slides.Paste 24

End Sub

它会从默认的IMAGE_FEATURE_remove = "psplash" 变量中删除psplash

答案 1 :(得分:0)

我找到了覆盆子皮的解决方案,以防将来有人搜索

里面的meta-raspberrypi / recipes-bsp / rpi -u-boot-scr / files / boot.cmd 在最后一行之前添加一行,如下所示:

  

setenv bootargs psplash = false

完整文件如下:

  

fdt addr $ {fdt_addr}&amp;&amp; fdt get value bootargs / selected bootargs

     

fatload mmc 0:1 $ {kernel_addr_r} uImage

     

setenv bootargs psplash = false

     

bootm $ {kernel_addr_r} - $ {fdt_addr}

- &GT;没有必要添加任何psplash收件人,但有一个缺点,我进入日志 umount:无法卸载/mnt/.psplash:无效的参数,这是另一个问题来自psplash.sh脚本。

此错误来自以下补丁:enter link description here

这个错误来自/ usr / bin / psplash-write的存在,通过手动删除它,错误消失,但是用食谱编辑删除它并不成功

答案 2 :(得分:0)

要可靠地禁用psplash,必须从IMAGE_FEATURES中删除“ splash”(不是psplash)。通过将以下内容添加到我的local.conf中,我能够删除Raspberry Pi 4和Xavier NX上的psplash

IMAGE_FEATURES_remove += "splash"

在这里https://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-image