Cov txheej txheem:

Me Me Linux Server - VoCore2 - Pib: 9 Kauj Ruam
Me Me Linux Server - VoCore2 - Pib: 9 Kauj Ruam

Video: Me Me Linux Server - VoCore2 - Pib: 9 Kauj Ruam

Video: Me Me Linux Server - VoCore2 - Pib: 9 Kauj Ruam
Video: Wei Fu. Linux on RISC-V--Fedora and Firmware in practice. Embedded Fest 2019 2024, Hlis ntuj nqeg
Anonim
Me me Linux Server - VoCore2 - Pib
Me me Linux Server - VoCore2 - Pib
Me me Linux Server - VoCore2 - Pib
Me me Linux Server - VoCore2 - Pib

Lub VoCore2 Qhov kawg yog qhov ua tau zoo ntawm kev ua haujlwm me me thiab tsim nyog txiav txim siab rau cov ntawv thov tswj.

Qhov kev qhia no yuav pab koj kawm paub yuav ua li cas:

  • teeb tsa lub cuab yeej teeb tsa,
  • ntxiv kev nkag mus siv internet kom nyab xeeb, thiab
  • tswj lub on-board LED.

Kuv yuav qhov kawg version (nrog cov ntawv thaiv thiab cov qauv sib txuas) txij li nws zoo li txoj hauv kev nrawm kom pib. Txog kev teeb tsa kev tswj hwm, PCB kuj tseem muaj thiab hais txog qhov loj me ntawm cov ntawv xa nyiaj.

