I recently wrote about installing Arch Linux on the Iomega IConnect.
This shows how to get the I2C interface working and have a look at the built in LM63 temperature sensors.
Install lm_sensors.
pacman -S lm_sensors
Have a look and see what the package gives us, binary wise.
pacman -Ql lm_sensors
/usr/bin/fancontrol
/usr/bin/healthd
/usr/bin/pwmconfig
/usr/bin/sensord
/usr/bin/sensors
/usr/bin/sensors-conf-convert
/usr/bin/sensors-detect
We need to load a few kernel modules. i2c-mv64xxx is the driver for the I2C bus and lm63 for the sensors.
[root@biggles ~]# modprobe i2c-mv64xxx
[root@biggles ~]# modprobe lm63
[root@biggles ~]# lsmod
Module Size Used by
lm63 5257 0
hwmon 1187 1 lm63
i2c_mv64xxx 4121 0
i2c_core 15344 2 i2c_mv64xxx,lm63
rt2800pci 7802 0
rt2800lib 39393 1 rt2800pci
rt2x00pci 3661 1 rt2800pci
rt2x00lib 30207 3 rt2x00pci,rt2800lib,rt2800pci
eeprom_93cx6 1150 1 rt2800pci
mac80211 170543 3 rt2x00lib,rt2x00pci,rt2800lib
cfg80211 143659 2 mac80211,rt2x00lib
rfkill 14400 2 cfg80211
ds2490 6254 0
wire 15857 1 ds2490
ipv6 259694 10
mv_cesa 9128 0
autofs4 22074 2
[root@biggles ~]#
[root@biggles ~]# sensors-detect
# sensors-detect revision 6170 (2013-05-20 21:25:22 +0200)
# DMI data unavailable, please consider installing dmidecode 2.7
# or later for better results.
This program will help you determine which kernel modules you need
------------------------ snip -------------------------------------------
Some boring text and all negative, so skipping it
------------------------ snip -------------------------------------------
Module i2c-dev loaded successfully.
Next adapter: mv64xxx_i2c adapter (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x4c
Handled by driver `lm63' (already loaded), chip type `lm63'
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `lm63':
* Bus `mv64xxx_i2c adapter'
Busdriver `i2c_mv64xxx', I2C address 0x4c
Chip `lm63' (confidence: 6)
Do you want to generate /etc/conf.d/lm_sensors? (YES/no):
ln -s '/usr/lib/systemd/system/lm_sensors.service' '/etc/systemd/system/multi-user.target.wants/lm_sensors.service'
Unloading i2c-dev... OK
[root@biggles ~]# sensors
lm63-i2c-0-4c
Adapter: mv64xxx_i2c adapter
temp1: +38.0°C (high = +70.0°C)
temp2: +38.2°C (low = +0.0°C, high = +70.0°C)
(crit = +85.0°C, hyst = +75.0°C)
All Done
Showing posts with label low power computing. Show all posts
Showing posts with label low power computing. Show all posts
Thursday, June 6, 2013
Sunday, May 5, 2013
Arch Linux Iomega IConnect
I got an iConnect a few years ago. 1 Ghz processor, 256 MB RAM, Gigabit Ethernet, Wireless Card, 4 USB Ports (3 Usable).
Quite a good machine to run embedded Linux on. I had it running various services such as OWFS 1-Wire, XRF Wireless from Ciseco and other testing projects.
Anyway, one day I was tinkering and I broke it. It had to do with the bloody Arch Linux updates and Kernel modules. It was in a heap and was useless. I was busy being distracted by other projects, so the iConnect was put offline and joined the grave yard of stalled/unfinished projects.
One day, recently, I talked to Dr Google about hacking the iConnect.
I came across a couple of interesting links dealing with installing Debian on the iConnect.
http://scriptkiller.de/en/a54/computer_electronics/hacking_the_iomega_iconnect/
http://www.kroonen.eu/wiki/Debian%20iConnect
Really excellent links. You should have a read if you are interested in this type of stuff.
The link that was really the money shot was
http://pawelwozniak.info/index.php/embedded-linux/iconnect/126-install-archarm-linux-on-iconnect
It contains all the information required to install Arch Linux on the iConnect.
I used the Sarkfun FTDI Basic Breakout - 5V which I got from Cool Components to gain console access. I modified it to use 3.3V rather then the hotter 5V. Perfect.
The final update is to set the arcNumber from 1682 to 2870. This gives you access to the specific hardware in the iConnect, such as LEDS and the button.
They are located in:
/sys/class/leds
This is what you get:
iconnect:blue:otb -> ../../devices/platform/leds-gpio/leds/iconnect:blue:otb
iconnect:blue:power -> ../../devices/platform/leds-gpio/leds/iconnect:blue:power
iconnect:blue:usb1 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb1
iconnect:blue:usb2 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb2
iconnect:blue:usb3 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb3
iconnect:blue:usb4 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb4
iconnect:led_level -> ../../devices/platform/leds-gpio/leds/iconnect:led_level
iconnect:red:power -> ../../devices/platform/leds-gpio/leds/iconnect:red:power
rt2800pci-phy0::assoc -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::assoc
rt2800pci-phy0::quality -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::quality
rt2800pci-phy0::radio -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::radio
http://archlinuxarm.org/forum/viewtopic.php?f=27&t=2612
Great work. Costs no money, so Woo Hoo!!
I plan to use to use it for Project Janus. It will use an iButton key fob or an RFID card to control some devices. There will also be other sensors in the loop for status updates, PIR and perhaps some audio component. Cool....
Quite a good machine to run embedded Linux on. I had it running various services such as OWFS 1-Wire, XRF Wireless from Ciseco and other testing projects.
Anyway, one day I was tinkering and I broke it. It had to do with the bloody Arch Linux updates and Kernel modules. It was in a heap and was useless. I was busy being distracted by other projects, so the iConnect was put offline and joined the grave yard of stalled/unfinished projects.
One day, recently, I talked to Dr Google about hacking the iConnect.
I came across a couple of interesting links dealing with installing Debian on the iConnect.
http://scriptkiller.de/en/a54/computer_electronics/hacking_the_iomega_iconnect/
http://www.kroonen.eu/wiki/Debian%20iConnect
Really excellent links. You should have a read if you are interested in this type of stuff.
The link that was really the money shot was
http://pawelwozniak.info/index.php/embedded-linux/iconnect/126-install-archarm-linux-on-iconnect
It contains all the information required to install Arch Linux on the iConnect.
I used the Sarkfun FTDI Basic Breakout - 5V which I got from Cool Components to gain console access. I modified it to use 3.3V rather then the hotter 5V. Perfect.
The final update is to set the arcNumber from 1682 to 2870. This gives you access to the specific hardware in the iConnect, such as LEDS and the button.
They are located in:
/sys/class/leds
This is what you get:
iconnect:blue:otb -> ../../devices/platform/leds-gpio/leds/iconnect:blue:otb
iconnect:blue:power -> ../../devices/platform/leds-gpio/leds/iconnect:blue:power
iconnect:blue:usb1 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb1
iconnect:blue:usb2 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb2
iconnect:blue:usb3 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb3
iconnect:blue:usb4 -> ../../devices/platform/leds-gpio/leds/iconnect:blue:usb4
iconnect:led_level -> ../../devices/platform/leds-gpio/leds/iconnect:led_level
iconnect:red:power -> ../../devices/platform/leds-gpio/leds/iconnect:red:power
rt2800pci-phy0::assoc -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::assoc
rt2800pci-phy0::quality -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::quality
rt2800pci-phy0::radio -> ../../devices/pci0000:00/0000:00:01.0/leds/rt2800pci-phy0::radio
http://archlinuxarm.org/forum/viewtopic.php?f=27&t=2612
Great work. Costs no money, so Woo Hoo!!
I plan to use to use it for Project Janus. It will use an iButton key fob or an RFID card to control some devices. There will also be other sensors in the loop for status updates, PIR and perhaps some audio component. Cool....
Labels:
1-wire,
1-wire switch,
arch linux,
archlinuxarm,
arm,
ds2408,
embedded likux,
home automation,
iconnect,
iomega,
linux,
low power computing,
owfs,
owserver,
plug computer,
wifi,
wireless
Wednesday, July 25, 2012
PogoPlug Cheap Deal and Hack
I recently signed up for a PogoPlug Family Backup Offer . It cost €24 in total.
The best thing is that you get a free PogoPlug Pro.
Being a big embedded Linux fan, I was eager to find out if this was one of the hackable devices. It was a cheap price to pay, to find out if it was useful.
It arrived on Friday. The first thing I dis was to crack it open. That was even before I powered it up. I am that sort of guy.
It turns out that it is Model: PogoPlug Pro FCC ID: VUIPOGOPLUG. The one with the Grey/White Symbol on the front. It turns out that it is a hackable device, see Link.
I wanted the smallest USB drive I could get. I went to Power City and got an 8GB drive by someone or other. Picture here:
So, I horsed over to http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3 and followed the recipe to install Arch Linux on the device. It worked like a charm.
Another Arch Linux box joins the Empire.
It has some wireless card and a SATA port and of course a Gigibit Ethernet port. Ultra cool to build some sort of data/file server or anything really.
I think I will investigate the possibility of connecting an SATA drive to it and use for centralized MyDocuments and Photographs.
Only the Windows client can take advantage of independent storage on the PogoPlug cloud. I may incorporate that into a general offloading plan. We will see.
The best thing is 'Cheap PlugComputer' and benefits that could be used.
Win. Win. Win.
The best thing is that you get a free PogoPlug Pro.
Being a big embedded Linux fan, I was eager to find out if this was one of the hackable devices. It was a cheap price to pay, to find out if it was useful.
It arrived on Friday. The first thing I dis was to crack it open. That was even before I powered it up. I am that sort of guy.
It turns out that it is Model: PogoPlug Pro FCC ID: VUIPOGOPLUG. The one with the Grey/White Symbol on the front. It turns out that it is a hackable device, see Link.
I wanted the smallest USB drive I could get. I went to Power City and got an 8GB drive by someone or other. Picture here:
So, I horsed over to http://archlinuxarm.org/platforms/armv6/pogoplug-provideov3 and followed the recipe to install Arch Linux on the device. It worked like a charm.
Another Arch Linux box joins the Empire.
It has some wireless card and a SATA port and of course a Gigibit Ethernet port. Ultra cool to build some sort of data/file server or anything really.
I think I will investigate the possibility of connecting an SATA drive to it and use for centralized MyDocuments and Photographs.
Only the Windows client can take advantage of independent storage on the PogoPlug cloud. I may incorporate that into a general offloading plan. We will see.
The best thing is 'Cheap PlugComputer' and benefits that could be used.
Win. Win. Win.
Thursday, July 5, 2012
Raspberry PI 1-Wire I2C OWFS
I wrote this a few weeks ago and forgot to post it.
I received a Raspberry PI recently. It looks great, nice and small.
I have been playing with PlugComputers, such as the SheevaPlug and the Seagate Goflex series for a few years. They form the basis of my low power computer systems that are on 24x7. The Raspberry PI is just like one of them but with a few extra facilities.
Getting up and running was a breeze. I simply downloaded the image, by bittorrent, if I remember correctly. It only took a few minutes.
I blew it onto an SD card and powered it up. Hey Presto! it worked. I was able to determine it's IP address and ssh in to have a look around. Perfect.
I didn't have a HDMI cable to hand, so I used a composite cable to connect it to the TV. It worked but the quality was not the best. Moved on.
I was wondering what to use the PI for. I still don't know.
I came across an article talking about using the PI with OWFS. http://raspberrypi.homelabs.org.uk/
OWFS stands for One Wire File System. 1-Wire is a technology developed by Dallas Semiconductor (Maxim-IC), that actually uses 2 wires to communicate with devices such as temperature sensors, switches, voltage detectors, a/d converters and so on. I use it extensively throughout the house to measure temperature and control things. One of the great things about the 1-Wire devices is that they are pretty cheap.
On the Raspberry PI, there are a number of input/output pins. The ones of interest in relation to 1-Wire stuff are the I2C pins. I2C is basically a serial protocol. It is the building blocks that USB and SATA are built on.
The good thing is that Maxim-IC make a number of I2C to 1-Wire controllers. These are the DS2482 and DS2483. There are probably others also.
So, the possibility to connect the chips directly to the PI was real.
I was able to acquire a couple of DS2482s from a friend of mine. I had to mount them on a 16 way SOIC to DIP converter.
The OWFS system was easily compiled from source on the Raspberry PI and installed.
I then began the search for the I2C drivers.
This was a hard one. I found many forums that resulted in a dead end. Many kernels were compiled and failed. I couldn't get/build a kernel that would work with the drivers installed.
I found a fella that had a pre-built kernel built for Debian. I use Arch, which is pretty different in it's config, even though it is Linux.Here is the link I used http://www.bootc.net/projects/raspberry-pi-kernel/ I also installed the latest firmware.
Anyhoo, I was able to install the new kernel and modules and boot a workable system. Cool.
All the quick checks were good.
I then wired up the chips, DS2482, and started the main program owserver. Hey presto, it worked.
I wired a couple of DS18B20's and could see them and read temperatures. Success.
I love this embedded Linux crap.
I received a Raspberry PI recently. It looks great, nice and small.
I have been playing with PlugComputers, such as the SheevaPlug and the Seagate Goflex series for a few years. They form the basis of my low power computer systems that are on 24x7. The Raspberry PI is just like one of them but with a few extra facilities.
Getting up and running was a breeze. I simply downloaded the image, by bittorrent, if I remember correctly. It only took a few minutes.
I blew it onto an SD card and powered it up. Hey Presto! it worked. I was able to determine it's IP address and ssh in to have a look around. Perfect.
I didn't have a HDMI cable to hand, so I used a composite cable to connect it to the TV. It worked but the quality was not the best. Moved on.
I was wondering what to use the PI for. I still don't know.
I came across an article talking about using the PI with OWFS. http://raspberrypi.homelabs.org.uk/
OWFS stands for One Wire File System. 1-Wire is a technology developed by Dallas Semiconductor (Maxim-IC), that actually uses 2 wires to communicate with devices such as temperature sensors, switches, voltage detectors, a/d converters and so on. I use it extensively throughout the house to measure temperature and control things. One of the great things about the 1-Wire devices is that they are pretty cheap.
On the Raspberry PI, there are a number of input/output pins. The ones of interest in relation to 1-Wire stuff are the I2C pins. I2C is basically a serial protocol. It is the building blocks that USB and SATA are built on.
The good thing is that Maxim-IC make a number of I2C to 1-Wire controllers. These are the DS2482 and DS2483. There are probably others also.
So, the possibility to connect the chips directly to the PI was real.
I was able to acquire a couple of DS2482s from a friend of mine. I had to mount them on a 16 way SOIC to DIP converter.
The OWFS system was easily compiled from source on the Raspberry PI and installed.
I then began the search for the I2C drivers.
This was a hard one. I found many forums that resulted in a dead end. Many kernels were compiled and failed. I couldn't get/build a kernel that would work with the drivers installed.
I found a fella that had a pre-built kernel built for Debian. I use Arch, which is pretty different in it's config, even though it is Linux.Here is the link I used http://www.bootc.net/projects/raspberry-pi-kernel/ I also installed the latest firmware.
Anyhoo, I was able to install the new kernel and modules and boot a workable system. Cool.
All the quick checks were good.
I then wired up the chips, DS2482, and started the main program owserver. Hey presto, it worked.
I wired a couple of DS18B20's and could see them and read temperatures. Success.
I love this embedded Linux crap.
Wednesday, October 7, 2009
Sheeva PlugComputer
It seems I have bought a Sheeva PlugComputer. Not really sure what I will use it for.
Probably some Home Automation solution or monitoring activity.
Options are 1-Wire, CurrentCost or HomeEasy applications.
Linux = anything
Probably some Home Automation solution or monitoring activity.
Options are 1-Wire, CurrentCost or HomeEasy applications.
Linux = anything
Subscribe to:
Posts (Atom)