Giter VIP home page Giter VIP logo

Comments (5)

cdl avatar cdl commented on August 22, 2024

Decided to try recompiling from source on an Ubuntu 15.10 VM (libusb and pkg-config both installed). Looks like the check-menu step fails, and using the precompiled menu.gb doesn't appear to work.

Got it to work eventually by setting up rgbds so I could compile the menu from source with make menu.

Below is the output I get when trying to run make menu-orig, and the failing check-menu log.

colby@colby-VirtualBox:~/Desktop/ems-flasher$ make menu-orig
cp menu.gb.orig menu.gb
make check-menu
make[1]: Entering directory '/home/colby/Desktop/ems-flasher'
./updateheader.sh -c -s  < menu.gb > menucs.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
./updateheader.sh -c < menu.gb > menuc.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
./updateheader.sh -s < menu.gb > menus.gb
./updateheader.sh: 19: ./updateheader.sh: [[: not found
./updateheader.sh: 25: ./updateheader.sh: [[: not found
make[1]: Leaving directory '/home/colby/Desktop/ems-flasher'

from ems-flasher.

hswick avatar hswick commented on August 22, 2024

Also having similar issue, but mine says invalid header for menu.c

ems-flasher: invalid header for /usr/local/share/ems-flasher/menuc.gb

Did you ever get this to work on OSX @cdl?

Edit:
Actually I was able to get this to work on OSX if I use ems-flasher 0.02

from ems-flasher.

 avatar commented on August 22, 2024

Hi,

I've fixed the issue you have experimented under Ubuntu. See PR #10 .

Please apply the commit in PR #10 and try this to test ems-flasher without installing it :

make clean-all # this will also remove the menu ROMs in the build dir
make menu-orig # reconstitute the menu ROMs from a precompiled one.
make ems-flasher-dev # the executable will expect the menu ROMs to be in the current dir.

And to install it under /usr/local if you want:

rm cmd.o # as the menu directory is hardcoded
make ems-flasher
make install # as root

I have yet to improve the Makefile and probably write a configuration script and documentation.

You shouldn't need to unplug and replug the cart after every action. I will investigate that.
Could you check if libusb_release_interface() is well called in ems_deinit() when the process exits?
ems_deinit() is registered with atexit().

Christophe.

from ems-flasher.

endrift avatar endrift commented on August 22, 2024

The OS X issue is caused by gawk running in the wrong locale, emitting mojibake.

diff --git a/updateheader.sh b/updateheader.sh
index 05f2535..aa96867 100755
--- a/updateheader.sh
+++ b/updateheader.sh
@@ -26,7 +26,7 @@ if [[ $? == 0 ]]; then
     OD="god"
 fi

-$OD -v -Ad -tu1 -w1 | $AWK -vcolor=$color -vsuper=$super '
+$OD -v -Ad -tu1 -w1 | LC_ALL=C $AWK -vcolor=$color -vsuper=$super '
 BEGIN {
     split( \
         " 206 237 102 102 204  13   0  11   3 115   0 131   0  12   0  13" \

I'll file a PR tonight.

from ems-flasher.

zeroeth avatar zeroeth commented on August 22, 2024

For anyone else coming across this be sure to install the GNU coreutils for OSX as the flags are different.

brew install coreutils

After that worked a treat!

from ems-flasher.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.