gnuboot
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Olimex Lime 2 Board


From: myrcy
Subject: Re: Olimex Lime 2 Board
Date: Tue, 17 Sep 2024 21:17:23 +0000

Hello everyone,

I have purchased a UEXT adapter. However, I realized that I am much less of an electrician than I thought I was.
OLIMEX keeps good documentation of their pins for the adapter: https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-UEXT/resources/A20-OLinuXino-Lime2-UEXT_sch.pdf

However, I am much less familiar as to which wires to plug into which on the chip itself.
My assumption is that we would attempt to transliterate the RPI wiring onto the Lime2 but I have no familiarity.

Do you have any recommendations for how I can best prepare myself? Is there a book/documentation I can read to better understand what each pin is doing?
I would absolutely love to help document this further, however, I now realize I may have met the end of my current knowledge.

Best,
Myrcy@posteo.net


A started table that is likely (certaintly?) incorrect:

Pin #
Olimex
1 not used not used
2 3.3V 3

3 not used not used
4 not used not used
5 not used not used
6 not used not used
7 CS# 19

8 MISO 21
9 not used not used
10 GND 4

11 not used not used
12 not used not used
13 not used not used
14 not used not used
15 MOSI 23

16 SCLK 24



On 9/13/24 06:37, Denis 'GNUtoo' Carikli wrote:
On Fri, 13 Sep 2024 02:52:33 +0000
myrcy@posteo.net wrote:

Hello everyone,
Hi,

Can users utilize the Olimex Lime 2 Board to flash their hardware? I 
would love to help be a guinea pig and help test it out.
I think it should be possible but as far as I know no one documented
it (we need help for that).

Here's an example of how to do if you want to try:

- Unless you're very good at soldering and confortable with soldering
  on tiny pins, you will also need a cable and an adapter[1] to be able
  to have regular (2.54") pins headers.

- Then the next step is to understand to what pins you need to connect
  your clip. Olimex probably has documentation on that, so it shound't
  be that hard to find out.

- Then the next step would be to try it and see if it works. It might
  not work because the pins usually have multiple functions (like GPIO
  or SPI) and you might need to reconfigure that.

  If you need to reconfigure the pins, the easiest way to make it work
  for everybody do it would be to send a patch to Parabola (to the
  linux-libre kernels) to provide a patched devicetree and document
  how to use that somehow, or to provide patched devicetree in another
  Parabola package and also document how to use it.

  At home I use custom hardware, and so I also needed to patch the
  devicetree to reconfigure some pins to be GPIOs or buttons on a
  beaglebone black/green[2], so it could be used as an example on how
  to do it, however I didn't spend time integrating it in Parabola
  because I'm the only person with that use. Also there is a small
  issue in my code: it doesn't use exactly the same devicetree than the
  one Parabola ships as a base, and so it might not contain bugfixes
  and so on, but it's usually good enough for my use case. The
  advantage is also that it's much faster and much easier to do tests
  with that (you don't need to recompile a complete kernel).

  In your case however it makes sense to also work with Parabola to
  upstream your work since it is potentially useful for a lot more
  people. I didn't do that because it's custom hardware and I'm the
  only user.

Also, you will also need some way to measure the voltage as we don't
know how much current the Lime2 can provide. The issue is that when you
connect the lime2 to the flash chip, it will power it and it might also
power what's around it as well. So if it doesn't provide enough current on
the pins you use, the voltage will drop.

If it doesn't provide enough current you might need to provide 3.3v
from another source into the flash chip between the VCC and GROUND pins
of that chip, and also ask around if this doesn't put at risk the lime2
somehow (I don't think it could, but it's still a good idea to ask
somewhere where they could have an answer like you could try to ask
olimex and/or the community using lime2 and/or #electronics on IRC,
etc).

In general it's also a good idea to read the documentation about the
pins as sometimes there is some safety information with them. For
instance for the beaglebone green, there are some pins that don't
tolerate 5v and you risk frying the CPU if you do that, while other can
tolerate more abuse and/or higher voltage ranges.

And if you try what is in this mail, it would make things easier if
you document what you do along the way as it could help writing the
missing documentation.

Also note that I've a lime2 but I don't have the UEXT adapter and I
also need to reinstall it, so I can't really help with testing, but I
can still review patches nevertheless.

References:
-----------
[1]https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-UEXT/open-source-hardware
[2]https://git.sr.ht/~gnutoo/bmc/tree

Denis.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]