GithubHelp home page GithubHelp logo

rvx's Introduction

RVX

A xv6 port on D1.

Currently I run on Nezha.

Development (Ubuntu)

Prerequisite

Unbuntu:

  • USB-UART driver: sudo apt install libusb-1.0-0-dev
  • build xfel
  • COM GUI: [cutecom]: sudo apt install cutecom

Validation

  • lsusb

Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC Bus 001 Device 005: ID 1f3a:efe8 Allwinner Technology sunxi SoC OTG connector in FEL/flashing mode

sudo adduser <user> dialout

  • sudo xfel version

AWUSBFEX ID=0x00185900(D1/F133) dflag=0x44 dlength=0x08 scratchpad=0x00045000

Build

npm install --global xpm@latest
xpm install
./dev build

Now open a Serial session in Cutecom GUI, select serial device "/dev/ttyUSB0", baud rate is 115200bps

Run ./dev start

See UTART output in Cutecom.

Development (Windows + WSL)

Prerequisite

WSL:

  • build xfel
  • USB-UART driver: sudo apt-get install libusb-1.0-0-dev

Windows:

Both: usbipd

https://blog.golioth.io/program-mcu-from-wsl2-with-usb-support/

Validation

In Windows:

usbipd wsl list
# find the bus_id of vid 1f3a:efe8
usbipd wsl -a -b 1-8

Now open a Serial session in Mobxterm, select serial device "COM3 (USB Serial Port (COM3))", baud rate is 115200bps

In WSL Ubuntu:

lsusb
# an additional usb device
# Bus 001 Device 004: ID 1f3a:efe8 Allwinner Technology sunxi SoC OTG connector in FEL/flashing mode

BUild

npm install --global xpm@latest
xpm install
./dev build
./dev start

check the serial port output in the above Mobxterm session tab.

rvx's People

Contributors

chaoyangnz avatar

Stargazers

Alexander Salas Bastidas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.