Browse Source

Add Magic Lantern tool for making a bootable SD card

master
Fincer 7 years ago
parent
commit
abe6081b57
3 changed files with 35 additions and 0 deletions
  1. +11
    -0
      Readme.md
  2. +24
    -0
      magiclantern-bootablecard/PKGBUILD
  3. BIN
      magiclantern-bootablecard/magiclantern-bootablecard.tar.gz

+ 11
- 0
Readme.md View File

@ -178,6 +178,17 @@ Video background for Plasma 4/KDE4 desktop environment.
FORMAT: Arch Linux PKGBUILD script + patch file. FORMAT: Arch Linux PKGBUILD script + patch file.
**magiclantern-bootablecard**
--------------
Add Canon's boot flag into a SD card, as required by Magic Lantern firmware. Original source code [here](https://bitbucket.org/hudson/magic-lantern/src/11f405b62b31/contrib/make-bootable/?at=crop_rec_4k)
The bash script file has been modified to be more user-friendly. You can use a custom mount point, and the script asks you confirmation about the correct path before the script execution starts.
Usage: once you've inserted a SD card into your computer, use 'ml-bootablecard' command to add the boot flag.
FORMAT: Arch Linux PKGBUILD script + custom source files.
**mlv2dng** **mlv2dng**
-------------- --------------


+ 24
- 0
magiclantern-bootablecard/PKGBUILD View File

@ -0,0 +1,24 @@
pkgname=magiclantern-bootablecard
pkgver=1
pkgrel=1
pkgdesc='Extracts and converts images in MS Windows(R) icon and cursor files.'
arch=('i686' 'x86_64')
license=('GPL')
url='https://bitbucket.org/hudson/magic-lantern/src/tip/contrib/make-bootable/'
depends=('exfat-dkms-git' 'coreutils' 'exfat-utils-nofuse' 'util-linux')
makedepends=('gcc')
source=(magiclantern-bootablecard.tar.gz)
md5sums=('50a78cd16d2d05b78c0273fe53a59236')
build() {
gcc exfat_sum.c -I$srcdir/modules/lua/dietlibc/include/ -o $srcdir/exfat_sum
}
package() {
mkdir -p $pkgdir/usr/bin/
install -m755 $srcdir/{make_bootable.sh,exfat_sum} $pkgdir/usr/bin/
mv $pkgdir/usr/bin/make_bootable.sh $pkgdir/usr/bin/ml-bootablecard
chmod +x $pkgdir/usr/bin/ml-bootablecard
}

BIN
magiclantern-bootablecard/magiclantern-bootablecard.tar.gz View File


Loading…
Cancel
Save