P.F.G無限世界

關於部落格
我的領域,我自己獨有!
我喜歡的事情,我拼盡全力去做!
  • 25343

    累積人氣

  • 2

    今日人氣

    0

    訂閱人氣

Micro2440的ARM燒錄linux.2.6.32的kernel太大時的解決方法 (Length of file is too big : 2517028 > 2097152 Failed downloading file)

 


這個事件,依照手册上的順序執行:
[x]: 格式化 Nand flash[v]: 下载 Supervivi-128M
[k]: 下载 zImage-N35依照用戶手册的步驟將將zImage下载到RAM中運行
[y]: 安裝系統引導燒錄文件root_qtopia-128M.img

超级終端提示:Length of file is too big : 2517028 > 2097152Failed downloading filezImage文件大小为2.4M

所以無法將linux-2.6.32的kernel燒錄,因此在網路上收尋後測試後終於解決了...完成將linux-2.6.32安裝到ARM內了

 首先,先進入ARM版的NOR模式開啟電源後選擇"Q"進入vivi交互編譯模式:
 之後先觀看自己的分區設定:



Supervivi> part show

Number of partitions: 4                                                   

   


name            :       offset          size            flag              

   


       

   

vivi            :       0x00000000      0x00040000      0                 

   

param           :       0x00040000      0x00020000      0                 

   

kernel          :       0x00060000      0x00200000      0                 

   

root            :       0x00560000      0x40000000      0       




發生原因為這個分區的設定不夠導致
kernel          :       0x00060000      0x00200000      0    

要解決這問題, 可用part指令自行更改分區的大小:


請先按下"q"進入交互編譯模式。(press q to goto shell of vivi)

Supervivi>part del kernel
Supervivi>part del root
Supervivi>part add kernel 0x00060000 0x00500000 0
Supervivi>part add root 0x00560000 0x40000000 0
Supervivi>part save
 

然後在將重新進入NOR模式將以下流程完成

[x]: 格式化 Nand flash
[v]: 下载 Supervivi-128M
[k]: 下载 zImage-N35依照用戶手册的步驟將將zImage下载到RAM中運行
[y]: 安裝系統引導燒錄文件root_qtopia-128M.img

最後就會得到此結果
Enter your selection: f ......................................................................................................................................................................................................... ......................................................................................................................................................................................................... ......................................................................................................................................................................................................... ........................................................................................................................................................................................................ ......................................................................................................................................................................................................... ....................

Enter your selection: v USB host is connected. Waiting a download.Now,
Downloading [ADDRESS:30000000h,TOTAL:249026]RECEIVED FILE SIZE: 249026 (243KB/S, 1S) Downloaded file at 0x30000000, size = 249016 bytesFound block size = 0x00040000Erasing... ... doneWriting... ... doneWritten 249016 bytes


Enter your selection: k
USB host is connected. Waiting a download.Now,
Downloading [ADDRESS:30000000h,TOTAL:2517038]RECEIVED FILE SIZE: 2517038 (614KB/S, 4S) Downloaded file at 0x30000000, size = 2517028 bytesFound block size = 0x00280000Erasing... ... doneWriting... ... doneWritten 2517028 bytes

Enter your selection: y
USB host is connected. Waiting a download.
Load yaffs OK:Blocks scanned: 980, Blocks erased: 978, Blocks are bad: 2RECEIVED and Writed FILE SIZE:62008330 (624KB/S, 97S)

關掉電源切換城NAND之後開啟電源就會得到
[root@FriendlyARM /]# uname -a Linux FriendlyARM 2.6.32.2-FriendlyARM #2 Fri Jan 8 15:32:06 CST 2010 armv4tl unknown
相簿設定
標籤設定
相簿狀態