On 31 January 2018 at 00:55, Bishop, Mark (STRT) < [email protected]> wrote:
> Thanks for your help on the squashfs stuff. > > > > One last thing though when I try and create a read-only root fs in > petalinux. I will be adding an overlay or some sort of R/W partition but > it’s just going to be saving ssh keys and a minor device config file. > > > > I edited project-spec/meta-user/conf/petalinuxbsp.conf and added: > > EXTRA_IMAGE_FEATURES +="read-only-rootfs" > > but now I get these errors when I build. > > > > [INFO] building project > > [INFO] sourcing bitbake > > INFO: bitbake petalinux-user-image > > WARNING: Host distribution "Debian-9.3" has not been validated with this > version of the build system; you may possibly experience unexpected > failures. It is recommended that you use a tested distribution. > > Loading cache: 100% |############################# > ############################################################ > ############################################################ > ###############################################| Time: 0:00:01 > > Loaded 3258 entries from dependency cache. > > Parsing recipes: 100% |############################# > ############################################################ > ############################################################ > #############################################| Time: 0:00:02 > > Parsing of 2467 .bb files complete (2435 cached, 32 parsed). 3260 targets, > 226 skipped, 0 masked, 0 errors. > > NOTE: Resolving any missing task queue dependencies > > WARNING: /opt/pkg/petalinux/2017.4/components/yocto/source/arm/ > layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb.do_compile > is tainted from a forced run | ETA: 0:00:04 > > Initialising tasks: 100% |############################# > ############################################################ > ############################################################ > ##########################################| Time: 0:00:05 > > Checking sstate mirror object availability: 100% > |########################################################### > ############################################################ > ################################################| Time: 0:00:00 > > NOTE: Executing SetScene Tasks > > NOTE: Executing RunQueue Tasks > > ERROR: petalinux-user-image-1.0-r0 do_rootfs: The following packages could > not be configured offline and rootfs is read-only: ['100-sysvinit-inittab'] > Probably related to the use of SERIAL_CONSOLES_CHECK? Which can only be done at runtime, and thus its postinst cannot be run for a read-only image. Regards, Nathan > ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs > > ERROR: Logfile of failure stored in: /home/mark/git_repo/temp/ > tempproject/ZMMP_7045_PetaLinux_PL2015_2/ZMMP_7045_ > PL2015_2/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/ > petalinux-user-image/1.0-r0/temp/log.do_rootfs.78509 > > ERROR: Task (/home/mark/git_repo/temp/tempproject/ZMMP_7045_ > PetaLinux_PL2015_2/ZMMP_7045_PL2015_2/project-spec/meta- > plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) > failed with exit code '1' > > NOTE: Tasks Summary: Attempted 2256 tasks of which 2255 didn't need to be > rerun and 1 failed. > > > > Summary: 1 task failed: > > /home/mark/git_repo/temp/tempproject/ZMMP_7045_ > PetaLinux_PL2015_2/ZMMP_7045_PL2015_2/project-spec/meta- > plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs > > Summary: There were 2 WARNING messages shown. > > Summary: There were 2 ERROR messages shown, returning a non-zero exit code. > > ERROR: Failed to build project > > webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile! > > webtalk failed:Failed to get PetaLinux usage statistics! > > > > > > And the logfile(log.do_rootfs.78509): > > ........ > > DEBUG: Executing shell function zap_empty_root_password > > DEBUG: Shell function zap_empty_root_password finished > > NOTE: Executing rootfs_update_timestamp ... > > DEBUG: Executing shell function rootfs_update_timestamp > > DEBUG: Shell function rootfs_update_timestamp finished > > NOTE: Executing read_only_rootfs_hook ... > > DEBUG: Executing shell function read_only_rootfs_hook > > DEBUG: Shell function read_only_rootfs_hook finished > > NOTE: Executing empty_var_volatile ... > > DEBUG: Executing shell function empty_var_volatile > > DEBUG: Shell function empty_var_volatile finished > > NOTE: Executing set_user_group ... > > DEBUG: Executing shell function set_user_group > > NOTE: petalinux-user-image: Performing usermod with [-R > /home/mark/git_repo/temp/tempproject/ZMMP_7045_ > PetaLinux_PL2015_2/ZMMP_7045_PL2015_2/build/tmp/work/plnx_ > arm-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/rootfs -P root root] > > DEBUG: Shell function set_user_group finished > > NOTE: Delayed package scriptlet: 100-sysvinit-inittab > > ERROR: The following packages could not be configured offline and rootfs > is read-only: ['100-sysvinit-inittab'] > > DEBUG: Python function do_rootfs finished > > ERROR: Function failed: do_rootfs > > > > > > *Mark Bishop* > > *Sr. Firmware/Software Engineer – Microwave Subsystems* > > > > [image: cid:[email protected]] > > 4726 Eisenhower Blvd. > > Tampa, FL 33634 > > USA > > > > T +1 813 901 7293 <(813)%20901-7293> > > *[email protected] <[email protected]>* > > *smithsinterconnect.com* <http://www.smithsinterconnect.com/> > > *TRAK MICROWAVE IS NOW SMITHS INTERCONNECT!* > > > > > > This e-mail contains proprietary information some or all of which may be > legally privileged. It is intended for the recipient only. If an addressing > or transmission error has misdirected this e-mail, please notify the > authority by replying to this e-mail. If you are not the intended recipient > you must not use, disclose, distribute, copy, print, or rely on this > e-mail. In addition, information contained in or attached to this e-mail > may be subject to either 22 C.F.R. Parts 120?130, or 15 C.F.R. Parts > 730-774. These regulations prohibit the release or disclosure of certain > information contained herein to anyone who is not a U.S. citizen or > permanent resident alien, without a license first having been issued. > Failure to observe such requirements is a violation of U.S. law that > carries serious penalties. > > -- > _______________________________________________ > meta-xilinx mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-xilinx > >
-- _______________________________________________ meta-xilinx mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-xilinx
