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

腾讯云轻量应用服务器关于多个实例套餐带宽

腾讯云轻量应用服务器又要免费升级配置了,之前已经免费升级过一次了(腾讯云轻量应用服务器套餐配置升级 轻量老用户专享免费升配!),这次在上次的基础上再次升级。也许这就是良心云吧,名不虚传。腾讯云怎么样?腾讯云好不好。腾讯云轻量应用服务器 Lighthouse 是一种易于使用和管理、适合承载轻量级业务负载的云服务器,能帮助个人和企业在云端快速构建网站、博客、电商、论坛等各类应用以及开发测试环境,并提供...

Friendhosting(月1.35欧元),不限流量,9机房可选

今天9月10日是教师节,我们今天有没有让孩子带礼物和花送给老师?我们这边不允许带礼物进学校,直接有校长在门口遇到有带礼物的直接拦截下来。今天有看到Friendhosting最近推出了教师节优惠,VPS全场45折,全球多机房可选,有需要的可以看看。Friendhosting是一家成立于2009年的保加利亚主机商,主要提供销售VPS和独立服务器出租业务,数据中心分布在:荷兰、保加利亚、立陶宛、捷克、乌...

火数云-618限时活动,国内云服务器大连3折,限量50台,九江7折 限量30台!

官方网站:点击访问火数云活动官网活动方案:CPU内存硬盘带宽流量架构IP机房价格购买地址4核4G50G 高效云盘20Mbps独享不限openstack1个九江287元/月立即抢购4核8G50G 高效云盘20Mbps独享不限openstack1个九江329元/月立即抢购2核2G50G 高效云盘5Mbps独享不限openstack1个大连15.9元/月立即抢购2核4G50G 高效云盘5Mbps独享不限...

ubuntu12.04为你推荐
网罗设计网络设计, 计算机德尔,哪个好,哪个能赚钱?微信回应封杀钉钉为什么微信被封以后然后解封了过了一会又被封了刘祚天DJ这个职业怎么样?原代码什么是原代码百花百游百花百游的五滴自游进程同一服务器网站一个服务器能运行多少个网站lcoc.topoffsettop和scrolltop的区别66smsm.comffff66com手机可以观看视频吗?bk乐乐bk乐乐和CK是什么关系?29ff.comhttp://fcm.com在哪里输入这个网址啊
国外域名 怎么注册域名 vps是什么意思 什么是二级域名 locvps 香港托管 国外bt 一点优惠网 微信收钱 php空间推荐 双线主机 百度云1t 免费智能解析 四核服务器 香港亚马逊 腾讯总部在哪 网购分享 阿里云官方网站 美国凤凰城 万网主机 更多