天嵌 ARM开发社区

 找回密码
 注册
查看: 3994|回复: 5

Ubuntu Kernel compiling with errors

[复制链接]
mckenny 发表于 2014-4-21 05:03:08 | 显示全部楼层 |阅读模式
Hello,

I hope that here is someone who can speak english and could help me a little bit.

So my problem is that I tried to compile the kernel in a virtual ubuntu machine and I followed the step-by-step description which is in the manual but if I compile the sample config file (imx6_config) then my E9 have problems with the network.
If I use the precompiled kernel which is delivered by embedsky then the E9 is working very well. I don't have the know how to compile the kernel correctly so it would be great if somebody could help me with a sample configuration which is tested and working.

Greetz

您好,

我希望这里是谁的人能讲英语,并且可能帮助我一点点。

所以我的问题是,我试图编译在虚拟机ubuntu的内核和我跟着一步一步的描述这是手册中,但如果我编译示例配置文件(imx6_config),那么我的E9有问题的网络。
如果我使用的是由embedsky交付的预编译内核然后E9工作得很好。我没有知道如何正确地编译内核所以这将是巨大的,如果有人能帮助我,这是测试工作的示例配置。

格尔茨
wbz073 发表于 2014-4-21 09:19:37 | 显示全部楼层
hello,
        please modify “/opt/Embedsky/TQIMX6/E9/Ubuntu/linux_E9_3.0.35_for_Ubuntu/Makefile”like this:
"CROSS_COMPILE        ?= $(CONFIG_CROSS_COMPILE:"%"=%)"
to "CROSS_COMPILE        := /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi-"
 楼主| mckenny 发表于 2014-4-21 23:44:45 | 显示全部楼层
本帖最后由 mckenny 于 2014-4-24 22:52 编辑

Thats not the real problem.
Using:
  1. make ARCH=arm CROSS_COMPILE= /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi- uImage
复制代码


I'm able to compile it but if I use the generated u-boot.bin, uImage and the oneiric.tgz (by Embedsky). After transfering the files to the E9. I start the E9 and booting ubuntu correctly but it have no network. The ethernet adapter glows orange and isn't able to get an IP over DHCP. With a static IP setting I'm also unable to ping or resolve other host in the local network or internet.

I think it is a problem with the .config file, oneiric.tgz file or the environment which I use to build the kernel.

My test environments were:
- ubuntu-12.04.2-desktop-amd64
To fix some errors I needed to do:
  1. sudo apt-get install lib32z1
  2. sudo apt-get install libncurses5-dev
  3. sudo apt-get install uboot-mkimage
复制代码


- ubuntu-12.04.4-desktop-amd64
To fix some errors I needed to do:
  1. apt-get install uboot-mkimage
复制代码


Both environments were english and in VMware with VMware Tools installed.


那不是真正的问题。
使用:
  1. make ARCH=arm CROSS_COMPILE= /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-none-linux-gnueabi- uImage
复制代码



我能够编译它,但如果我使用生成的u-boot.bin,把uImage和oneiric.tgz(由Embedsky)。后转化中的文件复制到E9。我开始E9和正确引导Ubuntu的,但它也没有网络。以太网适配器会呈橙色,且无法获取IP通过DHCP。使用静态IP设置,我也无法在本地网络或因特网ping通或解决其他主机。

我认为这是与。config文件,oneiric.tgz文件或者我用它来构建内核的环境问题。

我的测试环境如下:
- ubuntu-12.04.2-desktop-amd64
修正一些错误,我需要做的:

  1. <div>sudo apt-get install lib32z1</div><div>sudo apt-get install libncurses5-dev</div><div>sudo apt-get install uboot-mkimage</div>
复制代码



- ubuntu-12.04.4-desktop-amd64
修正一些错误,我需要做的:
  1. apt-get install uboot-mkimage
复制代码



这两种环境是英语,在VMware中安装VMware Tools的。
 楼主| mckenny 发表于 2014-4-25 06:03:59 | 显示全部楼层
Now I also tested it with ubuntu-12.04.3-desktop-amd64 without VMware Tools and copied the mkimage binary out of uboot_E9_1.3.4_for_Ubuntu.tar.bz2. I had the same result like before. The ethernet adapter glows orange but isn't able to connect to the local network or to the internet. After that I tried to compile the kernel with all network drivers because it looks like the driver doesn't work correctly or isn't installed but it had no effect. The E9 wasn't able connect with static / dhcp ip to the local network.

现在,我也测试了它与Ubuntu-12.04.3-桌面AMD64没有VMware Tools,然后复制MKIMAGE二进制输出uboot_E9_1.3.4_for_Ubuntu.tar.bz2的。我有同样的结果,像以前一样。以太网适配器会呈橙色,但无法连接到本地网络或互联网。从那以后,我试着与所有网络驱动程序,因为它看起来像驱动程序不能正常工作,或者未安装编译内核,但没有任何效果。在E9无法与静态/ DHCP IP连接到本地网络。
 楼主| mckenny 发表于 2014-5-1 19:35:07 | 显示全部楼层
本帖最后由 mckenny 于 2014-5-1 12:50 编辑
  1. camera_sensor_clock: version magic '3.0.35-2508-g54750ff SMP preempt mod_unload modversions ARMv7 ' should be '3.0.35-2508-g54750ff SMP preempt mod_unload modversions ARMv7 p2v '
复制代码
 楼主| mckenny 发表于 2014-5-1 19:35:20 | 显示全部楼层
  1. camera_sensor_clock: version magic '3.0.35-2508-g54750ff SMP preempt mod_unload modversions ARMv7 ' should be '3.0.35-2508-g54750ff SMP preempt mod_unload modversions ARMv7 [b]p2v8[/b] '
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-24 03:03 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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