-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlinux.bd
38 lines (33 loc) · 1.03 KB
/
linux.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
// 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";
}
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;
jump linux_prep;
}