Coder Social home page Coder Social logo

yodaos-project / yodaos Goto Github PK

View Code? Open in Web Editor NEW
1.2K 77.0 133.0 71.56 MB

Yet another Linux distribution for voice-enabled IoT and embrace Web standards

License: Apache License 2.0

Python 0.72% Shell 1.31% Makefile 3.63% CMake 0.05% JavaScript 0.04% C 83.70% C++ 8.81% Objective-C 0.60% GDB 0.01% Tcl 0.01% Batchfile 0.01% HTML 0.05% CSS 0.01% XSLT 0.01% Roff 0.58% Perl 0.42% SmPL 0.01% sed 0.01% Lex 0.03% Yacc 0.04%
web javascript nodejs yodaos linux openwrt

yodaos's Introduction

YODAOS

YodaOS is Yet another Linux Distribution for voice-enabled IoT and embrace Web standards, thus it uses JavaScript as the main application/scripting language.

Get Started

To start with YodaOS, a Linux or MacOS is required to build the image.

For Ubuntu:

$ apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev unzip texinfo device-tree-compiler dosfstools libusb-1.0-0-dev

For MacOS, you need to install some GNU tools which the openwrt is required:

$ brew install gnu-tar gnu-getopt findutils m4

Linux source tree requires a case-sensitive file system, make sure your workspace is APFS (case-sensitive) before you start.

The openwrt check gnu-getopt version via the gnugetopt command name, so the following link is also required:

$ ln -sf $(brew list gnu-getopt | grep bin) /usr/local/bin/gnugetopt

Download Source

$ git clone [email protected]:yodaos-project/yodaos.git

Build

$ ./configure -p rpi -c rpi3b_plus
$ make -C openwrt # build under the openwrt directory

The configure command is to select which board that you were to build:

board product
Raspberry 3b plus raspberry
Kamino18 kamino18

Go compile & run for more details.

Community

Contributing

YodaOS is a community-driven project that we accepts any improved proposals, pull requests and issues.

  • For JavaScript development, go [yodart][] for details.
  • For proposal, yodaos-project/evolution is the place where someone can submit pull request to propose something.

Documentation

License

Apache 2.0

yodaos's People

Contributors

0xflotus avatar gokaygurcan avatar littlestarling avatar yorkie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yodaos's Issues

build: support node-gyp

At smartphone and resource-rich devices, we could use Node.js to optimize the performance and development experience, thus that's more friend to developers if we could build on gyp.

startup[1776]: refreshToken 无限刷 token

问题出处,运行:

logread -f

结果:

