Project

General

Profile

LimeNET-micro » History » Version 1

laforge, 09/22/2019 10:10 AM
migrate from sysmocom internal wiki

1 1 laforge
{{>toc}}
2
3
h1. LimeNET-micro
4
5
This is basically an embedded version of the LimeSDR-USB with the following key differences:
6
* Raspberry Pi 3 Compute Module instaed of host PC
7
* Integrated VCOCXO as stable clock source
8
* Integrated GPS-DO to discimpline the VCOCXO
9
* Integrated duplexers so Rx and Tx can (optionally) be on one SMA jack
10
* Integrated PoE power supply (you can of course use a local DC supply)
11
12
h2. Links to official documentation
13
14
* "Overview":https://wiki.myriadrf.org/LimeNET_Micro
15
* "Hardware Description":https://wiki.myriadrf.org/LimeNET-Micro_v2.1_hardware_description
16
* "Getting Started":https://wiki.myriadrf.org/Getting_Started_with_the_LimeNET-Micro
17
* "Schematic PDF":https://github.com/myriadrf/LimeNET-Micro/blob/master/hardware/2v1/Project%20Outputs%20for%20LimeNet-Micro_2v1-SDR/LimeNET-Micro_2v1-SDR_Schematic_r2.PDF
18
19
h2. Accessing onboard eMMC from host PC
20
21
* The (non-Lite) Raspberry Pi CM3 modules ship with an onboard eMMC flash chip
22
* In order to program this, you need to
23
** ensure the J18 EXT USB jumper is not placed
24
** ensure the J14 USB_BOOT jumper is present
25
** connect the USB micro-B jack with a regular microB-A cable to your host PC
26
** start @rpiboot@ program from https://github.com/raspberrypi/usbboot
27
** power up the LimeNET-micro
28
29
The rpiboot will now download some firmware into the CM3 which makes it re-enumerate ont he USB bus as a mass storage device:
30
<pre>
31
Waiting for BCM2835/6/7
32
Sending bootcode.bin
33
Successful read 4 bytes 
34
Waiting for BCM2835/6/7
35
Second stage boot server
36
File read: start.elf
37
Second stage boot server done
38
</pre>
39
40
41
From that point onwards, you can use regular host computer tools to access the eMMC, such as moounting it or using @dd@ to copy images to/from it
42
43
We are using Raspbian 10 for our related development, so https://downloads.raspberrypi.org/raspbian_lite_latest should be used as the base OS image, with http://download.opensuse.org/repositories/network:/osmocom:/nightly/Raspbian_10/ as package feed for Osmocom stuff.
44
45
Image flash example with eMMC available as /dev/sdb:
46
<pre>
47
$ wget https://downloads.raspberrypi.org/raspbian_lite_latest -O raspbian_lite_latest.zip
48
$ unzip raspbian_lite_latest.zip && rm raspbian_lite_latest.zip
49
sudo dd if=*-raspbian-buster-lite.img of=/dev/sdb bs=2M
50
</pre>
51
52
Since raspbian currently comes with ssh disabled, you may want to enable it by creating systemd symlinks manually:
53
<pre>
54
$ cd $RASPBIAN_ROOTFS_MOUNTPOINT
55
// yes, for some unknown reason it's linked as sshd instead of ssh:
56
$ sudo ln -s /lib/systemd/system/ssh.service ./etc/systemd/system/sshd.service
57
$ sudo ln -s /lib/systemd/system/ssh.service ./etc/systemd/system/multi-user.target.wants/ssh.service
58
</pre>
59
60
Then power off the board, free the J14 jumper and power on again. Check your DHCP server to see the address assigned to the board. You should be able to ssh into it using user="pi" and password="raspberry".
61
62
h2. Configuration on Raspbian 10
63
64
65
# use raspi-config to modify various bits
66
## change locale to en_US.UTF8
67
## change keyboard layout to en_US
68
## change hostname to limenet-microN
69
## change timezone to Europe/Berlin
70
## enable SSH server
71
## enable SPI interface kernel module autoloading
72
## enable I2C interface kernel module autoloading
73
# Add Osmocom nightly repository (https://projects.osmocom.org/projects/cellular-infrastructure/wiki/Nightly_Builds)
74
# @apt-get install osmo-bts-trx osmo-pcu osmo-trx-lms limesuite telnet@
75
76
h2. Accessing the GNSS module
77
78
For some strange reason, R96+R97 (0-Ohm resistors in 0402 package) are not soldered on the board, resulting in the GNSS module not enumerating on the USB hub.  If those two resistors are added, you will see it in @lsusb@ and it will create a @/dev/ttyUSBn@ device for talking NMEA or UBX protocol.
Add picture from clipboard (Maximum size: 48.8 MB)