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

Ethoscope on RPi's other than 3 #170

Open
roaldarbol opened this issue Nov 18, 2021 · 9 comments
Open

Ethoscope on RPi's other than 3 #170

roaldarbol opened this issue Nov 18, 2021 · 9 comments
Assignees

Comments

@roaldarbol
Copy link

As I don't have any RPi 3's laying around and they're sold out most places due to shortages, I decided to try using the brand new RPi Zero W 2 which has the same chip as the RPi 3. I flash the 20201126_ethoscope_000.img with RPi Imager, and I think that it should be compatible in principle, but I get stuck at the rainbow screen (which looks perfectly normal, so it shouldn't be a power issue). Any ideas whether this could be remedied by a few tweaks to the image?

Similarly, as the Zero didn't work, I tried my RPi 4 2GB, but alas, that didn't work either. On the first boot I got a few lines rolling across the screen, but then the monitor just goes to sleep straight away - I don't even get to a rainbow screen. And on subsequent boots it doesn't even show any text anymore.

I think it would be especially promising to make it work for the Zero 2 because of its smaller footprint and power consumption, so would be awesome if you have any ideas on how to make it work! :-)

@ggilestro
Copy link
Member

I have no experience with the Zero W2. You may want to browse through these forum pages to see if you find anything relevant.

The PI4 should work in principle but I am told the python-picamera module will not compile on pi4 from arch, so you will not be able to run the ethoscope without fixing that.

I am afraid for now we can only support ethoscopes on pi3/2 and the node on pi4/3.

@roaldarbol
Copy link
Author

That's fair. I'll give it a go. Seems it's probably the kernel.img that needs to be updated (discussed here). Which kernel.img have you used, or where did you get it? Is it built on top of Raspbian, Raspberry Pi OS or Raspberry Pi OS Lite - or something completely different?
Or maybe a simpler question - which files HAVE you changed in an existing image that I would need if I adapt a new disc image?

@ggilestro
Copy link
Member

The user manual has a full description of how the SD images were generated, step by step.

@roaldarbol
Copy link
Author

Briliant, thanks! I've had to order a card reader for the Pi (my only Linux devices around) but will keep you up to date on any progress! It seems that it should work with the rpi4 image... fingers crossed.

@roaldarbol
Copy link
Author

roaldarbol commented Nov 25, 2021

I've managed to create a new disk image that runs successfully on RPi Zero 2, and probably also on the RPi 4 if anyone would want to use that. I haven't managed to see it in the UI yet, but have the same issue with the RPi 3 (I got my hands on one) - will make a new issue for that (#171) .

@ggilestro
Copy link
Member

Thanks. If you could share the instructions of how you created the SD image it would actually be even more helpful than the image itself.

@roaldarbol
Copy link
Author

I've actually made public comments with hypothes.is, so you can check them out right on the installation page.

@roaldarbol
Copy link
Author

So it seems that there's an issue with opencv before things are up and running on the RPi 4 ArchLinux image. (see issue). I think it's just not installed. I'm expecting it should be possible to just install it with pacman.

@ggilestro
Copy link
Member

Given the PI3 shortage, I went back to this. I think I have fixed in the following way.

  1. Install archlinux for arm architecture 64
  2. Install python-pycamera-git using the fixed PKGBUILD below:
# Maintainer: Grey Christoforo <first name at last name dot net>

pkgname=python-picamera-git
_module='picamera'
pkgver=r929.7e4f1d3
pkgrel=1
pkgdesc="A pure Python interface for the Raspberry Pi camera module."
url="http://picamera.readthedocs.io/"
depends=('python')
makedepends=('python-setuptools')
provides=('python-picamera')
license=('BSD')
arch=('any')
source=("$_module::git+https://github.com/waveform80/picamera.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_module"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
 cd "${srcdir}/${_module}"
 python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
}


build() {
    cd "${srcdir}/${_module}"
    python setup.py build
}
  1. Install ethoscope-device as normal from AUR but revert all changes in /boot/config.txt before boot. The file should only contain the following line
enable_uart=1

The resulting working image can be found here. I have NOT tested it on actual flies. It is unlikely but possible that an increase in the PI4 speed may change the actual behavioural data and will need to be normalised.

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

2 participants