TXubuntu12.04

ubuntu12.04  时间:2021-03-29  阅读:()
Chapter1HardwareandSoftwareIntroductionsofpcDuinopcDuinoisahighperformance,costeffectiveminiPCplatformthatrunsPClikeOSsuchasUbuntuLinux.
ItoutputsitsscreentoHDMIenabledTVormonitorviathebuiltinHDMIinterface.
Itisspeciallytargetedforthefastgrowingdemandsfromtheopensourcecommunity.
TheplatformcouldrunfullblownPClikeOSwitheasytousetoolchainandcompatiblewiththepopularArduinoecosystemsuchasArduinoShieldsandopensourceprojectsetc.
ItcanalsorunAndroid4.
0ICS.
ThehardwarespecificationofpcDuinoisasfollows:ItemsDetailsCPUAllWinnerA10SoC,1GHzARMCortexA8GPUOpenGLES2.
0,OpenVG1.
1Mali400coreDRAM1GBOnboardStorage2GBFlashMicro-SDcardslotforupto32GBVideoOutputHDMIOSLinux3.
0+Ubuntu12.
04AndroidICS4.
0ExtensionInterfaceArduinoHeadersNetworkinterfaceUSBWiFiextension(notincluded)Ethernet10/100MbpsPower5V,2AThefollowingaretopandbottomviewsofpcDuino:pcDuinotargetsfortwomarketsprimarily,i.
e.
,theRaspberryPiminiPCmarketandArduinomarketasopen-sourceelectronicsprototypingplatform.
WithpcDuino,usercoulddolotsoffunstuffincludingbutnotlimitedtothefollows:LearnorteachprogrammingWorkwithhardwareportUseInternetbrowserorOfficefromUbuntuLearnUbuntulinuxCreatemediacenterwithXBMCPlaygameDIYprojectsRequiredAccessoriesMicro-USBportpoweradaptor(5V,2000mA)DisplaywithHDMIportHDMIcableIfyoudonthaveaHDMImonitor,youcanuseHDMItoDVIcabletoconnecttoaDVImonitororaHDMItoVGAcabletoconnecttoaVGAmonitor.
USBkeyboard(must)USBHubandUSBmouse(optionalbutstronglyrecommended)SomeDupontLinestoconnectpcDuinowithtestdevicesMicro-SDcardanditscardreaderNote:Beforerunthefollowingsamples,ConnectpcDuinowiththedevicescorrectly:USBhostport=>USBhub=>keyboard&mouseHDMIport=>HDMIcable=>HDMIdisplaypcDuinoboardI/OinterfacedescriptionThedetailedschematicscanbedownloadedfrom:https://s3.
amazonaws.
com/pcduino/Hardware/PC+Duino_V01-20130128.
pdfHereisthelistofI/OinterfacesonpcDuinoboard.
1.
14digitalpinsforGPIO:GPIOmaxoutcurrentis4mA.
2.
OneUARTRX,oneUARTTX3.
TwoPWMpins,supportupto24MHz.
4.
SixADCpins,ADC0andADC1are6bitsresolution,whiletherestare10bitsresolution.
5.
FourSPIpins6.
TwoI2CpinsItsupportstoconnectanyArduinoshieldwithpcDuinoviaanyoftheaboveI/Ointerfaces.
ItallowsusingpcDuinowiththesamecodeusedinArduino.
SoftwarepcDuinosupportsbothUbuntuLinuxandAndroid4.
0ICS.
Whenthebookiswritten,thelatestreleaseversionofUbuntuforpcDuinois20130531.
UbuntuThefactorydefaultinstallationisUbuntuinNANDflash.
UbuntucanbootfromeitherNANDflashorabootablemicroSDcard.
UbuntuinNANDflash:IfwewanttoreinstallUbuntuorupdateUbuntuinNANDflash,therearetwooptions:InstallUbuntuusingmicroSDcards.
InstallUbuntuusingthroughUSBportusingLivesuit.
Inthefollowingwearegoingtointroduceeachone.
HowtoinstallUbuntuusingmicroSDcards:Theinstallationprocessinvolvestwosteps:1)InstallLinuxkernel(usemicroSDcard#1)and2)InstallUbuntufilesystem(usemicroSDcard#2oraUSBflashdrive,whichneedstobeformattedasFAT).
ThemicroSDcardshouldbe2GBminimal.
IneverypcDuinoubunturelease,therearetwoversionsofkernelimage.
OneisforPhonexcardtoolthatisusedtocreatemicroSDcard#1(ThisisthesamefilethatisusedbyLivesuit,whichwillbediscussedlater).
TheotherisforWin32DiskImager(windows)ordd(underlinux)thatisusedtocreatemicroSDcard#1.
Phonexcardcanbedownloadedfromhttps://s3.
amazonaws.
com/pcduino/Tools/PhoenixCardV306_20120302.
rarWin32DiskImagercanbedownloadedfrom:https://s3.
amazonaws.
com/pcduino/Tools/win32diskimager-v0.
7-binary.
ziporhttp://sourceforge.
net/projects/win32diskimagerBurnthekernelinLinuxPCa)Insertthemicro-SDcardtoLinuxPCorpcDuino,thecardwillbemountedautomatically.
Tocontinue,un-mountallthepartitionsonthecard.
Forexample,IftheSDhastwopartitions:$sudoumount/dev/mmcblk0p1$sudoumount/dev/mmcblk0p2b)Thenburnthedownloadedandunzippedimagefile(a10_kernel_disk32imager_20130403.
img)tothemicro-SDcardwiththefollowingcommand:$sudoddif=/udisk/a10_kernel_disk32imager_20130403.
imgof=/dev/mmcblk0bs=1M$sudosyncTheof=/dev/mmcblk0pointstothemicro-SDcard.
Cautions:Don'tuse"of=/dev/xxx"topointtoyourharddisk.
Itwilldestroythecontentsinyourharddisk.
Nowthemicro-SDcardisreadyforusetoburntheOSimagetointernalflash.
c)BurntheOSimagetointernalflashfrommicro-SDcardi.
Plugthemicro-SDcardtothepcDuino,powerontheboard,andthenwaitforoneminuteii.
EjecttheTFcardandresetthedevice.
IfyouseetheRXLEDstayson,andtheTXLEDisblinking,thekernelisupdatedsuccessfullyBurnthekernelinMACOSPCa)OpentheterminalinMacOS,insertthemicro-SDcard,thecardwillbemountedautomatically.
Tocontinue,un-mountallthepartitionsonthecard.
Forexample,IftheSDhastwopartitions:$sudoumount/dev/disk1s1$sudoumount/dev/disk1s2IftheSDcardisfailedtoumount,youcanusethefollowingscripttoforceumount:$sudodiskutilumountforce/dev/disk1s1$sudodiskutilumountforce/dev/disk1s2b)Thenburnthedownloadedandunzippedimagefile(a10_kernel_disk32imager_20130403.
img)tothemicro-SDcardwiththefollowingcommand:$sudoddif=/udisk/a10_kernel_disk32imager_20130403.
imgof=/dev/disk1bs=1mTheof=/dev/disk1pointstothemicro-SDcard.
Afterthiscommandiscomplete,yourMacPCwillpopupthemessage"can'tidentifytheSDcard"thatindicatesthefilesysteminyourcardisunknowntoMacPCnow.
Cautions:Don'tuse"of=/dev/xxx"topointtoyourharddisk.
Itwilldestroythecontentsinyourharddisk.
Nowthemicro-SDcardisreadyforusetoburntheOSimagetointernalflash.
c)BurntheOSimagetointernalflashfrommicro-SDcardi.
Plugthemicro-SDcardtothepcDuino,powerontheboard,andthenwaitforoneminuteii.
EjecttheTFcardandresetthedevice.
IfyouseetheRXLEDstayson,andtheTXLEDisblinking,thekernelisupdatedsuccessfullyAfterwecreatemicroSDcard#1,insertmicroSD#1intotheSDslot,andpowercycletheboard.
WhentheboardstartstoburnimagefilefromSDcardtoflash,theTXLEDwillblinkslowly.
Waitforaboutoneminute,ifthekernelisupdatedsuccessfully,theLEDswillbeoff.
Now,wearereadytoflashUbuntufilesystemtoNANDflash.
IneverypcDUinoUbunturelease,thereisafileballnamedUbuntu,thisisUbuntufilesystem.
DownloadtheUbuntufile,andunzipittogettwofileslikethese:-Update.
sh:shellscriptforUbuntuupdate-Ubuntu_xxx.
img:imagefileforUbuntuCopythetwofilestomicroSD#2oraUSBflashdrive,whichmustbeformattedasFAT.
PowercyclepcDuino,youwillseebootinginformationonthescreen,andpluginmicroSD#2orUSBflashdrivewhenthemessageshowingthatitislookingforadiskcontainingUbuntufilesystem.
Thescreenwillshows"Itwilltakeabout10minutestofinish…".
Pleasewaitpatientlyandthescreenwillpromptthatitfinishedupdating.
Whenthatisdone,removethemicroSDcard,andpowercyclepcDuino.
Tips:ThemicroSDcard#1isspeciallycreatedtoallowittoberecognizedbytheROMBOOToftheboard.
ToavoidtheunexpectedupdateofpcDuino,wecanusethePhoenixCardtorestoreittonormalandcleancardi.
Plugyourmicro-SDcardtoyourPC,run"PhoenixCard.
exe".
ii.
Selectthemicro-SDcardinthediskscrollwindow,andchoose"FormattoNormal"torestorethecard.
HowtoinstallUbuntuusingLiveSuit:LiveSuitisafreetoolwhichcanupgradefirmwarebyUSBdevice.
Tousethistool,youmustinstalltwoUSBdrivers.
Youcandownloadthetoolanddriversandreadtheusermanualfrom:https://s3.
amazonaws.
com/pcduino/Tools/Livesuit.
rarNote:LiveSuitisnotverystableonWindowsVistaorWindows7,anditdoesnotworkwellon64bitsCPU.
Sothistoolisnotrecommended.
UbuntuinbootablemicroSDcard:IneverypcDUinoUbunturelease,thereisafilenamedSDbootableimage.
ThisfileisintendedtocreateabootablemicroSDcard,sowecanputallofourapplicationanddataontheSDcardinsteadofthespace-limitedNANDflash.
Steps:1.
DownloadthebootablemicroSDcardimage.
2.
Unzipitandgetxxx.
img3.
Burntheunzippedimagefileabovetothemicro-SDcardwithwin32diskimagerorddinLinuxPCorpcDuino4.
Plugthemicro-SDcardintopcDuinoandpowercyclepcDuino.
5.
Ubuntuwillbeuprunning.
Bydefault,thefilesystemonlyuses2GB.
IfyouhaveamorespaceonyourSDcard,itisnotusedbydefault.
WearegoingtouseascripttoexpandthefilesystemtothewholeSDcard.
$wgethttps://s3.
amazonaws.
com/pcduino/SampleCode/System/expandFS/expand_sdcard_rootfs.
sh$sudobash.
/expand_sdcard_rootfs.
shAftertheexpansion,werebootpcDuinoby:$sudorebootAfterreboot,werun:sudoresize2fs/dev/mmcblk0p2Checkthestoragespaceagainusing$df-hBackupNANDtoaSDcard,andbootfromSDcardpcDuinohasanonboardNANDof2GB.
Whenwearedoingheavydutyprojectdevelopment,wecaneasilyeatupallthespace.
Whenthathappens,weneedawaytomovealltheprogramanddatafromNANDtoaSDoflargercapacityandmakethatSDbootable.
Thekeyfunctionwearegoingtouseis:make_mmc_boot"Clonesystemfromnandtommccard"ThisfunctionwillcopytheentirecontentinNANDtoaSDcard.
Thisisequivalenttoflashanmmc-bootimage.
Thebenefitisthatusersstillkeeptheirownprogram/data.
WhenthespaceofNANDisnotenough,wecanusetheSDcardtoreplacethesysteminNAND.
Whenthebookiswritten,thelatestimagereleaseis20130531.
Intheoriginalimage20130513,theabovementionedfunctionisnotthereinboard-config.
Weneedtodoanupdateinboard-configtomakeitavailable.
Therearetwowaystorunboard-config.
Oneistorunthatafterreset.
Theotheristorunitinterminal.
Inthefollowing,wearegoingtousethesecondapproach.
Wetype:$sudoboard-config.
shNext,wearegoingtochooseUpdate:Thenwechooseconfig:Afterthat,pcDuinowillcheckforupdate:PressY,andaftertheupdateisdown,exitandre-run:$sudoboard-config.
shTheoption"make_mmc_boot"willdisplayinthemenu:PluginaSDcard(inourcase,acardof16GB)totheSDslot,andpress"ENTER":Ittakessometimetobackup:Afteralongwait,wewillgetthefollowingmessage:WerebootpcDuino,andcheckthestoragespaceusing:$df–hIntheabovefigure,wecanseethatalthoughtheSDcardisofcapacity16GB,itonlyshowsupas2GB.
WearegoingtouseascripttoexpandthefilesystemtothewholeSDcard.
$wgethttps://s3.
amazonaws.
com/pcduino/SampleCode/System/expandFS/expand_sdcard_rootfs.
sh$sudobash.
/expand_sdcard_rootfs.
shAftertheexpansion,werebootpcDuinoby:$sudorebootAfterreboot,werun:sudoresize2fs/dev/mmcblk0p2Checkthestoragespaceagainusing$df-hWecanseethatwegetafullaccesstotheSDcard.
AndroidThefactorydefaultinstallationisUbuntuinNANDflash.
AndroidinNANDflash:IfwewanttoreinstallAndroidorupdateAndroidinNANDflash,therearetwooptions:InstallUbuntuusingmicroSDcards.
InstallUbuntuusingthroughUSBportusingLivesuit.
Inthefollowingwearegoingtointroduceeachone.
HowtoinstallAndroidusingmicroSDcard:1.
DownloadtheAndroidoperatingsystemforpcDuinoThedownloadlinkis:http://www.
pcduino.
com/page_id=14FindthelinkforAndroidimage,downloaditandgetonefilewith.
imgextension.
Phonexcardcanbedownloadedfromhttps://s3.
amazonaws.
com/pcduino/Tools/PhoenixCardV306_20120302.
rar2.
WritepcDuinoAndroidimagetomicro-SDcard(a)Plugyourmicro-SDcardtoyourPC,run"PhoenixCard.
exe".
Youwillseesomethinglikethis:(b)ChoosetheAndroidimagefilepcduino_Android_xxx.
imgthatyou'vedownloadedandwriteittothemicro-SDcardAfterafewminutes,themicro-SDcardisreadytouse.
3.
BurntheOSimagetointernalflashfrommicro-SDcarda)Plugthemicro-SDcardtothepcDuinoandthenpowerontheboard.
Waitforaboutfourminutesb)Ejectthemicro-SDcardandresetthedevice*Wehaveacatchinstep(a).
Wedon'thaveanyLEDtoindicatewhenthebootimageisburnedcompletelyunlessyouconnectthehyperterminaltopcDuino,sopleasewaitforfourminutespatiently.
Moreover,pleaseejecttheTFcardbeforeresettingthedevice.
Otherwise,itwillstarttoburntheOSimageagainiftheTFcardisinserted.
4.
Restorethemicro-SDcardcreatedThemicro-SDcardisspeciallycreatedtoallowittoberecognizedbytheROMBOOToftheboard.
ToavoidtheunexpectedupdateoftheAndroidOS,usethePhoenixCardtorestoreittonormalandcleancardiii.
Plugyourmicro-SDcardtoyourPC,run"PhoenixCard.
exe".
iv.
Selectthemicro-SDcardinthediskscrollwindow,andchoose"FormattoNormal"torestorethecard.
HowtoinstallAndroidusingLiveSuit:LiveSuitisafreetoolwhichcanupgradefirmwarebyUSBdevice.
Tousethistool,youmustinstalltwoUSBdrivers.
Youcandownloadthetoolanddriversandreadtheusermanualfrom:https://s3.
amazonaws.
com/pcduino/Tools/Livesuit.
rarNote:LiveSuitisnotverystableonWindowsVistaorWindows7,anditdoesnotworkwellon64bitsCPU.
Sothistoolisnotrecommended.
UsepcDuinoasanminiPCplatform1)pcDuinoandUbuntupcDuino&UbuntusupportcustomizedUbuntulinux12.
04thatisspeciallyoptimizedforrunningonARMcortexplatformwithlimitedDRAMandNANDflashsupport.
ThedevicecouldbeoperatedwiththeUSBmouseandkeyboard.
Thesupportedapplicationlistconsistsofthefollows:ItemsDetailsTerminalUsebuildin"LXTerminal"applicationfromdesktopLaunchterminalapplication,runstandardlinuxcommandsorvieditoretc.
LaunchC/C++compile(usegcc),assemblyandexecutionFilebrowserUsebuildinFileManagerfromdesktopUsedfortypicalfilemanagementInternetbrowserUsechromiumwebbrowserfromdesktopSupportHTML5OfficeUseDocumentViewerfromdesktopforPDFfileviewUseGnumericfromdesktopforExcelfileviewandeditUseAbiWordfromdesktopforWordfileviewandeditMovieplayerUseMPlayerfromdesktopCouldplaybackaudio,videoandimageServersVNCserverSSHDevelopmentArduinoIDEforpcDuinoNote:Therootuserandpasswordare"ubuntu".
6.
2pcDuinoandAndroidpcDuinoboardsupportscustomizedandroid4.
0thatisspeciallyoptimizedforHD-TVoutputdisplaydevices.
ThedevicecouldbeoperatedwiththeUSBmouseandkeyboard.
Thesupportedapplicationlistconsistsofbutnotlimitedthefollows:ItemsDetailsFilebrowserUsebuildinFileManagerUsedfortypicalfilemanagementInternetbrowserUsewebbrowserfromdesktoporGoogleSearchwidgetSupportHTML5CalendarGoogleCalendarGmailVisitGmailaccountsPeopleGooglecontactsappsAppStoreUseGoogle"playstore"todownloadthird-partyappsMusicAndroidbuilt-inmusicplayerMovieplayerbuilt-inSuper-HDPlayertoplaylocalmovies

