>>> 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