From dac385d1c382719189d61721a13142e55871c59f Mon Sep 17 00:00:00 2001 From: Juan Flores Date: Mon, 6 May 2019 17:31:55 +0200 Subject: [PATCH] Deleting from this localitation --- .../mrf24j40-6lowpan/RPi_installation.txt | 73 ------------------- .../mrf24j40-6lowpan/Rpi_configuration.txt | 28 ------- .../mrf24j40-6lowpan/script.sh | 57 --------------- 3 files changed, 158 deletions(-) delete mode 100644 configs/olimex-stm32-e407/mrf24j40-6lowpan/RPi_installation.txt delete mode 100644 configs/olimex-stm32-e407/mrf24j40-6lowpan/Rpi_configuration.txt delete mode 100755 configs/olimex-stm32-e407/mrf24j40-6lowpan/script.sh diff --git a/configs/olimex-stm32-e407/mrf24j40-6lowpan/RPi_installation.txt b/configs/olimex-stm32-e407/mrf24j40-6lowpan/RPi_installation.txt deleted file mode 100644 index a07d168a8e..0000000000 --- a/configs/olimex-stm32-e407/mrf24j40-6lowpan/RPi_installation.txt +++ /dev/null @@ -1,73 +0,0 @@ -NuttX is compatible with Raspbian with the MRF24j40 radio. - -- Set the next pinout: - - RPI MRF24j40 -VIN 1 12 -GND 20 11 -RESET 17 8 -INT 16 7 -SDI 19 2 -SDO 21 3 -SCK 23 4 -CS 26 1 - -- Add the radio to the initialization of the OS. - - Install Device tree compiler: sudo apt install device-tree-compiler - - Create mrf24j40ma-overlay.dts: nano mrf24j40ma-overlay.dts - - Paste the next device tree: - - /***********************Copy the next lines******************************/ - /dts-v1/; - /plugin/; - - / { - compatible = "bcrm,bcm2835", "bcrm,bcm2836", "bcrm,bcm2708", "bcrm,bcm2709"; - - fragment@0 { - target = <&spi0>; - __overlay__ { - #address-cells = <1>; - #size-cells = <0>; - status = "okay"; - - mrf24j40@0 { - compatible = "mrf24j40"; - reg = <0>; - interrupts = <23 8>; - interrupt-parent = <&gpio>; - spi-max-frequency = <5000000>; - }; - - spidev@0 { - status = "disabled"; - }; - - spidev@1 { - status = "disabled"; - }; - }; - }; - }; - /***********************End of copy*****************************************/ - - - Compile it and copy to overlays: dtc -@ -O dtb -o mrf24j40ma.dtbo mrf24j40ma-overlay.dts && sudo cp mrf24j40ma.dtbo /boot/overlays/. - - Open the system config file: nano /boot/config.txt - - Copy at the bottom the next lines: - - /***********************Copy the next lines********************************/ - dtparam=spi=on - dtoverlay=mrf24j40ma - - /***********************End of copy*****************************************/ - - - Reboot and the module should be ready. To check type: ip link - -- Install WPAN-tools: - -Clone the repo: git clone https://github.com/linux-wpan/wpan-tools - -Install dependencies: sudo apt install dh-autoreconf libnl-3-dev libnl-genl-3-dev - -Configure it: cd wpan-tools && ./autogen.sh && ./configure CFLAGS='-g -O0' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib - -Compile and install: make & sudo make install - -If everything is fine, when you type: "iwpan list", it should return the internal config of the device. - - diff --git a/configs/olimex-stm32-e407/mrf24j40-6lowpan/Rpi_configuration.txt b/configs/olimex-stm32-e407/mrf24j40-6lowpan/Rpi_configuration.txt deleted file mode 100644 index b9139f60fa..0000000000 --- a/configs/olimex-stm32-e407/mrf24j40-6lowpan/Rpi_configuration.txt +++ /dev/null @@ -1,28 +0,0 @@ -This is the configuration to bring-up the connection between the RPI and the NuttX board. - -Write the next configuration on the RPI: - - - Set the PAN ID: sudo iwpan dev wpan0 set pan_id 0xabcd - - Set the page and channel: sudo iwpan phy phy0 set channel 0 26 - - Set the short address: sudo iwpan dev wpan0 set short_addr 0x4204 (Or whatever you want) - - Attach the phy layer to the lowpan: sudo ip link add link wpan0 name lowpan0 type lowpan - - Bring up the WPAN0 interface: sudo ip link set wpan0 up - -Now go to the NuttX board and set the next commands: - - - Start topology using the PANID AB:CD :i8sak wpan0 startpan cd:ab - - Set channel: i8sak set chan 26 - - Set the short address: i8sak set saddr 42:01 - - Set the long address: i8sak set eaddr 00:fa:de:00:de:ad:be:cc - - Bring up the network: ifup wpan0 - - Mount the file system: mount -t procfs /proc - - Check the IP: ifconfig - -At this point only left to do a ping to NuttX, so go back to the RPI and type the next commands: - - Bring up the RPI lowpan: sudo ip link set lowpan0 up - - Send a ping to add to the neigbor table: ping6 -I lowpan0 - -Now everything is ready to receive and send UDP+6lowpan package in both boards. - - - diff --git a/configs/olimex-stm32-e407/mrf24j40-6lowpan/script.sh b/configs/olimex-stm32-e407/mrf24j40-6lowpan/script.sh deleted file mode 100755 index b88a4577ba..0000000000 --- a/configs/olimex-stm32-e407/mrf24j40-6lowpan/script.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -echo "Installing Device tree Compiler\n" -sudo apt install device-tree-compiler - -echo "Creating device tree for MRF24J40 radio and compiling it" -cat <mrf24j40ma-overlay.dts -/dts-v1/; -/plugin/; - -/ { - compatible = "bcrm,bcm2835", "bcrm,bcm2836", "bcrm,bcm2708", "bcrm,bcm2709"; - - fragment@0 { - target = <&spi0>; - __overlay__ { - #address-cells = <1>; - #size-cells = <0>; - status = "okay"; - - mrf24j40@0 { - compatible = "mrf24j40"; - reg = <0>; - interrupts = <23 8>; - interrupt-parent = <&gpio>; - spi-max-frequency = <5000000>; - }; - - spidev@0 { - status = "disabled"; - }; - - spidev@1 { - status = "disabled"; - }; - }; - }; -}; -EOF - -dtc -@ -O dtb -o mrf24j40ma.dtbo mrf24j40ma-overlay.dts -sudo cp mrf24j40ma.dtbo /boot/overlays/. - -echo "Adding MRF24J40ma to system initialization" -sudo echo "dtparam=spi=on" > /boot/config.txt -sudo echo "dtoverlay=mrf24j40ma" > /boot/config.txt - - -echo "Installing WPAN tools" -git clone https://github.com/linux-wpan/wpan-tools -sudo apt install dh-autoreconf libnl-3-dev libnl-genl-3-dev -cd wpan-tools -./autogen.sh -./configure CFLAGS='-g -O0' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib -make -sudo make install -sudo reboot