[yocto] rpi-basic-image-1.0-r0 do_rootfs: Function failed: do_rootfs
mohammed aqdam
mohammedaqdam at gmail.com
Wed Aug 9 21:16:52 PDT 2017
i was building image for rpi 3.
so when i run bitbake -k rpi-basic-image i'm getting following error.
how to recover this error...
root at pcz-ee207837-2:/u/my_poky/poky/build# bitbake -k rpi-basic-image
Parsing recipes: 100%
|##########################################################################################################################################|
Time: 0:01:10
Parsing of 851 .bb files complete (0 cached, 851 parsed). 1320
targets, 73 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "raspberrypi3"
DISTRO = "poky"
DISTRO_VERSION = "2.3.1"
TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4
callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "pyro:4a39979c8d1e560fa54240e99734a651dfbaa63a"
meta-raspberrypi = "master:f6a2ca21c72b8d97cd0f89a0a436bf90b431698b"
Initialising tasks: 100%
|#######################################################################################################################################|
Time: 0:00:06
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: rpi-basic-image-1.0-r0 do_rootfs: Error executing a python
function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_rootfs(d)
0003:
File: '/u/my_poky/poky/meta/classes/image.bbclass', lineno: 270,
function: do_rootfs
0266:
0267: progress_reporter.next_stage()
0268:
0269: # generate rootfs
*** 0270: create_rootfs(d, progress_reporter=progress_reporter,
logcatcher=logcatcher)
0271:
0272: progress_reporter.finish()
0273:}
0274:do_rootfs[dirs] = "${TOPDIR}"
File: '/u/my_poky/poky/meta/lib/oe/rootfs.py', lineno: 1005, function:
create_rootfs
1001: RpmRootfs(d, manifest_dir, progress_reporter,
logcatcher).create()
1002: elif img_type == "ipk":
1003: OpkgRootfs(d, manifest_dir, progress_reporter,
logcatcher).create()
1004: elif img_type == "deb":
*** 1005: DpkgRootfs(d, manifest_dir, progress_reporter,
logcatcher).create()
1006:
1007: os.environ.clear()
1008: os.environ.update(env_bkp)
1009:
File: '/u/my_poky/poky/meta/lib/oe/rootfs.py', lineno: 638, function: __init__
0634: bb.utils.remove(self.d.getVar('MULTILIB_TEMP_ROOTFS'), True)
0635: self.manifest = DpkgManifest(d, manifest_dir)
0636: self.pm = DpkgPM(d, d.getVar('IMAGE_ROOTFS'),
0637: d.getVar('PACKAGE_ARCHS'),
*** 0638: d.getVar('DPKG_ARCH'))
0639:
0640:
0641: def _create(self):
0642: pkgs_to_install = self.manifest.parse_initial_manifest()
File: '/u/my_poky/poky/meta/lib/oe/package_manager.py', lineno: 1245,
function: __init__
1241: self.all_arch_list = archs.split()
1242: all_mlb_pkg_arch_list =
(self.d.getVar('ALL_MULTILIB_PACKAGE_ARCHS') or "").split()
1243: self.all_arch_list.extend(arch for arch in
all_mlb_pkg_arch_list if arch not in self.all_arch_list)
1244:
*** 1245: self._create_configs(archs, base_archs)
1246:
1247: self.indexer = DpkgIndexer(self.d, self.deploy_dir)
1248:
1249: """
File: '/u/my_poky/poky/meta/lib/oe/package_manager.py', lineno: 1483,
function: _create_configs
1479: if variant_arch not in base_arch_list:
1480: base_arch_list.append(variant_arch)
1481:
1482: with open(self.apt_conf_file, "w+") as apt_conf:
*** 1483: with
open(self.d.expand("${STAGING_ETCDIR_NATIVE}/apt/apt.conf.sample")) as
apt_conf_sample:
1484: for line in apt_conf_sample.read().split("\n"):
1485: match_arch = re.match(" Architecture
\".*\";$", line)
1486: architectures = ""
1487: if match_arch:
Exception: FileNotFoundError: [Errno 2] No such file or directory:
'/u/my_poky/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-basic-image/1.0-r0/recipe-sysroot-native/etc/apt/apt.conf.sample'
ERROR: rpi-basic-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/u/my_poky/poky/build/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-basic-image/1.0-r0/temp/log.do_rootfs.21760
ERROR: Task (/u/my_poky/poky/meta-raspberrypi/recipes-core/images/rpi-basic-image.bb:do_rootfs)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 2312 tasks of which 2311 didn't need to
be rerun and 1 failed.
Summary: 1 task failed:
/u/my_poky/poky/meta-raspberrypi/recipes-core/images/rpi-basic-image.bb:do_rootfs
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
More information about the yocto
mailing list