Khoom siv

  • VoCore2 Qhov kawg (https://vocore.io)
  • USB Cable (USB rau USB-mini)

Cov cuab yeej

Txhawm rau teeb tsa VoCore2 siv qhov kev qhia no, koj yuav tsum tau siv cov ntawv sau vi thiab tus lej ua haujlwm. Yog tias koj tsis paub txog cov no, muaj cov kab ntawv txuas hauv kev qhia uas yuav muab kev pab.

Kauj ruam 1: Fais fab VoCore2

Ua kom muaj zog VoCore2
Ua kom muaj zog VoCore2

Txuas lub USB adapter cable ntawm koj lub khoos phis tawj thiab VoCore2. Kev txuas mini-USB ntawm VoCore yuav tsum siv rau qhov no.

Kauj ruam 2: Txuas rau Luci Config App

Txuas rau Luci Config App
Txuas rau Luci Config App

Daim ntawv thov teeb tsa ua haujlwm ntawm VoCore2 thiab koj tuaj yeem nkag mus rau nws los ntawm koj tus browser.

  1. Los ntawm koj tus tswv lub khoos phis tawj/laptop, txuas rau lub cuab yeej lub network wifi (SSID: VoCore2-…)
  2. Hauv koj tus browser mus rau:
  3. Koj yuav tsum pom lub vev xaib nug txog daim ntawv pov thawj.
  4. Nkag ID: hauv paus
  5. Sau tus Password: vocore
  6. Koj yuav tsum nyob hauv OpenWrt system teeb tsa app tam sim no.

Koj tseem tuaj yeem nkag mus teeb tsa cov lus txib siv VoCore2 console, uas peb yuav ua tom qab.

Kauj Ruam 3: Thauj Khoom Tshiab Firmware

Thauj khoom Firmware tseeb
Thauj khoom Firmware tseeb
Thauj khoom Firmware tseeb
Thauj khoom Firmware tseeb

Siv Luci Navigation mus rau:

System> Thaub qab / Flash Firmware

  1. Tau txais qhov rub tawm tshiab kawg los ntawm https://vocore.io/v2u.html Ntu ntu: "Hloov Kho VoCore2 Firmware". Raws li xyoo 2019-Kaum Ib Hlis-03, qhov hloov tshiab kawg tau pom nyob hauv cov duab saum toj no.
  2. Txuag cov ntaub ntawv rau koj lub computer.
  3. Siv Luci interface los xaiv nws.
  4. Nias lub "Flash Image" khawm kom thauj nws mus rau hauv koj li VoCore2.

Kauj Ruam 4: Teem Sijhawm Sijhawm

Teem Sijhawm Sijhawm
Teem Sijhawm Sijhawm
  1. Tom qab rub lub firmware tshiab, tos ob peb feeb ua ntej rov txuas rau VoCore's WiFi network (SSID: VoCore2-…)
  2. Hauv browser mus rau:
  3. Mus rau Ntawv qhia zaub mov: System> System
  4. Hla mus rau Timezone thiab xaiv koj lub sijhawm sijhawm
  5. Rov qab mus thiab nias "Sync nrog browser" khawm
  6. Tawm ntawm cov kev xaiv raws li lub neej ntawd
  7. Nias "Txuag & Thov" khawm

Kauj Ruam 5: Ntxiv Kev Siv Internet

Lub cuab yeej lub hom phiaj yog ua haujlwm raws li lub network Access Point (AP). Koj tuaj yeem txuas rau lub cuab yeej los ntawm mini-usb, WiFi, lossis Ethernet, tab sis lub cuab yeej yuav tsis muaj Is Taws Nem siv. Txhawm rau ntxiv kev nkag mus rau Is Taws Nem, ua raws cov lus qhia hauv qab no uas yuav pab kom STA (network Chaw Nres Tsheb) hom ua haujlwm. (Tom qab ntxiv STA hom, lub cuab yeej tseem yuav ua haujlwm zoo li AP thiab Luci teeb tsa app tseem yuav muaj.)

Cov theem hauv qab no yuav ntxiv Kev Nkag Mus Rau Internet.

Kauj Ruam 6: Txuas mus rau VoCore Console

Los ntawm PC

  1. Qhib Tswj Vaj Huam Sib Luag> Tus Thawj Saib Xyuas Haujlwm> Chaw Nres Nkoj, nrhiav "USB Serial Device", nco ntsoov COM chaw nres nkoj tus lej
  2. Siv Serial Terminal Emulator (Piv txwv: Putty)
  3. Teeb tsa kev sib txuas params: Com_Port_Number, 115200 bps, 8 cov ntaub ntawv me me, 1 nres me ntsis, tsis muaj kev ncaj ncees, tsis muaj kev tswj ntws
  4. Thaum txuas nrog, nyem Enter kom tau txais Linux plhaub tam sim

Los ntawm Mac

Qhib Mac's Terminal app thiab khiav cov lus txib hauv qab no kom pom cov ntaub ntawv xov xwm Chaw nres nkoj.

ls /dev /cu*

Cov lus teb zoo li:

/dev/cu.usbmodem6A68DE4F34311

Nkag mus rau koj cov lus teb nyob rau hauv cov lus txib tom ntej, kom pib lub davhlau ya nyob twg emulator.

screen /dev/cu.usbmodem6A68DE4F34311 115200, cs8, -isb, -cstopb

Qhov ntawd yuav qhib qhov Screen davhlau ya nyob twg emulator. Tam sim no koj tuaj yeem nias Enter kom tau txais Linux plhaub tam sim.

Kauj Ruam 7: Ntxiv Chaw Nres Tsheb (STA)

Keeb kwm yav dhau

Seem no siv uci cov lus txib uas pab teeb tsa OpenWrt kev ua haujlwm. (Raws li lwm txoj hauv kev, koj tuaj yeem hloov kho cov ntaub ntawv OS cuam tshuam ncaj qha.)

Tshooj lus no tau los ntawm: https://vocore.io/v2u.html. Kuv qhia cov lus qhia kom meej. Txhawm rau zam kev ua yuam kev nrog "uci ua phem":

  • Kuv muab tag nrho uci qhov ntsuas qhov tseem ceeb hauv nqe lus.
  • Kuv tsis suav cov lus txib rau qhov tsis uas twb tau teeb tsa hauv lawv cov ntawv /lwm yam /teeb tsa cov ntaub ntawv.

Kuv kuj tau ntxiv ob peb lo lus txib ntxiv los teeb tsa lub Access Point tshiab WiFi network, suav nrog:

  • tsim nyog zaus kom haum koj lub teb chaws cov kev cai, thiab
  • ruaj ntseg ID nkag mus.

Cov lus qhia

1. Txuas mus rau lub cuab yeej lub console los ntawm nws microUSB (saib ntu ua ntej)

2. Khiav cov lus txib hauv qab no hauv lub console.

uci teeb wireless.sta.ssid = "Koj_Existing_WiFi_SSID"

uci teeb wireless.sta.key = "Your_Existing_WiFi_Password" uci teeb wireless.sta.network = "wwan" uci cog lus

3. Txheeb teeb tsa cov ntawv sau kom yog tias koj lub WiFi network tam sim no poob qis, koj tseem tuaj yeem txuas rau VoCore2.

Siv tus vi editor (suav nrog OpenWrt) txhawm rau ntxig cov cai hauv qab no rau hauv /etc/rc.local

uci teeb wireless.sta.disabled = "0"

uci ua txhaum/etc/init.d/network restart pw 10 uci teeb wireless.sta.disabled = "1" uci cog lus

4. Teeb firewall kom nkag tau internet siv tau los ntawm koj lub hotspot.

uci teeb tsa phab ntsa.@tsam [1].forward = "ACCEPT"

uci cog

5. Ntxiv qhov ntsuas ntxiv los teeb tsa tsim nyog tsim nyog siv WiFI xov tooj cua raws koj lub tebchaws xws li Canada lossis Asmeskas, raws li:

uci teeb wireless.ra0.country = "CA"

uci teeb wireless.ra0.country = "Asmeskas"

Ntau lub tebchaws cov lej ntawm:

uci cog

6. Teeb Nkag Nkag Nkag Nkag Nkag Nkag Pov Thawj thiab Nkag Nkag

Lub cuab yeej los yam tsis muaj tus password ntawm nws qhov chaw nkag mus rau WiFi (SSID: VoCore2…), yog li ntxiv ib qho ntawm no.

uci teeb wireless.ap.key = "New_WiFi_Password"

uci teeb wireless.ap.encryption = "psk2" uci cog lus

Nco ntsoov tias psk2 suav nrog WPA2

7. Hloov Wirelesss los ntawm kev khiav:

rov qab wifi

los yog los ntawm kev khiav

/etc/init.d/network rov pib dua

lossis yog tias nws tseem tsis coj tus cwj pwm, los ntawm rebooting ntaus ntawv:

rov pib dua

uas yuav tau siv sijhawm ntev dua li rov qhib lossis rov pib dua.

8. Tos 30-60 vib nas this rau lub cuab yeej nkag mus rau AP+STA hom.

9. Txuas koj lub khoos phis tawj host mus rau WiFi, xaiv lub network hu ua VoCore2…

10. Txheeb xyuas Is Taws Nem kev txuas los ntawm kev khiav:

ping -w 5 www.vocore.io

Cov lus teb yuav tsum qhia qee yam xws li:

64 bytes los ntawm 192.81.249.134: seq = 0 ttl = 56 lub sij hawm = 76.269 ms

64 bytes los ntawm 192.81.249.134: seq = 1 ttl = 56 sij hawm = 65.666 ms 64 bytes los ntawm 192.81.249.134: seq = 2 ttl = 56 sij hawm = 68.216 ms 64 bytes los ntawm 192.81.249.134: seq = 3 ttl = 56 sij hawm = 63.554 ms 64 bytes los ntawm 192.81.249.134: seq = 4 ttl = 56 lub sij hawm = 66.769 ms

Yog tias koj muaj teeb meem tau txais kev sib txuas hauv network los ua haujlwm, siv cov lus hais ua ntej rov pib dua. Yog tias qhov ntawd tsis ua haujlwm, txuas lub USB cable, tos 30 vib nas this, rov txuas lub xov tooj. Koj tseem tuaj yeem tshawb xyuas/sys/config/folder kom ntseeg tau tias cov lus txib (saum toj no) teeb tsa lawv cov ntaub ntawv cuam tshuam raug.

Kauj Ruam 8: Tswj Lub Onboard Liab LED

Tswj lub Onboard Liab LED
Tswj lub Onboard Liab LED
Tswj lub Onboard Liab LED
Tswj lub Onboard Liab LED
Tswj lub Onboard Liab LED
Tswj lub Onboard Liab LED

Txhawm rau tswj lub onboard LED uas ua rau liab thaum lub sijhawm ua haujlwm WiFi, Kuv pom tias cov hauv qab no ua haujlwm:

Un-trigger LED hauv Luci App

Los ntawm Luci app:

  1. Siv cov ntawv qhia zaub mov mus rau System> LED teeb tsa.
  2. Teeb tus txhais rau "tsis muaj".
  3. Nias Txuag thiab Thov

Tej zaum lub chaw teeb tsa yuav ua rau lub xeev no tom qab khau raj, tab sis kuv tsis tau sim qhov ntawd.

Tswj LED nrog Console Commands

Txhawm rau qhib LED:

ncha 1>/sys/class/leds/vocore2 \: fuchsia \: xwm txheej/ci ntsa iab

Txhawm rau tua LED tawm:

ncha 0>/sys/class/leds/vocore2 \: fuchsia \: status/brightness

Ceev faj

Kev tswj hwm LED li no yuav cuam tshuam nrog OpenWrt kev siv LED, tab sis ua haujlwm thaum lub sijhawm kuv sim.

Ib txoj hauv kev zoo dua ntawm kev tswj hwm GPIO yog siv cov lus txib xa tawm, txawm li cas los xij cov lus txib no tsis ua haujlwm rau GPIO44 (uas tswj hwm LED, raws li kev qhia paub thiab router phau ntawv teev cov duab qhia saum toj no). Yog li Cov Txheej Txheem Ua Haujlwm yuav zoo li, tseem tuav lub LED no, txawm hais tias Luci teeb tsa.

Kauj Ruam 9: Cov peev txheej

Nov yog qee qhov txuas uas kuv pom muaj txiaj ntsig lossis txaus nyiam raws li kuv tau kawm txog VoCore-OpenWrt ecosystem.

VoCore

Qhov kawg

Wiki VoCore

Schematics

GitHub www.github.com/vonger/vocore2

Luci https://192.168.61.1/cgi-bin/luci (ib zaug txuas nrog VoCore WiFi)

Designer Blog

OpenWrt

Phau Ntawv Qhia Neeg Siv

Pib sai

uci

Network

Wireless

  • Client
  • Nkag mus
  • Utilities

Lo lus zais

Tsev Automation

cRelay Library

uBoot

Cov ntawv thov

Puffy LEDs

LED/unbrick

Mediatek

Global Engineer

Hackaday

VoCore 1

PC Txuas

Lwm yam

CLI pib

Pom zoo: