Quantcast

Banana PI R1: dwge0 not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Banana PI R1: dwge0 not working

Francisco Gaitan-3
Hello arm@,

Peter J. Philipp kindly donated me a Banana PI R1 to test, I have successfully installed OpenBSD-current. Wifi works fine even without connecting the antennas, ethernet dwge0 is detected but it does not work.

I have tried running dhclient without success, and also setting an IP manually, in this case I can ping that IP but doing a ping to the router does not work. WAN port has a permanent green light, and when I connect the cable another orange light appears. I have tried also connecting the cable to a LAN port without success.

This happens in the 28/Sept and 30/Sept snapshots. I have not tried previous ones.

# dhclient dwge0
dwge0: no link ........... sleeping
 
ifconfig:
 
dwge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 02:d7:08:00:d0:8b
        index 1 priority 0 llprio 3
        media: Ethernet autoselect (none)
        status: no carrier

dmesg:

OpenBSD 6.0-current (GENERIC) #60: Thu Sep 29 22:49:03 MDT 2016
    [hidden email]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 1073741824 (1024MB)
avail mem = 1044459520 (996MB)
mainbus0 at root: Lamobo R1
cpu0 at mainbus0: ARM Cortex A7 rev 4 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache
cortex0 at mainbus0
sunxi0 at mainbus0
sxipio0 at sunxi0: 175 pins
sxiccmu0 at sunxi0
gpio0 at sxipio0: 18 pins
gpio1 at sxipio0: 24 pins
gpio2 at sxipio0: 25 pins
gpio3 at sxipio0: 28 pins
gpio4 at sxipio0: 12 pins
gpio5 at sxipio0: 6 pins
gpio6 at sxipio0: 12 pins
gpio7 at sxipio0: 28 pins
gpio8 at sxipio0: 22 pins
agtimer0 at mainbus0: tick rate 24000 KHz
simplebus0 at mainbus0: "soc"
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
sxiahci0 at simplebus0: AHCI 1.1
scsibus0 at sxiahci0: 32 targets
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
sxidog0 at simplebus0
sxirtc0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
com1 at simplebus0: ns16550, no working fifo
com2 at simplebus0: ns16550, no working fifo
dwge0 at simplebus0
dwge0: Ethernet address: 02:d7:08:00:d0:7a
ukphy0 at dwge0 phy 1: Generic IEEE 802.3u media interface, rev. 4: OUI 0x00d897, model 0x0032
ampintc0 at simplebus0 nirq 160
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, 00000, 0010> SCSI2 0/direct fixed
sd0: 15208MB, 512 bytes/sector, 31145984 sectors
urtwn0 at uhub1 port 1 configuration 1 interface 0 "Realtek 802.11n WLAN Adapter" rev 2.00/2.00 addr 2
urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R, address 28:f3:66:41:c9:cf
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
boot device: sd0
root on sd0a (57401f70d81fcffe.a) swap on sd0b dump on sd0b
WARNING: preposterous time in file system
WARNING: CHECK AND RESET THE DATE!

Thank you for this port,
   Francisco.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Banana PI R1: dwge0 not working

Stuart Henderson
On 2016/09/30 12:32, Francisco Gaitan wrote:
> Peter J. Philipp kindly donated me a Banana PI R1 to test, I have
> successfully installed OpenBSD-current. Wifi works fine even without
> connecting the antennas, ethernet dwge0 is detected but it does not
> work.

I think you'll need some kind of driver for the BCM53125 (ethernet switch)..

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Banana PI R1: dwge0 not working

Mark Kettenis
> Date: Fri, 30 Sep 2016 12:49:43 +0100
> From: Stuart Henderson <[hidden email]>
>
> On 2016/09/30 12:32, Francisco Gaitan wrote:
> > Peter J. Philipp kindly donated me a Banana PI R1 to test, I have
> > successfully installed OpenBSD-current. Wifi works fine even without
> > connecting the antennas, ethernet dwge0 is detected but it does not
> > work.
>
> I think you'll need some kind of driver for the BCM53125 (ethernet switch)..

Seems somebody write a driver for NetBSD:

  https://mail-index.netbsd.org/port-arm/2015/04/05/msg003031.html

We have had discussions in the past on how to integrate switches like
that into OpenBSD.  Don't think we ever reached consensus.  But I
think nobody would object to having a "dumb" driver that just lets the
MAC talk to the switch PHY as a starting point.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Banana PI R1: dwge0 not working

Francisco Gaitan-3
On Fri, Sep 30, 2016 at 03:29:11PM +0200, Mark Kettenis wrote:

> > Date: Fri, 30 Sep 2016 12:49:43 +0100
> > From: Stuart Henderson <[hidden email]>
> >
> > On 2016/09/30 12:32, Francisco Gaitan wrote:
> > > Peter J. Philipp kindly donated me a Banana PI R1 to test, I have
> > > successfully installed OpenBSD-current. Wifi works fine even without
> > > connecting the antennas, ethernet dwge0 is detected but it does not
> > > work.
> >
> > I think you'll need some kind of driver for the BCM53125 (ethernet switch)..
>
> Seems somebody write a driver for NetBSD:
>
>   https://mail-index.netbsd.org/port-arm/2015/04/05/msg003031.html
>
> We have had discussions in the past on how to integrate switches like
> that into OpenBSD.  Don't think we ever reached consensus.  But I
> think nobody would object to having a "dumb" driver that just lets the
> MAC talk to the switch PHY as a starting point.

