All posts by yuliang

Enable Let’s Encrypt

I am using StartSSL free certificate before, but Chrome and Firefox begin to drop it.
So I change to Let’s Encrypt. It really work!!! Great!!!

And force all request to SSL.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

Create an open source vmnetcfg

VMware VMNetcfg is a useful tool, you can change IP, DNS, NAT quickly. But begin from VMware Player 3.x, it have been removed from then standard installer. You must extract from Workstation version, painful…

In the older days, you can extract from VMware Player installer, and it removed from the installer from VMware Player 5.x… But we still have vmnetui.dll,VMNetUI_ShowStandalone. But now is removed too… We have to extract from Workstation, but it really huge(500MB+).

So I decided to create an open source UI, like vmnetcfg.

Source push to Github: https://github.com/buaabyl/openvmnetcfg

Building microblaze toolchians

Xilinx have a pre-compiled toolchain ship with ISE or Vivado, but I want to build it myself (just for fun).

My system with mingw32-w64 and build-essential

lsb_release -a
# Distributor ID: Ubuntu
# Description: Ubuntu 16.04 LTS
# Release: 16.04
# Codename: xenial
# Linux fish-vm 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1)
# Target: x86_64-linux-gnu

Continue reading Building microblaze toolchians

Build openssl for windows

First, download source code: https://www.openssl.org/source/openssl-1.0.2h.tar.gz

Second, download ActivePerl https://www.activestate.com/activeperl

Third, download mingw64 https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/

And I compile mingw version under xubuntu 16.04 with mingw32 installed.

Have fun:P

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

Read Spartan6LX DNA Serial Number

Spartan6 Contain DNA logic — DNA_PORT, We can let this as random seed:)
This is 57bits numbers.


DNA_PORT DNA_PORT_inst(
  .DOUT(dna_dout),
  .CLK(dna_clk),
  .DIN(1'b0),
  .READ(dna_read),
  .SHIFT(dna_shift)
);

DNA_PORT is act as SPI Slave, capture at raise edge, and first MSB is drive out when trigger READ signal.
Then shift out one by one when SHIFT signal valid. It is better to save bits on negative edge.

Continue reading Read Spartan6LX DNA Serial Number