-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathupdater.bd
48 lines (37 loc) · 1.21 KB
/
updater.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
// 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;
call power_prep;
//----------------------------------------------------------
// SDRAM initialization
//----------------------------------------------------------
load sdram_prep;
call sdram_prep;
//----------------------------------------------------------
// Prepare to boot Linux
//----------------------------------------------------------
load linux_prep;
call linux_prep;
//----------------------------------------------------------
// Load ans start Linux kernel
//----------------------------------------------------------
load zImage > 0x40008000;
// extern data in initramfs should be zero
load 0.b > 0x40800000..0x40c00000;
load initramfs > 0x40800000;
jump linux_prep;
}