Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KShin6
Novice
1,002 Views

How to changing I2C speed in Arduino IDE?(Fast->Std)

I have a VOC sensor(mics-vz-89f). It can i2c communication at STD mode(100kbit)

but Edison i2c mode is Fast mode(400kbit)

How to changing edison i2c mode? fast -> std

I try to rebuild kernel, but I got errors.

Please, Help me

Loading cache: 100% |# | ETA: 00:00:00

Loaded 2238 entries from dependency cache.

WARNING: No recipes available for:

/home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-intel-iot-devkit/recipes-kernel/linux/linux-yocto-quark_3.8.bbappend

NOTE: Resolving any missing task queue dependencies

NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)

NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg

NOTE: multiple providers are available for runtime java2-runtime (cacao, jamvm, openjdk-8-jre, openjdk-7-jre, openjdk-6-jre)

NOTE: consider defining a PREFERRED_PROVIDER entry to match java2-runtime

NOTE: multiple providers are available for virtual/java-native (cacao-native, jamvm-native)

NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/java-native

NOTE: multiple providers are available for jpeg-native (jpeg-native, libjpeg-turbo-native)

NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg-native

NOTE: multiple providers are available for runtime java2-vm (openjdk-7-jre, openjdk-6-jre)

NOTE: consider defining a PREFERRED_PROVIDER entry to match java2-vm

NOTE: multiple providers are available for virtual/java-initial-native (cacao-initial-native, jamvm-initial-native)

NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/java-initial-native

Build Configuration:

BB_VERSION = "1.24.0"

BUILD_SYS = "x86_64-linux"

NATIVELSBSTRING = "Ubuntu-14.04"

TARGET_SYS = "i586-poky-linux"

MACHINE = "edison"

DISTRO = "poky-edison"

DISTRO_VERSION = "1.7.3"

TUNE_FEATURES = "m32 core2"

TARGET_FPU = ""

meta

meta-intel-arduino

meta-intel-edison-bsp

meta-intel-edison-distro

meta-intel-iot-devkit

meta-intel-iot-middleware

meta-java

meta-oic

meta-filesystems

meta-networking

meta-oe

meta-python

meta-ruby

meta-webserver

meta-yocto

meta-yocto-bsp = ":"

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

WARNING: Failed to fetch URL http://serf.googlecode.com/svn/src_releases/serf-1.3.7.tar.bz2, attempting MIRRORS if available

WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.8.9.tar.bz2, attempting MIRRORS if available

WARNING: Checksum failure encountered with download of http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/archive/f89009ada191.tar.bz2;name=openjd... - will attempt other sources if available

WARNING: Renaming /home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/downloads/f89009ada191.tar.bz2 to /home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/downloads/f89009ada191.tar.bz2_bad-checksum_2bc941373ca4b033c9a25f972eec7858

ERROR: Fetcher failure for URL: ' http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/archive/f89009ada191.tar.bz2;name=openjd...'. Checksum mismatch!

File: '/home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/downloads/f89009ada191.tar.bz2' has md5 checksum 2bc941373ca4b033c9a25f972eec7858 when c26bbb33addfaeb14d28a1329b4b5a3e was expected

File: '/home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/downloads/f89009ada191.tar.bz2' has sha256 checksum 5efd8e66f18fcbf45527bcc74aa3e6ed11f66bc793c88e3841925c4acb4827ba when 54a0ef02b56b265b4122324e08a33c42ececbf2a300ada260611e7b6ccdba96d was expected

If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:

SRC_URI[openjdk.md5sum] = "2bc941373ca4b033c9a25f972eec7858"

SRC_URI[openjdk.sha256sum] = "5efd8e66f18fcbf45527bcc74aa3e6ed11f66bc793c88e3841925c4acb4827ba"

Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: Function failed: Fetcher failure for URL: ' http://icedtea.classpath.org/hg/release/icedtea7-forest-2.1/archive/f89009ada191.tar.bz2;name=openjd...'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/log.do_fetch.2908

