All of lore.kernel.org
 help / color / mirror / Atom feed
* Building a native package that includes tools + u-boot binaries
@ 2021-10-04 18:41 Jean-Pierre Doyon
  0 siblings, 0 replies; only message in thread
From: Jean-Pierre Doyon @ 2021-10-04 18:41 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1736 bytes --]

I am trying to create a first install package for our device, which would contain an install tool binary, and the required files to install.  In our case, that would be

From imx-usb_loader recipe:
imx_usb
imx_usb.conf
mx6_usb_rom.conf
mx6_usb_sdp_spl.conf

From u-boot recipe:
u-boot.img
SPL
uEnv.txt

The idea would be for the recipe to generate a tarball with all of that  and a script, that would automate the USB download project (the script: "install.sh" is already done, and is obviously out of scope for this question)

So I created a new recipe (box1-usb-loader.bb) which depends on both u-boot and imx-usb-loader.  But I can't seem to get the u-boot target files listed above to appear in my recipe-sysroot directory.

I've been scouring the web for a day now, and I've found plenty of people asking about seemingly related issues, but nothing that actually gets me nearer.  From what I could find, I'm missing something in my u-boot.bbappend to stage the three files I need, but everything I've tried has failed.  The most promising post got me to add this:


SYSROOT_DIRS += "${D}/boot"

do_stage () {
                install -d ${D}/boot
    install -m 0644 ${WORKDIR}/package/boot/u-boot.img ${D}/boot
    install -m 0644 ${WORKDIR}/package/boot/SPL ${D}/boot
    install -m 0644 ${WORKDIR}/package/boot/uEnv.txt ${D}/boot
}

sysroot_stage_all_append () {
    sysroot_stage_dir ${D}/boot ${SYSROOT_DESTDIR}/boot
}


But it didn't succeed.

Thanks for any help you may provide.

Sincerely,

Jean-Pierre Doyon

______
Jean-Pierre Doyon
Embedded Linux Designer / Developer
T  +1 (514) 288-6398 Ext. 230
www.newtrax.com
360 St-Jacques, 8th Floor, Montreal, QC - Canada
H2Y 1P5

[-- Attachment #1.2: Type: text/html, Size: 14977 bytes --]

[-- Attachment #2: image026210.png --]
[-- Type: image/png, Size: 16987 bytes --]

[-- Attachment #3: image952867.png --]
[-- Type: image/png, Size: 177 bytes --]

[-- Attachment #4: image520767.png --]
[-- Type: image/png, Size: 3153 bytes --]

[-- Attachment #5: image582159.png --]
[-- Type: image/png, Size: 1370 bytes --]

[-- Attachment #6: image789170.png --]
[-- Type: image/png, Size: 2078 bytes --]

[-- Attachment #7: image026548.png --]
[-- Type: image/png, Size: 1021 bytes --]

[-- Attachment #8: image126988.png --]
[-- Type: image/png, Size: 1503 bytes --]

[-- Attachment #9: image625498.png --]
[-- Type: image/png, Size: 155 bytes --]

[-- Attachment #10: image763539.png --]
[-- Type: image/png, Size: 648 bytes --]

[-- Attachment #11: image277642.png --]
[-- Type: image/png, Size: 155 bytes --]

[-- Attachment #12: image582860.png --]
[-- Type: image/png, Size: 393 bytes --]

[-- Attachment #13: image802897.png --]
[-- Type: image/png, Size: 606 bytes --]

[-- Attachment #14: image964007.png --]
[-- Type: image/png, Size: 121 bytes --]

[-- Attachment #15: image973303.png --]
[-- Type: image/png, Size: 570 bytes --]

[-- Attachment #16: image900721.png --]
[-- Type: image/png, Size: 4876 bytes --]

[-- Attachment #17: image966442.png --]
[-- Type: image/png, Size: 828 bytes --]

[-- Attachment #18: image453136.png --]
[-- Type: image/png, Size: 5612 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-04 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04 18:41 Building a native package that includes tools + u-boot binaries Jean-Pierre Doyon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.