Skip to content

A short memo for how to install UCB Chisel on Windows 10.

Notifications You must be signed in to change notification settings

wats0n/install-chisel-win10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Install UCB CHISEL on Windows 10 in easy way

Setup Environment

  • Operation System: Windows 10
  • Required Windows Feature: Bash on Ubuntu on Windows
    1. Ubuntu 14.04 LTS (Windows Anniversary Update, 2016)
    1. Ubuntu 16.04 LTS (Windows Creator Update, 2017, Recommendation)

Comment(Version):
For Start Menu Bash ICON and better bash console interface, I'm highly recommend update Windows to Creator Update.

startMenu

Comment(Quota):
Please, preserve lots of free space on C disk for Ubuntu installation and setup packages. Because no options for Ubuntu installer (lxrun.exe) to change installation directory.

Install Steps

  1. Install Bash on Ubuntu on Windows 14.04_RefLink 16.04_RefLink
    • Manual update Ubuntu by following commands in order:
    #Require password if not login as root 
    sudo apt-get update #update package information
    sudo apt-get upgrade #update packages
    sudo apt-get dist-upgrade #update ubuntu system
    • User Home Folder path in Windows and Ubuntu RefLink
    • File System for Windows Subsystem for Linux RefLink
    • [Ubuntu 14.04 LTS] Remove sudo: unable to resovle host message RefLink
    • [Ubuntu 14.04 LTS] Example: Edit /etc/hosts on my computer

    localhost

  2. Setup Initialization Script for login directory
    • Default is Windows system32 directory (where we invoke bash.exe), please don't do sudo rm -rf in system32 directory.
    • Add cd ~/ or your project directory into ~/.bashrc at last line.
  3. Following Chisel (Ubuntu-like) Linux Installation RefLink
    • In this Example, working directory is D:\CompArch\Projects\, transformed identical path in Ubuntu bash is /mnt/d/CompArch/Projects/
    • If you want to save bash commands into bash script, please change line endings in editor.

    script

    • Install Verilator is normally complete.

    verilator

  4. Run the Chisel tutorial RefLink
    • Build tutorial by Scala Build Tool

    init

    • After long time to build Scala environment.

    finish

  5. Happy Hardware Hacking!

Issues

  1. [Ubuntu 14.04 LTS] Java version Problem
    • If Ubuntu has installed Java9(OpenJDK-9), the CHISEL resource would fetch failure on .jar resources.
    • Solution: Install OpenJDK-8 on Ubuntu 14.04LTS RefLink
    • Please check the java/javac is OpenJDK-8 for Chisel library. By following commands:

      sudo update-alternatives --config java sudo update-alternatives --config javac

    finish

  2. [Ubuntu 14.04 LTS] Symbolic Link has recursive list file problem in current bash on windows, please change to native support directory /mnt/(logic disk in Windows Explorer)/. [Ubuntu 14.04 LTS]

About

A short memo for how to install UCB Chisel on Windows 10.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published