auto.sh
-
#!/bin/bash
-
tar jxvf linux-2.6.14.7.tar.bz2
-
cd linux-2.6.14.7
-
sed -i 's/$(SUBARCH)/arm/g' Makefile
-
sed -i 's/CROSS_COMPILE ?=/CROSS_COMPILE ?=\/usr\/local\/arm\/3.4.1\/bin\/arm-linux-/g' Makefile
-
cd ..
-
tar zxvf cs8900.tar.gz
-
cp cs8900.c cs8900.h linux-2.6.14.7/drivers/net/arm
-
cd linux-2.6.14.7
-
echo "config ARM_CS8900
-
tristate \"CS8900 support\"
-
depends on NET_ETHERNET && ARM && ARCH_SMDK2410
-
help
-
Support for CS8900A chipset based Ethernet cards. If you have a network
-
(Ethernet) card of this type, say Y and read the Ethernet-HOWTO, available
-
from as well as .To compile this driver as a module, choose M here and read.
-
The module will be called cs8900.o.">>drivers/net/arm/Kconfig
-
echo -e "obj-\$(CONFIG_ARM_CS8900)\0011+= cs8900.o">>drivers/net/arm/Makefile
-
cp ../auto2.sh ./
-
chmod +x auto2.sh
-
./auto2.sh
-
make
auto2.sh
-
#!/bin/bash
-
sed -i "50 s/^/#include /" arch/arm/mach-s3c2410/mach-smdk2410.c
-
sed -i "57 s/^/{ vSMDK2410_ETH_IO, pSMDK2410_ETH_IO, SZ_1M, MT_DEVICE }/" arch/arm/mach-s3c2410/mach-smdk2410.c
-
sed -i 's/&s3c_device_iis,/& \&s3c_device_nand,/g' arch/arm/mach-s3c2410/mach-smdk2410.c
-
sed -i 's/NAND_ECC_SOFT/NAND_ECC_NONE/g' drivers/mtd/nand/s3c2410.c
-
-
sed -i -e '876 s/^/\/\//' -i -e '1210 s/^/\/\//' drivers/mtd/nand/nand_base.c
-
sed '/^menu "Pseudo filesystems"/a\
-
config DEVFS_FS\
-
bool "/dev file system support (OBSOLETE)"\
-
default y\
-
config DEVFS_MOUNT\
-
bool "Automatically mount at boot"\
-
default y\
-
depends on DEVFS_FS/g' fs/Kconfig >>fs/Kconfigbak
-
mv fs/Kconfig fs/Kconfigbak2
-
mv fs/Kconfigbak fs/Kconfig
-
mv arch/arm/mach-s3c2410/devs.c arch/arm/mach-s3c2410/devs.cbak
-
cp ../devs.c arch/arm/mach-s3c2410/
-
cp ../.config .config
-
-
touch include/asm-arm/arch-s3c2410/smdk2410.h
-
-
echo "#ifndef _INCLUDE_SMDK2410_H_
-
#define _INCLUDE_SMDK2410_H_
-
#include
-
#define pSMDK2410_ETH_IO 0x19000000
-
#define vSMDK2410_ETH_IO 0xE0000000
-
#define SMDK2410_ETH_IRQ IRQ_EINT9
-
#endif // _INCLUDE_SMDK2410_H_
-
" >>include/asm-arm/arch-s3c2410/smdk2410.h
有人会说为什么不把它写成一个文档,我也想,可是我把它写到一个里面就出错,
-
cc1: 错误:无法识别的命令行选项“-mlittle-endian”
-
cc1: 错误:无法识别的命令行选项“-mapcs”
-
cc1: 错误:无法识别的命令行选项“-mno-sched-prolog”
-
cc1: 错误:无法识别的命令行选项“-mabi=apcs-gnu”
-
arch/arm/kernel/asm-offsets.c:1: 错误:-march= switch所带参数(armv4)不正确
-
arch/arm/kernel/asm-offsets.c:1: 错误:-mtune=switch所带参数(arm9tdmi)不正确
-
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1
-
make: *** [prepare0] 错误 2
我不知道为什么所以就想出这样的方法。
完整安装包:
阅读(1599) | 评论(0) | 转发(0) |