summaryrefslogtreecommitdiff
path: root/libre-testing/barebox/barebox.install
blob: eedabf868dbf183d6ae3c909ad462cfcae583dd1 (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
install_barebox() {
  echo "To install barebox on supported am335x computers , you need to first make sure that:"
  echo "- Your board is capable of booting from microSD or eMMC"
  echo "  For that it's best to consult your board documentation to see:"
  echo "  - which boot media it supports"
  echo "  - in which order it tries to boot on them"
  echo "- The boot media(the microSD or eMMC) is partitioned with MBR"
  echo "- The boot partition type is 0x0b (W95 FAT32) and has the bootable flag set. Both can be set with fdisk."
  echo "- Your boot partition is formatted in FAT12, FAT16 or FAT32"
  echo ""
  echo "Note that in some case it may not work if your boot media that is smaller than 4GB"
  echo ""
  echo "You can then install and update barebox on the Beaglebone green computer by running:"
  echo "  # cp -f /boot/barebox/images/barebox-am33xx-beaglebone-mlo.img /boot/MLO"
  echo "  # cp -f /boot/barebox/images/barebox-am33xx-beaglebone.img /boot/barebox.bin"
  echo ""
  echo "This package also supports other am33xx computers."
  echo "You can also install barebox on them in a very similar way."
  echo "You just need to change the filenames to the one that corresponds to your computer."
  echo ""
  echo "The installation procedure may change in the future, to make it more easy."
}

## arg 1:  the new package version
post_install() {
  install_barebox
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  install_barebox
}