OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: sdjf on May 09, 2007, 10:30:30 pm

Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 09, 2007, 10:30:30 pm
I found four linux hex editors out there, Hexer, Shed, Hexedit, and Bless.  Have any of them been ported for the Zaurus?  If so, which ROMs and models will they run on?

I checked both  http://www.killefiz.de/zaurus (http://www.killefiz.de/zaurus) and http://www.handheld-linux.com/swi/index.php (http://www.handheld-linux.com/swi/index.php)  without any luck.

Here's what I found otherwise.

Bless is the full featured hex editor at freshmeat:

http://freshmeat.net/projects/bless (http://freshmeat.net/projects/bless)

Shed (Simple Hex Editor) is based at SourceForge:

http://sourceforge.net/projects/shed (http://sourceforge.net/projects/shed)

Hexedit for the Mac is at sourceforge:

http://sourceforge.net/project/showfiles.php?group_id=9366 (http://sourceforge.net/project/showfiles.php?group_id=9366)

Hexcurse and Hexedit for Linux are listed at:

 http://www.openbsd.org/3.8_packages/arm.html (http://www.openbsd.org/3.8_packages/arm.html)
  hexcurse-1.54.tgz - a user-friendly ncurses-based hexeditor
  hexedit-1.2.10.tgz   - to view and edit files in hexadecimal or ASCII

Hexer in Debian Unstable:

 http://packages.debian.org/unstable/utils/hexer (http://packages.debian.org/unstable/utils/hexer)

I am asking because a hex editor for the Z could come in handy for checking compatability of IPKs.  I don't know what else I would use one for.

Thanks,
sdjf
Title: Is There A Hex Editor For The Zaurus?
Post by: Capn_Fish on May 09, 2007, 11:08:33 pm
Pick the one you want and I'll do my best to compile it for pdaXrom (2.6.x kernel, though, unless somebody has a link to a 2.4.x cross sdk for pdaX).
Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 10, 2007, 12:37:31 am
I'm on Sharp ROM, and sticking with it, so maybe we'd better also hear what pdaXrom users want.

I'll try to read up more on them and see which I'd like, though.  I didn't expect I'd have a choice.

I know I'd prefer a command line based one, but I'll bet many Z owners would prefer a GUI.

Thanks,
sdjf
Title: Is There A Hex Editor For The Zaurus?
Post by: Jon_J on May 10, 2007, 01:24:49 am
I don't remember where I got this, but I have it in my Sharp/Cacko "Programs" folder on my desktop PC, where I keep backups of all zaurus related apps, etc.
I think I tried it once, but commandline things go over my head, so I uninstalled it.
Title: Is There A Hex Editor For The Zaurus?
Post by: pgas on May 10, 2007, 01:52:06 am
emacs knows how to do this.
the editor in mc also has a hex mode
(F3  F4 then F2)

* edit: I don't know why I wrote in french previously
Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 10, 2007, 02:56:01 am
Thanks, Jon_J.  Well, the downloads are still broken, but at least I could get the urls to wget the files properly.  I will try working with them when I have more time over the weekend.

pgas, I don't know if emacs is available for my ROM, but I guess that is something else worth considering.

I'm also trying to put together a list of hex editing tools for the Zaurus, so if people know of others and what ROMs they work on, please post!

thanks,
sdjf
Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 11, 2007, 08:05:43 pm
I just found out about the "od" (octal dump) command.

If I could figure out how to use it, I might not even need a hex editor.  It is available in the arm utilities package.

Has anyone here used it to examine the first line of an ipk?

sdjf
Title: Is There A Hex Editor For The Zaurus?
Post by: Meanie on May 11, 2007, 09:09:49 pm
Quote
I just found out about the "od" (octal dump) command.

If I could figure out how to use it, I might not even need a hex editor.  It is available in the arm utilities package.

Has anyone here used it to examine the first line of an ipk?

sdjf
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=161111\")

why not just use this [a href=\"http://zaurus.daemons.gr/menaie/feed/hexedit_1.2.12_arm.ipk]http://zaurus.daemons.gr/menaie/feed/hexedit_1.2.12_arm.ipk[/url]

or

head -1 blahblah.ipk
Title: Is There A Hex Editor For The Zaurus?
Post by: sleet01 on May 12, 2007, 03:08:15 pm
Depending on how extensive your hex editing needs to be, you might be able to get by with just vim and xxd (http://www.vim.org/htmldoc/usr_23.html) (see section 23.4 specifically)
Title: Is There A Hex Editor For The Zaurus?
Post by: speculatrix on May 12, 2007, 06:21:22 pm
od despite its name will also do hex dumping

you can also use sed to change data IF it's a unique pattern!
Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 13, 2007, 12:44:52 am
meanie,

"head -n1  blabla.ipk" never yields any output.  "head -n2" does, but it's pretty unintelligible.  The output from "less" is a little better, but I wanted to find a better tool with clearer output.

I will try that ipk when I can clear space and time...

sleet01 and speculatrix, I was more just interested in examining and not needing to edit at this point, so I'm trying to figure out "od".  It might be all I need, although I am always interested in finding alternate editors, so I still want to try the ipk when I can.
sdjf
Title: Is There A Hex Editor For The Zaurus?
Post by: sdjf on May 13, 2007, 12:13:57 pm
I found really great command reference with clear simple examples of how to use od:

http://www.linuxhotbox.com/adminguide/lnag_learning.html (http://www.linuxhotbox.com/adminguide/lnag_learning.html)

sdjf