9 9
tkaiser

quick review Banana Pi M3

Recommended Posts

12 hours ago, M@rtin said:

debian runs stable

 

There is no Debian for this board: https://www.google.com/search?q=site.www.debian.org+bananapi+m3 Kernel 3.4.38 that is glued to Debian rootfs by Banana people stable? Hmm ... will not discus that ;)

 

12 hours ago, M@rtin said:

I heard, that for many read/write processes a sd-card is not the best media (only seen from hardware-side). That's why I changed from raspbian to bananapi.

 

Saving your SD card is a stock feature of Armbian and can also be implemented on Raspberry Pi / Raspbian.

 

12 hours ago, M@rtin said:

Best would be a singleboard-computer with a native ssd slot


https://www.armbian.com/nanopc-t4/

 

Images are the same on all but each board has different boot loader, kernel and optimization package. We also have a difference between 32 and 64bit package base. But for end user Armbian is the same on all boards.

Share this post


Link to post
Share on other sites

Hi Igor,

 

I only knew the RockPi 4 and wondered about the strange mounting option for the SSD (by cable and an extra board). The NanoPC-T4 looks great. I'll order it and try it out. Thanks so much.

Share this post


Link to post
Share on other sites
8 hours ago, Shadow3561 said:

is it possible to get 1wire over gpio to run with the m3 and armbian?

Did you try adding "w1-gpio" overlay along with it "param_w1_pin" parameter in /boot/armbianEnv.txt ?

Share this post


Link to post
Share on other sites
4 hours ago, martinayotte said:

Did you try adding "w1-gpio" overlay along with it "param_w1_pin" parameter in /boot/armbianEnv.txt ?

Yes.

My armbianEnv.txt look so

 

Quote

verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-a83t
rootdev=UUID=180fa47b-6f2e-4289-9297-a0ffd4752601
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
overlays=w1-gpio
param_w1_pin=PH20
param_w1_pin_int_pullup=1

but has no effect.

lsmod doesnt show any w1 module.

 

I also have edited the sun8i-a83t-bananapi-m3.dtb and paste

 

Quote

w1_pins: w1_pins {

allwinner,pins = "PH10";

allwinner,function = "gpio_in"; // in (initially)

allwinner,pull = <0>; // off };

and

Quote

w1: onewire@0 {

compatible = "w1-gpio";

pinctrl-names = "default";

pinctrl-0 = <&w1_pins>;

gpios = <&pio 3 10 0>; // PH10 

status = "okay"; };

 

this also have no effect

Share this post


Link to post
Share on other sites
1 hour ago, Shadow3561 said:

overlay_prefix=sun8i-a83t

I think the reason is that there is no overlays with that prefix ...

Just to give it a try, change this to "overlay_prefix=sun8i-h3" !

Share this post


Link to post
Share on other sites
12 minutes ago, martinayotte said:

I think the reason is that there is no overlays with that prefix ...

Just to give it a try, change this to "overlay_prefix=sun8i-h3" !

 

unfortunately no success

Quote

root@bananapim3:/sys/bus/w1/devices# dmesg | grep w1
[    6.072060] w1-gpio onewire@0: gpio_request (pin) failed
[    6.072150] w1-gpio: probe of onewire@0 failed with error -22

i have modified another overlayfile to that

 

Quote

/dts-v1/;

/ {
    compatible = "allwinner,sun8i-a83t";

    fragment@0 {
        target = <0xffffffff>;

        __overlay__ {

            w1_pins {
                pins = "PL10";
                function = "gpio_in";
                phandle = <0x1>;
            };
        };
    };

    fragment@1 {
        target-path = [2f 00];

        __overlay__ {

            onewire@0 {
                compatible = "w1-gpio";
                pinctrl-names = "default";
                pinctrl-0 = <0x1>;
                gpios = <0xffffffff 0x8 0xf 0x0>;
                status = "okay";
            };
        };
    };

    __symbols__ {
        w1_pins = "/fragment@0/__overlay__/w1_pins";
    };

    __fixups__ {
        pio = "/fragment@0:target:0", "/fragment@1/__overlay__/onewire@0:gpios:0";
    };

    __local_fixups__ {

        fragment@1 {

            __overlay__ {

                onewire@0 {
                    pinctrl-0 = <0x0>;
                };
            };
        };
    };
};
 

then the output of  dmesg | grep w1 is

 

Quote

root@bananapim3:~# dmesg | grep w1
[    8.324815] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search.

and  cat /sys/kernel/debug/gpio shows me

 

Quote

gpiochip1: GPIOs 0-255, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-120 (                    |usb1-vbus           ) out hi
 gpio-166 (                    |cd                  ) in  lo
 gpio-234 (                    |soc:onewire@0       ) in  hi

gpiochip0: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl:

gpiochip2: GPIOs 414-415, parent: platform/axp20x-gpio, axp20x-gpio, can sleep:
 gpio-414 (                    |bananapi-m3:green:us) out lo
 gpio-415 (                    |bananapi-m3:blue:usr) out lo

 

in the device/tree of w1 i have devices like 00-400000000000  00-c00000000000  w1_bus_master1

but the device numbers changes every minute

Share this post


Link to post
Share on other sites
21 minutes ago, Shadow3561 said:

in the device/tree of w1 i have devices like 00-400000000000  00-c00000000000  w1_bus_master1

but the device numbers changes every minute

Try adding an external pull-up and/or try another GPIO instead of PL10

Share this post


Link to post
Share on other sites
8 minutes ago, martinayotte said:

Are you sure it was connected to proper GPIO ?

Try "cat /sys/kernel/debug/gpio" to see if the proper GPIO is used ...

Hi,

Yes, iam sure that is a 1wire temp sensor (DS18b20 incl. 4,7kOhm resistor) connected.

The output of  cat /sys/kernel/debug/gpio is

 

Quote

gpiochip1: GPIOs 0-255, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-120 (                    |usb1-vbus           ) out hi
 gpio-166 (                    |cd                  ) in  lo
 gpio-234 (                    |soc:onewire@0       ) out lo

gpiochip0: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl:

gpiochip2: GPIOs 414-415, parent: platform/axp20x-gpio, axp20x-gpio, can sleep:
 gpio-414 (                    |bananapi-m3:green:us) out lo
 gpio-415 (                    |bananapi-m3:blue:usr) out lo

 

Share this post


Link to post
Share on other sites
28 minutes ago, Shadow3561 said:

gpio-234 (                    |soc:onewire@0       ) out lo

So, connected on PH10 ...

I don't have other idea ... When I've faced such randomness issue, it was pointing to another floating GPIO.

Share this post


Link to post
Share on other sites

w1 works Armbian_5.83_Bananapim3_Debian_stretch_next_4.19.38.img

@nkahl

onewire@0 {

            compatible = "w1-gpio";

            gpios = <&pio 4 4 0>; /* PE4 */

            status = "okay"; };

bpi3.png

Share this post


Link to post
Share on other sites

can anyone help me how to use uart2  PB0,PB1 and uart3 PG10,PG11

uart0 works PB9, PB10

all serialpots is enabled in xxx.dtb "okay" but not work

 

edit:

all uarts works now

Share this post


Link to post
Share on other sites
5 minutes ago, JerryPenguin said:

I will wait for a new image and try again a new and fresh installation.

 

It might take several months before someone fixes the problem. I tried twice and will not try again.

Share this post


Link to post
Share on other sites
1 hour ago, Igor said:

It might take several months before someone fixes the problem. I tried twice and will not try again.

 

That's sad.

I hope to find an old 4.4 image on my disks.

Share this post


Link to post
Share on other sites
18 minutes ago, JerryPenguin said:

That's sad.


You are supporting support with nothing. Indeed it is sad that you expect that someone will fix and fix and fix this cheap hardware which was anyway never officially supported.

Share this post


Link to post
Share on other sites
47 minutes ago, Igor said:

You are supporting support with nothing. 

 

1. I only asked one question and didn't ask for support or immediate bug fixing, because I know it's an OpenSource project and I'm thankful that Armbian exists.

2. I support other projects and know how difficult and pointless this is. I cannot actively support every project I use.

3. It is sad, but I have not made a demand or a bad word about this fact.

4. I've already looked around the download pages for supported hardware but can't find a suitable alternative for my requirement.

 

Maybe you can recommend a hardware (which is supported) that meets the following requirements:

- EMMC (>=8GB)
- 64bit (if already then)
- Memory (>= 2GB)
- 1000mbit Ethernet

- passive cooling, no fan

 

primarily for use as Wireguard Gateway and Pi-Hole.

I would be grateful for a tip :-)

 

