Chinaunix首页 | 论坛 | 博客
  • 博客访问: 155803
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 458
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-04 10:01
文章分类

全部博文(60)

文章存档

2016年(3)

2014年(57)

我的朋友

分类: LINUX

2014-05-23 16:57:11

1、make uImage ARCH=arm CROSS_COMPILE=arm-linux- ,首次编译完内核用了4分钟,尾部出现如下信息:

   LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
  Image arch/arm/boot/uImage is ready

2、从上面可以看出没有出现内核信息,于是从新回到pc机上编译内核完成的地方来查看问题出在哪?

看到这一行:"mkimage" command not found - U-Boot images will not be built

                    可以看出缺少mkimage这个命令。

3、上网查了点资料,在编译完成的u-boot-1.1.6的tool/下面找到mkimage这个文件,

把它烤贝到交叉编译的路径下面/usr/local/arm/4.4.3/bin

4、重新再进入顶层,再进行内核编译,make uImage ARCH=arm CROSS_COMPILE=arm-linux-,这次成功产生如下信息:

OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.22.6
Created:      Sun Dec  6 22:33:55 2009
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    1511064 Bytes = 1475.65 kB = 1.44 MB
5、cp arch/arm/boot/uImage /tftpboot

6、u-boot环境下设置环境变量:

     mini2440#:setenv bootargs noinitrd root=/dev/nfs rw      nfsroot=192.168.1.125:/home/liuweiwen/rootfs ip=192.168.1.100:192.168.1.120::255.255.255.0     console=ttySAC0,115200 init=/linuxrc mem=64M
    mini2440#:saveenv
7、tftp 31000000 uImage
8、bootm 31000000
Uncompressing Linux...................................................................................................................................................... done, booting the kernel.

Linux version 2.6.32.2-FriendlyARM (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #3 Wed Feb 12 07:24:07 CST 2014

CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

CPU: VIVT data cache, VIVT instruction cache

Machine: FriendlyARM Mini2440 development board

Memory policy: ECC disabled, Data cache writeback
......................................................................................
 
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

Looking up port of RPC 100005/1 on 192.168.1.125

VFS: Mounted root (nfs filesystem) on device 0:11.

Freeing init memory: 160K

Processing /etc/profile... Done

# ls

bin      etc      lib      mnt      sbin     tmp      var

dev      init     linuxrc  proc     sys      usr



阅读(1191) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~