I am trying to get my fan to work on my Odroid XU4, I’m using the 2.13.6-rev1 and the resin/odroid-xu4-ubuntu-buildpack-deps:latest base image and when I run i2cset -y 1 0x60 0x05 0x00 I get the error Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory. This command works on the Hardkernel provided ubuntu image after this install proceses https://wiki.odroid.com/accessory/add-on_boards/xu4_cloudshell2/easy_install. Any tips or pointers would be greatly appreciated!
I’m also having a hard time getting my LCDs (320x240 TFT LCD using SPI) to work, but that is a whole other issue. The fan is much more pressing because we are having thermal issues.
We tried using the odroid-xu4-node base image because it includes udev (we thought that may have been the cause) but got the same error. We are ready to deploy around 20 devices but are unable to until this fan (thermal problems) issue is solved.
FROM resin/odroid-xu4-node
RUN apt-get update && apt-get install -yq \
ntfs-3g parted && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Defines our working directory in container
WORKDIR /usr/src/app
# Copies the package.json first for better cache on later pushes
COPY package.json package.json
# This install npm dependencies on the resin.io build server,
# making sure to clean up the artifacts it creates in order to reduce the image size.
RUN JOBS=MAX npm install --production --unsafe-perm && npm cache clean --force && rm -rf /tmp/*
# This will copy all files in our root to the working directory in the container
COPY . ./
RUN chmod 700 ./formatdrives.sh
# Enable systemd init system in container
ENV INITSYSTEM on
# server.js will run when container starts up on the device
CMD ["npm", "start"]
@Jacob I’ve been able to reproduce that i2c-1 does not exist on either the host os or in the container although i2c-2 and i2c-4 do exist. I’ve forwarded this onto our device team to look deeper into it
Hi Jacob.
I had a quick look at this and from what I saw so far, the fan is controlled automatically through the pwm. And the current mode is auto.
In my case, I observed the fan starting every once in a while when the SoC gets too hot, in accordance to the auto mode it is set on.
In your case the fan never starts up?
We are using two fans, the on chip fan and another chassis fan over i2c. We have two hard drives running over USB 3 connected to the XU4 and during high read/write periods temperatures rise in our enclosure so we had to add an additional fan. The fan works on the Hardkernel provided Ubuntu for XU4.
Turn on the chassis fan: i2cset -y 1 0x60 0x05 0x00
Turn off the chassis fan: i2cset -y 1 0x60 0x05 0x05
When I run these commands on my resin/odroid-xu4-node deployment I get the error: Error: Could not open file '/dev/i2c-1' or '/dev/i2c/1': No such file or directory
You would just need to download it, mount the SD card on your computer, replace the one from your SD card’s first partition, unmount it and then boot your XU4.
@floion Looks good, I will take a look at it
Also, just saw issue #77 “Odroid XU4 does not boot from eMMC”, adding eMMC support would be a HUGE advantage to us! We have had a high failure rate with SD cards in the past and would really like to move towards eMMC.
I’m working through the Yocto docs right now and they are tough to follow. Are there any another resources out there that you use? I can’t find any docs related to this in your pull request.
&i2c_1 {
status = "okay";
};
If we can get the SPI enabled and the LCD working I think we will probably be able help you knock some of those issues out.
@floion we are ready to start installing these devices but would like 2.14.3+rev1 to be released and available via the dashboard before we start installing. How soon will you guy’s be ready to release 2.14.3+rev1?
@floion Awesome! Also, is there anyway I could get you to look at getting the LCD working? It runs over SPI. We have a demo for my boss on Tuesday and having a splash screen on the device would be flashy and right up his alley. The more excited he is about this the more devices he’s gonna wanna deploy.