linux - Yocto Raspberry Pi Change psplash image -


i've built raspberry pi yocto image using instructions here: http://www.jumpnowtek.com/rpi/raspberry-pi-systems-with-yocto.html. when system boots, see default psplash splash screen of raspberry pi loading bar.

the meta-raspberrypi layer has psplash bbappend recipe file defines raspberry pi image seen when system boots.

me@me:~/poky-morty/meta-raspberrypi$ grep -r splash * conf/machine/include/rpi-base.inc:splash = "psplash-raspberrypi" recipes-core/images/rpi-basic-image.bb:splash = "psplash-raspberrypi" recipes-core/psplash/psplash_git.bbappend:splash_images += "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" 

the splash variable in dpi-base.inc defines splash screen use ( think... ) , psplash_git.bbappend file pretends image matching out suffix of raspberry pi.

the bbappend looks this:

me@me:~/poky-morty/meta-raspberrypi$ cat recipes-core/psplash/psplash_git.bbappend filesextrapaths_prepend := "${thisdir}/files:" splash_images += "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" 

i have custom layer , made psplash_git.bbappend in layer following contents - attempting override image used raspberry pi splash screen own image:

me@me:~/rpi/meta-me/recipes-me/psplash$ cat psplash_git.bbappend  filesextrapaths_prepend := "${thisdir}/files:" splash_images += "file://social.jpg-img.h;outsuffix=raspberrypi" 

if try build image custom bbappend included, following error:

initialising tasks: 100% |##################################| time: 0:00:05 note: executing setscene tasks note: executing runqueue tasks error: psplash-0.1+gitautoinc+88343ad23c-r15 do_package: qa issue: psplash-raspberrypi listed in packages multiple times, leads packaging errors. [packages-list] error: psplash-0.1+gitautoinc+88343ad23c-r15 do_package: fatal qa errors found, failing task. error: psplash-0.1+gitautoinc+88343ad23c-r15 do_package: function failed: do_package error: logfile of failure stored in: /home/me/rpi/build/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/psplash/0.1+gitautoinc+88343ad23c-r15/temp/log.do_package.63289 error: task (/home/me/poky-morty/meta/recipes-core/psplash/psplash_git.bb:do_package) failed exit code '1' note: tasks summary: attempted 3439 tasks of 3430 didn't need rerun , 1 failed. 

i same error ( duplicate target ) if change outsuffix default.

i can around error changing bbappend this:

me@me:~/rpi/meta-me/recipes-me/psplash$ cat psplash_git.bbappend  filesextrapaths_prepend := "${thisdir}/files:" splash_images += "file://social.jpg-img.h;outsuffix=me" 

and try override splash configuration variable in local.conf this:

# set custom splash screen splash = "psplash-me" 

but no matter seem do, renders default raspberry pi one.

how can override default psplash splash screen own image? thanks.

the name of file should match format psplash-%s %s raspberrypi quickest way change social.jpg-img.h psplash-raspberrypi-img.h , overwrite on original raspberrypi psplash.bbappend.

below information on how gets outsuffix variable;

for uri in splashfiles:         fetcher = bb.fetch2.fetch([uri], d)         flocal = os.path.basename(fetcher.localpath(uri))         fbase = os.path.splitext(flocal)[0]         outsuffix = fetcher.ud[uri].parm.get("outsuffix")         if not outsuffix:             if fbase.startswith("psplash-"):                 outsuffix = fbase[8:]             else:                 outsuffix = fbase             if outsuffix.endswith('-img'):                 outsuffix = outsuffix[:-4]         outname = "psplash-%s" % outsuffix         if outname == '' or outname in oldpkgs:             bb.fatal("the output name '%s' derived uri %s not valid, please specify outsuffix parameter" % (outname, uri))         else:             pkgs.append(outname)         if flocal.endswith(".png"):             haspng = true         localpaths.append(flocal) 

splash_images map of files has key outsuffix.

splash_images = "file://splash-file-one.h;outsuffix=one \                        file://splash-file-two.h;outsuffix=two" 

this automatically create psplash- packages each splash image entry (i.e. psplash-one , psplash-two).

splash: enables showing splash screen during boot. default, screen provided psplash, allow customization. if prefer use alternative splash screen package, can setting splash variable different package name (or names) within image recipe or @ distro configuration level.

instead of using default, raspberrypi provides alternative choose splash image in machine configuration; link gives more information https://lists.yoctoproject.org/pipermail/yocto/2013-may/013902.html

+# set raspberrypi splash image +splash = "psplash-raspberrypi" diff --git a/recipes-core/psplash/psplash_git.bbappend b/recipes-core/psplash/psplash_git.bbappend index eea8dfb..65dc30f 100644 --- a/recipes-core/psplash/psplash_git.bbappend +++ b/recipes-core/psplash/psplash_git.bbappend @@ -1,2 +1,2 @@  filesextrapaths_prepend := "${thisdir}/files:" -splash_images = "file://psplash-raspberrypi-img.h;outsuffix=default" +splash_images += "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" --  1.8.2.2 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -