barebox.install 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. install_barebox() {
  2. echo "To install barebox on supported am335x computers , you need to first make sure that:"
  3. echo "- Your board is capable of booting from microSD or eMMC"
  4. echo " For that it's best to consult your board documentation to see:"
  5. echo " - which boot media it supports"
  6. echo " - in which order it tries to boot on them"
  7. echo "- The boot media(the microSD or eMMC) is partitioned with MBR"
  8. echo "- The boot partition type is 0x0b (W95 FAT32) and has the bootable flag set. Both can be set with fdisk."
  9. echo "- Your boot partition is formatted in FAT12, FAT16 or FAT32"
  10. echo ""
  11. echo "Note that in some case it may not work if your boot media that is smaller than 4GB"
  12. echo ""
  13. echo "You can then install and update barebox on the Beaglebone green computer by running:"
  14. echo " # cp -f /boot/barebox/images/barebox-am33xx-beaglebone-mlo.img /boot/MLO"
  15. echo " # cp -f /boot/barebox/images/barebox-am33xx-beaglebone.img /boot/barebox.bin"
  16. echo ""
  17. echo "This package also supports other am33xx computers."
  18. echo "You can also install barebox on them in a very similar way."
  19. echo "You just need to change the filenames to the one that corresponds to your computer."
  20. echo ""
  21. echo "The installation procedure may change in the future, to make it more easy."
  22. }
  23. ## arg 1: the new package version
  24. post_install() {
  25. install_barebox
  26. }
  27. ## arg 1: the new package version
  28. ## arg 2: the old package version
  29. post_upgrade() {
  30. install_barebox
  31. }