Raksmart:香港高防服务器/20Mbps带宽(cn2+bgp)/40G-100Gbps防御

RAKsmart怎么样?RAKsmart香港机房新增了付费的DDoS高防保护服务,香港服务器默认接入20Mbps的大陆优化带宽(电信走CN2、联通和移动走BGP)。高防服务器需要在下单页面的IP Addresses Option里面选择购买,分:40Gbps大陆优化高防IP-$461/月、100Gbps国际BGP高防IP-$692/月,有兴趣的可以根据自己的需求来选择!点击进入:RAKsmart官...

ucloud国内云服务器2元/月起;香港云服务器4元/首月;台湾云服务器3元/首月

ucloud云服务器怎么样?ucloud为了扩大云服务器市场份额,给出了超低价云服务器的促销活动,活动仍然是此前的Ucloud全球大促活动页面。目前,ucloud国内云服务器2元/月起;香港云服务器4元/首月;台湾云服务器3元/首月。相当于2-4元就可以试用国内、中国香港、中国台湾这三个地域的云服务器1个月了。ucloud全球大促仅限新用户,国内云服务器个人用户低至56元/年起,香港云服务器也仅8...

LightNode(7.71美元),免认证高质量香港CN2 GIA

LightNode是一家位于香港的VPS服务商.提供基于KVM虚拟化技术的VPS.在提供全球常见节点的同时,还具备东南亚地区、中国香港等边缘节点.满足开发者建站,游戏应用,外贸电商等应用场景的需求。新用户注册充值就送,最高可获得20美元的奖励金!成为LightNode的注册用户后,还可以获得属于自己的邀请链接。通过你的邀请链接带来的注册用户,你将直接获得该用户的消费的10%返佣,永久有效!平台目前...

