From 2d8d1a4d1ad15482e25f52e1fa3ad8ae94490a8e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 14 Jun 2011 17:44:54 -0700 Subject: uhd: updated images Makefile --- images/Makefile | 94 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 33 deletions(-) (limited to 'images') diff --git a/images/Makefile b/images/Makefile index 71b46d14e..f2ba21bdc 100644 --- a/images/Makefile +++ b/images/Makefile @@ -114,7 +114,7 @@ endif ######################################################################## ifdef HAS_XTCLSH -_usrp2_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/u2_rev3 +_usrp2_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/USRP2 _usrp2_fpga_bin = $(BUILT_IMAGES_DIR)/usrp2_fpga.bin IMAGES_LIST += $(_usrp2_fpga_bin) @@ -126,66 +126,94 @@ $(_usrp2_fpga_bin): $(GLOBAL_DEPS) endif ######################################################################## -# USRP-N200 fpga +# USRP-N200 R2/R3 fpga ######################################################################## ifdef HAS_XTCLSH -_usrp_n200_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/u2plus -_usrp_n200_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n200_fpga.bin -IMAGES_LIST += $(_usrp_n200_fpga_bin) +_usrp_n200_r3_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/N2x0 +_usrp_n200_r3_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n200_r3_fpga.bin +IMAGES_LIST += $(_usrp_n200_r3_fpga_bin) -$(_usrp_n200_fpga_bin): $(GLOBAL_DEPS) - cd $(_usrp_n200_fpga_dir) && make -f Makefile.N200 clean - cd $(_usrp_n200_fpga_dir) && make -f Makefile.N200 bin - cp $(_usrp_n200_fpga_dir)/build-N200/u2plus.bin $@ +$(_usrp_n200_r3_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_n200_r3_fpga_dir) && make -f Makefile.N200R3 clean + cd $(_usrp_n200_r3_fpga_dir) && make -f Makefile.N200R3 bin + cp $(_usrp_n200_r3_fpga_dir)/build-N200R3/u2plus.bin $@ + +#its called r2 on the silkscreen, so make an r2 +_usrp_n200_r2_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n200_r2_fpga.bin +IMAGES_LIST += $(_usrp_n200_r2_fpga_bin) +$(_usrp_n200_r2_fpga_bin): $(_usrp_n200_r3_fpga_bin) + cp $< $@ endif ######################################################################## -# USRP-N210 fpga +# USRP-N210 R2/R3 fpga ######################################################################## ifdef HAS_XTCLSH -_usrp_n210_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/u2plus -_usrp_n210_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n210_fpga.bin -IMAGES_LIST += $(_usrp_n210_fpga_bin) +_usrp_n210_r3_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/N2x0 +_usrp_n210_r3_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n210_r3_fpga.bin +IMAGES_LIST += $(_usrp_n210_r3_fpga_bin) + +$(_usrp_n210_r3_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_n210_r3_fpga_dir) && make -f Makefile.N210R3 clean + cd $(_usrp_n210_r3_fpga_dir) && make -f Makefile.N210R3 bin + cp $(_usrp_n210_r3_fpga_dir)/build-N210R3/u2plus.bin $@ -$(_usrp_n210_fpga_bin): $(GLOBAL_DEPS) - cd $(_usrp_n210_fpga_dir) && make clean - cd $(_usrp_n210_fpga_dir) && make bin - cp $(_usrp_n210_fpga_dir)/build/u2plus.bin $@ +#its called r2 on the silkscreen, so make an r2 +_usrp_n210_r2_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n210_r2_fpga.bin +IMAGES_LIST += $(_usrp_n210_r2_fpga_bin) +$(_usrp_n210_r2_fpga_bin): $(_usrp_n210_r3_fpga_bin) + cp $< $@ endif ######################################################################## -# USRP-E100 fpga +# USRP-N200 R4 fpga ######################################################################## ifdef HAS_XTCLSH -_usrp_e100_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/u1e -_usrp_e100_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_e100_fpga.bin -IMAGES_LIST += $(_usrp_e100_fpga_bin) +_usrp_n200_r4_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/N2x0 +_usrp_n200_r4_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n200_r4_fpga.bin +IMAGES_LIST += $(_usrp_n200_r4_fpga_bin) -$(_usrp_e100_fpga_bin): $(GLOBAL_DEPS) - cd $(_usrp_e100_fpga_dir) && make clean - cd $(_usrp_e100_fpga_dir) && make bin - cp $(_usrp_e100_fpga_dir)/build/u1e.bin $@ +$(_usrp_n200_r4_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_n200_r4_fpga_dir) && make -f Makefile.N200R4 clean + cd $(_usrp_n200_r4_fpga_dir) && make -f Makefile.N200R4 bin + cp $(_usrp_n200_r4_fpga_dir)/build-N200r4/u2plus.bin $@ + +endif + +######################################################################## +# USRP-N210 R4 fpga +######################################################################## +ifdef HAS_XTCLSH + +_usrp_n210_r4_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/N2x0 +_usrp_n210_r4_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_n210_r4_fpga.bin +IMAGES_LIST += $(_usrp_n210_r4_fpga_bin) + +$(_usrp_n210_r4_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_n210_r4_fpga_dir) && make -f Makefile.N210R4 clean + cd $(_usrp_n210_r4_fpga_dir) && make -f Makefile.N210R4 bin + cp $(_usrp_n210_r4_fpga_dir)/build-N210r4/u2plus.bin $@ endif ######################################################################## -# USRP-E100 pass-through fpga +# USRP-E100 fpga ######################################################################## ifdef HAS_XTCLSH -_usrp_e100_pt_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/u1e_passthru -_usrp_e100_pt_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_e100_pt_fpga.bin -IMAGES_LIST += $(_usrp_e100_pt_fpga_bin) +_usrp_e100_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/E1x0 +_usrp_e100_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_e100_fpga.bin +IMAGES_LIST += $(_usrp_e100_fpga_bin) -$(_usrp_e100_pt_fpga_bin): $(GLOBAL_DEPS) - cd $(_usrp_e100_pt_fpga_dir) && make clean - cd $(_usrp_e100_pt_fpga_dir) && make bin - cp $(_usrp_e100_pt_fpga_dir)/build/passthru.bin $@ +$(_usrp_e100_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_e100_fpga_dir) && make clean + cd $(_usrp_e100_fpga_dir) && make bin + cp $(_usrp_e100_fpga_dir)/build/u1e.bin $@ endif -- cgit v1.2.3 From 3d771334a820cb54870cbca23eab49bb84571905 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 14 Jun 2011 19:08:26 -0700 Subject: b100: added images to Makefile --- host/lib/usrp/usrp_b100/b100_impl.cpp | 4 ++-- images/Makefile | 24 ++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'images') diff --git a/host/lib/usrp/usrp_b100/b100_impl.cpp b/host/lib/usrp/usrp_b100/b100_impl.cpp index 066831a92..772da8f42 100644 --- a/host/lib/usrp/usrp_b100/b100_impl.cpp +++ b/host/lib/usrp/usrp_b100/b100_impl.cpp @@ -58,7 +58,7 @@ static device_addrs_t b100_find(const device_addr_t &hint) std::string b100_fw_image; try{ b100_fw_image = find_image_path( - hint.has_key("fw")? hint["fw"] : "usrp_b100_fw_c2.ihx" + hint.has_key("fw")? hint["fw"] : "usrp_b100_fw.ihx" ); } catch(...){ @@ -129,7 +129,7 @@ static device::sptr b100_make(const device_addr_t &device_addr){ //extract the FPGA path for the B100 std::string b100_fpga_image = find_image_path( - device_addr.has_key("fpga")? device_addr["fpga"] : "usrp_b100_fpga_c3.bin" + device_addr.has_key("fpga")? device_addr["fpga"] : "usrp_b100_fpga.bin" ); //try to match the given device address with something on the USB bus diff --git a/images/Makefile b/images/Makefile index f2ba21bdc..4b0034bf0 100644 --- a/images/Makefile +++ b/images/Makefile @@ -52,13 +52,14 @@ ifeq ($(shell xtclsh -h > /dev/null 2>&1 && echo $$?),0) endif ######################################################################## -# USRP1 firmware +# USRP1 and B100 firmware ######################################################################## ifdef HAS_SDCC _usrp1_fw_dir = $(TOP_FW_DIR)/fx2 _usrp1_fw_ihx = $(BUILT_IMAGES_DIR)/usrp1_fw.ihx -IMAGES_LIST += $(_usrp1_fw_ihx) +_usrp_b100_fw_ihx = $(BUILT_IMAGES_DIR)/usrp_b100_fw.ihx +IMAGES_LIST += $(_usrp1_fw_ihx) $(_usrp_b100_fw_ihx) $(_usrp1_fw_ihx): $(GLOBAL_DEPS) cd $(_usrp1_fw_dir) && rm -rf build @@ -67,6 +68,9 @@ $(_usrp1_fw_ihx): $(GLOBAL_DEPS) cd $(_usrp1_fw_dir)/build && make cp $(_usrp1_fw_dir)/build/usrp1/usrp1_fw.ihx $@ +$(_usrp_b100_fw_ihx): $(_usrp1_fw_ihx) + cp $(_usrp1_fw_dir)/build/b100/b100_fw.ihx $(_usrp_b100_fw_ihx) + endif ######################################################################## @@ -83,6 +87,22 @@ $(_usrp1_fpga_rbf): $(GLOBAL_DEPS) $(_usrp1_fpga_4rx_rbf): $(GLOBAL_DEPS) cp $(_usrp1_fpga_dir)/std_4rx_0tx.rbf $@ +######################################################################## +# USRP-B100 fpga +######################################################################## +ifdef HAS_XTCLSH + +_usrp_b100_fpga_dir = $(TOP_FPGA_DIR)/usrp2/top/B100 +_usrp_b100_fpga_bin = $(BUILT_IMAGES_DIR)/usrp_b100_fpga.bin +IMAGES_LIST += $(_usrp_b100_fpga_bin) + +$(_usrp_b100_fpga_bin): $(GLOBAL_DEPS) + cd $(_usrp_b100_fpga_dir) && make clean + cd $(_usrp_b100_fpga_dir) && make bin + cp $(_usrp_b100_fpga_dir)/build/u1plus.bin $@ + +endif + ######################################################################## # USRP2 and N Series firmware ######################################################################## -- cgit v1.2.3 From 522677b38cf06eea61ceb724d099fc901dc1c4b5 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 14 Jun 2011 19:15:46 -0700 Subject: n2xx: makefile typo fixes --- images/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'images') diff --git a/images/Makefile b/images/Makefile index 4b0034bf0..10e3eb7ba 100644 --- a/images/Makefile +++ b/images/Makefile @@ -201,7 +201,7 @@ IMAGES_LIST += $(_usrp_n200_r4_fpga_bin) $(_usrp_n200_r4_fpga_bin): $(GLOBAL_DEPS) cd $(_usrp_n200_r4_fpga_dir) && make -f Makefile.N200R4 clean cd $(_usrp_n200_r4_fpga_dir) && make -f Makefile.N200R4 bin - cp $(_usrp_n200_r4_fpga_dir)/build-N200r4/u2plus.bin $@ + cp $(_usrp_n200_r4_fpga_dir)/build-N200R4/u2plus.bin $@ endif @@ -217,7 +217,7 @@ IMAGES_LIST += $(_usrp_n210_r4_fpga_bin) $(_usrp_n210_r4_fpga_bin): $(GLOBAL_DEPS) cd $(_usrp_n210_r4_fpga_dir) && make -f Makefile.N210R4 clean cd $(_usrp_n210_r4_fpga_dir) && make -f Makefile.N210R4 bin - cp $(_usrp_n210_r4_fpga_dir)/build-N210r4/u2plus.bin $@ + cp $(_usrp_n210_r4_fpga_dir)/build-N210R4/u2plus.bin $@ endif -- cgit v1.2.3