Discussion:
armv7/sunxi/sxie
Artturi Alm
2017-07-22 08:21:31 UTC
Permalink
Hi,

anyone else having issues with sxie? w/bsd.rd from latest snapshot
it was unable to get ip from dhcpd even.

this is what it does look like at the other side:

11:01:15.170089 e6:29:5b:e9:e6:29 5b:e9:e6:29:5b:e9 5be9 342:
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
11:01:15.170353 e6:29:5b:e9:e6:29 5b:e9:e6:29:5b:e9 5be9 342:
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629

just to make sure there was nothing physically wrong in my setup,
i attached usb-ethernet(axen), and got the ip like expected, this
was in a row to the earlier garbage w/o rebooting in between.

i haven't used it for like a year, so got no time frame when this
has appeared, anyone w/ideas?
-Artturi


Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
reading /sun4i-a10-cubieboard.dtb
27611 bytes read in 27 ms (998 KiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
reading efi/boot/bootarm.efi
64684 bytes read in 39 ms (1.6 MiB/s)
## Starting EFI application at 42000000 ...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 6 disks
OpenBSD/armv7 BOOTARM 0.5
boot>
cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: 2265040+7987956+446128 [80+311072+148175]=0xaab580

OpenBSD/armv7 booting ...
arg0 0xc0dab580 arg1 0x0 arg2 0x48000000
Allocating page tables
freestart = 0x40dac000, free_pages = 258644 (0x0003f254)
IRQ stack: p0x40dda000 v0xc0dda000
ABT stack: p0x40ddb000 v0xc0ddb000
UND stack: p0x40ddc000 v0xc0ddc000
SVC stack: p0x40ddd000 v0xc0ddd000
Creating L1 page table at 0x40dac000
Mapping kernel
Constructing L2 page tables
undefined page pmap board type: 0
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org

OpenBSD 6.1-current (RAMDISK) #14: Fri Jul 21 12:32:27 MDT 2017
***@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem = 1073741824 (1024MB)
avail mem = 1038516224 (990MB)
mainbus0 at root: Cubietech Cubieboard
cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache
sxiccmu0 at mainbus0
simplebus0 at mainbus0: "soc"
sxipio0 at simplebus0: 175 pins
sxitimer0 at simplebus0: cntrtimer @ 24000KHz
sxie0 at simplebus0, address 02:11:06:40:a1:20
rlphy0 at sxie0 phy 1: RTL8201L 10/100 PHY, rev. 1
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 "Generic 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 "Generic EHCI root hub" rev 2.00/1.00 addr 1
sxiintc0 at simplebus0
sxidog0 at simplebus0
sxirtc0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <SD/MMC, SU01G, 0080> SCSI2 0/direct removable
sd0: 968MB, 512 bytes/sector, 1984000 sectors
umass0 at uhub0 port 1 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 2.0, PMAP> SCSI2 0/direct removable serial.09306545EF90CA067B6C
sd1: 14891MB, 512 bytes/sector, 30497664 sectors
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/armv7 6.1 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? i
At any prompt except password prompts you can escape to a shell by
typing '!'. Default answers are shown in []'s and are selected by
pressing RETURN. You can exit this program at any time by pressing
Control-C, but this can leave your system in an inconsistent state.

Terminal type? [vt220]
System hostname? (short form, e.g. 'foo') cubie

Available network interfaces are: sxie0 vlan0.
Which network interface do you wish to configure? (or 'done') [sxie0]
IPv4 address for sxie0? (or 'dhcp' or 'none') [dhcp]
DHCPDISCOVER on sxie0 - interval 1
DHCPDISCOVER on sxie0 - interval 2
DHCPDISCOVER on sxie0 - interval 2
DHCPDISCOVER on sxie0 - interval 2
DHCPDISCOVER on sxie0 - interval 2
DHCPDISCOVER on sxie0 - interval 2
No acceptable DHCPOFFERS received.
No working leases in persistent database - sleeping.
IPv6 address for sxie0? (or 'autoconf' or 'none') [none] axen0 at uhub1 port 1 configuration 1 interface 0 "ASIX Elec. Corp. AX88179" rev 2.10/1.00 addr 2
axen0: AX88179, address 1a:2b:3c:4d:5f:8c
rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5
IPv6 address for sxie0? (or 'autoconf' or 'none') [none]
Available network interfaces are: sxie0 axen0 vlan0.
Which network interface do you wish to configure? (or 'done') [done] axen0
Symbolic (host) name for axen0? [cubie]
IPv4 address for axen0? (or 'dhcp' or 'none')
A response is required.
IPv4 address for axen0? (or 'dhcp' or 'none') dhcp
DHCPDISCOVER on axen0 - interval 1
DHCPOFFER from 192.168.2.2 (00:22:68:10:3d:f0)
DHCPREQUEST on axen0 to 255.255.255.255
DHCPACK from 192.168.2.2 (00:22:68:10:3d:f0)
bound to 192.168.2.33 -- renewal in 21600 seconds.
IPv6 address for axen0? (or 'autoconf' or 'none') [none]
Available network interfaces are: sxie0 axen0 vlan0.
Which network interface do you wish to configure? (or 'done') [done]
Mark Kettenis
2017-07-23 17:45:53 UTC
Permalink
Date: Sat, 22 Jul 2017 11:21:31 +0300
Hi,
anyone else having issues with sxie? w/bsd.rd from latest snapshot
it was unable to get ip from dhcpd even.
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
just to make sure there was nothing physically wrong in my setup,
i attached usb-ethernet(axen), and got the ip like expected, this
was in a row to the earlier garbage w/o rebooting in between.
i haven't used it for like a year, so got no time frame when this
has appeared, anyone w/ideas?
-Artturi
I'm upgrading my A10s-ALinuXino-Micro over sxie(4), so the driver
defenitely still works for me.
Artturi Alm
2017-07-24 20:07:00 UTC
Permalink
This post might be inappropriate. Click to display it.
Mark Kettenis
2017-07-24 20:51:12 UTC
Permalink
Date: Mon, 24 Jul 2017 23:07:00 +0300
Post by Mark Kettenis
Date: Sat, 22 Jul 2017 11:21:31 +0300
Hi,
anyone else having issues with sxie? w/bsd.rd from latest snapshot
it was unable to get ip from dhcpd even.
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
just to make sure there was nothing physically wrong in my setup,
i attached usb-ethernet(axen), and got the ip like expected, this
was in a row to the earlier garbage w/o rebooting in between.
i haven't used it for like a year, so got no time frame when this
has appeared, anyone w/ideas?
-Artturi
I'm upgrading my A10s-ALinuXino-Micro over sxie(4), so the driver
defenitely still works for me.
That's good. Do you know if u-boot did init it? In my case i'm quite
sure the u-boot i used did not, and i'm now guessing just by quick
look at sxie.c, that iirc. there was some ugly hack somewhere to enable
the use of some sram section in memory for the emac, and since i saw no
trace of that hack in sxie.c, maybe it was elsewhere and got cleaned up?
meaning sxie would rely on u-boot to work? i'll test when i have a free
sd-card, will let you know.
Yes, U-Boot initializes the network interface.
Artturi Alm
2017-07-25 02:29:06 UTC
Permalink
Post by Mark Kettenis
Date: Mon, 24 Jul 2017 23:07:00 +0300
Post by Mark Kettenis
Date: Sat, 22 Jul 2017 11:21:31 +0300
Hi,
anyone else having issues with sxie? w/bsd.rd from latest snapshot
it was unable to get ip from dhcpd even.
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
just to make sure there was nothing physically wrong in my setup,
i attached usb-ethernet(axen), and got the ip like expected, this
was in a row to the earlier garbage w/o rebooting in between.
i haven't used it for like a year, so got no time frame when this
has appeared, anyone w/ideas?
-Artturi
I'm upgrading my A10s-ALinuXino-Micro over sxie(4), so the driver
defenitely still works for me.
That's good. Do you know if u-boot did init it? In my case i'm quite
sure the u-boot i used did not, and i'm now guessing just by quick
look at sxie.c, that iirc. there was some ugly hack somewhere to enable
the use of some sram section in memory for the emac, and since i saw no
trace of that hack in sxie.c, maybe it was elsewhere and got cleaned up?
meaning sxie would rely on u-boot to work? i'll test when i have a free
sd-card, will let you know.
Yes, U-Boot initializes the network interface.
Regression in /usr/local/share/u-boot/Cubieboard/u-boot-sunxi-with-spl.bin,
w/2017.03 it is working:

U-Boot SPL 2017.03 (Apr 03 2017 - 12:27:12)
DRAM: 1024 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.03 (Apr 03 2017 - 12:27:12 -0600) Allwinner Technology

CPU: Allwinner A10 (SUN4I)
Model: Cubietech Cubieboard
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
SCSI: SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: eth0: ***@01c0b000


and with current(.05) it doesn't:

U-Boot SPL 2017.05 (Jul 11 2017 - 16:35:33)
DRAM: 1024 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.05 (Jul 11 2017 - 16:35:33 -0600) Allwinner Technology

CPU: Allwinner A10 (SUN4I)
Model: Cubietech Cubieboard
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
SCSI: SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: No ethernet found.


i guess that means, we either hope u-boot 2017.07 will fix this, or add
the likely missing handling of "allwinner,sun4i-a10-sram-a3-a4"-compatible ?
this is such a minor thing, that i hope you won't waste time on this anymore
than deciding what should be done, and maybe ease my curiosity if the success
you've had was w/2017.05 or not? :)

i cc'ed maintaineri, as i failed to build .07, and in case he would have any
news about progress w/upgrade to it? or if the u-boot changelog for between
.05 and .07 has been considered unworthy of the port-update?
-Artturi
Jonathan Gray
2017-07-25 02:39:49 UTC
Permalink
Post by Artturi Alm
Post by Mark Kettenis
Date: Mon, 24 Jul 2017 23:07:00 +0300
Post by Mark Kettenis
Date: Sat, 22 Jul 2017 11:21:31 +0300
Hi,
anyone else having issues with sxie? w/bsd.rd from latest snapshot
it was unable to get ip from dhcpd even.
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629 5be9 e629 5be9 e629 5be9
e629 5be9 e629
just to make sure there was nothing physically wrong in my setup,
i attached usb-ethernet(axen), and got the ip like expected, this
was in a row to the earlier garbage w/o rebooting in between.
i haven't used it for like a year, so got no time frame when this
has appeared, anyone w/ideas?
-Artturi
I'm upgrading my A10s-ALinuXino-Micro over sxie(4), so the driver
defenitely still works for me.
That's good. Do you know if u-boot did init it? In my case i'm quite
sure the u-boot i used did not, and i'm now guessing just by quick
look at sxie.c, that iirc. there was some ugly hack somewhere to enable
the use of some sram section in memory for the emac, and since i saw no
trace of that hack in sxie.c, maybe it was elsewhere and got cleaned up?
meaning sxie would rely on u-boot to work? i'll test when i have a free
sd-card, will let you know.
Yes, U-Boot initializes the network interface.
Regression in /usr/local/share/u-boot/Cubieboard/u-boot-sunxi-with-spl.bin,
U-Boot SPL 2017.03 (Apr 03 2017 - 12:27:12)
DRAM: 1024 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2017.03 (Apr 03 2017 - 12:27:12 -0600) Allwinner Technology
CPU: Allwinner A10 (SUN4I)
Model: Cubietech Cubieboard
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
SCSI: SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
U-Boot SPL 2017.05 (Jul 11 2017 - 16:35:33)
DRAM: 1024 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1
U-Boot 2017.05 (Jul 11 2017 - 16:35:33 -0600) Allwinner Technology
CPU: Allwinner A10 (SUN4I)
Model: Cubietech Cubieboard
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
SCSI: SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: No ethernet found.
i guess that means, we either hope u-boot 2017.07 will fix this, or add
the likely missing handling of "allwinner,sun4i-a10-sram-a3-a4"-compatible ?
this is such a minor thing, that i hope you won't waste time on this anymore
than deciding what should be done, and maybe ease my curiosity if the success
you've had was w/2017.05 or not? :)
i cc'ed maintaineri, as i failed to build .07, and in case he would have any
news about progress w/upgrade to it? or if the u-boot changelog for between
.05 and .07 has been considered unworthy of the port-update?
-Artturi
There is a 2017.07 update on ports@ that can't go in unless someone
tracks down the rpi3 problem.

Loading...