forked from OpenNuvoton/NUC970_NuWriter_CMD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
103 lines (65 loc) · 3.37 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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
how to install libusb:
ubountu : sudo apt-get install libusb-1.0-dev
debian : sudo apt-get install libusb-1.0-0-dev
compiler :
./configure
make
make install
examples :
show supported ddr model:
./nuwriter -d show
Download:
./nuwriter -m sdram -d NUC972DF62Y.ini -a 0x8000 -w $IMAGE_PATH/970image
Downalod & 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
#==========================================================================================================================
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
#==========================================================================================================================
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
#==========================================================================================================================
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
#==========================================================================================================================