startup[1776]: refreshTokenTime=6944608444.451904, request result={"accessKeyId":"STS.NHp...gZZ","accessKeySecret":"A6J...4jht","expiration":"2019-02-14T14:02:31Z","token":"CAI...WXir
startup[1776]: =====url===== https://apigwrest.open.rokid.com/v1/sts/StsService/GetToken
startup[1776]: refreshTokenTime=6945337545.351074, request result={"accessKeyId":"STS.NHp...gZZ","accessKeySecret":"A6J...jht","expiration":"2019-02-14T14:14:41Z","token":"CAI...Xir
startup[1776]: =====url===== https://apigwrest.open.rokid.com/v1/sts/StsService/GetToken
startup[1776]: refreshTokenTime=6945402677.48291, request result={"accessKeyId":"STS.NHp...gZZ","accessKeySecret":"A6J...jht","expiration":"2019-02-14T14:15:47Z","token":"CAI...irC
startup[1776]: =====url===== https://apigwrest.open.rokid.com/v1/sts/StsService/GetToken
startup[1776]: refreshTokenTime=6944706173.069092, request result={"accessKeyId":"STS.NHp...ZZ","accessKeySecret":"A6J...jht","expiration":"2019-02-14T14:04:11Z","token":"CAISi...XnuuKCWXir
startup[1776]: =====url===== https://apigwrest.open.rokid.com/v1/sts/StsService/GetToken
startup[1776]: refreshTokenTime=6944791615.659912, request result={"accessKeyId":"STS.NH...3gZZ","accessKeySecret":"A6JN9a...4jht","expiration":"2019-02-14T14:05:38Z","token":"CAI...Xir
startup[1776]: =====url===== https://apigwrest.open.rokid.com/v1/sts/StsService/GetToken
startup[1776]: refreshTokenTime=6945480171.72998, request result={"accessKeyId":"STS.NH...KN3gZZ","accessKeySecret":"A6JN9a3V...M55C4jht","expiration":"2019-02-14T14:17:07Z","token":"CAISiwV1...XirC

系统版本:
Linux OpenWrt 4.4.25 #101 Mon Nov 26 04:16:26 UTC 2018 armv7l GNU/Linux

Is there anyone make this image file?

When I find this project, I am surprised.
I like this good idea.
In fact, I had this idea in many yeas ago, but I have't this power.
Now, I will add this project, following this project.
I think if this project can find a right ways, if will over than android.

缺少编译依赖 vsp_ioctl.h

OpenWrt config: products/rokid/dev3.3/configs/leo_k18_dev33_defconfig

编译 Building C object modules/mic_array/CMakeFiles/mic_array.default.dir/mic_array.c.o 时,缺少 vsp_ioctl.h。
经验证,在 openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/android-hardware/modules/mic_array/CMakeFiles/mic_array.default.dir/flags.make 中,C_INCLUDES 添加
-I/diskdata1/yodaos/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/android-hardware/nationalchip/gx8010/vsp_firmware/include 即可解决。

此为临时解决方案,需要在编译依赖处添加相关配置。

随后,再次编译,在其它位置也发现该问题。。。

In file included from /diskdata1/yodaos/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/factory/./src_rokid/include/adb_func.h:11:0,
                 from /diskdata1/yodaos/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/factory/src_rokid/app/adb_factory.c:4:
/diskdata1/yodaos/openwrt/build_dir/target-arm_cortex-a7+neon_glibc-2.22_eabi/factory/./src_rokid/include/common.h:27:24: fatal error: vsp_ioctl.h: No such file or directory
compilation terminated.

Read from PHY register KSZ9031

Hello,

I am trying the read the PHY ID number and model number.
Here are the commands I am passing to PHY to get the response.

id=MDIO_read(phyAddr, 0x02);
model=MDIO_read(phyAddr, 0x03);

read config -
uint16 MDIO_read(uint8_t phy_addr, uint8_t reg_addr)
{
while (0 != ETHERNET_0_MAC_MDIO_ADDRESS.bits.GB);
ETHERNET_0_MAC_MDIO_DATA.bits.RA = reg_addr ;
ETHERNET_0_MAC_MDIO_DATA.bits.GD = 0;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.PA = phy_addr;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.RDA = reg_addr;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.PSE = 1;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.BTB = 0;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.NTC = 0;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.CR = 0x0;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.SKAP = 0;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.C45E = 1;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.GOC = 3;
ETHERNET_0_MAC_MDIO_ADDRESS.bits.GB = 1;
while (0 !=ETHERNET_0_MAC_MDIO_ADDRESS.bits.GB);
return (ETHERNET_0_MAC_MDIO_DATA.bits.GD);
}

But it is not responding. MDIOs GD filed fills with 0x0000 only.
So, Are those above configurations are correct? Or any other initialization needs to be carried out before reading the IDs or model numbers?

Unable to locate package libusb

Run apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev unzip texinfo device-tree-compiler dosfstools libusb

Will get error:

  • Unable to locate package libusb

Maybe libusb -> libusb-1.0-0 ?

Permission denied (publickey).fatal: Could not read from remote repository.

Fetching project kamino_rokidos/gx8010/uboot
Fetching project kamino_rokidos/open-platform/embedded-linux/system/core
The authenticity of host '[openai-corp.rokid.com]:29418 ([118.190.121.203]:29418)' can't be established.
RSA key fingerprint is SHA256:NTl8ExH0GNuZm0tCkD6bn4n86BtgylIbjJEUxIa8CZI.
Are you sure you want to continue connecting (yes/no)? Host key verification failed.
The authenticity of host '[openai-corp.rokid.com]:29418 ([118.190.121.203]:29418)' can't be established.
RSA key fingerprint is SHA256:NTl8ExH0GNuZm0tCkD6bn4n86BtgylIbjJEUxIa8CZI.
Are you sure you want to continue connecting (yes/no)? Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
The authenticity of host '[openai-corp.rokid.com]:29418 ([118.190.121.203]:29418)' can't be established.
RSA key fingerprint is SHA256:NTl8ExH0GNuZm0tCkD6bn4n86BtgylIbjJEUxIa8CZI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[openai-corp.rokid.com]:29418,[118.190.121.203]:29418' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

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.