如何配置 boot2docker 内核编译以包含 snd_aloop 支持?
how to configure boot2docker kernel compilation to include snd_aloop support?
我需要 运行 docker 依赖于 snd_aloop
模块的容器。我有 read 如果它们在特权模式下 运行,模块可以用 modprobe
加载到容器中。
在这种情况下,我了解该模块需要在主机上可用。
我在 MacOSX 上开发。这意味着 运行 在 boot2docker
中安装容器。据我所知,boot2docker
不附带 snd_aloop
模块:我在 /lib/modules
.
中找不到 kernel/sound/drivers/snd-aloop.ko
docker-machine
使 use a custom boot2docker
image. I have followed boot2docker
build instructions 变得容易。
boot2docker
构建过程使用 kernel_config
作为内核编译配置 make oldconfig
的基础。
我尝试在 kernel_config
中添加以下选项:
CONFIG_SND=m
CONFIG_SND_ALOOP=m
在运行宁make oldconfig
之前。但没有任何成功。生成的 .config
不保留任何指向 CONFIG_SND*
的指针。因此显然不编译支持 snd_aloop
.
我误会了什么?
Jean-François Roche提示我:我想通了下面是什么。
而不是像
那样猜测配置
CONFIG_SND=m
我应该 运行 make defconfig
.
然后检查 .config
并找出可能需要的配置。
我终于成功了
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_ALOOP=m
我需要 运行 docker 依赖于 snd_aloop
模块的容器。我有 read 如果它们在特权模式下 运行,模块可以用 modprobe
加载到容器中。
在这种情况下,我了解该模块需要在主机上可用。
我在 MacOSX 上开发。这意味着 运行 在 boot2docker
中安装容器。据我所知,boot2docker
不附带 snd_aloop
模块:我在 /lib/modules
.
kernel/sound/drivers/snd-aloop.ko
docker-machine
使 use a custom boot2docker
image. I have followed boot2docker
build instructions 变得容易。
boot2docker
构建过程使用 kernel_config
作为内核编译配置 make oldconfig
的基础。
我尝试在 kernel_config
中添加以下选项:
CONFIG_SND=m
CONFIG_SND_ALOOP=m
在运行宁make oldconfig
之前。但没有任何成功。生成的 .config
不保留任何指向 CONFIG_SND*
的指针。因此显然不编译支持 snd_aloop
.
我误会了什么?
Jean-François Roche提示我:我想通了下面是什么。
而不是像
那样猜测配置CONFIG_SND=m
我应该 运行 make defconfig
.
然后检查 .config
并找出可能需要的配置。
我终于成功了
CONFIG_SOUND=y
CONFIG_SOUND_OSS_CORE=y
CONFIG_SOUND_OSS_CORE_PRECLAIM=y
CONFIG_SND=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_ALOOP=m