移植系列 之 2.6.11.11.pdfVIP

  • 3
  • 0
  • 约8.22千字
  • 约 9页
  • 2018-06-09 发布于河南
  • 举报
移植系列 之 2.6.11.11

移植系列 之 2.6.11.11 平台:FS2410 内核:linux-2.6.11.11.tar.gz arm-linux-gcc:cross-3.3.2 移植过程: (1) /usr/local 目录下建立一个arm 目录,将 cross-3.3.2.tar.bz2 拷贝到该目录下,然后转到该目录 下,执行 tar –jxvf cross-3.3.2.tar.bz2 # cd /etc # vi bashrc 在最后增加路径 export PATH=/usr/local/arm/3.3.2/bin:$PATH 转到存放 linux-2.6.11.11.tar.gz 的目录下 d # tar –zxvf linux-2.6.11.11.tar.gz # cd linux-2.6.11.11 e r (2) # cd arch/arm/mach-s3c2410 e # vi devs.c t 在 arch/arm/mach-s3c2410/devs.c 中增加以下内容: s i #include linux/mtd/partitions.h #include linux/mtd/nand.h g #include asm/arch/nand.h e static struct mtd_partition partition_info[] = { { R name: bootloader, n size: 0 offset: 0, }, U { name: parameter, size: 0 offset: 0 }, { name: kernel, size: 0x001C0000, offset: 0 }, { name: rootfs, size: 0 offset: 0 mask_flags: MTD_WRITEABLE, }, { name: user, size: 0x0E00000, offset: 0 } }; struct s3c2410_nand_set nandset = { nr_partitions: 5, partitions: partition_info, }; d struct s3c2410_platform_nand s3c_nand_info = { e tacls: 0, r twrph0: 30, e twrph1: 0, t sets: nandset, nr_sets: 1, s i

文档评论(0)

1亿VIP精品文档

相关文档