How To Run Linux.docx

上传人:b****4 文档编号:4628561 上传时间:2022-12-07 格式:DOCX 页数:17 大小:312.49KB
下载 相关 举报
How To Run Linux.docx_第1页
第1页 / 共17页
How To Run Linux.docx_第2页
第2页 / 共17页
How To Run Linux.docx_第3页
第3页 / 共17页
How To Run Linux.docx_第4页
第4页 / 共17页
How To Run Linux.docx_第5页
第5页 / 共17页
点击查看更多>>
下载资源
资源描述

How To Run Linux.docx

《How To Run Linux.docx》由会员分享,可在线阅读,更多相关《How To Run Linux.docx(17页珍藏版)》请在冰豆网上搜索。

How To Run Linux.docx

HowToRunLinux

 

EBD9200-IUserGuide

HowtoRunLinux

 

CopyrightShenzhen Embedall Technology Co., Ltd

6-Nov-2006

V1.0-E

1.ConnecttheEvaluationKittoyourHostPC

∙ConnectaNull-ModemserialcablefromtheSerialDebugPortP1toanavailableCOMportonthehostPC.

∙ByusingtheEethernetCrossCable,suppliedintheEBD9200EvaluationKit,connecttheboard(JS1)toyorPC

∙JumperJ2(KernelBoard)onbootfromNOR_Flashposition(2,3closed)

∙Power-uptheEvaluationKitthroughtheJACK1connector,

∙StarttheHyperTerminalapplication:

∙TheconnectioncanbecalledRM9200_DBGU,forexample.Validbyusingthe"OK"button

 

∙Fromthe"Connectionto"window,selecttheCOMportusedandvalidbyusingthe"OK"button.

∙Settheserialparametersasdescribedbelow:

oBitrate@115kbps,

oDatabit@8-bit,

oParityNONE,

oStopbitequalto1,

oFluxcontrolNONE

∙TheEBD9200andyourPCareconnectednow,

∙PresstheResetbutton(BP1)ontheEBD9200board,

∙SeethemessagesendfromtheboardtotheHyperTerminalconsole(Remark:

Thismessagecanchangeaccordingtothe"u-boot"version).

boot1.0(Oct162004-22:

21:

32)

Uncompressingimage...

U-Boot1.1.1(Nov162004-18:

01:

43)

U-Bootcode:

21F00000->21F16F2CBSS:

->21F1B368

RAMConfiguration:

Bank#0:

2000000032MB

Flash:

16MB

In:

serial

Out:

serial

Err:

serial

Hitanykeytostopautoboot:

0

Uboot>

2.Downloadloader.bin

Shutdowntheboard

ClosedjumperJ2(KernelBoard)1,2

Power-uptheEvaluationKitthroughtheJACK1connector,

SeethemessagesendfromtheboardtotheHyperTerminalconsole:

 

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

 

Click“transfer→sendfile”。

Selecttheloadfile“loader.bin”:

add“…\Bootloader\EBD9200_I16Mflash\loader.bin”,at“protocot:

”select“Xmodem”protocol,thenclick“send”button。

Therearethreekindsflash(2M,8M,16M).Ourflashis16M,soyouselect“EBD9200_I16Mflash”asshownbelow:

3.Downloadu-boot.bin

Sendfile“…\Bootloader\EBD9200_I16Mflash\U-Boot.bin”bythesameway,methodandconfigarethesameasshownbelow.

Thenu-bootstarts:

U-Boot1.1.1(Nov162004-18:

01:

43)

U-Bootcode:

21F00000->21F16F2CBSS:

->21F1B368

RAMConfiguration:

Bank#0:

2000000032MB

Flash:

16MB

In:

serial

Out:

serial

Err:

serial

Hitanykeytostopautoboot:

0

Uboot>

4.Downloadboot.bin

Wecanusethe“U-BOOT”commandtodevelop,suchasflashreading,writing,protectoffandloadingkernelbynetwork.Pleaseuse“protectoffall”toprotectofftheFlashprotectedbeforewritedataintoFlash.

