First version
[3rdparty/ote_partner/tlk.git] / scripts / lk.cmm
1
2 global &KERNEL_SRC
3 global &KERNEL_ELF
4
5 &KERNEL_SRC="../"
6 &KERNEL_ELF="../build-aboot-surf8k/lk"
7
8 sys.down
9
10 do config_scorpion.cmm
11
12 sys.mode attach
13
14 if state.run() 
15 (
16   break
17 )
18
19 data.load.ELF &KERNEL_ELF /RELPATH /PATH &KERNEL_SRC
20
21 register.set pc 0
22 register.set r0 0
23 ;register.set r1 &MACHINE_ID
24 ;register.set r2 &TAGS_ADDR
25
26 ;tronchip.set dabort off
27 ;tronchip.set pabort off
28
29 term.reset
30 term.size 70 100
31 term.scroll.on
32 term
33
34 break.select program onchip
35 break.delete
36 ;break.set platform_early_init
37
38 go
39