Giter Club home page Giter Club logo

nuc970_nuwriter_cmd's Introduction

NuWriter command tool for NUC970 family processors

The Nu-writer Command Tool is a linux console application consisting of functions to access storage(eg. DRAM,NAND,SPI,eMMC) in a NUC970 family processors

NuWriter command tool Installation Steps

ubuntu :

sudo apt-get install libusb-1.0-dev

debian :

sudo apt-get install libusb-1.0-0-dev

compiler :

./configure --prefix=$PWD/install
make
make install

NuWriter command tool examples

SDRAM mode examples

show supported ddr model:

./nuwriter -d show

Download:

./nuwriter -m sdram -d NUC972DF62Y.ini -a 0x8000 -w $IMAGE_PATH/970image

Download & run:

./nuwriter -m sdram -d NUC972DF62Y.ini -a 0x8000 -w $IMAGE_PATH/970image -n

Download dtb(device tree):

./nuwriter -m sdram -d NUC972DF62Y.ini -a 0x1E00000 -w $(IMAGE_PATH)/nuc970-evb.dtb
./nuwriter -m sdram -d NUC972DF62Y.ini -a 0x8000 -w $IMAGE_PATH/970image -n -i 0x1E00000

Download & run u-boot via SDRAM (without SD/SPI/NAND boot media):

sudo ./nuwriter -m sdram -d NUC976DK62Y.ini -a 0xE00000 -w $IMAGE_PATH/u-boot.bin -n

NAND mode examples

Burn u-boot-spl.bin to NAND:

./nuwriter -m nand -d NUC972DF62Y.ini -t uboot -a 0x200 -w $IMAGE_PATH/nand_uboot_spl.bin -v

Burn u-boot.bin to NAND:

./nuwriter -m nand -d NUC972DF62Y.ini -t data -a 0x100000 -w $IMAGE_PATH/nand_uboot.bin -v

Burn env.txt to NAND:

./nuwriter -m nand -d NUC972DF62Y.ini -t env -a 0x80000 -w $IMAGE_PATH/nand_env.txt -v

Burn linux to NAND:

./nuwriter -m nand -d NUC972DF62Y.ini -t data -a 0x200000 -w $IMAGE_PATH/970uimage -v

Burn Pack image to NAND:

./nuwriter -m nand -d NUC972DF62Y.ini -t pack -w $IMAGE_PATH/nand_pack.bin

Erase NAND (chip erase):

./nuwriter -m nand -d NUC972DF62Y.ini -e 0xffffffff

Erase NAND 10th block to 30th block:

./nuwriter -m nand -d NUC972DF62Y.ini -a 10 -e 20

Read NAND 10th block to 30th block:

./nuwriter -m nand -d NUC972DF62Y.ini -a 10 -e 1 -r $IMAGE_PATH/test.bin

SPI mode examples

Burn u-boot.bin to SPI:

./nuwriter -m spi -d NUC972DF62Y.ini -t uboot -a 0xE00000 -w $IMAGE_PATH/spi_uboot.bin -v

Burn env.txt to SPI:

./nuwriter -m spi -d NUC972DF62Y.ini -t env -a 0x80000 -w $IMAGE_PATH/spi_env.txt -v

Burn linux to SPI:

./nuwriter -m spi -d NUC972DF62Y.ini -t data -a 0x200000 -w $IMAGE_PATH/970uimage -v

Burn Pack image to SPI:

./nuwriter -m spi -d NUC972DF62Y.ini -t pack -w $IMAGE_PATH/spi_pack.bin

Erase SPI (chip erase):

./nuwriter -m spi -d NUC972DF62Y.ini -e 0xffffffff

Erase SPI 10th block to 30th block:

./nuwriter -m spi -d NUC972DF62Y.ini -a 10 -e 20

Read SPI 10th block to 30th block:

./nuwriter -m spi -d NUC972DF62Y.ini -a 10 -e 20 -r $IMAGE_PATH/test.bin

eMMC mode examples

Burn u-boot.bin to eMMC:

./nuwriter -m emmc -d NUC972DF62Y.ini -t uboot -a 0xE00000 -w $IMAGE_PATH/emmc_uboot.bin -v

Burn env.txt to eMMC:

./nuwriter -m emmc -d NUC972DF62Y.ini -t env -a 0x80000 -w $IMAGE_PATH/emmc_env.txt -v

Burn linux to eMMC:

./nuwriter -m emmc -d NUC972DF62Y.ini -t data -a 0x200000 -w $IMAGE_PATH/970uimage -v

Burn Pack image to eMMC

./nuwriter -m emmc -d NUC972DF62Y.ini -t pack -w $IMAGE_PATH/emmc_pack.bin

Erase eMMC 10th block to 30th block:

./nuwriter -m emmc -d NUC972DF62Y.ini -a 10 -e 20

Read eMMC 10th block to 30th block:

./nuwriter -m emmc -d NUC972DF62Y.ini -a 10 -e 1 -r $IMAGE_PATH/test.bin

Copyright (C) 2018 Nuvoton Technology Corp. All rights reserved

nuc970_nuwriter_cmd's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.