Uboot>protectoffall

Un-ProtectFlashBank#1

Uboot>

ErasethefirstsectorofFlash:

Uboot>erase100000001001ffff

Erasingsector0…done

Erased1sectors

Uboot>

Downloadfile:

AttheU-Bootpromptenterloadb20000000

Uboot>loadb20000000

##Readyforbinary(kermit)downloadto0x20000000at115200bps...

Thensendthefileofboot.bin,

click“transfer→sendfile”。

Selectthebootfile“boot.bin”。

add“…\Bootloader\EBD9200_I16Mflash\boot.bin”,at“protocol:

”select“Kermit”protocol,thenclick“send”button。

Downloadfiletoflashby“cp.b20000000100000005fff”

Uboot>cp.b20000000100000005fff

CopytoFlash…/done

 

5.Downloadu-boot.gz

AttheU-Bootpromptenterloadb20000000

Uboot>loadb20000000

##Readyforbinary(kermit)downloadto0x20000000at115200bps...

Sendthefileofu-boot.gzbythesameway,methodandconfigarethesameasshownbelow.

Downloadfiletoflashby“cp.b2000000010010000ffff”

Uboot>cp.b2000000010010000ffff

CopytoFlash…/done

Shutdowntheboard

RemovedjumperJ2(KernelBoard)1,2.andthenclosedjumperJ2(KernelBoard)2,3.

Power-uptheEvaluationKitthroughtheJACK1connector,

SeethemessagesendfromtheboardtotheHyperTerminalconsole

boot1.0(Oct162004-22:

21:

32)

Uncompressingimage...

U-Boot1.1.1(Nov162004-18:

01:

43)

U-Bootcode:

21F00000->21F16F2CBSS:

->21F1B368

RAMConfiguration:

Bank#0:

2000000032MB

Flash:

16MB

In:

serial

Out:

serial

Err:

serial

Hitanykeytostopautoboot:

0

Uboot>

6.InstallingtheTFTPserver

TFTPserverisrequiredtoloadapplicationsthroughEthernetontheEBD9200.Youneedsetupthevicegerenttools“Tftp”.Firstfindthe“…\Tools\TftpServer\”,dblclick“tftp.exe”.

Select“Tftpd→Configure”,asshownbelow.

Clickthe“Browse”buttonrightofthe“HomeDirectory”button,makethedirectorypointtodirectoryof“…Linux\Image\”wheretheulmageandramdisk.gzare.

Afterconfigureconfirmwith“Ok”button,returntofrontalwindow.Select“Tftp→Start”,asshownbelow.

7.SetUpoftheU-Bootenvironnementvariables

∙U-BootMainCommands

setenvthiscommandisuseforsetthevariable

saveenvthiscommandsavethevariablespreviouslysetbeforeintheFlash.

printenvthiscommandprintthecurrentvariables.

∙MoreusedreservedVariable:

bootcmdthisvariablewhensetisexecutedautomaticallyafterthebootdelayifitisnotstopbytheuser.Itenablestheu-bootautobootmode.

bootargsthisvariable,itusedasanexchangeareatopassinformationtothemainapplicationstartedbyu-boot.

bootmthisvariableexecuteanapplicationgeneratedbythemkimagetool.

∙Setupoftheu-bootvariables

Uboot>setenvethaddr12:

34:

56:

78:

99:

aa

/*setupoftheEthernetaddress,moreusuallycalledMACaddress*/

Uboot>setenvipaddr192.168.0.102

/*theboardipaddress*/

Uboot>setenvserverip192.168.0.103

/*theserveripaddresswheretheTFTPserverisrunning,needtobeonthesamesubmaskastheboard*/

Uboot>setenvbootdelay3

/*timeinseconds,cannotbesetotvalue0*/

Uboot>setenvbootargsroot=/dev/ramrwinitrd=0x21100000,8000000ramdisk_size=20000console=ttyS0,115200,mem=32M

/*thiscommandisveryimportant,becarefultotypeitwithoutaddingspace*/

