Error trying to generate Raspberry Pi initramfs
Hi Zoran,
Thanks for your comments.
I'm adding [meta-raspberrypi] to the as I have realized that some might have missed this Raspberry-pi specific question.
Thanks,
Greg Wilson-Lindberg
Quoted 74 lines
-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, August 28, 2019 05:08 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] Error trying to generate Raspberry Pi initramfsThree things:
[1] The initramfs is NOT the initrd (te second one is the temp
stage in booting the linux to mmcblk...); [2] There are some config parameters
you need to set up in
your kernel .config file:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/config-
initramfs
[3] The command line is formed in u-boot or in grub2, or in
your Linux boot loader (you need to add some lines
in ash u-boot config script, as the following example):
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/u-boot.ashGood Luck,
Zoran
_______Quoted 2 lines · Greg Wilson-Lindberg
I'm trying to generate an initramfs for a raspberry pi 3 for a sumo build. We are
based off of the Qt boot2qt system.
Quoted 2 lines
I have followed the instructions in the meta-raspberrypi.pdf documentation,
section 3.14 Image with Initramfs.
Quoted 2 lines
I edited the meta-raspberrypi/recipes-kernel/linux/linux-raspberry.inc file and
added the variables into my local.conf file. I created a rpi-minimal-initramfs.bb recipe and it is created when I build the system. But the command line that is put into the boot partition is:
Quoted 2 lines
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
fbcon=map:10 fbcon=font:VGA8x8
Quoted 4 lines
No initramfs.
In the linux-raspberry.inc file, after the insertion point for the new kernel variables,
there is a test for
KERNEL_INITRAMFS. I tried setting this in my local.conf file, but when I do I get an error for a missing file:Quoted 7 lines
|
/home/..../tmp/deploy/images/raspberrypi3/uImage1-raspberrypi3.bin:
| No such file or directorySo, apparently that can't be set directly.
There seems to be something missing in the instructions in the meta-
raspberrypi.pdf documentation. Anyone that has any experience with setting this up and can help me figure out what I'm missing, I would greatly appreciate the help.
Quoted 19 lines
Regards,
Greg Wilson-Lindberg--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Hello Greg,
This, what I have posted as answer work for me on BBB (BeagleBone Black) seamlessly.
I did not try it on Sabre Automotive, but as we speak, I just straightened out the optimal local.conf for it (with very rich networking services on the top of Linux), and I am 100% sure the above initramfs methodology will work on Sabre Automotive as well.
I have no idea about specifics on RPI 3. Sorry for that.
Best Regads,
Zoran
_______
Quoted 83 lines · Greg Wilson-Lindberg
Hi Zoran,
Thanks for your comments.I'm adding [meta-raspberrypi] to the as I have realized that some might have missed this Raspberry-pi specific question.
Thanks,
Greg Wilson-LindbergQuoted 74 lines
-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, August 28, 2019 05:08 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] Error trying to generate Raspberry Pi initramfsThree things:
[1] The initramfs is NOT the initrd (te second one is the temp
stage in booting the linux to mmcblk...); [2] There are some config parameters
you need to set up in
your kernel .config file:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/config-
initramfs
[3] The command line is formed in u-boot or in grub2, or in
your Linux boot loader (you need to add some lines
in ash u-boot config script, as the following example):
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/u-boot.ashGood Luck,
Zoran
_______Quoted 2 lines · Greg Wilson-Lindberg
I'm trying to generate an initramfs for a raspberry pi 3 for a sumo build. We are
based off of the Qt boot2qt system.
Quoted 2 lines
I have followed the instructions in the meta-raspberrypi.pdf documentation,
section 3.14 Image with Initramfs.
Quoted 2 lines
I edited the meta-raspberrypi/recipes-kernel/linux/linux-raspberry.inc file and
added the variables into my local.conf file. I created a rpi-minimal-initramfs.bb recipe and it is created when I build the system. But the command line that is put into the boot partition is:
Quoted 2 lines
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
fbcon=map:10 fbcon=font:VGA8x8
Quoted 4 lines
No initramfs.
In the linux-raspberry.inc file, after the insertion point for the new kernel variables,
there is a test for
KERNEL_INITRAMFS. I tried setting this in my local.conf file, but when I do I get an error for a missing file:Quoted 7 lines
|
/home/..../tmp/deploy/images/raspberrypi3/uImage1-raspberrypi3.bin:
| No such file or directorySo, apparently that can't be set directly.
There seems to be something missing in the instructions in the meta-
raspberrypi.pdf documentation. Anyone that has any experience with setting this up and can help me figure out what I'm missing, I would greatly appreciate the help.
Quoted 19 lines
Regards,
Greg Wilson-Lindberg--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
A message that is not in the archive (sent off-list or not yet received): CAEFUPH06j=f+9C3x3DebS-K9TAWxzSNwZHY9_fUa1bAScUpsng@mail.gmail.com
No providers found in RDEPENDS_datatransfer-mgr? [file-rdeps]
Hello Simon,
I'll try to help you today. I am more (99%) BSP guy. There are much more versatile people for rootfs DEPENDS and RDEPENDS.
Good practice is to post first to the list, then, after all, ask for private help.
Best Regards,
Zoran
_______
---------- Forwarded message ---------
From: SIMON BABY <[email protected]>
Date: Thu, Sep 5, 2019 at 5:14 AM
Subject: Re: [yocto] [meta-raspberrypi] Error trying to generate Raspberry Pi initramfs
To: Zoran Stojsavljevic <[email protected]>
Hello Zoran,
I am new to yocto and trying to fix the below build issue. Can you please help.
ERROR: datatransfer-mgr-1.0-r1 do_package_qa: QA Issue:/usr/bin/DataTransferMgr contained in package datatransfer-mgr requires libzipcpp.so()(64bit), but no providers found in RDEPENDS_datatransfer-mgr? [file-rdeps]
ERROR: datatransfer-mgr-1.0-r1 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: datatransfer-mgr-1.0-r1 do_package_qa: Function failed: do_package_qa
My recipe for datatransfer-mgr and shared library zipcpp are below. Please help me.
DEPENDS = "zeromq cppzmq zipcpp protobuf json-c jsoncpp rapidjson" RDEPENDS_${PN} += "zipcpp"
DESCRIPTION = "Wireless Data Transfer Manager for Evo" SECTION = "base"
PRIORITY = "optional"
LICENSE = "CLOSED"
PR = "r1"
SRC_URI = "git://git@elsvsapp02/GroundLink-Evo/DataTransferManager.git;protocol=ssh;branch=develop" #SRC_URI = "file:///home/tdy/DataTransferManager/DataTransferManager.tgz"
SRCREV = "${AUTOREV}"
CDT_CONFIGURATION ?= "Release"BUILD_ARTIFACT = "DataTransferMgr"
S = "${WORKDIR}/git/DataTransferManager-1.0"
#S = "${WORKDIR}/DataTransferManager-1.0"
export STAGING_INCDIR
export STAGING_LIBDIR
export PV
export PR
do_compile() {
cd Release
oe_runmake STAGING_DIR_HOST=${STAGING_DIR_HOST}
}do_install() {
# mkdir -p ${D}${bindir}
# install -m 755 ${S}/Release/${BUILD_ARTIFACT} ${D}${bindir}
install -d ${D}${bindir}
install -m 0755 ${S}/Release/${BUILD_ARTIFACT} ${D}${bindir}
}FILES_${PN} = "${bindir}/${BUILD_ARTIFACT}"
#PACKAGES = "${PN}"
zipcpp recepe
=================
# This file is the zipcpp recipe.
#
DEPENDS = "zeromq cppzmq"
SUMMARY = "ZeroMQ based IPC C++ library"
SECTION = "base"
LICENSE = "CLOSED"
SRC_URI = "git://git@elsvsapp02/TDY/ZIPCpp.git;protocol=ssh;branch=develop" SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
LIB_ARTIFACT = "libzipcpp.so"LIB_VERSION = "1"
do_install() {
install -d ${D}${libdir}
install -m 0755 ${S}/bin/${LIB_ARTIFACT}.${LIB_VERSION}
${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}
ln -rs ${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}
${D}${libdir}/${LIB_ARTIFACT}
install -d ${D}${includedir}
install -m 0644 ${S}/include/zipc.h ${D}${includedir}
install -m 0644 ${S}/include/logger.h ${D}${includedir}
install -d ${D}${includedir}/fmt
install -m 0644 ${S}/include/fmt/* ${D}${includedir}/fmt
}#do_install_append() {
# rm -r ${D}/usr/share
#}
FILES_${PN} += "${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}" FILES_${PN} += "${libdir}/${LIB_ARTIFACT}"
#PACKAGES = "${PN}"
Rgds
Simon
Quoted 107 lines · Zoran Stojsavljevic
Hello Greg,
This, what I have posted as answer work for me on BBB (BeagleBone Black) seamlessly.
I did not try it on Sabre Automotive, but as we speak, I just straightened out the optimal local.conf for it (with very rich networking services on the top of Linux), and I am 100% sure the above initramfs methodology will work on Sabre Automotive as well.
I have no idea about specifics on RPI 3. Sorry for that.
Best Regads,
Zoran
_______Quoted 83 lines · Greg Wilson-Lindberg
Hi Zoran,
Thanks for your comments.I'm adding [meta-raspberrypi] to the as I have realized that some might have missed this Raspberry-pi specific question.
Thanks,
Greg Wilson-LindbergQuoted 74 lines
-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, August 28, 2019 05:08 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] Error trying to generate Raspberry Pi initramfsThree things:
[1] The initramfs is NOT the initrd (te second one is the temp
stage in booting the linux to mmcblk...); [2] There are some config parameters
you need to set up in
your kernel .config file:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/config-
initramfs
[3] The command line is formed in u-boot or in grub2, or in
your Linux boot loader (you need to add some lines
in ash u-boot config script, as the following example):
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/u-boot.ashGood Luck,
Zoran
_______Quoted 2 lines · Greg Wilson-Lindberg
I'm trying to generate an initramfs for a raspberry pi 3 for a sumo build. We are
based off of the Qt boot2qt system.
Quoted 2 lines
I have followed the instructions in the meta-raspberrypi.pdf documentation,
section 3.14 Image with Initramfs.
Quoted 2 lines
I edited the meta-raspberrypi/recipes-kernel/linux/linux-raspberry.inc file and
added the variables into my local.conf file. I created a rpi-minimal-initramfs.bb recipe and it is created when I build the system. But the command line that is put into the boot partition is:
Quoted 2 lines
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
fbcon=map:10 fbcon=font:VGA8x8
Quoted 4 lines
No initramfs.
In the linux-raspberry.inc file, after the insertion point for the new kernel variables,
there is a test for
KERNEL_INITRAMFS. I tried setting this in my local.conf file, but when I do I get an error for a missing file:Quoted 7 lines
|
/home/..../tmp/deploy/images/raspberrypi3/uImage1-raspberrypi3.bin:
| No such file or directorySo, apparently that can't be set directly.
There seems to be something missing in the instructions in the meta-
raspberrypi.pdf documentation. Anyone that has any experience with setting this up and can help me figure out what I'm missing, I would greatly appreciate the help.
Quoted 19 lines
Regards,
Greg Wilson-Lindberg--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Re: No providers found in RDEPENDS_datatransfer-mgr? [file-rdeps]
Hello Simon,
As I am in EU time zone, and vast majority of YOCTO maintainers are in USA time zone, here is my naive try to help you with this application problem.
As I googled the problem, and sorted out the thoughts, you are missing one important package (which is not added in your build).
The package is called libzipcpp or libzippp: C++ wrapper for libzip.
So, the premeditated steps to be done:
[1] You might find it here: https://github.com/ctabin/libzippp, or maybe meta-oe layer does include it (you need to do the investigation about this);
[2] You need to add in your local.conf something like this:CORE_IMAGE_EXTRA_INSTALL += "libzipcpp" or "libzippp" (whatever you find from [1]);
[3] And, the last step, in problematic recipe you need to add the line:
RDEPENDS_${PN} = "libzipcpp" or "libzippp"
or
RDEPENDS = "libzipcpp" or "libzippp"
Hope this helps!
Cheers,
Zoran
_______
Quoted 231 lines · Zoran Stojsavljevic
Hello Simon,
I'll try to help you today. I am more (99%) BSP guy. There are much more versatile people for rootfs DEPENDS and RDEPENDS.
Good practice is to post first to the list, then, after all, ask for private help.
Best Regards,
Zoran
_______---------- Forwarded message ---------
From: SIMON BABY <[email protected]>
Date: Thu, Sep 5, 2019 at 5:14 AM
Subject: Re: [yocto] [meta-raspberrypi] Error trying to generate Raspberry Pi initramfs
To: Zoran Stojsavljevic <[email protected]>Hello Zoran,
I am new to yocto and trying to fix the below build issue. Can you please help.
ERROR: datatransfer-mgr-1.0-r1
do_package_qa: QA Issue:/usr/bin/DataTransferMgrcontained in package datatransfer-mgr requires libzipcpp.so()(64bit), but no providers found in RDEPENDS_datatransfer-mgr? [file-rdeps]
ERROR: datatransfer-mgr-1.0-r1do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: datatransfer-mgr-1.0-r1do_package_qa: Function failed:do_package_qaMy recipe for datatransfer-mgr and shared library zipcpp are below. Please help me.
DEPENDS = "zeromq cppzmq zipcpp protobuf json-c jsoncpp rapidjson" RDEPENDS_${PN} += "zipcpp"
DESCRIPTION = "Wireless Data Transfer Manager for Evo" SECTION = "base"
PRIORITY = "optional"
LICENSE = "CLOSED"
PR = "r1"
SRC_URI= "git://git@elsvsapp02/GroundLink-Evo/DataTransferManager.git;protocol=ssh;branch=develop" #SRC_URI = "file:///home/tdy/DataTransferManager/DataTransferManager.tgz"
SRCREV = "${AUTOREV}"
CDT_CONFIGURATION?= "Release"BUILD_ARTIFACT= "DataTransferMgr"S = "${WORKDIR}/git/DataTransferManager-1.0"
#S = "${WORKDIR}/DataTransferManager-1.0"export
STAGING_INCDIR
exportSTAGING_LIBDIR
export PV
export PRdo_compile() { cd Release oe_runmake STAGING_DIR_HOST=${STAGING_DIR_HOST} }
do_install(){
# mkdir -p ${D}${bindir}
# install -m 755 ${S}/Release/${BUILD_ARTIFACT} ${D}${bindir}install -d ${D}${bindir} install -m 0755 ${S}/Release/${BUILD_ARTIFACT} ${D}${bindir} }FILES_${PN} = "${bindir}/${BUILD_ARTIFACT}"
#PACKAGES = "${PN}"zipcpp recepe
=================
# This file is the zipcpp recipe.
#DEPENDS = "zeromq cppzmq"
SUMMARY = "ZeroMQ based IPC C++ library"
SECTION = "base"
LICENSE = "CLOSED"
SRC_URI= "git://git@elsvsapp02/TDY/ZIPCpp.git;protocol=ssh;branch=develop" SRCREV = "${AUTOREV}"S = "${WORKDIR}/git"
LIB_ARTIFACT= "libzipcpp.so"LIB_VERSION= "1"do_install() { install -d ${D}${libdir} install -m 0755 ${S}/bin/${LIB_ARTIFACT}.${LIB_VERSION} ${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION} ln -rs ${D}${libdir}/${LIB_ARTIFACT}.${LIB_VERSION} ${D}${libdir}/${LIB_ARTIFACT} install -d ${D}${includedir} install -m 0644 ${S}/include/zipc.h ${D}${includedir} install -m 0644 ${S}/include/logger.h ${D}${includedir} install -d ${D}${includedir}/fmt install -m 0644 ${S}/include/fmt/* ${D}${includedir}/fmt }#do_install_append() {
# rm -r ${D}/usr/share
#}FILES_${PN} += "${libdir}/${LIB_ARTIFACT}.${LIB_VERSION}" FILES_${PN} += "${libdir}/${LIB_ARTIFACT}"
#PACKAGES = "${PN}"
Rgds
SimonQuoted 107 lines · Zoran Stojsavljevic
Hello Greg,
This, what I have posted as answer work for me on BBB (BeagleBone Black) seamlessly.
I did not try it on Sabre Automotive, but as we speak, I just straightened out the optimal local.conf for it (with very rich networking services on the top of Linux), and I am 100% sure the above initramfs methodology will work on Sabre Automotive as well.
I have no idea about specifics on RPI 3. Sorry for that.
Best Regads,
Zoran
_______Quoted 83 lines · Greg Wilson-Lindberg
Hi Zoran,
Thanks for your comments.I'm adding [meta-raspberrypi] to the as I have realized that some might have missed this Raspberry-pi specific question.
Thanks,
Greg Wilson-LindbergQuoted 74 lines
-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, August 28, 2019 05:08 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] Error trying to generate Raspberry Pi initramfsThree things:
[1] The initramfs is NOT the initrd (te second one is the temp
stage in booting the linux to mmcblk...); [2] There are some config parameters
you need to set up in
your kernel .config file:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/config-
initramfs
[3] The command line is formed in u-boot or in grub2, or in
your Linux boot loader (you need to add some lines
in ash u-boot config script, as the following example):
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/custom/u-boot.ashGood Luck,
Zoran
_______Quoted 2 lines · Greg Wilson-Lindberg
I'm trying to generate an initramfs for a raspberry pi 3 for a sumo build. We are
based off of the Qt boot2qt system.
Quoted 2 lines
I have followed the instructions in the meta-raspberrypi.pdf documentation,
section 3.14 Image with Initramfs.
Quoted 2 lines
I edited the meta-raspberrypi/recipes-kernel/linux/linux-raspberry.inc file and
added the variables into my local.conf file. I created a rpi-minimal-initramfs.bb recipe and it is created when I build the system. But the command line that is put into the boot partition is:
Quoted 2 lines
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
fbcon=map:10 fbcon=font:VGA8x8
Quoted 4 lines
No initramfs.
In the linux-raspberry.inc file, after the insertion point for the new kernel variables,
there is a test for
KERNEL_INITRAMFS. I tried setting this in my local.conf file, but when I do I get an error for a missing file:Quoted 7 lines
|
/home/..../tmp/deploy/images/raspberrypi3/uImage1-raspberrypi3.bin:
| No such file or directorySo, apparently that can't be set directly.
There seems to be something missing in the instructions in the meta-
raspberrypi.pdf documentation. Anyone that has any experience with setting this up and can help me figure out what I'm missing, I would greatly appreciate the help.
Quoted 19 lines
Regards,
Greg Wilson-Lindberg--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto