Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it support for my "Coin-sized Linux Computer": VoCore2 ? #572

Open
Txiaozhe opened this issue Dec 17, 2019 · 23 comments
Open

Is it support for my "Coin-sized Linux Computer": VoCore2 ? #572

Txiaozhe opened this issue Dec 17, 2019 · 23 comments

Comments

@Txiaozhe
Copy link
Contributor

vocore: https://vocore.io/v2.html

@yorkie
Copy link
Member

yorkie commented Dec 17, 2019

As it's described as "Linux", ShadowNode is working on Linux :)

@Txiaozhe
Copy link
Contributor Author

But my device installed one openwrt, and I run the ShadowNode bin for linux in my device, it is not running :(

@legendecas
Copy link
Contributor

Please provide any outputs and details platform information if possible.

@Txiaozhe
Copy link
Contributor Author

output

root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin# ./iotjs
./iotjs: line 1: syntax error: unexpected ")"
root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin#
root@OpenWrt:~/iotjs/bin#

platform information:
https://vocore.io/v2.html#Parameters

Thanks :)

@Txiaozhe
Copy link
Contributor Author

@yorkie
Copy link
Member

yorkie commented Dec 17, 2019

It seems that your device is MIPS and ShadowNode doesn't have this type of pre-release, you need to build it by yourself.

@Txiaozhe
Copy link
Contributor Author

Okay, I will try it :) thanks

@Txiaozhe
Copy link
Contributor Author

I tried it:
use ubuntu by docker, install some dependents and a MIPS env in it, but my docker is crashed when I build something.
If you have some configurations ? Could you please give me some advice ?
Thanks :)

@Txiaozhe
Copy link
Contributor Author

I try to build an openwrt of vocore2 before I build shadownode for MIPS because of the toolchain will be generated after build openwrt.
build env: Ubuntu 64bit, 1.3GHz*2, 4GB mem
the problem:

  1. firstly it is slowly!
  2. I got error:
touch /home/txiaozhe/GitHub/openwrt/build_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/binutils-2.29.1/.built
touch /home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.binutils_installed
make[3]: Leaving directory '/home/txiaozhe/GitHub/openwrt/toolchain/binutils'
time: toolchain/binutils/compile#151.40#55.70#543.36
make[2]: Leaving directory '/home/txiaozhe/GitHub/openwrt'
toolchain/Makefile:96: recipe for target '/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.toolchain_compile' failed
make[1]: *** [/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/txiaozhe/GitHub/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/txiaozhe/GitHub/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$ 
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$ 
txiaozhe@txiaozhe-UL30A:~/GitHub/openwrt$ 

Could you please take a look and give me some advice ? Thanks:)

@yorkie
Copy link
Member

yorkie commented Dec 18, 2019

@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.

@Txiaozhe
Copy link
Contributor Author

@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.

Yes, the fail happened in my building toolchain

@Txiaozhe
Copy link
Contributor Author

Txiaozhe commented Dec 18, 2019

@Txiaozhe this build has not entered the ShadowNode package yet, it seems failed on your toolchain.

Yes, the fail happened in my building toolchain

Because, I need to build shadownode, the toolchain is needed, but if i want to get the toolchain for vocore , I must build openwrt for vocore. The doc of vocore say that.

@yorkie
Copy link
Member

yorkie commented Dec 18, 2019

Unfortunately I'm not familiar with the vocore build system, and compiling ShadowNode for mips should not depend on openwrt or buildroot, as I described before, creating your toolchain file should be enough.

@yorkie
Copy link
Member

yorkie commented Dec 18, 2019

BTW, if you still need a openwrt package, a working version is here: https://github.com/yodaos-project/yodaos/tree/v9.x/openwrt/package/yodaos/shadow-node.

@Txiaozhe
Copy link
Contributor Author

Thanks, I got my toolchain file and I use this cmd to build shadownode for vocore:

$ tools/build.py --clean --target-os linux --cmake-toolchain-file /my/toolchain/dir/file

but I got an error:

Could not find toolchain file

but I check the path for this toolchain, it is right.

@qile222
Copy link
Contributor

qile222 commented Dec 19, 2019

Is this path /my/toolchain/dir/file correct ?

@Txiaozhe
Copy link
Contributor Author

Is this path /my/toolchain/dir/file correct ?

Yes,I am sure. It is the absolute path of this toolchain file.

@yorkie
Copy link
Member

yorkie commented Dec 19, 2019

toolchain

Report a complete error?

@Txiaozhe
Copy link
Contributor Author

error info:

/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc:1:
Parse error.  Expected a command name, got unquoted argument with text "ELF���".
CMake Error at /usr/share/cmake-3.5/Modules/CMakeDetermineSystem.cmake:104 (message):
  Could not find toolchain file:
  /home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc
Call Stack (most recent call first):
  CMakeLists.txt:17 (project)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

[Failed - 1] cmake -B/home/txiaozhe/GitHub/ShadowNode/build/openwrt-linux/debug -H/home/txiaozhe/GitHub/ShadowNode -DCMAKE_TOOLCHAIN_FILE='/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc' -DCMAKE_BUILD_TYPE=Debug -DTARGET_ARCH=openwrt -DTARGET_OS=linux -DTARGET_BOARD=None -DPLATFORM_DESCRIPTOR=openwrt-linux -DENABLE_LTO=OFF -DENABLE_SNAPSHOT=ON -DBUILD_LIB_ONLY=OFF -DBUILD_STATIC=OFF -DINSTALL_PREFIX=/usr/local -DFEATURE_MEM_STATS=OFF -DFEATURE_CPU_PROFILER=OFF -DFEATURE_HEAP_PROFILER=OFF -DEXTERNAL_MODULES='' -DFEATURE_PROFILE='/home/txiaozhe/GitHub/ShadowNode/deps/jerry/jerry-core/profiles/es5.1.profile' -DMEM_HEAP_SIZE_KB=4096 -DEXTERNAL_LIBS='' -DEXTERNAL_COMPILE_FLAGS='' -DEXTERNAL_LINKER_FLAGS='' -DEXTERNAL_INCLUDE_DIR=''

txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$ 
txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$ 
txiaozhe@txiaozhe-UL30A:~/GitHub/ShadowNode$ 

@Txiaozhe
Copy link
Contributor Author

build env: build env: Ubuntu 16.04 LTS 64bit, 1.3GHz*2, 4GB mem

@yorkie
Copy link
Member

yorkie commented Dec 19, 2019

/home/txiaozhe/GitHub/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl/bin/mipsel-openwrt-linux-gcc

Please make sure your toolchain is working on your host machine, it seems getting the following error: Expected a command name, got unquoted argument with text "ELF���"

@qile222
Copy link
Contributor

qile222 commented Dec 20, 2019

Use uname -a to determine your architecture then download the right toolchain

@Txiaozhe
Copy link
Contributor Author

The architecture of my vocore is:
Linux OpenWrt 3.18.29 #3 Sat Aug 25 14:47:39 UTC 2018 mips GNU/Linux

And what the awkward is I can not download the toolchain anyway but can only generated after compile the OpenWrt for vocoreV2.

The document of vocoreV2 says:

note: To get toolchain, please check github.com/vonger/vocore2, after compile openwrt you will get it.

I read the doc of 'github.com/vonger/vocore2' and compiled it but the generated toolchain looks like invalid :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants