Skip to content

Commit a457961

Browse files
committed
Merge pull request #85 from sealne/master
Expand bootstrap README and add test for /opt/Xilinx/14.7/ISE_DS/settings64.sh
2 parents bac3cf5 + 2dc1a10 commit a457961

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

scripts/README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Building HDMI2USB-misoc-firmware
22

3-
These scripts are designed to bootstrap a firmware build environment on Ubuntu 14.04 LTS.
3+
These scripts are designed to bootstrap a firmware build environment on Ubuntu 14.04 LTS and also works on 15.04 though with less testing.
44

5-
Instructions:
5+
## Prerequisite
66

7-
1. Install Xilinx ISE WebPACK 14.7 + activate a licence:
7+
Install Xilinx ISE WebPACK 14.7 + activate a licence:
88

99
* Download from [http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/design-tools.html]
1010
* Install into the default location in /opt (requires X11 GUI):
@@ -25,18 +25,24 @@ Instructions:
2525
```
2626
Go to About > Licence, ensure under "information" you can see your ISE WebPACK licence.
2727

28-
2. Run the bootstrap script to build an environment required for flashing firmware:
28+
## Bootstrap
29+
30+
Run the bootstrap script to build an environment required for flashing firmware:
2931
```
3032
curl -fsS https://raw.githubusercontent.com/timvideos/HDMI2USB-misoc-firmware/master/scripts/bootstrap.sh | bash
3133
```
3234

33-
3. Initalise the environment (required for any of the build/load steps below[2]):
35+
This clones the HDMI2USB-misoc-firmware repository, adds the timvideos fpga-support PPA, installs packages required then downloads misoc and its dependencies. Depending on your connection speed this could take a while to download.
36+
37+
## Building the firmware
38+
39+
1. Initalise the environment (required for any of the build/load steps below[2]):
3440
```
35-
cd ~/HDMI2USB-misoc-firmware
41+
cd HDMI2USB-misoc-firmware
3642
source scripts/setup-env.sh
3743
```
3844

39-
4. Build the gateware:
45+
2. Build the gateware:
4046
```
4147
make gateware
4248
```
@@ -50,7 +56,7 @@ Instructions:
5056

5157
The built gateware will be in build/misoc/build/.
5258

53-
5. You've now built the HDMI2USB firmware/gateware. Ensure board has the right pins set before flashing anything, and plug it in:
59+
3. You've now built the HDMI2USB firmware/gateware. Ensure board has the right pins set before flashing anything, and plug it in:
5460

5561
As the HDMI2USB firmware manipulates the EDID information the following jumpers must be removed;
5662

@@ -62,19 +68,19 @@ Instructions:
6268
* Plug board in using USB PROG port & switch on. If using a VM, ensure the device is passed through.
6369
* Other USB port is for the HDMI2USB capture. Recommend plugging this in too so you can use/test the device.
6470

65-
6. Flash the gateware and firmware - see [1] if using a VM:
71+
4. Flash the gateware and firmware - see [1] if using a VM:
6672

6773
```
6874
PROG=fpgalink make load-gateware
6975
```
7076
(may need to run several times)
7177

72-
7. Load fx2 firmware to enable USB capture:
78+
5. Load fx2 firmware to enable USB capture:
7379
```
7480
make load-fx2-firmware
7581
```
7682

77-
8. Connect to lm32 softcore to send direct commands to the HDMI2USB such as changing resolution:
83+
6. Connect to lm32 softcore to send direct commands to the HDMI2USB such as changing resolution:
7884
```
7985
make connect-lm32
8086
```

scripts/setup-env.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ if [ ! -z $HDMI2USB_ENV ]; then
2020
return
2121
fi
2222

23+
if [ ! -z $SETTINGS_FILE ]; then
24+
echo "You appear to have sourced the Xilinx ISE settings, these are incompatible with building."
25+
echo "Please exit this terminal and run again from a clean shell."
26+
return
27+
fi
28+
2329
echo " This script is: $SETUP_SRC"
2430
echo " Firmware directory: $TOP_DIR"
2531
echo " Build directory is: $BUILD_DIR"

0 commit comments

Comments
 (0)