OpenWrt Forum Archive

Topic: Banana Pi R1 help getting setup

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

Hello all,

After finding sparse information regarding the setup of open-wrt on the banana pi router and struggling to get setup, I thought Id ask if anyone has any experience.

I have installed a sd card with open-wrt using dd with this image: (open-wrt)  banana-pi      .    org/r1-download.html

I understand that the hdmi is not supported so I purchased a USB -> Serial adapter

I have connected the serial tx, rx, and ground to the adapter and the usb to my debian machine following this pinout:
bananapi.gitbooks        .io/bpi-r1/content/en/bpi-r1_gpio_pin_define.html

I use screen to connect to /dev/ttyUSB0 and then plug the power into the device.

I get stuck when trying to see the output. It just prints random characters so I tried a bunch of baud rates such as 9600    14400
19200    28800
38400    56000
57600    115200

but no luck.

Does anyone know how to proceed or have a recommendation?

Thanks for your time

-Chris

Banan has several UARTs. The one you need is UART0.
Its in 8-pin J12. http://pi4j.com/pins/lemaker-bananapi.html
Make sure you connect TX-RX and RX-TX , not RX-RX, TX-TX
Baud rate is standard 115200.
HDMI works. Its initialized by u-boot then used for kernel output.
Default config has ubhid kmod but keyboard has not effect on HDMI screen and no console output displayed.
boot.scr has console parameter
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
Maybe if removed some magic happens. I know how to recreate boot.scr and change parms there but I havent tested because I dont need HDMI.
Also can interrupt u-boot from serial console and run manual commands to boot kernel without ttyS0 for test .

(Last edited by bolvan on 16 Dec 2016, 09:34)

This is all that I see when booting the router on hdmi display is booting kernel from legacy image at 42000000 ...
Image Name ARM OpenWrt Linux-3.18.19
Image Type: ARm Linux kernel Image  (uncompressed)
data ssize 1.8 MiB
load address 4000b000
entry point 4000b000
verifying checksum ... ok
flattened device tree blob at 4300000
loading kernel image ... ok
using device tree in place at 4300000 end 4300bcf2

Cannot setup simplefb: node not found

starting kernel ...


At this point it goes blank

for the serial port I connect the tx-rx rx-tx and gnd to uart0 the pinout is conflicting on different webpages but I have tried both. The only output I get is:

)���������5=u/#;5�壿������}#��}'5�=-S=%;=�i����_�91H���w囕������$�������E�i5'�9!%%=#7�'-#5��9!#!'5�

Also I tried 3 different sd cards to rule that out

As in any openwrt firmware it boots in default configuration with 192.168.1.1/24 ip.
Can you access it ?

I do not see the network broadcasted, and can not connect over ethernet. I am unsure that the kernel boots successfully given that I do not see the kernel log outputted: Also I tried building the image from source with the same result.

(Last edited by channon on 18 Dec 2016, 20:02)

I'm also unsure that it boots.
On my non-R1 standard banana I booted CC and DD without problems.
Try traditional linux distro to check if it can work at all

(Last edited by bolvan on 19 Dec 2016, 08:47)

The discussion might have continued from here.