在mini2440上移植运行2.6.36.4

在mini2440上移植运行2.6.36.4
1 下载linux-2.6.36.4
2 从友嵌之臂拷贝config_mini2440_x35,重命名.config
3 从http://aleph1.co.uk/gitweb?p=yaffs2.git;a=snapshot;h=HEAD;下载yaffs2-HEAD-bc62199 .tar.gz,放在linux-2.6.36.4 平行目录中,解压缩给2.6.36.4打patch
cd yaff2 
./patch-ker.sh c m ../linux-2.6.36.4
4  修改linux-2.6.36.4/arch/arm/mach-s3c2440/mach-mini2440.c
Line 247
static struct mtd_partition mini2440_default_nand_part[] __initdata = {
[0] = {
.name = "u-boot",
.size = SZ_256K + SZ_128K,
.offset = 0,
},
[1] = {
.name = "u-boot-env",
.size = SZ_128K,
.offset = SZ_256K + SZ_128K,
},
[2] = {
.name = "kernel",
/* 5 megabytes, for a kernel with no modules
* or a uImage with a ramdisk attached */
.size =  SZ_512K + 0x00500000,
.offset = SZ_256K + SZ_128K,
},
[3] = {
.name = "root",
.offset = SZ_256K + SZ_128K + 0x00500000,
.size = MTDPART_SIZ_FULL,
},
};


  5 修改s3c_gpio_setpull 
 linux-2.6.36.4/arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h static inline int s3c_gpio_do_setpull(struct s3c_gpio_chip *chip,
     unsigned int off, s3c_gpio_pull_t pull)
{
    // return (chip->config->set_pull)(chip, off, pull);
    if(NULL !=chip->config->set_pull)
        return (chip->config->set_pull)(chip, off, pull);
    else
        return EINVAL;
}
8 make CROSS_COMPILE=arm-linux- menuconfig
 File systems  --->  

            Miscellaneous filesystems                                                                                     

<*>   yaffs2 file system support  

                     [*]     Autoselect yaffs2 format 


9 make CROSS_COMPILE=arm-linux-
打开串口和usb下载工具,在串口中输入k,然后通过usb辅助工具(win7)SuperVivi-USB-Transfer-Tool.exe下载内核zImage
即可成功boot Linux-2.6.36.4,因为目前关注其他模块的驱动,所以这里还没有涉及到LCD部分。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值