Unfortunately I don't have the knowledge to do this.

This BananaPi R1 was kindly donated to my by Peter J. Philipp. If
some developer wants it you can send me a mail to [hidden email]
and I'll gladly donate it, preferably inside EU.

Meanwhile I'll continue to run -current on it with the hope of
finding some bug that may help to improve this port.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fwd: Banana PI R1: dwge0 not working

Luiz Gustavo dos S. Costa
In reply to this post by Francisco Gaitan-3
2016-09-30 7:32 GMT-03:00 Francisco Gaitan <[hidden email]>:

> Hello arm@,
>
> Peter J. Philipp kindly donated me a Banana PI R1 to test, I have successfully installed OpenBSD-current. Wifi works fine even without connecting the antennas, ethernet dwge0 is detected but it does not work.
>
> I have tried running dhclient without success, and also setting an IP manually, in this case I can ping that IP but doing a ping to the router does not work. WAN port has a permanent green light, and when I connect the cable another orange light appears. I have tried also connecting the cable to a LAN port without success.
>
> This happens in the 28/Sept and 30/Sept snapshots. I have not tried previous ones.
>
> # dhclient dwge0
> dwge0: no link ........... sleeping
>

Hi list,

I'm trying to install/up openbsd on my banana r1 and i'm not getting
it. How did you do to generate the boot image?

I created this one here ->
http://projetos.mundounix.com.br/~gugabsd/miniroot-lamobo_r1-60.fs

But, i always receive this message: http://imgur.com/a/Hzn06

Can you help me?

Best regards !


>
> Thank you for this port,
>    Francisco.
>


--
Luiz Gustavo Costa  |  +55 (21) 9-8834-6998
-----------------------------------------------------------------
Mundounix - Consultoria em Software Livre
http://www.mundounix.com.br
Skype: mundounix

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Mark Kettenis
> From: "Luiz Gustavo dos S. Costa" <[hidden email]>
> Date: Thu, 24 Nov 2016 01:23:58 -0200
>
> 2016-09-30 7:32 GMT-03:00 Francisco Gaitan <[hidden email]>:
> > Hello arm@,
> >
> > Peter J. Philipp kindly donated me a Banana PI R1 to test, I have successfully installed OpenBSD-current. Wifi works fine even without connecting the antennas, ethernet dwge0 is detected but it does not work.
> >
> > I have tried running dhclient without success, and also setting an IP manually, in this case I can ping that IP but doing a ping to the router does not work. WAN port has a permanent green light, and when I connect the cable another orange light appears. I have tried also connecting the cable to a LAN port without success.
> >
> > This happens in the 28/Sept and 30/Sept snapshots. I have not tried previous ones.
> >
> > # dhclient dwge0
> > dwge0: no link ........... sleeping
> >
>
> Hi list,
>
> I'm trying to install/up openbsd on my banana r1 and i'm not getting
> it. How did you do to generate the boot image?
>
> I created this one here ->
> http://projetos.mundounix.com.br/~gugabsd/miniroot-lamobo_r1-60.fs
>
> But, i always receive this message: http://imgur.com/a/Hzn06
>
> Can you help me?
>
> Best regards !

You are trying to boot from an SD card I assume?

Your image shows:

=> MC:   SUNXI SD/MMC: 0
Unknown command 'MC': - try 'help'

Did you type that?

Does your image contain an msdos partition with the OpenBSD BOOTARM.EFI on it?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Luiz Gustavo dos S. Costa
2016-11-25 8:24 GMT-02:00 Mark Kettenis <[hidden email]>:
>
> You are trying to boot from an SD card I assume?

Yes, sure. is a Samsung 16Gb class 10

>
> Your image shows:
>
> => MC:   SUNXI SD/MMC: 0
> Unknown command 'MC': - try 'help'
>
> Did you type that?

I can not interact in some shell, i do not seem to allow access

>
> Does your image contain an msdos partition with the OpenBSD BOOTARM.EFI on it?

Yes, see:

[~/build]$ vnconfig vnd0 miniroot-lamobo_r1-60.fs
[~/build]$ disklabel -A vnd0
# /dev/rvnd0c:
type: vnd
disk: vnd device
label: fictitious
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 368
total sectors: 36864
boundstart: 6144
boundend: 36864
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:            30720             6144  4.2BSD   2048 16384    1 # /
  c:            36864                0  unused
  i:             4096             2048   MSDOS