ERROR: Task 3003 (/home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb, do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2106 tasks of which 2087 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

/home/kyu/Downloads/iot-devkit-yp-poky-edison-20160606/build_edison/../poky/meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb, do_fetch

Summary: There were 5 WARNING messages shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos
3 Replies
idata
Community Manager
55 Views

Hello dev_kor,

 

 

Thanks for reaching out!

 

 

If you'd like to build the standard image, you should follow these steps:

 

 

Make sure you are using Ubuntu 16.04 (I tested this steps on kernel version 4.4.0-38-generic) and have the following versions of Git, tar, and Python:

 

 

Git 1.7.8 or greater

 

tar 1.24 or greater

 

Python 2.7.3 or greater excluding Python 3.x, which is not supported.

 

 

Install all the dependencies with the command:

 

 

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \

 

build-essential chrpath socat libsdl1.2-dev xterm

 

 

Download and unzip iot-devkit-yp-poky-edison-20160606.zip ( http://iotdk.intel.com/src/3.5/edison/iot-devkit-yp-poky-edison-20160606.zip).

 

 

Go to iot-devkit-yp-poky-edison-20160606/poky/meta-intel-edison/meta-intel-edison-distro/recipes-core/images/edison-image.bb and comment or delete the following lines:

 

 

IMAGE_INSTALL += "iotkit-comm-js"

 

IMAGE_INSTALL += "iotkit-comm-c-dev"

 

 

Go to http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/recipes-core/icedtea/openjdk-7-03b147/sig...

 

 

Download the patch and unzip it.

 

 

Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/ant and delete the file called ant-native_1.8.1.bb, replace it with the file with the same name found in /meta-java-master/recipes-core/ant/.

 

 

Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/icedtea/ and delete the file called icedtea7-native_2.1.3.bb, replace it with the file with the same name found in /meta-java-master/recipes-core/icedtea/.

 

 

Go to iot-devkit-yp-poky-edison-20160606/poky/meta-java/recipes-core/icedtea/openjdk-7-03b147/ and delete the file fix-checksums.patch, replace it with the file with the same name found in /meta-java-master/recipes-core/icedtea/openjdk-7-03b147/.

 

 

Go to iot-devkit-yp-poky-edison-20160606/poky/meta-intel-iot-devkit/recipes-connectivity/bacnet-stack and open the file called bacnet-stack_0.8.2.bb. Look for the line:

 

 

SRC_URI = " http://sourceforge.net/projects/bacnet/files/bacnet-stack/bacnet-stack-${PV}/bacnet-stack-${PV}.tgz \

 

 

And change it for:

 

 

SRC_URI = " https://svwh.dl.sourceforge.net/project/bacnet/bacnet-stack/bacnet-stack-0.8.2/bacnet-stack-0.8.2.tg... \

 

 

Then follow the usual steps:

 

 

cd iot-devkit-yp-poky-edison-20160606/poky/

 

source oe-init-build-env ../build_edison/

 

bitbake edison-image u-boot

 

../poky/meta-intel-edison/utils/flash/postBuild.sh .

 

zip -r toFlash.zip toFlash

 

 

These steps were tested successfully by me and other two users in https://communities.intel.com/thread/111630 https://communities.intel.com/thread/111630. Once the modifications mentioned above are completed the building process shouldn't throw you any errors, then you can continue with your own modifications. Try it and let us know how it goes.

 

 

I hope this information helps you,

 

Pedro M.
idata
Community Manager
55 Views

I believe with the latest builds, kernel option CONFIG_I2C_DW_SPEED_MODE_DEBUG is already enabled

Check out this post for details...

idata
Community Manager
55 Views

I agree with joe_nasti, however, I would like to know if you were able to build the image with the steps I provided you above.

 

 

Pedro M.
Reply