【问题标题】:Compile Kernel module on Chromebook在 Chromebook 上编译内核模块
【发布时间】:2015-09-08 22:22:52
【问题描述】:

我正在运行带有面包块的 ARMv7 Chromebook。我想安装 CIFS 共享,但似乎 CIFS 不在内核中。所以我下载了与我相同的内核版本源,编译了 cifs.ko 模块,并尝试加载它。但是我收到了这个错误:

# insmod cifs.ko
insmod: ERROR: could not insert module cifs.ko: Operation not permitted

模块编译为ARM模块,我检查了文件:

# file cifs.kocifs.ko: ELF 32-bit LSB relocatable, ARM, version 1, BuildID[sha1]=e14d1772583fae478e2b113b57ce81c214e511af, not stripped

什么给了?

【问题讨论】:

  • 你是root吗?您使用的 config 是否与 chromebook 上使用的相同?
  • 我的 dmesg 告诉我:[170679.671792] Chromium OS LSM:init_module denied module="/home/user/Downloads/linux-3.10.18/fs/cifs/cifs.ko" pid=3180 cmdline ="insmod cifs.ko" 这表明 Linux 强化正在阻止自定义内核模块。如何禁用此功能??
  • 是的,我是 root。这不是同一个 .config,因为我不知道 .config 文件应该是什么或如何检索它。

标签: linux linux-kernel google-chrome-os chromebook


【解决方案1】:

Chromium OS 默认不允许添加内核模块。使用此脚本禁用模块锁定。 https://github.com/divx118/crouton-packages/blob/master/README.md

更多关于修改 Chromium OS 内核的信息可以在这里找到: https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-(x86)一般整个crouton仓库/wiki都有很大帮助。

【讨论】:

  • 始终欢迎提供指向潜在解决方案的链接,但请在链接周围添加上下文,以便您的其他用户了解它是什么以及为什么存在。始终引用重要链接中最相关的部分,以防目标站点无法访问或内容更改或永久离线。
猜你喜欢
  • 2018-06-28
  • 2011-05-03
  • 1970-01-01
  • 2012-12-10
  • 2015-07-31
  • 2011-03-28
  • 2011-06-06
相关资源
最近更新 更多