blob: 89911cece4e3fb3f79c36fa7bad6daf1ae01d61c (
plain) (
blame)
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
|
#!/bin/sh
if [ $# -ne 2 ] ; then
error "Usage: `basename $0` <REMOTE-KDIR> <BOOT-SCRIPT>"
fi
. $(dirname $0)/arm-installer-common.sh
# This is machine specific, AFAIK.
LOAD_ADDR=0x40008000
ENTRY_POINT=0x40008000
# Where the U-Boot partition is mounted.
UBOOT_PATH="/mnt/boot"
set +e
grep "$UBOOT_PATH" /etc/mtab > /dev/null
if [ 0 -ne $? ] ; then
error "U-Boot partition not mounted."
fi
set -e
KVERSION=$(getversion)
CONFIG_FILE="config-$KVERSION"
fetchfiles
mkuboot > /dev/null
mkscript
moveconfig
doinitramfs
mkuinitrd
copy_to_uboot
echo "Making LITMUS the default ..." >&2
sudo mv $UBOOT_PATH/$SCRIPT_FILE $UBOOT_PATH/boot.scr
echo "done." >&2
rm_tmp_files
echo "All done!" >&2
|