Toybrick

rk3399prod Debian10制作文件系统镜像问题

hellosong

注册会员

积分
178
楼主
发表于 2020-7-27 14:44:54    查看: 12802|回复: 7 | [复制链接]    打印 | 只看该作者
我按照WIKI制作文件系统时,我的板子flash的空间不够了,我挂载了一个SD卡来存储文件系统镜像。开始报tar: Exiting with failure status due to previous errors, 在网上查询了是有些文件没有权限之类的问题导致的,之后运行tar cvfpJ ./rootfs1.tar.xz {/bin,/boot,/debian,/dev,/etc,/home,/lib,/media,/opt,/proc,/root,/run,/sbin,/srv,/sys,/system,/tmp,/usr,/var} > /dev/null
打印tar的错误信息重新打包,但在打包过程中会出现以下日志,并且tar.xz的大小就不在增加了,不是上边的权限问题,以下这种错误信息怎么处理?
tar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/power/autosuspend_delay_ms: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/power/runtime_status: File shrank by 4084 bytes; padding with zerostar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/power/runtime_usage: File shrank by 4094 bytes; padding with zerostar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/power/runtime_suspended_time: File shrank by 4094 bytes; padding with zerostar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/driver_override: File shrank by 4089 bytes; padding with zerostar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/modalias: File shrank by 4051 bytes; padding with zerostar: /sys/devices/platform/ffa8ec00.nocp-lp-msch1/uevent: File shrank by 3928 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/control: File shrank by 4091 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/async: File shrank by 4087 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/runtime_enabled: File shrank by 4088 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/runtime_active_kids: File shrank by 4094 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/runtime_active_time: File shrank by 4094 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/autosuspend_delay_ms: Read error at byte 0, while reading 512 bytes: Input/output errortar: /sys/devices/platform/ff8f0000.vop/power/runtime_status: File shrank by 4086 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/runtime_usage: File shrank by 4094 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/power/runtime_suspended_time: File shrank by 4087 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/driver_override: File shrank by 4089 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/modalias: File shrank by 4058 bytes; padding with zerostar: /sys/devices/platform/ff8f0000.vop/uevent: File shrank by 3932 bytes; padding with zerostar: /sys/devices/breakpoint/type: File shrank by 4094 bytes; padding with zerostar: /sys/devices/breakpoint/power/control: File shrank by 4091 bytes; padding with zerostar: /sys/devices/breakpoint/power/async: File shrank by 4087 bytes; padding with zerostar: /sys/devices/breakpoint/power/runtime_enabled: File shrank by 4087 bytes; padding with zerostar: /sys/devices/breakpoint/power/runtime_active_kids: File shrank by 4094 bytes; padding with zerostar: /sys/devices/breakpoint/power/runtime_active_time: File shrank by 4094 bytes; padding with zerostar: /sys/devices/breakpoint/power/autosuspend_delay_ms: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/devices/breakpoint/power/runtime_status: File shrank by 4084 bytes; padding with zerostar: /sys/devices/breakpoint/power/runtime_usage: File shrank by 4094 bytes; padding with zerostar: /sys/devices/breakpoint/power/runtime_suspended_time: File shrank by 4094 bytes; padding with zerostar: /sys/devices/breakpoint/uevent: File shrank by 4096 bytes; padding with zerostar: /sys/devices/breakpoint/perf_event_mux_interval_ms: File shrank by 4094 bytes; padding with zerostar: /sys/class/drm/version: File shrank by 4077 bytes; padding with zerostar: /sys/class/gpio/unexport: Read error at byte 0, while reading 1536 bytes: Input/output errortar: /sys/class/gpio/export: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/class/zram-control/hot_remove: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/class/zram-control/hot_add: File shrank by 4094 bytes; padding with zerostar: /sys/class/sensor_class/gyro_calibration: File shrank by 4076 bytes; padding with zerostar: /sys/class/sensor_class/accel_calibration: File shrank by 4075 bytes; padding with zerostar: /sys/class/rkwifi/chip: File shrank by 4087 bytes; padding with zerostar: /sys/class/rkwifi/power: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/class/rkwifi/driver: Read error at byte 0, while reading 1024 bytes: Input/output errortar: /sys/class/rkwifi/preload: Read error at byte 0, while reading 4096 bytes: Input/output errortar: /sys/class/devcoredump/disabled: File shrank by 4094 bytes; padding with zerostar: /sys/power/state: File shrank by 4096 bytes; padding with zerostar: /sys/power/wake_unlock: File shrank by 4095 bytes; padding with zerostar: /sys/power/pm_freeze_timeout: File shrank by 4090 bytes; padding with zerostar: /sys/power/pm_wakeup_irq: Read error at byte 0, while reading 4096 bytes: No data availabletar: /sys/power/pm_print_times: File shrank by 4094 bytes; padding with zeros^C
回复

使用道具 举报

hellosong

注册会员

积分
178
沙发
 楼主| 发表于 2020-7-27 16:03:25 | 只看该作者
补一张图,上边粘贴的可能看不清

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

hellosong

注册会员

积分
178
板凳
 楼主| 发表于 2020-7-28 09:46:24 | 只看该作者
麻烦版主解答一下
回复

使用道具 举报

hellosong

注册会员

积分
178
地板
 楼主| 发表于 2020-7-28 12:30:00 | 只看该作者
tar命令 这边也没有退出,tar.xz包的大小却始终不变?  请解答一下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

qiu

超级版主

积分
1152
5#
发表于 2020-7-28 20:01:59 | 只看该作者
/sys   /dev 不要打包进去。 请按照教程操作。
回复

使用道具 举报

addy

超级版主

积分
609
6#
发表于 2020-7-28 20:04:31 | 只看该作者
打包命令请参考wiki文件系统制作章节操作,直接复制命令,不要随意修改!
sys和dev目录是系统生成的,不能打包
回复

使用道具 举报

Ptolemaeus

中级会员

积分
205
7#
发表于 2021-3-12 08:07:26 | 只看该作者
什么时候出1126的板子啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表