OpenWrt Forum Archive

Topic: Can't get BananaPi M1 work

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

this is my first try with OpenWrt. But no luck yet.

First I have downloaded all needed files and prepared as SD Card

dd if=/tmp/BPi/uboot-sunxi-Bananapi/openwrt-sunxi-Bananapi-u-boot-with-spl.bin of=/dev/sdc bs=1024 seek=8
mkfs.vfat /dev/sdc1
mount /dev/sdc1 /mnt/sd
cp /tmp/BPi/uboot-sunxi-Bananapi/openwrt-sunxi-Bananapi-uEnv.txt /mnt/sd/uEnv.txt
cp /tmp/BPi/sun7i-a20-bananapi.dtb /mnt/sd/dtb
cp /tmp/BPi/openwrt-15.05-rc3-sunxi-uImage /mnt/sd/uImage
resize2fs /tmp/BPi/openwrt-15.05-rc3-sunxi-root.ext4 240M
dd if=/tmp/BPi/openwrt-15.05-rc3-sunxi-root.ext4 of=/dev/sdc2 bs=128k
umount /mnt/sd

When starting the BPi I get the tux and the U-Boot 2015.01 message.
Then there are some messages on the screen


SCSI: SUNXI SCSI INIT
SATA link 0 timeout
AHCI ...
flags: ...
Net: dwmac.1c50000
(Re)start USB ...
USB0: USB EHCI 1.00
scanning bus 0 for devices .. cannot reset port 1!?
1 USB Devices found
USB1: USB EHCI 1.00
scanning bus 1 for devices .. 1 USB Device(s) found
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0 ...
scanning bus for devices ...
Found 0 device(s)

If there is no network cable connected

dwmac.1c50000 Waiting for PHY auto negotiation to complete
dwmac.1c50000 no link

Then I get an endless loop until I connect a cable

missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-02-0b-0b ...
dwmac.1c50000 Waiting for PHY auto negotiation to complete
dwmac.1c50000 no link

At least I get a prompt, but no keyboard, no telnet .....


If there is a network cable connected when the BPi is powerded on, it looks a little bit different but I end up in an endless loop.

dwmac.1c50000 Waiting for PHY auto negotiation to complete
Speed: 100, full duplex
BBOTP broadcast 1
DHCP Client bound to address 192.168.100.135 (16ms)
*** Warning: no boot file name: using 'C0A86488.img
using dwmac.1c50000 device
TFTP from server 192.168.100.1: out IP address is 192.168.100.135
Filename 'C0A86488.img
Load address: 0x42000000
Loading: T T T T T T 
Retry count exceeded: starting again
Speed: 100, full duplex

What to do, to get access to my Bpi?

Henning

Can you try selecting the BananaPi profile, and dd-ing the generated sdcard image? Should be something like:

dd if=bin/sunxi/openwrt-sunxi-Bananapi-sdcard-vfat-ext4.img of=/dev/sdc

Given that u-boot scans the mmc card but doesn't find anything. Also, 'screen' means the serial output, right?

Thx,
-w-

Hi,

have got the BPi work.

I found that the wiki http://wiki.openwrt.org/doc/hardware/so … on.process is not correct...

There is no hint that I have to copy another file to sd card ...

cp /tmp/BPi/uboot-sunxi-Bananapi/openwrt-sunxi-Bananapi-boot.scr /mnt/sd/boot.scr

All messages I described are available via HDMI Output. So screen meens monitor connected via HDMI.

So I spend hours of hours after I have copied the missing scr file. For me, a openwrt newbie, it looks like boot stops suddenly. But why?

And of course, there is no hint that the output is only available via serial console. So I was very surprised when I tried to connect via telnet and everythin seem's to work...

So for me, and most newbies. The wiki entry should be more meaningful.
Is there someone who is willing to update the wiki entry?

After doing the first steps. I tried to get WLAN work. But no luck again ...
No detailed error message.
Finally I found that the used Realtek chip (8187) does not support managed mode.
Now I'm using a usb stick with Ralink chipset and I'm online.

Henning

The discussion might have continued from here.