Jump to content

luoyi

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by luoyi

  1. root@x1c:/tmp# diff -u m1plus.dts.orig  m1plus.dts
    --- m1plus.dts.orig	2016-05-07 17:52:38.000000000 +0200
    +++ m1plus.dts	2016-05-07 18:16:36.000000000 +0200
    @@ -704,6 +704,13 @@
     			bus-width = <0x4>;
     			non-removable;
     			enable-sdio-wakeup;
    +        brcmf: bcrmf@1 {
    +                reg = <1>;
    +                compatible = "brcm,bcm4329-fmac";
    +                interrupt-parent = <0x3a>;
    +                interrupts = <7 15 0x00000008>; /* PH15 / EINT15 */
    +                interrupt-names = "host-wake";
    +        };
     		};
     
     		usb@01c13000 {
    @@ -1081,7 +1088,7 @@
     				allwinner,pins = "PI4", "PI5", "PI6", "PI7", "PI8", "PI9";
     				allwinner,function = "mmc3";
     				allwinner,drive = <0x2>;
    -				allwinner,pull = <0x0>;
    +				allwinner,pull = <0x1>;
     				linux,phandle = <0x25>;
     				phandle = <0x25>;
     			};
    
    

    the Armbian_5.10_Bananapipro_Debian_jessie_4.5.2 install doesn't make my M1+'s wifi usable.

     

    first, I use dtb -I dtb -O dts to get the m1-plus's dts source file. and then apply this patch. after apply this patch, my M1+ board's wifi is working well:

     

    root@bananapi:/home/luoyi# ip addr

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1

        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

        inet 127.0.0.1/8 scope host lo

           valid_lft forever preferred_lft forever

        inet6 ::1/128 scope host

           valid_lft forever preferred_lft forever

    2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000

        link/ether 02:48:0a:81:ca:65 brd ff:ff:ff:ff:ff:ff

    3: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000

        link/ether 52:e1:7f:c0:a1:08 brd ff:ff:ff:ff:ff:ff

    4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

        link/ether 98:3b:16:c7:cd:81 brd ff:ff:ff:ff:ff:ff

        inet 172.16.100.149/24 brd 172.16.100.255 scope global wlan0

           valid_lft forever preferred_lft forever

        inet6 fe80::9a3b:16ff:fec7:cd81/64 scope link

           valid_lft forever preferred_lft forever

    root@bananapi:/home/luoyi# uname -a

    Linux bananapi 4.5.2-sunxi #11 SMP Thu Apr 28 21:53:25 CEST 2016 armv7l GNU/Linux

    root@bananapi:/home/luoyi# dmesg |grep -i mach

    [    0.000000] Machine model: Banana Pi BPI-M1-Plus

     

     

  2. every good  linux distribution will always have their own way of testing and verify the main function working well with every release. so maybe we can build a steady testing farm for that purpose.

     

    and different people focus on different subject. my main focus about banana pi M1+ is :

     

    • wifi
    • OpenELEC integrate with cedrus or cedarx
    • proper i2s driver for hifi purpose
    • IR receiver 

    obviously, I want to use banana pi for entertainments purpose. and maybe the SATA function is more important to some one who focus on home-NAS or storage purpose.

     

    Last time when I had a banana day, we had to solve non working SATA, which is far more problematic and all I could do was to notice that wifi is not working in mainline. I made few logical steps but failed. Probably my concentration was already too much down.

     

    Those configurations needs close examination and should be fixed ... or we could simply(?) obtain truly working versions.

     

    I do have this board, also donated from forum user. Thanks for offering.

     

    Since you opened this problem, let's try to find solution starting from here. We already drop the idea to hack board config to have all bananas ... or oranges under one conf / image. It just brings additional confusion and problems.

  3. luoyi@bananapipro:~$ md5sum bananapim1plus.fex  bananapim1plus.bin
    6bb90c1abddcaf9421c9ffad9be3b01f  bananapim1plus.fex
    0d6b2fbabcd3006d0577111b45b2ee71  bananapim1plus.bin
     

    luoyi@bananapipro:~$ ls -al /boot/script.bin
    lrwxrwxrwx 1 root root 28 Apr 28 03:46 /boot/script.bin -> /boot/bin/bananapim1plus.bin
     

    the kernel refuse to boot. error log is :

     

    http://pastebin.com/raw/z3xFWdiC

     

    BTW: I can donate some bp1 m1+ to the armbian community for better support on it. you can PM me your address . and I'll try to send a international mailbox.

  4. I've tried the current armbian release legacy & vanilla with my bpi m1+ board. and it looks like it's still have some distance away from an idea linux enviroment .

     

    The legacy version

     

    • I've apt-get update and upgrade after login into the system, so all the software in the system is on their latest version.
    • on default configuration, the wifi is not usable. I've to uncomment the ap6211 line in the /etc/modules file. after uncomment and restart, the wifi is usable and stable (very cool !). I've tried to transport 100G+ data through wifi interface, doesn't have any trouble with it.
    • I can see card0 and card1 in the /proc/asound/ sub directory. and aplay -l can list 2 sound card. when I use card0 to play music file, the sun7i integrated audio  codec driver works very well, I can plug my earphone into the 3.5mm headset jack on the board and hear the sound. But when I choose card1 to play , although the /proc/asound/card1/pcm0p/sub0/hw_params shows the correct value (so that tell me that the alsa driver layer working correctly at least), but I can't hear any sound through my PCM5102 DAC which connected to the M1 Plus board . and I've tried to use a logic analyzer to observe the i2s signal on the pin35/36/40. it doesn't show  the right signal graph. so I guess the driver doesn't work corretly and the i2s core in the A20 chipset is not working at all.
    • it looks like in the vanilla version, the m1plus dts file is different from the pipro dts file. but in the legacy version, the m1plus's script.bin file is just the same as the pipro's. does this correct ?

    The Vallina version

     

    • I've modified the boot.scr file to make kernel use the sun7i-bananapi-m1plus.dtb file
    • wifi is not usable. brcmfmac driver always tell me -110 error.
    • there are no usable i2s driver in the current mainline driver

    and my question is:

     

    • with legacy version, what can I try to make the i2s audio driver work right ? fex file or some any other magic configuration file?
    • with vallina version, what can I try to make the wifi driver work right ?

    at last, very thanks for this great distribution, it's really a mess to collect so many fragment information through different github repo . ( u-boot/kernel/dts/driver and so on ) . I think it looks like A20 is the mainline support chipset in the sunxi community. hope we can provide better support for it.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines