编译Stlinux, u-boot(记录问题)
2011-05-17 14:55
218 查看
>>> Linux Kernel <<<
发现错误
cc1: error: unrecognized command line option "-ml"
make带上V=1发现
gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include -Iinclude -I/home/qianjiang/pls/kernel/linux-sh4-2.6.32.28_stm24_0207/arch/sh/include -include include/linux/autoconf.h -D__KERNEL__ -ml -ffreestanding -Iarch/sh/include/cpu-sh2 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -pipe -ml -ffreestanding -Iarch/sh/include/cpu-sh2 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -pg -fstack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c
cc1: error: unrecognized command line option "-ml"
cc1: error: unrecognized command line option "-ml"
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
因为用的是gcc, 后来发现是CROSS_COMPILE设置错误,并且没有把sh4-linux-uclibc-*工具组的路径设置到PATH中
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- clean
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- mb618_defconfig
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- vmlinux
>>> u-boot <<<
u-boot编译
host% make distclean
host% make mb618_config
make CROSS_COMPILE=sh4-linux-uclibc-
make编译纠错方式,make -d
VERBOSE=1
下面是安装SDK时遇到的一个问题:
sudo /opt/STM/STLinux-2.4/host/bin/stmyum install stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205
得到下面的结果:
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 81 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
No Presto metadata available for STLinux_Distribution_STAPI
Processing delta metadata
Package(s) data still to download: 81 M
stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205.noar | 81 MB 30:02
Package stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205.noarch.rpm is not signed
查询:
rpm -ql stlinux24-STAPI-kernel-sh4
发现什么都没装
应该改yum.cfg gpgcheck=1改成0
发现错误
cc1: error: unrecognized command line option "-ml"
make带上V=1发现
gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/include -Iinclude -I/home/qianjiang/pls/kernel/linux-sh4-2.6.32.28_stm24_0207/arch/sh/include -include include/linux/autoconf.h -D__KERNEL__ -ml -ffreestanding -Iarch/sh/include/cpu-sh2 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -pipe -ml -ffreestanding -Iarch/sh/include/cpu-sh2 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -pg -fstack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c
cc1: error: unrecognized command line option "-ml"
cc1: error: unrecognized command line option "-ml"
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
因为用的是gcc, 后来发现是CROSS_COMPILE设置错误,并且没有把sh4-linux-uclibc-*工具组的路径设置到PATH中
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- clean
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- mb618_defconfig
make ARCH=sh CROSS_COMPILE=sh4-linux-uclibc- vmlinux
>>> u-boot <<<
u-boot编译
host% make distclean
host% make mb618_config
make CROSS_COMPILE=sh4-linux-uclibc-
make编译纠错方式,make -d
VERBOSE=1
下面是安装SDK时遇到的一个问题:
sudo /opt/STM/STLinux-2.4/host/bin/stmyum install stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205
得到下面的结果:
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 81 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
No Presto metadata available for STLinux_Distribution_STAPI
Processing delta metadata
Package(s) data still to download: 81 M
stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205.noar | 81 MB 30:02
Package stlinux24-STAPI-kernel-sh4-2.6.32.16_stm24_V2.0-205.noarch.rpm is not signed
查询:
rpm -ql stlinux24-STAPI-kernel-sh4
发现什么都没装
应该改yum.cfg gpgcheck=1改成0
相关文章推荐
- 2017年9月问题记录与总结——Ubuntu14.04下安装Xilinx_SDK编译zynq u-boot并制作BOOT.BIN(板卡ZC7045)
- U-boot移植问题记录
- 编译打包spark-1.6.0-cdh5.11.0-src详细过程及问题记录
- OK6410-A编译u-boot时遇到的问题及解决
- [问题记录]libpomelo编译报错:ssize_t重定义
- [置顶] VS2015 编译问题记录(更新)
- 编译so出现的问题记录
- 今日记录-编译模块的Module.symvers问题和ctags问题
- QGIS2.0编译与二次开发遇到问题记录
- u-boot编译问题
- [置顶] py-faster-rcnn编译过程中的问题记录
- FL2440之U-Boot移植记录(二) uboot的编译配置
- 记录Cocos Creator 编译失败问题
- Android编译问题记录
- 自编译pgmodeler使用过程问题记录
- [学习记录]编译.a静态库尝试及问题记录
- linux下解决u-boot编译遇到的下列问题
- py-faster-rcnn编译过程中的问题记录
- linux编译busybox,uboot,kernel等常用到的命令及出现过的问题
- VC2010下编译OpenCV3.2问题记录