[~/build]$ mount /dev/vnd0i /mnt/vnd0i
[~/build]$ ls -lha /mnt/vnd0i
total 116
drwxr-xr-x  1 root  wheel  16.0K Dec 31  1979 .
drwxr-xr-x  4 root  wheel   512B Nov  7 16:59 ..
drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 efi
-rw-r--r--  1 root  wheel  34.7K Nov  7 17:58 sun7i-a20-cubieboard2.dtb
[~/build]$ ls -lha /mnt/vnd0i/efi/boot
total 144
drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 .
drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 ..
-r--r--r--  1 root  wheel  63.2K Nov  5 20:07 bootarm.efi


Thanks for you reply !

Have a nice day

--
Luiz Gustavo Costa  |  +55 (21) 9-8834-6998
-----------------------------------------------------------------
Mundounix - Consultoria em Software Livre
http://www.mundounix.com.br
Skype: mundounix

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Shazaum
Hi gugabsd,

See this post: http://www.rootbark.com/articles/openbsd_on_banana_pi_r1/


On 11/25/2016 11:09 AM, Luiz Gustavo dos S. Costa wrote:

> 2016-11-25 8:24 GMT-02:00 Mark Kettenis <[hidden email]>:
>> You are trying to boot from an SD card I assume?
> Yes, sure. is a Samsung 16Gb class 10
>
>> Your image shows:
>>
>> => MC:   SUNXI SD/MMC: 0
>> Unknown command 'MC': - try 'help'
>>
>> Did you type that?
> I can not interact in some shell, i do not seem to allow access
>
>> Does your image contain an msdos partition with the OpenBSD BOOTARM.EFI on it?
> Yes, see:
>
> [~/build]$ vnconfig vnd0 miniroot-lamobo_r1-60.fs
> [~/build]$ disklabel -A vnd0
> # /dev/rvnd0c:
> type: vnd
> disk: vnd device
> label: fictitious
> duid: 0000000000000000
> flags:
> bytes/sector: 512
> sectors/track: 100
> tracks/cylinder: 1
> sectors/cylinder: 100
> cylinders: 368
> total sectors: 36864
> boundstart: 6144
> boundend: 36864
> drivedata: 0
>
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:            30720             6144  4.2BSD   2048 16384    1 # /
>   c:            36864                0  unused
>   i:             4096             2048   MSDOS
> [~/build]$ mount /dev/vnd0i /mnt/vnd0i
> [~/build]$ ls -lha /mnt/vnd0i
> total 116
> drwxr-xr-x  1 root  wheel  16.0K Dec 31  1979 .
> drwxr-xr-x  4 root  wheel   512B Nov  7 16:59 ..
> drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 efi
> -rw-r--r--  1 root  wheel  34.7K Nov  7 17:58 sun7i-a20-cubieboard2.dtb
> [~/build]$ ls -lha /mnt/vnd0i/efi/boot
> total 144
> drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 .
> drwxr-xr-x  1 root  wheel   4.0K Nov  5 20:07 ..
> -r--r--r--  1 root  wheel  63.2K Nov  5 20:07 bootarm.efi
>
>
> Thanks for you reply !
>
> Have a nice day
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Luiz Gustavo dos S. Costa
2016-11-25 14:30 GMT-02:00 Shazaum <[hidden email]>:
> See this post: http://www.rootbark.com/articles/openbsd_on_banana_pi_r1/
>

pkg_add u-boot

Thanks !! i will try with this version from pkg binary. I used a
compiled version from ports.

--
Luiz Gustavo Costa  |  +55 (21) 9-8834-6998
-----------------------------------------------------------------
Mundounix - Consultoria em Software Livre
http://www.mundounix.com.br
Skype: mundounix

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Luiz Gustavo dos S. Costa
2016-11-25 15:20 GMT-02:00 Luiz Gustavo dos S. Costa
<[hidden email]>:
> 2016-11-25 14:30 GMT-02:00 Shazaum <[hidden email]>:
>> See this post: http://www.rootbark.com/articles/openbsd_on_banana_pi_r1/
>>
>
> pkg_add u-boot
>
> Thanks !! i will try with this version from pkg binary. I used a
> compiled version from ports.
>

Guys.....

I believe the problem is in my serial USB adapter, I'm using ch340g
and everyone i see uses the CP2102!

I'll buy this one to see.

--
Luiz Gustavo Costa  |  +55 (21) 9-8834-6998
-----------------------------------------------------------------
Mundounix - Consultoria em Software Livre
http://www.mundounix.com.br
Skype: mundounix

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Banana PI R1: dwge0 not working

Luiz Gustavo dos S. Costa
2016-11-25 16:46 GMT-02:00 Luiz Gustavo dos S. Costa
<[hidden email]>:
> I believe the problem is in my serial USB adapter, I'm using ch340g
> and everyone i see uses the CP2102!
>
> I'll buy this one to see.

BINGO !!!

Now everything worked as expected!, We already know that CH340G is not
compatible.

# uname -a
OpenBSD banana-obsd.lab.local 6.0 GENERIC#4 armv7

Thanks !

--
Luiz Gustavo Costa  |  +55 (21) 9-8834-6998
-----------------------------------------------------------------
Mundounix - Consultoria em Software Livre
http://www.mundounix.com.br
Skype: mundounix

Loading...