3,260
edits
Changes
→Lauterbach ICD Naon booting
==== Lauterbach ICD Naon booting ====
* configure T32 correctly
* establish a connection with the target (which should already be powered on)
At this point the user should be able to run commands from U-Boot serial console.
<pre>; T32 script to download u-boot 1st stage into the internal SRAM break.delete /all SYStem.RESetSYStem.CPU DM8148SYStem.JtagClock 10MhzSYStem.Mode Attach ; we assume that there's bootrom running. Stop it to allow binary load break data.load.binary MLO 0x40300000 R.S PC 0x40300000 go enddo</pre> As a more advance example, [[File:naon-u-boot-sram-2nd.cmm|This]] the next script, after loading the 1st stage and have it run until RAM initialization, also load 2nd stage (at 0x81000000). This is faster that loading the 2nd stage via serial protocol. After executing the script, the user should just type <code>go 81000000</code> from U-Boot 1st stage prompt, to run the 2nd stage:
<pre class="board-terminal">
Hit any key to stop autoboot: 0
NAON#
</pre>
Here it is:
<pre>
; T32 script to download u-boot 1st stage into the internal SRAM and,
; after the 1st stage initilize it, it loads also the 2nd stage in DRAM
break.delete /all
SYStem.RESet
SYStem.CPU DM8148
SYStem.JtagClock 10Mhz
SYStem.Mode Attach
; we assume that there's bootrom running. Stop it to allow binary load
break
data.load.binary MLO 0x40300000
R.S PC 0x40300000
go
;wait a bit, so U-Boot starts and initialize everything
wait 2s
break
data.load.binary ../u-boot/u-boot.git/u-boot.bin 0x81000000
go
enddo
</pre>