首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用swupdate时提示没有足够的可用空间。

使用swupdate时提示没有足够的可用空间。
EN

Stack Overflow用户
提问于 2022-02-21 01:18:39
回答 1查看 288关注 0票数 0

我在使用yocto构建的swupdate映像时遇到了一个问题。

代码语言:javascript
运行
复制
Software Update started !

[network_initializer] : Software update started
[extract_file_to_tmp] : Found file
[extract_file_to_tmp] : filename sw-description
[extract_file_to_tmp] : size 303
[get_common_fields] : Version 0.1.0
[get_common_fields] : Description Firmware update for XXXXX Project
[parse_hw_compatibility] : Accepted Hw Revision : 1.0
[parse_hw_compatibility] : Accepted Hw Revision : 1.2
[parse_hw_compatibility] : Accepted Hw Revision : 1.3
[_parse_images] : Found Image: rootfs.ext4.gz in device : /dev/mmcblk2p4 for handler raw
[check_hw_compatibility] : Hardware myir Revision: 1.0
[check_hw_compatibility] : Hardware compatibility verified
[extract_files] : Found file
[extract_files] : filename rootfs.ext4.gz
[extract_files] : size 373258053 required
ERROR : Not enough free space to extract rootfs.ext4.gz (needed 373258053, got 223219712)
Image invalid or corrupted. Not installing ...
[network_initializer] : Main thread sleep again !
Waiting for requests...
ERROR : Writing to IPC fails due to Broken pipe

如图所示,它表示空间不足,然后使用resize2fs /dev/mmcblk2p4扩展空间。现在它有了1g的空间。但还是一样的暗示。请告诉我你的想法。

EN

回答 1

Stack Overflow用户

发布于 2022-07-14 16:10:19

尝试在sw-description文件中使用installed-directly标志。

代码语言:javascript
运行
复制
        files: (
            {
                    filename = "rootfs.ext4.gz";
                    sha256 = "bc57b9c737033d0d6826db51618d596da7ecf3fdc0cb48dc9986a6094f529413";
                    type = "archive";
                    path = "/path/to/extract";
                    preserve-attributes = true; 
                    installed-directly = true;  <---------- this option
                    properties: {
                            create-destination = "true";
                    }
            }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71200236

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档