Greetings

 

Share this post


Link to post
Share on other sites
7 minutes ago, JerryPenguin said:

I would be grateful for a tip


I have seen others asking for something similar. Do some forum / site searching.
 

9 minutes ago, JerryPenguin said:

Wireguard Gateway and Pi-Hole.


Why on earth you need 2GB for this? 

We are going off topic so please find another more appropriate topic to continue with.

Share this post


Link to post
Share on other sites

First of all thanks for your patience.

I have also just taken the chance to ask you the last question for a tip, I know it officially does not belong in this thread, so just forget it.

 

6 minutes ago, Igor said:

Why on earth you need 2GB for this?

 

Maybe Munin will come up with the newly planned SBC, and why shouldn't I take this into account when buying new hardware?

 

Greetings and thank you very much.

Share this post


Link to post
Share on other sites

Hello Folks,

So, I have a bananapi m3 too, and I tried armbian focal and buster succesfully from a sd card but I couldn't boot from emmc... I used nand-stata-install,  dd and all the things aroung with no success... the output from uart from emmc is this:
 

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
rtc[1] value = 0x00010000
rtc[2] value = 0x00020000
rtc[3] value = 0x00030000
DRAM DRIVE INFO: V1.1 
DRAM Type =7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM normal_mode value: 00000001
DRAM CLK =672 MHZ
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1200 mv
ID CHECK VERSION: V0.2
using ic A83T
using axp AXP813
DRAM zq value: 00003bfb
dram size =2048
card boot number = 2
card no is 2
sdcard 2 line count 8
[mmc]: mmc driver ver 2015-04-13 16:05:39
[mmc]: ***Try SD card 2***
[mmc]: mmc 2 cmd 8 err 00000100
[mmc]: mmc 2 cmd 8 err 00000100
[mmc]: mmc 2 send if cond failed
[mmc]: mmc 2 cmd 55 err 00000100
[mmc]: mmc 2 cmd 55 err 00000100
[mmc]: mmc 2 send app cmd failed
[mmc]: ***Try MMC card 2***
[mmc]: mmc re-update_phase
[mmc]: mmc re-update_phase
[mmc]: 8bit ddr!!! 
[mmc]: mmc re-update_phase
[mmc]: MMC ver 5.0
[mmc]: SD/MMC Card: 8bit, capacity: 7456MB
[mmc]: vendor: Man 00150100 Snr 0032bbf4
[mmc]: product: 8WPD3
[mmc]: revision: 5.2
[mmc]: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
ERROR! NOT find the head of uboot.
ERROR! NOT find the head of uboot.
read all u-boot blk failed
Ready to disable icache.

PD: thanks for your great job with this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
9 9