分类: LINUX
2014-05-23 16:57:11
1、make uImage ARCH=arm CROSS_COMPILE=arm-linux- ,首次编译完内核用了4分钟,尾部出现如下信息:
LD arch/arm/boot/compressed/vmlinux 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 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 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 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 |