-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathupdater_ivt.bd
52 lines (41 loc) · 1.39 KB
/
updater_ivt.bd
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
// STMP378x ROM command script to load and run Linux kernel
options {
driveTag = 0x00;
flags = 0x01;
}
sources {
power_prep="./power_prep/power_prep";
sdram_prep="./boot_prep/boot_prep";
linux_prep="./linux_prep/output-target/linux_prep";
zImage="zImage";
initramfs="initramfs.cpio.gz";
}
section (0) {
//----------------------------------------------------------
// Power Supply initialization
//----------------------------------------------------------
load power_prep;
load ivt (entry = power_prep:_start) > 0x8000;
hab call 0x8000;
//----------------------------------------------------------
// SDRAM initialization
//----------------------------------------------------------
load sdram_prep;
load ivt (entry = sdram_prep:_start) > 0x8000;
hab call 0x8000;
//----------------------------------------------------------
// Prepare to boot Linux
//----------------------------------------------------------
load linux_prep;
load ivt (entry = linux_prep:_start) > 0x8000;
hab call 0x8000;
//----------------------------------------------------------
// Load ans start Linux kernel
//----------------------------------------------------------
load zImage > 0x40008000;
// extern data in initramfs should be zero
load 0.b > 0x40800000..0x40c00000;
load initramfs > 0x40800000;
load ivt (entry = linux_prep:_start) > 0x8000;
hab jump 0x8000;
}