Uboot>saveenv

SavingEnvironmenttoFlash...

Un-Protected1sectors

ErasingFlash...Erasingsector7...ok.

Erased1sectors

WritingtoFlash...done

Protected1sectors

Uboot>

∙U-Bootscriptcapability

Youcancreatescript,whichavoidyoutotypecommands.

Uboot>setenvkerneltftp21000000ulmage

Uboot>saveenv

SavingEnvironmenttoFlash...

Un-Protected1sectors

ErasingFlash...Erasingsector7...ok.

Erased1sectors

WritingtoFlash...done

Protected1sectors

Uboot>

/*thisscriptistheequivalentoftyping:

tftp21000000uImage.Butoncestoredintheflash,itallowsyoutosavetime,andautomate.Forexecutethescript,type"runkernel"(runyour_scriptname).*/

Uboot>setenvramdisktftp21100000ramdisk

Uboot>saveenv

SavingEnvironmenttoFlash...

Un-Protected1sectors

ErasingFlash...Erasingsector7...ok.

Erased1sectors

WritingtoFlash...done

Protected1sectors

Uboot>

Forlaunchlinux,typethefollowingcommand:

Uboot>runramdisk

TFTPfromserver192.168.0.103;ourIPaddressis192.168.0.102

Filename'ramdisk'.

Loadaddress:

0x21100000

Loading:

#################################################################

#################################################################

#################################################################

#######################

done

Bytestransferred=1112544(10f9e0hex)

Uboot>

Uboot>runkernel

TFTPfromserver192.168.0.103;ourIPaddressis192.168.0.103

Filename'ulmage'.

Loadaddress:

0x21000000

Loading:

#################################################################

#################################################################

########################

done

Bytestransferred=783992(bf678hex)

Uboot>

Uboot>bootm21000000

##Bootingimageat21000000...

ImageName:

ImageType:

ARMLinuxKernelImage(gzipcompressed)

DataSize:

783928Bytes=765.6kB

LoadAddress:

20008000

EntryPoint:

20008000

VerifyingChecksum...OK

UncompressingKernelImage...OK

Startingkernel...

Linuxversion2.4.27-vrs1(amine@PC0142)(gccversion2.95.320010315(rele

ase))#1SatOct220:

34:

54CEST2004

CPU:

Arm920Tid(wt)revision0

Machine:

ATMELAT91RM9200

Onnode0totalpages:

8192

zone(0):

8192pages.

zone

(1):

0pages.

zone

(2):

0pages.

Kernelcommandline:

root=/dev/ramrwramdisk_size=20000mem=32Minitrd=0x2

1100000,8000000console=ttyS0,115200

WelcometoAT91RM9200EKLinux

AT91RM9200EKramdisk(glibc-2.2.3)

Copyright(C)2004M.AmineSAYA(ATMEL)

ReleasedunderGNUGPL

AT91RM9200EKlogin:

Logasroot,youhavethelinuxstandardcommandsavailable

AT91RM9200EKlogin:

root

login[25]:

rootloginon`ttyS0'

BusyBoxv0.60.5(2004.09.08-17:

38+0000)Built-inshell(ash)

Enter'help'foralistofbuilt-incommands.

[root@AT91RM9200EK]#

8.Auto-BootfromFlash

Ifyouwanttoautomaticallyrunlinux,youmusttodoasshownbelow:

Uboot>tftp21000000ulmage

TFTPfromserver192.168.0.103;ourIPaddressis192.168.0.102

Filename'ulmage'.

Loadaddress:

0x21000000

Loading:

#################################################################

#################################################################

#######################

done

Bytestransferred=779566(be52ehex)

Uboot>

Flashthelinuxbinaryfiletoflash

U-Boot>cp.b2100000010020000bodb1

/*“be52e”isthesize(hex)ofulmage*/

Uboot>tftp21100000ramdisk

TFTPfromserver192.168.0.103;ourIPaddressis192.168.0.102

Filename'ramdisk'.

Loadaddress:

0x21100000

Loading:

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

##########################################################

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1