LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2006, 04:12 PM   #1
Zaher
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Can't fix this checksum error ! Binary File ! My VERY FIRST Question ! help pls !!!!


Hi Everyone !

THanks for this great forum . It's really helpful !


I have an operating system for some Electronic Musical keyboard ( Organ ) It consists of 32 binary files for total size of 1 Megabyte . I have done a search within the files using the 010 Editor for the Start-up text-logo that appears when booting the keyboard.I've found it in one of the 32 files . ( it's about 10 characters )
I tried to change it using the 010 Editor but I got troubles when trying to re-load the O.S. to the intended
keyboard . " RAM FILE CHECKSUM ERROR " I have another version of that O.S. which had a modifications on the start-up text and it works great . I was wondering how I could do that myself . I can send the files by email to anyone who would like to help !

Your help would be most appreciated !!

Thanks again !
 
Old 03-20-2006, 09:35 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Sounds like the kind of feature that's normally employed to ensure that downloads are uncorrupted; think MD5 or the like. Because of the way checksums are computed (though the specifics of this are kind of a black box to me), if the file is different than expected it generates a different checksum. Apparently your organ knows (either pre-computed internally or located in another file) what the checksum should be, and your modifications cause a different value. Since you have another tweaked OS that works, the checksum is probably stored in another file you've got; change that (the expected checksum) to whatever the checksum of your modified startup file is, and it may work. Or it may be that the checksum is pre-computed, and the other guys just knew what the checksumming algorithm was and were able to craft a message / adjust the file in other ways to maintain the original checksum. This would be fairly hard to do unless the checksumming algorithm were very simple.

Of course, like I said, I'm not knowledgeable of the exact implementation of these sorts of algorithms, so I could be wrong. But it sounds reasonable enough for me. I'd say your best bet would be to try and contact the folks who tweaked the other OS and ask them to share some of their secrets. Or look for a file that lists what the expected checksums are.

(I recently had to do modify a binary file to get a certain [not illegal] piece of software to install; its checksum was based on the length of the file. That's about as simple as it could get, but since your working on an embedded platform without much need for hack-proof security, I suppose that would be a viable implementation.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
read & write binary file error in redhat xcmore Programming 11 06-17-2005 07:48 AM
checksum error, sorry i_want_help Linux - Software 1 03-30-2004 03:42 PM
ATI binary drivers and Kernel 2.6: BLANK SCREEN FIX adamjaskie Linux - Hardware 0 02-08-2004 11:13 PM
checksum a file? Moses420ca Linux - Security 2 08-17-2003 01:27 PM
checksum error hawk4eye Slackware 0 02-01-2003 11:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration