• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : 請問移植kernel-2.6.39 sd無法掛載 复制链接 | 浏览器收藏 | 打印
级别: 圣骑士
UID: 44407
精华: 0
发帖: 386
金钱: 1945 两
威望: 389 点
贡献值: 0 点
综合积分: 772 分
注册时间: 2011-04-25
最后登录: 2014-08-25
10楼  发表于: 2012-09-05 18:34
移植sd卡到Mini6410

1.mach-mini6410.c中

line 339 新增

/* MMC/SD config */ //add
static struct s3c_sdhci_platdata mini6410_hsmmc0_pdata =
{
    .max_width      = 4,
//    .cd_type        = S3C_SDHCI_CD_INTERNAL, //mark
    .cd_type        = S3C_SDHCI_CD_NONE, //add
};


static struct s3c_sdhci_platdata mini6410_hsmmc1_pdata =
{
    .max_width      = 4,
    .cd_type        = S3C_SDHCI_CD_PERMANENT,
};

line 477

static void __init mini6410_machine_init(void)
{
    s3c_sdhci1_set_platdata(&mini6410_hsmmc0_pdata); //add
    s3c_sdhci1_set_platdata(&mini6410_hsmmc1_pdata); //add
}

2. 內核  make menuconfig 新增

File systems   --->
DOS/FAT/NT Filesystems  --->
   <*> MSDOS fs support                                          
   <*> VFAT (Windows-95) fs support                                
  (936) Default codepage for FAT                                  
  (utf8) Default iocharset for FAT                                
   < > NTFS file system support  

Native language support   --->
  (iso8859-1) Default NLS Option  
   <*>       Codepage  437  (United States, Canada)
   <*>   Simplified Chinese charset (CP936, GB2312)
   <*>   Traditional Chinese charset (Big5)  
   <*>   ASCII (United States)  
   <*>   NLS ISO 8859-1  (Latin 1; Western European Languages)
   <*>   NLS UTF-8
    

3.mount sd 成功

yaffs: dev is 32505858 name is "mtdblock2" rw                                  
yaffs: passed flags ""                                                          
mmc0: new SD card at address e624                                              
mmcblk0: mmc0:e624 SD512 483 MiB                                                
mmcblk0: detected capacity change from 0 to 507379712                          
mmcblk0: p1                                                                    
mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz                    
mmc1: mmc_rescan_try_freq: trying to init card at 300000 Hz                    
mmc1: mmc_rescan_try_freq: trying to init card at 200000 Hz                    
mmc1: mmc_rescan_try_freq: trying to init card at 100000 Hz                    
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will !
hwclock: can't open '/dev/misc/rtc': No such file or directory                  
[01/Jan/1970:00:00:18 +0000] boa: server version Boa/0.94.13                    
[01/Jan/1970:00:00:18 +0000] boa: server built Dec 30 2010 at 11:18:35.        
[01/Jan/1970:00:00:18 +0000] boa: starting server pid=1227, port 80            
                                                                                
open device leds: No such file or directory                                    
/usr/sbin/alsactl: load_state:1610: No soundcards found...                      
                                                                                
Try to bring eth0 interface up......dm9000 dm9000.0: eth0: link down            
ADDRCONF(NETDEV_UP): eth0: link is not ready                                    
Done                                                                            
                                                                                
Please press Enter to activate this console.


PS.這篇是由版上Tiny6410延續下來
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
11楼  发表于: 2012-09-05 19:35
恭喜。这样看起来是CD信号的问题了。但为什么用友善之臂内核的时候没有出现这个问题呢?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go