2009年11月15日

pxa300 QT filesystem掌握,usb仍舊寫不進去資料

今天依舊有陽光,但是mmc有個怪問題 (此篇文章全部是用廠商提供的source去編譯出來的kernel+filesystem 2.6.21)

1.仿照之前做的mount /dev/mss/blk1p1 /home/jim/mountsd/掛不上去
去了pxa300的/dev下看,並沒有mms資料夾

原來原因是在未開機之前就插入mmc卡,開機後拔掉在重新插就可以看到訊息:


[root@Linux mss]#mount /dev/mss/blk0p1 /home/jim/mountsd/                      
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended          
[root@Linux mss]#cd /home/jim/mountsd/                                         
[root@Linux mountsd]#ls                                                        
jimkokokokok  lost+found


但是偵測到的卻不是之前的blk1p1了,而是blk0p1


插入usb顯示的訊息:(4gUSB用ubuntu gparted軟體格式化為ext2)
 

[root@Linux /dev]#usb 1-1: new full speed USB device using pxa3xx-ohci and addr9
usb 1-1: device not accepting address 19, error -62                            
usb 1-1: new full speed USB device using pxa3xx-ohci and address 21            
usb 1-1: configuration #1 chosen from 1 choice                                 
scsi1 : SCSI emulation for USB Mass Storage devices                            
scsi 1:0:0:0: Direct-Access     USB 2.0  USB Flash Drive  1100 PQ: 0 ANSI: 0 CCS
SCSI device sda: 7831552 512-byte hdwr sectors (4010 MB)                       
sda: Write Protect is off                                                      
sda: assuming drive cache: write through                                       
SCSI device sda: 7831552 512-byte hdwr sectors (4010 MB)                       
sda: Write Protect is off                                                      
sda: assuming drive cache: write through                                       
 sda: sda1 sda2 < sda5 >                                                       
sd 1:0:0:0: Attached scsi removable disk sda                                   
                     
[root@Linux /dev]#mount sda /home/jim/mountusb/                                
VFS: Can't find an ext2 filesystem on dev sda.                                 
FAT: invalid media value (0xb9)                                                
VFS: Can't find a valid FAT filesystem on dev sda.                             
FAT: invalid media value (0xb9)                                                
VFS: Can't find a valid FAT filesystem on dev sda.                             
mount: Mounting /dev/sda on /home/jim/mountusb failed: Invalid argument        
[root@Linux /dev]#mount sda1 /home/jim/mountusb/                               
EXT2-fs warning: checktime reached, running e2fsck is recommended              
[root@Linux /dev]#cd /home/jim/mountusb/                                       
[root@Linux mountusb]#ls                                                       
lost+found        


但是可以看見usb中的檔案卻不能寫入,奇怪


另外,幫pxa300的filesystem(Qt)作好準備,以免到時候搞壞啦

                             

 Press K7 will go to linux OS                                                  
Press K8 will go to wince OS                                                  
.                                                                             
SMC91x detected with MAC address 00-00-00-00-00-00                            
Searching for network... network found, but auto-negotiate failed.            
                                                                              
Autoboot aborted                                                              
Type "help" to get a list of commands                                         
blob> setip server 192.168.0.5                                                
Set IP to 192.168.0.5                                                         
blob> setip client 192.168.0.20                                               
Set IP to 192.168.0.20                                                        
blob> tftp rootfs.jffs2                                                       
smc_send: memory allocation time out. (要等一下子)                                         
TFTPing rootfs.jffs2*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.
received 80224 blocks (41074172 bytes)                                        
tftp_cmd: file 'rootfs.jffs2' loaded via tftp to address 0x80800000.          
blob> nanderase -j 0x260000 0x3000000                                         
Erase 0x3000000 length data from flash: 0x260000                              
Erase flash from 0x260000, length 0x3000000                                   
...............................................................................e
blob> nandwrite -j 0x80800000 0x260000 0x2740000                              
Write 0x2740000 length data from RAM: 0x80800000 to flash: 0x260000           
Write flash from 0x260000, length 0x2740000                                   
Erase flash from 0x260000, length 0x2740000                                   
...............................................................................e
...............................................................................e
blob>

第一次進去時要先設定時間和地區~(沒設定也沒差)


rootfs.jffs2為放在pxa300中的rel/target/中

最後wince還是可以順利進去,接下來flash就任我搞了!


















沒有留言:

張貼留言

新電腦上重新安裝 Windows 10

想要在電腦上安裝 Windows 10 嗎? 若要開始使用,您首先必須取得安裝 Windows 10 的授權。然後才可以下載並執行媒體建立工具。如需工具使用方式的詳細資訊,請參閱下列指示。 https://www.microsoft.com/zh-tw/software-...