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

CYUN专注海外精品服务器资源 国庆钜惠 最低5折起 限量促销

国庆钜惠 最低5折起 限量促销CYUN专注海外精品服务器资源,主营香港CN2 GIA、美国CERA、美国高防服务器资源,实体公司,ISP/IDC资质齐全,客服配备齐全。本次针对国庆推出非常给力的促销活动,旗下所有平台同享,新老客户同享,限时限量,售完截止。活动截止时间:2021年10月9日官网地址:www.cyun.net参与机型:香港CN2 GIA云服务器、香港双程CN2云服...

Linode($5/月),新用户注册送100美元,11个数据中心云服务器

关于Linode,这是一家运营超过18年的VPS云主机商家,产品支持随时删除(按小时计费),可选包括美国、英国、新加坡、日本、印度、加拿大、德国等全球十多个数据中心,最低每月费用5美元($0.0075/小时)起。目前,注册Linode的新用户添加付款方式后可以获得100美元赠送,有效期为60天,让更多新朋友可以体验Linode的产品和服务。Linode的云主机产品分为几类,下面分别列出几款套餐配置...

韩国服务器租用优惠点评大全

韩国服务器怎么样?韩国云服务器租用推荐?韩国服务器距离中国近,有天然的地域优势,韩国服务器速度快而且非常稳定!有不少有亚洲市场的外贸公司选择韩国服务器开拓业务,韩国服务器因自身的优势也受到不少用户的青睐。目前的IDC市场上,韩国、香港、美国三个地方的服务器几乎占据了海外服务器的百分之九十以上。韩国服务器相比美国服务器来说速度更快,而相比香港机房来说则带宽更充足,占用市场份额非常大。那么,韩国服务器...

ubuntu12.04为你推荐
渣渣辉商标什么是渣渣灰?网红名字被抢注球星名字被抢注合法合理吗?云计算什么是云计算?关键字关键字和一般标识符的区别www.44ri.comwww.yydcsjw.comwww.e12.com.cn上海高中除了四大名校,接下来哪所高中最好?顺便讲下它的各方面情况www.zjs.com.cn怎么查询我的平安信用卡寄送情况baqizi.cc徐悲鸿到其中一张很美的女人体画www.15job.com南方人才市场有官方网站是什么?5566.com请问如何创建网页(就是www.5566.com.cn这种格式的)
美国虚拟主机 空间域名 虚拟主机服务商 3322动态域名注册 香港vps 日本软银 java主机 500m空间 e蜗牛 爱奇艺vip免费领取 服务器硬件防火墙 江苏双线服务器 安徽双线服务器 超级服务器 个人免费主页 国外视频网站有哪些 1元域名 免费网络 免费个人网页 域名和主机 更多