On Wed, Sep 14, 2016 at 11:43:31PM +0200, Mark Kettenis wrote:
> > From: John DiMarco <j...@cs.toronto.edu>
> > Date: Tue, 13 Sep 2016 12:32:05 -0400
> > 
> > In message <201609120838.u8c8cvhf002...@glazunov.sibelius.xs4all.nl> Mark 
> > Kettenis writes:
> > >I fixed the sxie(4) tx watchdog issue yesterday.  So new snapshots
> > >should be working much better.
> > 
> > I tried yesterday's snapshot -- the tx watchdog issue is gone.  Thank you!
> > tx speed is very slow though: scp of a 100k file out of the cubieboard
> > was under 4KB/sec.  Still better than hang.
> 
> The hardware is pretty dumb and requires that some external agent
> pushes every 32-bit word of a packet through its FIFO.  In the current
> driver that external agent is the CPU.  It should be possible to use
> one of the DMA engines on the SoC instead.
> 
> > >You can just write a miniroot image to
> > >your SD card and then overwrite the bootloader:
> > >
> > ># dd if=miniroot-cubie-60.fs of=/dev/rsdXc
> > ># dd if=/usr/local/share/u-boot/Cubieboard/u-boot-sunxi-with-spl.bin \
> > >    of=/dev/rsdXc bs=1024 seek=8
> > >
> > ...
> > >  http://ftp.openbsd.org/pub/OpenBSD/6.0/packages/amd64/u-boot-2016.07.tgz
> > 
> > These instructions worked perfectly, thank you!  I wonder if it's worthwhile
> > to add the above to the install instructions?
> 
> Yes, that's my plan.
> 

It's a bit hard to explain, but perhaps something like this:

Index: prep
===================================================================
RCS file: /cvs/src/distrib/notes/armv7/prep,v
retrieving revision 1.10
diff -u -p -r1.10 prep
--- prep        23 Jul 2016 16:22:17 -0000      1.10
+++ prep        18 Sep 2016 05:27:28 -0000
@@ -52,3 +52,35 @@ script.
        => bootefi ${kernel_addr_r} ${fdt_addr_r}
 The bootloader will then run and try to load sd0a:/bsd off an FFS
 filesystem after a timeout.
+
+Install on systems without a supported miniroot:
+
+  If a miniroot is not available for your system you will have to modify
+  the image before booting it.
+
+  To do so first install the u-boot and dtb packages.  Write one of the
+  provided miniroot images to an SD card:
+
+       dd if=miniroot-beagle-{:--:}OSrev.fs of=/dev/rsdXc
+
+  Add a board specific DTB file:
+
+       mount /dev/sdXi /mnt
+        cp /usr/local/share/dtb/arm/board.dtb /mnt/
+       umount /mnt
+
+  For systems based on Texas Instruments OMAP and AMxxxx SoCs:
+
+       mount /dev/sdXi /mnt
+       cp /usr/local/share/u-boot/board-name/{MLO,u-boot.img} /mnt/
+        umount /mnt
+
+  For systems based on Freescale/NXP i.MX SoCs:
+
+       dd if=/usr/local/share/u-boot/board/SPL of=/dev/rsdXc bs=1024 seek=1
+       dd if=/usr/local/share/u-boot/board/u-boot.img of=/dev/rsdXc bs=1024 
seek=69
+
+  For systems based on Allwinner Axx Socs:
+
+       dd if=/usr/local/share/u-boot/board/u-boot-sunxi-with-spl.bin \
+           of=/dev/rsdXc bs=1024 seek=8

Reply via email to