- December 17, 2012 at 4:59 pm #31083
You will need to have the Minimorph connected by USB to a Linux host.
The SDK contains a binary application (hostboot) to enable updating of the SPI flash. Please see the following article regarding the versions available:
Ensure you have extracted the correct hostboot and the flow_programmer.ldr or you have prepared your own.
These instructions are also detailed in the Getting Started Guide documentation.
Configure the Minimorph for USB slave boot
1. Power off the board.
2. Set the boot selection jumpers to ‘USB Slave Boot’ as follows:
3. Put the Boot/Debug switch (SW4) in the ‘Boot’ position.
4. Connect the USB cable from your Linux host to the Minimorph.
5. Press the Minimorph reset button (SW6).
Reflash the Minimorph SPI flash using hostboot
The hostboot binary file resides in the IMG directory, created when you unpacked the hostboot tar file.
1. Run the hostboot binary, for example:
$ ./hostboot IMG/flow_programmer.ldr
The reflash will take several minutes. Hostboot completes and exits on the host PC before the reflash is complete.
When it is complete soft LEDs 1 & 2 will flash alternately.
Warning: Do not power off or unplug the board until you see the LEDs flashing.
2. Set the boot selection jumpers to ‘Atmel Flash’ as follows:
3. Press the Minimorph reset button (SW6).
The board will now reset, loading U-Boot from the SPI Flash then loading the Meta Linux kernel from SPI flash.
When it is complete soft LED 2 will flash every 5 seconds to indicate the Minimorph has booted and is ready.December 23, 2012 at 9:51 pm #36417
I follow the process above to the letter. However upon running hostboot I get the following output:
[root@localhost IMG]# ./hostboot ../flow_programmer.ldr
loading secload to 0xe02a0000
extending boot ROM (secload entry 0xe0540000)
loading data stream
Response with incorrect header magic 0x0000
I am running CENTOS 6.0 (using the correct version of hostboot) in a virtual machine on a windows host. The USB device is passed straight into the virtual machine.
Oh, and the output of lsub is
[root@localhost IMG]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 1c5b:fa11