你好,游客 登录 注册 搜索
背景:
阅读新闻

TQ2440 Linux 系统移植

[日期:2011-03-18] 来源:Linux社区  作者:IT_114 [字体:大 中 小]
7. rootfs

烧写制作3种文件系统:

crmafs:
   ./mkfs.cramfs rootfs rootfs.cramfs //制作crmafs映像 

   tftp 30008000 rootfs.cramfs
   nand erase 480000 3B60000
   nand write.yaffs 30008000 480000 $(filesize)

   setenv bootargs root=/dev/mtdblock2 rootfstype=cramfs init=/linuxrc mem=64M console=ttySAC0,115200
   saveenv

jffs2:
   ./mkfs.jffs2 -r ./rootfs -o rootfs.jffs2 -e 0x4000 --pad=0x800000 -n //制作jffs2映像
 
   tftp 30008000 rootfs.jffs2
   nand erase 480000 3B60000
   nand write.yaffs 30008000 480000 $(filesize)

   setenv bootargs root=/dev/mtdblock2 rootfstype=jffs2 rw init=/linuxrc mem=64M console=ttySAC0,115200
   saveenv

yaffs:
   mkyaffs2image rootfs rootfs.yaffs   //128MN 或 256MB
   mkyaffsimage_2 rootfs rootfs.yaffs   //64MB

   tftp 30008000 rootfs.yaffs
   nand erase 480000 3B60000
   nand write.yaffs 30008000 480000 $(filesize)

   setenv bootargs root=/dev/mtdblock2 rootfstype=yaffs init=/linuxrc mem=64M console=ttySAC0,115200
   saveenv

8.启动优化

1. drivers/char --> pty 255->8
  
2. tty
  \include\linux\vt.h

#define MIN_NR_CONSOLES 1       /* must be at least 1 */
#define MAX_NR_CONSOLES 8       //63    /* serial lines start at 64 */
#define MAX_NR_USER_CONSOLES 8  //63    /* must be root to allocate above this */
 
9. sound移植

1)增加平台设备结构
arch/arm/mach-s3c2440/mach-smdk2440.c

增加头文件:
#include <sound/s3c24xx_uda134x.h>


/* uda1341 */
static struct s3c24xx_uda134x_platform_data s3c24xx_uda134x_data = {
    .l3_clk = S3C2410_GPB(4),
    .l3_data = S3C2410_GPB(3),
    .l3_mode = S3C2410_GPB(2),
    .model = UDA134X_UDA1341,
};

static struct platform_device s3c24xx_uda134x = {
    .name = "s3c24xx_uda134x",
    .dev = {
  .platform_data = &s3c24xx_uda134x_data,
    }
};

static struct platform_device *smdk2440_devices[] __initdata = {
 &s3c_device_usb,
 &s3c_device_lcd,
 &s3c_device_wdt,
 &s3c_device_i2c0,
 &s3c_device_iis,
#ifdef CONFIG_DM9000
     &s3c_device_dm9000,
#endif
 &s3c_device_sdi,
 &s3c24xx_uda134x,
};

2)配置I2C和ALSA

linux
相关资讯       TQ2440 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款