Author Topic: Is There A Hex Editor For The Zaurus?  (Read 8434 times)

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« 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 and 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

Shed (Simple Hex Editor) is based at SourceForge:

http://sourceforge.net/projects/shed

Hexedit for the Mac is at sourceforge:

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
  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

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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Is There A Hex Editor For The Zaurus?
« Reply #1 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).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« Reply #2 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Is There A Hex Editor For The Zaurus?
« Reply #3 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.
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Is There A Hex Editor For The Zaurus?
« Reply #4 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
« Last Edit: May 10, 2007, 03:13:50 am by pgas »
SLC-860 cacko / senao wifi

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« Reply #5 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« Reply #6 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Is There A Hex Editor For The Zaurus?
« Reply #7 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]

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
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

sleet01

  • Newbie
  • *
  • Posts: 4
    • View Profile
Is There A Hex Editor For The Zaurus?
« Reply #8 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 (see section 23.4 specifically)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Is There A Hex Editor For The Zaurus?
« Reply #9 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!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« Reply #10 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
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Is There A Hex Editor For The Zaurus?
« Reply #11 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

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards