summaryrefslogtreecommitdiff
path: root/scripts/upgrade/README
blob: 6d5a1b6704bf7421e717727822c9d429e2604ce3 (plain)
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
53
54
55
56
57
58
59
60
61
62
The upgrade scripts goes in a tarball with local.conf at the top level.

The tree is a follows:
.
|-- install_list.txt
|-- install_list.txt.md5
|-- install.sh*
|-- install.sh.md5
|-- local.conf
|-- local.conf.md5
|-- model
`-- repo/
    |-- arm926ejste/
    |   |-- busybox_1.24.1-r0.mlinux2.mlinux2.1_arm926ejste.ipk
    |   |-- busybox-hwclock_1.24.1-r0.mlinux2.mlinux2.1_arm926ejste.ipk
    |   |-- busybox-ifplugd_1.24.1-r0.mlinux2.mlinux2.1_arm926ejste.ipk
    |   |-- busybox-syslog_1.24.1-r0.mlinux2.mlinux2.1_arm926ejste.ipk
    |   |-- busybox-udhcpc_1.24.1-r0.mlinux2.mlinux2.1_arm926ejste.ipk
    |   |-- initscripts_1.0-r155.3.40.0_arm926ejste.ipk
    |   |-- initscripts-functions_1.0-r155.3.40.0_arm926ejste.ipk
    |   |-- Packages
    |   |-- Packages.gz
    |   `-- Packages.stamps
    `-- Packages



install.sh gets executed if it exists by /etc/init.d/umountfs

The files are placed in a tarball called upgrade.bin, and it
should be located in either /var/volatile/flash-upgrade or
/media/card/flash-upgrade to be compatible with umountfs.

The file /var/volatile/do_flash_upgrade must exist and
be owned by root for umountfs to execute the upgrade
procedure.

install_list.txt is a list of packages to
install after the upgrade.  If some packages
have mutual dependencies on each other, they should
be put on the same line.

The file local.conf should contain a list of
architectures with priorities, and a list of
repositories.

The md5sums are created as follows:

cat install.sh | md5sum -c install.sh.md5
md5sum install.sh >install.sh.md5
md5sum local.conf >local.conf.md5

model is from the part of the hardware
version before the first hyphen.

Example:

MTCAP-0.1       Would be MTCAP
MTCDT-0.0       Would be MTCDT
MTCDTIP-0.1     Would be MTCDTIP