make_bootable corrupts SD card!

Issue #2641 open
Rob created an issue

Trying to make an SDXC 64GB bootable. I'm getting this far... thank you.

Roberts-MacBook-Pro:makebootable Robert$ sudo bash mb.sh
Found /dev/disk2s1
Volume EOS_DIGITAL on disk2s1 unmounted
Applying EXFAT parameters on /dev/disk2s1 device:
 writing EOS_DEVELOP at offset 130 (Volume label)
11+0 records in
11+0 records out
11 bytes transferred in 0.000423 secs (26008 bytes/sec)
 writing BOOTDISK at offset 122 (Boot code)
8+0 records in
8+0 records out
8 bytes transferred in 0.000454 secs (17623 bytes/sec)
Tested only on 8GB card, correct BACKUP OFFSET may be different for bigger cards. Post feedback to www.magiclantern.fm/forum/
 recompute checksum. mb.sh: line 75: ./exfat_sum: No such file or directory

Comments (10)

  1. Rob reporter
    • edited description

    Roberts-MacBook-Pro:makebootable RobertDuncanGrant$ sudo bash mb.sh Found /dev/disk2s1 Volume EOS_DIGITAL on disk2s1 unmounted Applying EXFAT parameters on /dev/disk2s1 device: writing EOS_DEVELOP at offset 130 (Volume label) 11+0 records in 11+0 records out 11 bytes transferred in 0.000423 secs (26008 bytes/sec) writing BOOTDISK at offset 122 (Boot code) 8+0 records in 8+0 records out 8 bytes transferred in 0.000454 secs (17623 bytes/sec) Tested only on 8GB card, correct BACKUP OFFSET may be different for bigger cards. Post feedback to www.magiclantern.fm/forum/ recompute checksum. mb.sh: line 75: ./exfat_sum: No such file or directory

  2. Rob reporter
    • changed status to open
    Roberts-MacBook-Pro:makebootable Robetr$ gcc exfat_sum.c
    Undefined symbols for architecture x86_64:
      "_endian_swap", referenced from:
          _main in exfat_sum-dd877e.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
  3. Rob reporter
    Roberts-MacBook-Pro:makebootable Robert$ gcc -o exfat_sum.c
    clang: error: no input files
    Roberts-MacBook-Pro:makebootable Robert$ 
    
  4. Alex

    Sounds like clang doesn't like endian_swap for some reason; you could try removing the inline keyword, as I don't see what else could go wrong.

  5. Log in to comment