ubuntu12.04为你推荐
咏春大师被ko练了十几年的 “ 咏春高手”~~被练一年空手道的轻易打败,难道如今的国术就像国足,不堪一击~~阿丽克丝·布莱肯瑞吉阿丽克斯布莱肯瑞吉演的美国恐怖故事哪两集百度关键词价格查询如何查到推广关键词的价钱?porntimesexy time 本兮 MP3地址ip在线查询我要用eclipse做个ip在线查询功能,用QQwry数据库,可是我不知道怎么把这个数据库放到我的程序里面去,高手帮忙指点下,小弟在这谢谢了5xoy.comhttp://www.5yau.com (舞与伦比),以前是这个地址,后来更新了,很长时间没玩了,谁知道现在的地址? 谢谢,www.se222se.comhttp://www.qqvip222.com/www.175qq.com求带名字的情侣网名!www.1diaocha.com手机网赚是真的吗www.147.qqq.com谁有147清晰的视频?学习学习
移动服务器租用 欧洲欧洲vps 个人域名备案 justhost koss 华为4核 网通ip 圣诞促销 速度云 广州服务器 东莞idc 登陆空间 中国电信测速器 lick 游戏服务器出租 中国电信测速网站 工信部icp备案查询 ssl加速 带宽测试 gotoassist 更多