On Fri, Oct 25, 2019 at 05:16:49PM +0200, Unicorn wrote:
> On Fri, 2019-10-25 at 18:00 +1100, Jonathan Gray wrote:
> > On Fri, Oct 25, 2019 at 08:48:21AM +0200, Unicorn wrote:
> > > On Fri, 2019-10-25 at 13:34 +1100, Jonathan Gray wrote:
> > > > On Thu, Oct 24, 2019 at 06:21:14PM +0200, Unicorn wrote:
> > > > > Hello everyone,
> > > > > 
> > > > > I own an Allwinner A20 based OLinuXino LIME2, a little OSHW
> > > > > board
> > > > > by
> > > > > Olimex. I saw that there is support for some A20 devices,
> > > > > unfortunately
> > > > > not the OLinuXino LIME2. Since I am new to both BSD and ARM, I
> > > > > do
> > > > > not
> > > > > know where to start with getting OpenBSD to run on my board.
> > > > > 
> > > > > Does anyone here have experience with this board in particular
> > > > > or
> > > > > advice on where to start with getting it to run?
> > > > > 
> > > > > Thanks in advance!
> > > > > 
> > > > 
> > > > System firmware unfortunately does not ship with such systems and
> > > > has
> > > > to
> > > > share the storage device with the operating system.
> > > > 
> > > > Assuming you have another OpenBSD install or something that can
> > > > extract
> > > > the package see
> > > > 
> > > > "Install on systems without a supported miniroot" from
> > > > https://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/INSTALL.armv7
> > > > 
> > > > Install the u-boot-arm package and run
> > > > 
> > > > dd if=miniroot-cubie-66.fs of=/dev/rsdXc
> > > > dd if=/usr/local/share/u-boot/A20-OLinuXino-Lime2/u-boot-sunxi-
> > > > with-
> > > > spl.bin \
> > > >     of=/dev/sdXc bs=1024 seek=8
> > > > 
> > > > where sdX is the device the sd card shows up as.
> > > > 
> > > > alternatively there is also a 'A20-OLinuXino-Lime2-eMMC' target
> > > > built.
> > > 
> > > Thanks a lot for the pointer, I will try with these instructions
> > > later
> > > with an OpenBSD VM when I have the time!
> > > 
> > > > alternatively there is also a 'A20-OLinuXino-Lime2-eMMC' target
> > > > built.
> > > 
> > > What do you mean by this? Would this be for installation on the
> > > eMMC
> > > chip on the LIME2?
> > 
> > It is for models where eMMC is present as it is optional.
> > You should still be able to install to sd card when using it.
> > 
> 
> Alright, I was able to boot and start installation, but OpenBSD does
> not manage to work with the LAN port.
> 
> When telling it to use dhcp to configure the interface during
> installation, it just responds something along the lines of "no lease",
> but I can't even see an attempt at communicating when I check my
> router's log :/ (Armbian connects just fine and shows up in the log)
> 
> Do you have any idea how I could fix this?
> On the datasheet about the specific model I own, I found that the LAN
> port is 'TM211Q01FM22_SH', but I am not sure if that is of any help.
> 
> If it would help to tell you the output of any commands, I am happy to
> report back if you have an idea :)
> 
> Thanks for your input!

Can you include the full serial output when booting?

If you break into the U-Boot prompt can you get a dhcp lease?

Hit any key to stop autoboot:  0 
=> setenv autoload no
=> dhcp
=> printenv ipaddr

It matters which phy you have as well, the U-Boot images are not built
with CONFIG_GMAC_TX_DELAY=3 which is needed for the revision H boards
with a Micrel/Microchip KSZ9031 phy according to
https://linux-sunxi.org/Olimex_A20-OLinuXino-Lime2

It seems armbian have a patched U-Boot, it is unclear if the latest
patch is
https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/board_lime2/GMAC_TX_DELAY_autocorrection.patch

olimex have their own U-Boot branch
https://github.com/OLIMEX/u-boot/tree/olimex
which has many changes, one of which sets the tx delay to 4 for
revisions >= H.

Reply via email to