Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Linux loader #187

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add Linux loader #187

wants to merge 3 commits into from

Commits on Jun 22, 2020

  1. fusesoc: Add XC750T variant

    Signed-off-by: Joel Stanley <[email protected]>
    shenki committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    16c11c0 View commit details
    Browse the repository at this point in the history
  2. Add libc

    This is a copy of litedram/gen-src/sdram_init/libc. We should work out
    how to share the sources.
    
    Signed-off-by: Joel Stanley <[email protected]>
    shenki committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    5d8f2e2 View commit details
    Browse the repository at this point in the history
  3. Add Linux loader

    This privdes just enough firmware to load Linux. The loader is linked to
    run from the aliased BRAM address. This means you should configure your
    SoC with BRAM (ie, don't pass --no_bram).
    
    It can load a raw kernel (vmlinux.bin) or a wrapper that embeds the
    device tree (dtbImage.microwatt).
    
    The printf comes from https://github.com/mpredfearn/simple-printf
    
     1. Build Linux for microwatt
      objcopy -O binary microwatt/vmlinux vmlinux.bin
    
     2. Build a dtb
    
     3. Set MW_DEBUG to point to a copy of mw_debug and type `make load` to
        load the loader into BRAM.
    
     4. Press 'RESET'
    
     5. Follow the instructions:
    
    	Microwatt Loader (Jun 22 2020 16:44:59
    
    	Load binaries into SDRAM and select option to start:
    
    	vmlinux.bin and dtb:
    	 mw_debug -b jtag stop load vmlinux.bin load microwatt.dtb 0x1000000 start
    	 press 'l' to start'
    
    	dtbImage.microwatt:
    	 mw_debug -b jtag stop load dtbImage.microwatt 0x500000 start
    	 press 'w' to start'
    
    	Flash:
    	 To boot a binary from flash, write it to 0000000000300000
    	 press 'f' to start'
    
    If you want to test other software, such as MicroPython, you can also
    load it to the start of SDRAM and the loader will jump to it with 'l'.
    
    Signed-off-by: Joel Stanley <[email protected]>
    shenki committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    4e3cf62 View commit details
    Browse the repository at this point in the history