http://wiki.myzr.com.cn/index.php?title=MYZR-LS1012A-EK200_Install_and_configure_the_flashing_tool&feed=atom&action=history
MYZR-LS1012A-EK200 Install and configure the flashing tool - 版本历史
2024-03-28T14:35:25Z
本wiki的该页面的版本历史
MediaWiki 1.27.1
http://wiki.myzr.com.cn/index.php?title=MYZR-LS1012A-EK200_Install_and_configure_the_flashing_tool&diff=3697&oldid=prev
Admin:Admin移动页面MY-LS1012A-EK200 Install and configure the flashing tool至MYZR-LS1012A-EK200 Install and configure the flashing tool,不留重定向
2020-10-22T08:41:06Z
<p>Admin移动页面<a href="/index.php?title=MY-LS1012A-EK200_Install_and_configure_the_flashing_tool&action=edit&redlink=1" class="new" title="MY-LS1012A-EK200 Install and configure the flashing tool(页面不存在)">MY-LS1012A-EK200 Install and configure the flashing tool</a>至<a href="/index.php?title=MYZR-LS1012A-EK200_Install_and_configure_the_flashing_tool" title="MYZR-LS1012A-EK200 Install and configure the flashing tool">MYZR-LS1012A-EK200 Install and configure the flashing tool</a>,不留重定向</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='zh-CN'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">←上一版本</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">2020年10月22日 (四) 08:41的版本</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='zh-CN'><div class="mw-diff-empty">(没有差异)</div>
</td></tr></table>
Admin
http://wiki.myzr.com.cn/index.php?title=MYZR-LS1012A-EK200_Install_and_configure_the_flashing_tool&diff=3116&oldid=prev
Admin:创建页面,内容为“### Install and configure the flashing tool -------------------------------------------------- ------------------------------ #### Install the burning tool Open th...”
2020-02-26T02:14:31Z
<p>创建页面,内容为“### Install and configure the flashing tool -------------------------------------------------- ------------------------------ #### Install the burning tool Open th...”</p>
<p><b>新页面</b></p><div>### Install and configure the flashing tool<br />
<br />
-------------------------------------------------- ------------------------------<br />
<br />
#### Install the burning tool<br />
Open the tool directory, double-click ** CW_ARMv8_v2019.01_b190130_Win_Offline.exe ** to install, the installation path and configuration default selection.<br />
#### Copy the rcw and uboot images to the burning tool directory<br />
Copy rcw_800.bin.swapped and ls1012a-ek200-uboot.bin to the directory :C:\Freescale\CW4NET_v2019.01\CW_ARMv8\ARMv8\gdb\bin。 <br />
#### Configure the burning tool script file<br />
1. Open file:C:\Freescale\CW4NET_v2019.01\CW_ARMv8\ARMv8\gdb_extensions\flash\cwflash.py <br />
2.Modify the contents of the file: <br />
。。。 <br />
PROBE_CONNECTION = "cmsisdap" <br />
。。。 <br />
FLASH_TYPE = "qspi" <br />
。。。 <br />
SOC_NAME = "LS1012A" <br />
。。。 <br />
JTAG_SPEED = 6000 <br />
。。。 <br />
<br />
<br/><br />
### Development board burns RCW and Uboot images<br />
<br />
-------------------------------------------------- ------------------------------<br />
##### Put the development board in download mode<br />
Find the two-digit DIP switch indicated by ** BOOTMODE ** or ** BOOT SWITCH ** on the development board, 1 to ON, 2 to OFF.<br />
##### Connect development board and computer<br />
1. Turn on the power, plug in the K20-JTAG module to the development board, and connect the other end to the computer via a MINI USB cable.<br />
2. Double-click ** mbedWinSerial_16466.exe ** in the tool directory to install the driver.<br />
3. After installation, open the device manager of the computer to see the corresponding ports as shown below. <br/> <br />
[[文件:LS1012-com.png]] <br />
##### Burn RCW and Uboot images to the development board<br />
1. Double-click:“C:\Freescale\CW4NET_v2019.01\CW_ARMv8\ARMv8\gdb\bin\aarch64-fsl-gdb.bat”。 <br />
2. Pop up command window, enter command:**source ../../gdb_extensions/flash/cwflash.py** <br />
[[文件:LS1012-win.jpg]] <br />
[[文件:LS1012-win2.jpg]] <br />
3. Enter the following commands in order: <br />
**fl_unprotect 0x0 0x4000000** <br />
**fl_write 0x0 rcw_800.bin.swapped --erase --force** <br />
**fl_write 0x100000 ls1012a-ek200-uboot.bin --erase** <br />
**quit** <br />
[[文件:LS1012-win3.jpg]] <br />
4.After programming, turn off the power to the development board, unplug the USB cable, and set the dialing mode to startup mode. 1 to OFF, 2 to ON. <br />
<br />
<br/><br />
### Development board burning ppa, uImage, dtb and file system<br />
<br />
-------------------------------------------------- ------------------------------<br />
##### tftpd software download and use<br />
1. Download tftpd64 software online.<br />
2. Open the software and hit Browse to select the directory where the image file is located<br />
##### Burn ppa, uImage and dtb image<br />
1. Connect the computer with an Internet cable to connect to the network port of the development board.<br />
2. Restart the development board and enter uboot command line.<br />
3. Enter the command: <br />
<pre><br />
=====> Input:<br />
setenv ipaddr 192.168.137.9 <br />
setenv serverip 192.168.137.99 <br />
setenv ethaddr 00:00:00:00:00:03 <br />
ping 192.168.137.99 <br />
<br />
=====> Output: <br />
=> setenv ipaddr 192.168.137.9<br />
=> setenv serverip 192.168.137.99<br />
=> setenv ethaddr 00:00:00:00:00:03<br />
=> ping 192.168.137.99 <br />
Speed detected 3e8<br />
Using pfe_eth0 device<br />
host 192.168.137.99 is alive<br />
</pre><br />
4. After ping, enter the command: <br />
<pre><br />
=====> Input:<br />
run update_ppa <br />
<br />
=====> Output: <br />
Speed detected 3e8<br />
Using pfe_eth0 device<br />
TFTP from server 192.168.137.99; our IP address is 192.168.137.9<br />
Filename 'ppa.itb'.<br />
Load address: 0x96000000<br />
Loading: #######<br />
5.3 MiB/s<br />
done<br />
Bytes transferred = 89027 (15bc3 hex)<br />
SF: Detected S25FS512S with page size 256 Bytes, erase size 256 KiB, total 64 MiB<br />
SF: 262144 bytes @ 0x500000 Erased: OK<br />
device 0 offset 0x500000, size 0x15bc3<br />
SF: 89027 bytes @ 0x500000 Written: OK<br />
</pre><br />
<br />
<pre><br />
=====> Input:<br />
run update_image <br />
<br />
=====> Output: <br />
Speed detected 3e8<br />
Using pfe_eth0 device<br />
TFTP from server 192.168.137.99; our IP address is 192.168.137.9<br />
Filename 'uImage-ek200'.<br />
Load address: 0x96000000<br />
Loading: #################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#################################################################<br />
#############################################<br />
6.2 MiB/s<br />
done<br />
Bytes transferred = 14015040 (d5da40 hex)<br />
SF: Detected S25FS512S with page size 256 Bytes, erase size 256 KiB, total 64 MiB<br />
</pre><br />
<br />
<pre><br />
=====> Input:<br />
run update_dtb <br />
<br />
=====> Output: <br />
Speed detected 3e8<br />
Using pfe_eth0 device<br />
TFTP from server 192.168.137.99; our IP address is 192.168.137.9<br />
Filename 'ls1012a-ek200.dtb'.<br />
Load address: 0x96000000<br />
Loading: #<br />
2.7 MiB/s<br />
done<br />
Bytes transferred = 11242 (2bea hex)<br />
SF: Detected S25FS512S with page size 256 Bytes, erase size 256 KiB, total 64 MiB<br />
SF: 262144 bytes @ 0x2700000 Erased: OK<br />
device 0 offset 0x2700000, size 0x2bea<br />
SF: 11242 bytes @ 0x2700000 Written: OK<br />
</pre><br />
<br />
<br />
##### Update file systems and modules<br />
1. Load ramdisk and start the system<br />
<pre><br />
=====> Input:<br />
run load_itb <br />
<br />
=====> Output: <br />
Speed detected 3e8<br />
Using pfe_eth0 device<br />
TFTP from server 192.168.137.99; our IP address is 192.168.137.9<br />
Filename 'ls1012a-ek200.itb'.<br />
Load address: 0x96000000<br />
Loading: #################################################################<br />
</pre><br />
2. After starting the development board, enter the command:<br />
<pre><br />
=====> Input:<br />
root<br />
umount /dev/mmcblk0<br />
mkfs.ext3 /dev/mmcblk0<br />
<br />
<br />
=====> Output: <br />
mke2fs 1.42.9 (28-Dec-2013)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
Stride=0 blocks, Stripe width=0 blocks<br />
239040 inodes, 954368 blocks<br />
47718 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=977272832<br />
30 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
7968 inodes per group<br />
Superblock backups stored on blocks: <br />
32768, 98304, 163840, 229376, 294912, 819200, 884736<br />
<br />
Allocating group tables: done <br />
Writing inode tables: done <br />
Creating journal (16384 blocks): done<br />
Writing superblocks and filesystem accounting information: done <br />
</pre><br />
3.Mount <br />
<pre><br />
=====> Input:<br />
mount /dev/mmcblk0 /mnt/ <br />
cd /mnt/<br />
<br />
</pre> <br />
4.tftp Transfer files<br />
<pre><br />
=====> Input:<br />
ifconfig eth0 192.168.137.9<br />
tftp -gr rootfs.tar.gz 192.168.137.99<br />
<br />
=====> Output: <br />
rootfs.tar.gz 100% |****************************************************************| 41271k 0:00:00 ETA<br />
</pre> <br />
<pre><br />
=====> Input:<br />
tftp -gr modules.tar 192.168.137.99<br />
<br />
=====> Output: <br />
modules.tar 100% |****************************************************************| 15240k 0:00:00 ETA<br />
</pre> <br />
5. Extracting file systems and modules <br />
<pre><br />
=====> Input:<br />
tar zxf rootfs.tar.gz -C /mnt/ <br />
tar xf modules.tar -C /mnt/<br />
rm rootfs.tar.gz modules.tar<br />
<br />
</pre> <br />
4. After the extraction is complete, enter the command to restart the development board: <br />
<pre><br />
=====> Input:<br />
reboot<br />
<br />
</pre></div>
Admin