Burn image etc. into the development board through Lauterbach

**

One: Burning of Lauterbach

**

Open the software:

1: file -> run script input script

RESet
SYStem.CPU  R8AXXXX
SYStem.Option DisMode AARCHXX 
;SYStem.JtagClock CTCK 30MHz
CORE.ASSIGN 1
SYStem.Up
;SYStem.Attach

2: B:: LIST (command)
3: go, wait for 2S and then break
4: Command: Data.LOAD.BINARY "C:\Users \Image" 0x48080000
5: Command: Data.LOAD.BINARY "C:\Users \ Image .dtb” 0x48000000
(These two commands are to burn Image and Dtb files to 0x48080000 and 0x48000000 in the RAM address)
6: Select go again in the LIST

You can also burn the image directly into EMMC through Lauterbach, change the content of its corresponding script: XXXh3-emmc, add the following content:
FLASHFILE.LOAD F:\share\Image 0x16
FLASHFILE.LOAD F:\share\xxx.dtb 0x7856
where 0x16 and 0x7856 are the address of EMMC, the interval between 0x16 and 0x7856 is larger than the size of Image, and its unit is kb.

It can also be downloaded to RAM via TFTP:
tftp 0x500000000 ramdisk.gz
0x500000000 is the RAM address, ramdisk.gz is the downloaded file, which is located in the tftp folder.

Two: Copy the Image in RAM to EMMC.

mmc dev 1 
mmc write 0x500000000 0x16 0xcbce 

0x500000000 means to read data from this address in RAM and put it in EMMC, 0x16 is the starting address, and the size is 0xcbce (0xcbce is converted to decimal, and then multiplied by 512 (the block size of the EMMC of this development board is 512kb) , Which is the size of ramdisk.gz, the unit is kb)

mmc write 0x48080000 0xcbe3 51df
视具体内核大小而定,ll后用byte除以512再转换成16进制)
mmc write 0x48000000 fd1b(0xcbe3+51df) 7e (dtb大小,通image大小方法计算)

Three: Change the startup parameters

boot1=mmc dev 1;mmc read 0x500000000 0x6900 0xB000
boot2=mmc read 0x48000000 0x0 7b; mmc read 0x48080000 0x7c 6838
bootargs=initrd=0x500000000,0x15648000 
root=/dev/ram rw ip=192.168.1.200 console=ttySC0 video=HDMI-A-2:1024x768
bootcmd=run boot1;run boot2;booti 0x48080000 - 0x48000000

Guess you like

Origin blog.csdn.net/baidu_38410526/article/details/78774057