Thanks a lot Jonathan, we will try this. Really appreciate your help.
Best,
Jawad Haj-Yahya
On Thu, Dec 21, 2017 at 3:46 PM, Dr Jonathan Kimmitt <jrrk2(a)cam.ac.uk>
wrote:
This Makefile assumes your nexys4ddr is directly or indirectly
connected
to eth0 (a physical Ethernet port, 100baseT on your build box in the
192.168.0.* region. There are a number of ways to satisfy this requirement
such as purchasing a second Ethernet port or using a home hub and/or
modifying the Ethernet device name in the Makefile. Start by running:
/sbin/ifconfig -a
This build system was tested with host=192.168.0.53, target=192.168.0.51
These settings can be changed but the easy option is the second port or a
laptop with Ethernet and Wifi. The home hub option allows routing to the
outside world which is very useful.
In this preview the IP addressing is fixed for booting over Ethernet and
NFS root. The alternative using SD card for root can use DHCP for
networking, but your IT manager might not be too happy with an FPGA board
plugged directly into the VLAN.
Sent from my iPhone
On 21 Dec 2017, at 02:33, Jawad Haj-Yahya <jawadhy(a)gmail.com> wrote:
Hi Jonathan,
After fixing the licence issue, the chip_top.bit file was succesfully
created but make etherboot step gives some error. we still see the
following error:
ubuntugs01:~/lowrisc-chip-ethernet-v0.5/fpga/board/nexys4_ddr$ make
etherboot
../../common/script/recvRawEth -r eth0 boot0001.bin
File = boot0001.bin, len = 5272272, chunks = 5149
MD5 sum = b35cd8c494e423962b3475c32dfd8d1c
SO_BINDTODEVICE: No such device
Makefile:218: recipe for target 'etherboot' failed
make: *** [etherboot] Error 1
Any idea why this failure?
Best,
Jawad Haj-Yahya
On Wed, Dec 20, 2017 at 5:51 PM, Jawad Haj-Yahya <jawadhy(a)gmail.com>
wrote:
> Hi Jonathan,
>
> Thanks a lot for the promoted answer, we have fixed the license issue and
> we are retrying, will update soon.
>
> Thanks,
> Jawad
>
> On Wed, Dec 20, 2017, 4:44 PM Dr Jonathan Kimmitt <jrrk2(a)cam.ac.uk>
> wrote:
>
>> Dear Jawad,
>>
>> It looks like Vivado is failing to build the standard IP. The most
>> likely reason is that your workstation lacks the license for webpack which
>> is needed. You need to follow the procedure on the Xilinx website to
>> install a license. Alternatively if you work for a company or educational
>> institution it may have a site license which you can point to with an
>> environment variable. To get detailed information about the errors, run
>> 'make vivado' in the same directory that you ran 'make bitstream'
and the
>> GUI will open. You will see a window with a detailed list of errors. If
>> license error is mentioned you can launch the license manager from the help
>> menu and see your license status. If there is still doubt try running
>> Vivado with one of the example designs that comes with it that is known to
>> work. Problems with Vivado are not really covered by our website because
>> there is comprehensive information on Xilinx's own website.
>>
>> Regards,
>>
>> Jonathan
>>
>> On 20/12/17 03:31, Jawad Haj-Yahya wrote:
>>
>> Hi Jonathan,
>>
>> Thanks a lot for the detailed mail. We have tried the instructions and
>> we are facing the following failure in the compilation, could you please
>> take a look:
>>
>> ubuntugs01:~/ethernet/lowrisc-chip/fpga/board/nexys4_ddr$ make bitstream
>> vivado -mode batch -source ../../common/script/make_bitstream.tcl
>> -tclargs lowrisc-chip-imp
>>
>> ****** Vivado v2015.4 (64-bit)
>> **** SW Build 1412921 on Wed Nov 18 09:44:32 MST 2015
>> **** IP Build 1412160 on Tue Nov 17 13:47:24 MST 2015
>> ** Copyright 1986-2015 Xilinx, Inc. All Rights Reserved.
>>
>> source ../../common/script/make_bitstream.tcl
>> # set origin_dir "."
>> # set project_name [lindex $argv 0]
>> # set orig_proj_dir [file normalize $origin_dir/$project_name]
>> # open_project $orig_proj_dir/$project_name.xpr
>> Scanning sources...
>> Finished scanning sources
>> INFO: [IP_Flow 19-234] Refreshing IP repositories
>> INFO: [IP_Flow 19-1704] No user IP repositories specified
>> INFO: [IP_Flow 19-2313] Loaded Vivado IP repository
>> '/home/ssarkar/Xilinx/Vivado/2015.4/data/ip'.
>> open_project: Time (s): cpu = 00:00:04 ; elapsed = 00:00:06 . Memory
>> (MB): peak = 993.051 ; gain = 83.547 ; free physical = 162 ; free virtual =
>> 117689
>> # set_msg_config -id "\[IP_Flow 19-3664\]" -suppress
>> WARNING: [Common 17-1361] You have specified a new message control rule
>> that is equivalent to an existing rule with attributes ' -ruleid {8} -id
>> {[IP_Flow 19-3664]} -suppress '. The existing rule will be replaced.
>> # reset_run synth_1
>> # reset_run impl_1
>> # launch_runs synth_1
>> ERROR: [Common 17-70] Application Exception: Failed to launch run
>> 'synth_1' due to failures in the following run(s):
>> axi_uart16550_0_synth_1
>> axi_bram_ctrl_1_synth_1
>> axi_bram_ctrl_0_synth_1
>> axi_bram_ctrl_2_synth_1
>> mig_7series_0_synth_1
>> axi_clock_converter_0_synth_1
>> clk_wiz_0_synth_1
>> clk_wiz_1_synth_1
>> These failed run(s) need to be reset prior to launching 'synth_1' again.
>>
>> INFO: [Common 17-206] Exiting Vivado at Wed Dec 20 11:19:40 2017...
>> Makefile:147: recipe for target
'lowrisc-chip-imp/lowrisc-chip-imp.runs/impl_1/chip_top.bit'
>> failed
>> make: *** [lowrisc-chip-imp/lowrisc-chip-imp.runs/impl_1/chip_top.bit]
>> Error 1
>>
>> Best,
>> Jawad Haj-Yahya
>>
>> On Tue, Dec 19, 2017 at 8:27 PM, Dr Jonathan Kimmitt <jrrk2(a)cam.ac.uk>
>> wrote:
>>
>>> Dear Jawad,
>>>
>>> Please try the following sequence of commands and let me know where it
>>> fails ...
>>>
>>> (I am using Ubuntu 16.04.3 LTS, you may need to adjust appropriately)
>>>
>>> (I am using HWaddr EE:E1:E2:E3:E4:E5 and inet addr:192.168.0.51, your
>>> net setup might be different)
>>>
>>> sudo apt-get install autoconf automake autotools-dev curl libmpc-dev
>>> libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf
>>> libncurses5-dev libusb-1.0-0 libboost-dev swig git libtool libreadline-dev
>>> libelf-dev python-dev microcom
>>> source /opt/Xilinx/Vivado/2015.4/settings64.sh # or wherever you
>>> installed Vivado
>>> unset LD_LIBRARY_PATH
>>> git clone -b ethernet-v0.5 --recursive
https://github.com/lowrisc/low
>>> risc-chip.git lowrisc-chip-ethernet-v0.5
>>> cd lowrisc-chip-ethernet-v0.5
>>> source set_env.sh
>>> sh $TOP/riscv-tools/fetch_and_patch_linux.sh
>>> cd $TOP/riscv-tools/
>>> ./build.sh
>>> cd riscv-gnu-toolchain/build
>>> ../configure --prefix=$RISCV
>>> make -j$(nproc) linux
>>> cd $TOP/fpga/board/nexys4_ddr
>>> make bitstream
>>> make cfgmem
>>> make program-cfgmem
>>>
>>> (set nexys4-ddr to QSPI mode and reconfigure, start microcom -p
>>> /dev/ttyUSB1 in another window)
>>>
>>> make etherboot
>>>
>>>
>>> On 19/12/17 08:02, Jawad Haj-Yahya wrote:
>>>
>>> Hi Jonathan,
>>>
>>> Do you have link to the branch that you mentioned: there is an
>>> ethernet-v0.5 branch with a preliminary version of this functionality
>>> ...
>>>
>>> One more question please regarding the following IP :
>>>
https://github.com/pkerling/ethernet_mac , it's implemented in VHDL, I
>>> heard that there might be issue to include VHDL code with lowrisc 0.4, how
>>> this was handled?
>>>
>>> You are right VHDL files cannot be used with Verilator. I am only using
>>> one file from pkerling which I partially manually translated to Verilog
>>>
>>>
>>> Best,
>>> Jawad Haj-Yahya
>>>
>>> On Mon, Dec 18, 2017 at 2:45 PM, Dr Jonathan Kimmitt <jrrk2(a)cam.ac.uk>
>>> wrote:
>>>
>>>> Hi Jawad,
>>>> This is something several people have been asking for and indeed
>>>> there is an ethernet-v0.5 branch with a preliminary version of this
>>>> functionality. There is no documentation yet but you can consult the
>>>> archives of this mailing list for preliminary instructions. It won’t
affect
>>>> you I don’t think but the release and documentation is delayed until
some
>>>> issues with license compatibility are resolved. By the way there are
some
>>>> generic instructions on our website as to how to add peripherals which
you
>>>> may care to review for learning purposes.
>>>>
>>>> Regards,
>>>> Jonathan
>>>>
>>>> Sent from my iPhone
>>>>
>>>> > On 18 Dec 2017, at 02:36, Jawad Haj-Yahya <jawadhy(a)gmail.com>
wrote:
>>>> >
>>>> > Hello,
>>>> >
>>>> > Could you please help with instructions on how to add support for
>>>> Ethernet
>>>> > port to the latest lowrisc (0.4)?
>>>> >
>>>> >
>>>> > Best,
>>>> > Jawad Haj-Yahya
>>>>
>>>>
>>>
>>>
>>
>> --
>
> Best,
> Jawad Haj-Yahya
>