UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
1,203 Views
Registered: ‎09-19-2017

Read only filesystem

I'm trying to setup a read-only root fs using petalinux.  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']
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:

........

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

2 Replies
647 Views
Registered: ‎12-28-2015

Re: Read only filesystem

Any Update ?
I face the same issue
0 Kudos
618 Views
Registered: ‎12-28-2015

Re: Read only filesystem

I found the answer.

Adding SERIAL_CONSOLES_CHECK_forcevariable = "" in project-spec/meta-user/conf/petalinuxbsp.conf solved my problem.

0 Kudos