- Jan 20, 2016
-
-
Alessandro Rubini authored
Use an environment variable to check for spec byte order, and fix the buffer before using it. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
It's still suboptimal, we need to autodetect with a in-binary helper, but by now I'm analyzing old logs so I'd better not change wrpc itself. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This fixes the problem with data sizes when building on a 64-bit host. Now the dump of ppi makes sense, besides endianness. Please note how this requires a cross-compile environment for i386 when you build on x86-64. Later on this requirement is lifted. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The tool is meant to print internal data structures of the wrpc, by running either on a dump file or a live system. The code is an edited copy of wr-switch-sw/userspace/tools/wrs_dump_shmem.c, so the data-dumping mechanism is from there. bugs at this point: - all endianness stuff is bad (in wrs it was local, here we cross-dump) - data sizes are wrong (see next commit) - we miss checks for consistency - we can't open /dev/mem (for spec for example) or a elf file - docs are missing too Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 15, 2016
-
-
Wesley W. Terpstra authored
-
- Oct 13, 2015
-
-
Alessandro Rubini authored
This just adds "void" in prototypes. I did the pfilter on a different branch, and lost these changes of commit be2bd234 wyhile moving pfilter generation to tools/ Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This changes pfilter-builder.c so it really build in user space, but removing register setting and creating output files instead. Running this program creates 3 files, that correspond to the previous three #ifdef conditions. The files are: rules-plain.bin this is used for the no-etherbone configuration rules-ebone.bin etherbone setup rules-e+nic.bin etherbon plus 7solution's wr-nic packet filter The files begin with a magix 0x11223344 word, that allows the soft-core to fix any endianness difference (so no hairy mishaps are expected when switching to a different soft-core). Then the 40-bit command words are saved as 64-bit vaules, LSB-first. The output file is thus an odd number of words and no 64-bit alignment is required. The first three instructions of the packet filter are used to compare the destination mac address of the frame. We now use a fake mac address, and the LM32 code will change it while programming the binary. Please look at this commit while ignoring white-space, as it changes indentation while turning #ifdef/#else into if()/else . Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We are going to have a user-space tool to build the packet filter images. The first step is copying dev/ep_pfilter.c, so we can "git diff" the changes. At this point the file is not even built. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
-
- Sep 28, 2015
-
-
Grzegorz Daniluk authored
-
- Sep 21, 2015
-
-
Grzegorz Daniluk authored
-
- Sep 18, 2015
-
-
Grzegorz Daniluk authored
Because the golden bitstream for SPEC has syscon at offset 0x0.
-
- Aug 28, 2015
-
-
Cesar Prados authored
-
- Jul 24, 2015
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jun 30, 2015
-
-
Grzegorz Daniluk authored
-
- Jun 03, 2015
-
-
Wesley W. Terpstra authored
This is useful for example when using a secondary onewire controller.
-
- Feb 06, 2015
-
-
Wesley W. Terpstra authored
This reverts commit 7e2ee9b4. You can't put a bitstream into the middle of a tiny EEPROM. If you intend to build an sdbfs for a switch, make a new image.
-
- Jan 09, 2015
-
-
Grzegorz Daniluk authored
-
- Jan 08, 2015
-
-
Grzegorz Daniluk authored
-
- Jan 06, 2015
-
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
The optimization is the removal of the retval variable in bbspi_transfer() and using the val parameter as a "shift register" that is returned at the end of the function. Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
How-to guide for the tool (together with flash-write tool) can be found in sdbfs.README. Signed-off-by:
Theodor Stana <t.stana@cern.ch> SQUASH remove flash-read binary: 598d cdf68 Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
The issue was due to a bug in gpio_in, which was doing an AND with the value of GPIO_SPI_MISO, which was set to the pin offset, instead of what it was set in the include/syscon.h file. When I copied the gpio functions from include/syscon.h, I overlooked the fact that the pins for the gpio functions there are set using wbgen macros that actually perform the shifting, and I simply copied the functions and redefined the GPIO_SPI_MISO macros as offsets. The issue has been fixed by redefining the gpio_in function as an AND with the value (1 << PIN_NR). This fixes everything. Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
For this to work, I also had to add (in flash.c) setting the entry-point to the right value (the one where the SDB magic is detected). The rest of the commit files are just toying around for testing purposes. Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
There was somewhat of a bug in the spec_write_flash function of flash-write. The memcpy function was not functioning 'as expected', so I changed the fixed-size buffer for a pointer and malloc-ed it to the size. This seems to fix the bug. The issue about reading the flash status register has yet to be fixed. Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
The flash-write tool is operational. The call to read status register from flash-host is not working yet, and that is to be solved. In the meantime, there are sleep functions inserted where we're supposed to poll the status register. Signed-off-by:
Theodor Stana <t.stana@cern.ch>
-
- Nov 18, 2014
-
-
The global pointer is used by some special assembly instructions that we are not using (i.e., the compiler is not generating them for us, because we don't use PIC or other "strange" stuff. So, we'd better remove an assignement in the linker script that makes little sense (it must be a typo of some kind, in the dark ages of this code base). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Mar 14, 2014
-
-
Wesley W. Terpstra authored
-
- Mar 07, 2014
-
-
Tomasz Wlostowski authored
tools/trivial-init: a small footprint, delay-free WRPC firmware for VHDL/Verilog simulations (initial commit)
-
- Nov 14, 2013
-
-
Grzegorz Daniluk authored
-
-