AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1295259

HYK's questions

Martin Hope
HYK
Asked: 2021-05-26 23:45:26 +0800 CST

Yocto initramfs 在刷机过程中 rootfs 中没有足够的空间

  • 4

我一直在尝试使用 Yocto 为 imx6ull 构建 Linux 映像。我已经成功地构建了一个旧版本并使用 mfgtool 刷新了电路板。在 Linux Gatesgarth 分支中,我一直遇到 mfgtool 问题,所以我试图切换到 uuu。

uuu 脚本的第一部分如下;

uuu_version 1.2.39

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot.imx

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f zImage
FB: ucmd setenv fastboot_buffer ${fdt_addr}
FB: download -f imx6ull-14x14-evk-gpmi-weim-imx6ull14x14evk.dtb
FB: ucmd setenv fastboot_buffer ${initrd_addr}
FB: download -f fsl-image-mfgtool-initramfs-imx6ull14x14evk.cpio.gz.u-boot
FB: ucmd setenv bootargs ${bootargs} ${mtdparts}
FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}

FBK: ucmd cat /proc/mtd
FBK: ucmd cat /proc/mtd | while read dev size erase name; do mtd=${dev:3}; mtd=${mtd%:}; name=${name%\"}; name=${name#\"}; echo export $name=$mtd >> /tmp/mtd.sh; done; 

此时设备给出“设备上没有剩余空间”错误。

run shell cmd: cat /proc/mtd | while read dev size erasesize name; do mtd=${dev:3}; mtd=${mtd%:}; name=${name%\"}; name=${name#\"}; echo export $name=$mtd >> /tmp/mtd.sh; done;
sh: line 0: echo: write error: No space left on device

我正在使用带有 512mb 闪存的裸映像进行测试,但似乎 rootfs 分区已满。

1:243>Start Cmd:FBK: ucmd echo "`df -h`"
Filesystem      Size  Used Avail Use% Mounted on
rootfs           31M   31M     0 100% /
none             31M     0   31M   0% /dev

我试图IMAGE_OVERHEAD_FACTOR = "1.5"在 local.conf 中增加分区的大小,但错误仍然存​​在。

如何在 initramfs 中增加 rootfs 分区的大小,或者问题的原因是什么?

linux yocto-project
  • 1 个回答
  • 268 Views
Martin Hope
HYK
Asked: 2021-04-09 04:45:59 +0800 CST

为什么 Yocto Linux 中的 IPtables 和内核模块版本不匹配?

  • 6

我正在尝试将 IPtables 添加到 Yocto Linux 映像,但我认为 IPtables 所需的已编译模块和模块的版本不匹配。IPtables 正在寻找下面的模块,/lib/modules/4.9.88但内核模块在/lib/modules/5.4.94.

root@imx6ullevk:~# iptables -L
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.9.88+g5e23f9d61147
iptables v1.8.5 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

root@imx6ullevk:/lib/modules# ls -al
drwxr-xr-x    3 root     root           240 Apr  6 11:50 .
drwxr-xr-x    7 root     root          4528 Apr  6 11:50 ..
drwxr-xr-x    3 root     root          1208 Apr  6 11:50 5.4.94+g4b9631852aa7

root@imx6ullevk:/lib/modules/5.4.94+g4b9631852aa7# cat modules.builtin | grep ip_
kernel/net/ipv4/ip_tunnel.ko
kernel/net/ipv4/netfilter/ip_tables.ko

有什么我可以尝试解决的吗?

我使用以下步骤创建图像。我还尝试了比 Gatesgarth 更新的分支(Thud、Master、Zeus、Warrior ......)并使模块包含在内并模块化,但问题在于。

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b gatesgarth;
repo sync;
DISTRO=fslc-framebuffer MACHINE=imx6ullevk source setup-environment build;

#Add necessary recipies to the local.conf
echo 'MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "kernel-modules"
IMAGE_INSTALL_append = " \
    packagegroup-core-ssh-openssh \
    openssh-sftp-server \
    iptables "' >> build/conf/local.conf;

#Add ip_tables modules
bitbake -c menuconfig virtual/kernel;

#Build the image
bitbake core-image-base;
iptables kernel-module
  • 1 个回答
  • 365 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve