Rockbox Development > New Ports

Sansa Fuze+

<< < (18/162) > >>

saratoga:

--- Quote from: danger355 on July 10, 2011, 04:37:41 PM ---it seems no matter how i try and run it, i always get a 'command not found' error.

--- End quote ---

Sounds like you didn't build sbtoelf.  Theres a makefile in utils/sbtools.  That will build the tool for your system, then you can run it like any other executable.


--- Quote from: danger355 on July 10, 2011, 04:37:41 PM ---does this mean that all three files (the sbtoelf.c tool, the firmware, and the fuze+_key_file) need to be in the same file folder? I've tried that and i get the error above.

--- End quote ---

Are you familiar with command line programs?  Generally nothing ever has to be in any particular folder provided you have the right paths.  Once you build the executable, you can run it with no arguments to see what inputs it takes:


--- Code: ---mike@biosgroup-desktop:~/rockbox/codeclib/utils/sbtools$ ./sbtoelf
Usage: ./sbtoelf <firmware> <key file> [<out prefix>]

--- End code ---

So the actual folder locations shouldn't matter so long as you give correct paths for each file. 

danger355:

--- Quote from: saratoga on July 10, 2011, 05:19:30 PM ---Sounds like you didn't build sbtoelf.  Theres a makefile in utils/sbtools.  That will build the tool for your system, then you can run it like any other executable.

--- End quote ---
there is already an 'sbtoelf.c' in the folder. is there another sbtoelf file i need? by 'build', do you mean use the make command? i tried that too and i get the error "*** No rule to make target `sbtoelf.c', needed by `sbtoelf'.  Stop."


--- Quote from: saratoga on July 10, 2011, 05:19:30 PM ---Are you familiar with command line programs?  Generally nothing ever has to be in any particular folder provided you have the right paths.  Once you build the executable, you can run it with no arguments to see what inputs it takes:

--- End quote ---
not intimately familiar, but i can usually get by. i've run into a few minor roadblocks so far, but this is the only one i haven't been able to google my way out of. i realize it should work, i just can't see/figure out what i'm doing wrong.

saratoga:

--- Quote from: danger355 on July 10, 2011, 06:42:04 PM ---
--- Quote from: saratoga on July 10, 2011, 05:19:30 PM ---Sounds like you didn't build sbtoelf.  Theres a makefile in utils/sbtools.  That will build the tool for your system, then you can run it like any other executable.

--- End quote ---
there is already an 'sbtoelf.c' in the folder. is there another sbtoelf file i need? by 'build', do you mean use the make command? i tried that too and i get the error "*** No rule to make target `sbtoelf.c', needed by `sbtoelf'.  Stop."

--- End quote ---

The command is "make" with no arguments.  Are you sure you typed that and not "make sbtoelf.c"?  make is a tool for handling dependencies, but it doesn't understand c files so it'll fail if you point it at code. 

danger355:

--- Quote from: saratoga on July 10, 2011, 07:54:25 PM ---The command is "make" with no arguments.  Are you sure you typed that and not "make sbtoelf.c"?  make is a tool for handling dependencies, but it doesn't understand c files so it'll fail if you point it at code. 

--- End quote ---

yes i'm sure. i also tried others earlier, glad to know i at least got that right.


--- Code: ---ubuntu@ubuntu:~$ cd rockbox/utils/sbtools
ubuntu@ubuntu:~/rockbox/utils/sbtools$ make
make: *** No rule to make target `sbtoelf.c', needed by `sbtoelf'.  Stop.
ubuntu@ubuntu:~/rockbox/utils/sbtools$

--- End code ---

just to make sure, i've gone as far as creating the bootloader.elf file. there was nothing in the wiki about putting this file in the /rockbox/utils/sbtools directory, so i placed it in a newly created /build-dir (as suggested in the make prompt while creating the bootloader)

is there anything that i missed that i still need to do?

pamaury:
Hello,
the normal steps to build sbtoelf is to have an up to date svn checkout and to type make in utils/sbtools. You error definitely indicate something wrong; are you sure you have the sbtoelf.c ?
Then you should follow the steps in the wiki SansaFuzePlusPort page, everything is written. The directory in which is happen is not important, a fresh one will do.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version