如何构建 Android 内核以使用 DS-5 精简?
我打算使用适用于 Android 的 ARM DS5 Streamline。
要将 Streamline 与 Android 目标一起使用,您必须构建 Gator 驱动程序 gator.ko 并将其放置在目标文件系统上与 Gator 守护程序 gatord 相同的目录中。将 gator 驱动程序模块源从主机传输到目标。它们位于您的主机上:
installdir/arm/gator/src/gator-driver.tar.gz
假设您已解压该文件并且拥有构建内核模块所需的所有工具,请在您的计算机上输入以下命令创建 gator.ko 模块的目标:
make -C kernel_build_dir M=pwd
ARCH=arm CROSS_COMPILE=<...> 模块
我从 ARM 网站上得到了这个 。他们说“目标”,是指 Android 设备吗?我需要在 Android 设备上执行这些步骤吗?另外 kernel_build_dir 是什么意思?我知道我可以找到我的桌面 Linux 机器的内核目录。但我认为我不应该将桌面计算机的内核目录作为参数传递。
I am tying to use ARM DS5 Streamline for Android.
To use Streamline with your Android target, you must build the Gator driver, gator.ko and place it in the same directory as the Gator daemon, gatord, on the target file system. Transfer the gator driver module sources from your host to the target. They are located on your host here:
installdir/arm/gator/src/gator-driver.tar.gz
Assuming that you have unzipped the file and that you have all of the required tools for building kernel modules, enter the following command on your target to create the gator.ko module:
make -C kernel_build_dir M=pwd
ARCH=arm CROSS_COMPILE=<...> modules
I got this from ARM website. They say "target", are they meaning Android devices? Do I go through these steps on Android devices? Also what do they mean by kernel_build_dir? I know I could find kernel dir for my desktop linux machine. But I don't think I should pass my desktop machine's kernel directory as the parameter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目标是您要使用 Android 的设备。 host 是您在其上编译此驱动程序/Android 的计算机。
不可以,您必须在主机上使用驱动程序编译内核,然后将其上传到目标设备。
内核构建目录是包含 Linux 内核源代码的目录。您可能必须使用某些特定的内核版本才能确保能够成功编译驱动程序,但您的内核也可以。只需阅读操作方法即可。
我希望,我已经回答了你所有的问题。
target is the device on which you are going to use Android. host is the machine on which you are compiling this driver/Android.
No, you have to compile kernel with drivers on your host machine and then upload it to your target device.
Kernel build directory is the directory that contains Linux kernel source codes. You will probably have to use some specific kernel version to be sure you are able to successfully compile your drivers, but your kernel would be okay too. Just read the how-to.
I hope, I have answered all your questions.