[ArmbianBananaPi] - script.bin missing


xefil
 Share

0

Recommended Posts

 

Hello to all!

I'm using Armbian on my BananaPi board.

I've the following version:


 

ARMBIAN 5.38 stable Debian GNU/Linux 9 (stretch) 4.14.15-sunxi

BOARD=bananapi
BOARD_NAME="Banana Pi"
VERSION=5.35
LINUXFAMILY=sunxi
BRANCH=next
ARCH=arm
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm
KERNEL_IMAGE_TYPE=zImage

 

I need to follow these instructions to wire a radio on the board:

 

https://www.mysensors.org/build/orange

 

But I cannot find the script.bin file. Why?

I can remember the file was here on old releases.

 

Any help or suggestion?

 

Thanks,

 

Simon

Link to post
Share on other sites

Donate and support the project!

13 hours ago, Igor said:

 

Good morning,

That's a great point to start with, and as always, first rule, RTFM, you're absolutely right.

I've started reading it and it's a little complicated. The part that I think it's referred on what I need is:

 

Quote

 

### spi0

Activates SPI controller 0 to use it with other overlays and sets up the pin multiplexing for it

SPI 0 pins (MOSI, MISO, SCK, CS0, CS1): PI12, PI13, PI11, PI10, PI14

### spi1

Activates SPI controller 1 to use it with other overlays and sets up the pin multiplexing for it

SPI 1 pins (MOSI, MISO, SCK, CS0): PI18, PI19, PI17, PI16

### spi2

Activates SPI controller 2 to use it with other overlays and sets up the pin multiplexing for it

SPI 2 pins a (MOSI, MISO, SCK, CS0): PC21, PC22, PC20, PC19
SPI 2 pins b (MOSI, MISO, SCK, CS0): PB16, PB17, PB15, PB14

Parameters:

param_spi2_bus_pins (char)
        SPI bus 2 pinmux variant
        Optional
        Default: a
        Supported values: a, b
        Determines what pins SPI bus 2 is exposed on if SPI 2 is used

### spi-add-cs1

Activates SPI chip select 1 on SPI controller 0
This overlay is required for using chip select 1 with other SPI overlays

SPI 0 CS1 pin: PI14

### spi-jedec-nor

Activates MTD support for JEDEC compatible SPI NOR flash chips on SPI bus
supported by the kernel SPI NOR driver

SPI 0 pins (MOSI, MISO, SCK, CS0, CS1): PI12, PI13, PI11, PI10, PI14
SPI 1 pins (MOSI, MISO, SCK, CS0): PI18, PI19, PI17, PI16
SPI 2 pins a (MOSI, MISO, SCK, CS0): PC21, PC22, PC20, PC19
SPI 2 pins b (MOSI, MISO, SCK, CS0): PB16, PB17, PB15, PB14

Parameters:

param_spinor_spi_bus (int)
        SPI bus to activate SPI NOR flash support on
        Required
        Supported values: 0, 1, 2

param_spinor_spi_cs (int)
        SPI chip select number for SPI NOR connected to SPI bus 0
        Optional
        Default: 0
        Supported values: 0, 1
        Using chip select 1 on SPI 0 requires using "spi-add-cs1" overlay

param_spinor_max_freq (int)
        Maximum SPI frequency
        Optional
        Default: 1000000
        Range: 3000 - 100000000

### spi-spidev

Activates SPIdev device node (/dev/spidevX.Y) for userspace SPI access,
where X is the bus number and Y is the CS number

SPI 0 pins (MOSI, MISO, SCK, CS0, CS1): PI12, PI13, PI11, PI10, PI14
SPI 1 pins (MOSI, MISO, SCK, CS0): PI18, PI19, PI17, PI16
SPI 2 pins a (MOSI, MISO, SCK, CS0): PC21, PC22, PC20, PC19
SPI 2 pins b (MOSI, MISO, SCK, CS0): PB16, PB17, PB15, PB14

Parameters:

param_spidev_spi_bus (int)
        SPI bus to activate mcp2515 support on
        Required
        Supported values: 0, 1, 2

param_spidev_spi_cs (int)
        SPI chip select number for SPIdev on SPI bus 0
        Optional
        Default: 0
        Supported values: 0, 1
        Using chip select 1 on SPI 0 requires using "spi-add-cs1" overlay

param_spidev_max_freq (int)
        Maximum SPIdev frequency
        Optional
        Default: 1000000
        Range: 3000 - 100000000

 

 

Due I'll need to connect on this board two radio (one NRF24L01+ and one RFM69), I fear to make some damages, so I ask here.

I would start with one radio first, the RFM69. But here comes the first question it's not totally clear for me:

 

1. Is the BananaPi able to have two radio connected on the GPIO?

 

Seems yes if the above doc speeks about SPI 0 - 1 - 2 all with required MOSI, MISO, SCK, CS....

 

But I've read somewhere for RPi the following:

Quote

Adding /dev/spidev1.0 is required since /dev/spidev0.0 is used for the onboard NAND flash

 

2. I'ts valid for BananaPi as well?

 

BTW then, let's start with the first radio assuming I can start with bus0. The overlay should look like:

overlays=spi-spidev
param_spidev_spi_bus=0

That should create a "/dev/spidev***" device.

 

This should give me those connections GPIO available:

MOSI: PI12 -> CON3-PORT19
MISO: PI13 -> CON3-PORT21
SCK: PI11 -> CON3-PORT23
CS: PI10 -> CON3-PORT24

 

Then I'm missing the power 3.3v (CON3-PORT01), ground (CON3-PORT06) and IRQ, which should be ok any normal PIN (i.e. CON3-PORT22).

 

Until here makes it sense??

 

Sorry, but as written above I fear I could make some mistrakes and damage the devices.

 

Assuming the above works, how can then I add a second spidev?

This is something I cannot understand from the documentation.

 

Many thanks,

 

Simon

 

 

Link to post
Share on other sites

4 hours ago, vlad59 said:

The banana pi only has 1 SPI Unless I'm mistaken. I used SPI some time ago and IIRC simply adding spi-spidev to the overlay did the trick. The Banana pi has no Nand.

 

 

Hope this helps

 

THANKS!

I'll give it a try and let you know ;)

 

Simon

Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

0