CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 9794|回复: 4

再网上搜到的cubieboard的linux编译方式改成了cubietruck但编译....

[复制链接]
发表于 2013-10-20 21:40:38 | 显示全部楼层 |阅读模式
http://blog.chinaunix.net/uid-25120309-id-3501821.html
# apt-get install build-essential u-boot-tools qemu-user-static debootstrap emdebian-archive-keyring git libusb-1.0-0-dev pkg-config
# apt-get install gcc-arm-linux-gnueabihf ; pc 交差编译 arm 系统。

http://www.cnblogs.com/yinsua/p/3193786.html

1.uboot
https://github.com/linux-sunxi/u-boot-sunxi.git
https://github.com/linux-sunxi/u-boot-sunxi/archive/sunxi.zip

make distclean CROSS_COMPILE=arm-linux-gnueabihf-
make cubietruck CROSS_COMPILE=arm-linux-gnueabihf-

2.uImage
github.com/linux-sunxi/linux-sunxi.git
https://github.com/linux-sunxi/linux-sunxi/archive/sunxi-3.4.zip

make ARCH=arm mrproper   
make ARCH=arm sun7i_defconfig
make ARCH=arm menuconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

回复

使用道具 举报

 楼主| 发表于 2013-10-20 21:44:20 | 显示全部楼层
执行到
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage
时报错:
No rule to make target `dirvers/md/dm-stripe.o`, needed by `dirvers/md/dm-mod.o'

我在virtualbox中的ubuntu server 64 13.04下编译的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-20 23:33:52 | 显示全部楼层
make ARCH=arm menuconfig 这一步不执行
直接
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage
就可以了,可能是menuconfig的时候我什么都没动他会自动加入raid模块导致编译有问题。
以上只是猜测不知有无道理。哎摸着石头过河的新手真是太累了。
回复 支持 反对

使用道具 举报

发表于 2013-10-24 15:59:52 | 显示全部楼层
猜测你的uboot下错了..
你下载的这个:
https://github.com/linux-sunxi/u-boot-sunxi.git

应该下载
git clone https://github.com/cubieboard2/linux-sunxi -b sunxi-3.4-ct-v101

以下是tll版主的文章里面的.
文章地址:http://forum.cubietech.com/forum.php?mod=viewthread&tid=1207
  1. If you are using Cubieboard2,please type:
  2. git clone https://github.com/cubieboard2/linux-sunxi

  3. If you are using CubieTruck,type:
  4. git clone https://github.com/cubieboard2/linux-sunxi -b sunxi-3.4-ct-v101
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-24 20:58:04 | 显示全部楼层
谢谢!上次已经搞定了。应该就是我运行了一下menuconfig然后退出,这时自动的将raid加进去了。编译成功的那一次我就用default,没有运行menuconfig。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-16 05:16 , Processed in 0.021481 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部