#garfield Logs
Jun 17 2022
#garfield Calendar
08:59 AM rue_mohr: I think at the end of the main image there is a jump table
09:08 AM rue_mohr: or function lookup table
09:08 AM rue_mohr: I find it odd that initil loader has no strings
09:09 AM rue_mohr: ok, here is a question, without pulling the rom off, how do I get a rom dump
09:16 AM rue_mohr: polprog, I think they wrote in in eclipse
09:22 AM rue_mohr: interesting
09:22 AM rue_mohr: my boot loader is H.08.08, but the main firmware is H.08.60 the last update is H.08.67
09:26 AM rue_mohr: https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Free-Eclipse-IDE-and-GNU-toolchain-for-ColdFire-Set-up/m-p/144378
09:54 AM aandrew: rue_mohr: that is a neat linear-to-rotary mechanism on your mirror
10:44 AM polprog: oh wow. I dont need to use codewarrior for that
10:44 AM polprog: nice to have an open normal ide
02:48 PM aandrew: for CF? you don't need an IDE at all
02:48 PM aandrew: I was just using makefiles/gcc
05:23 PM rue_mohr: hahaha now the other sensor failed
05:25 PM rue_mohr: polprog, you found a strlen!!!
05:26 PM polprog: :)
05:26 PM polprog: aandrew: hm, i kinda want to make the hc12 boards you gave me do something
05:30 PM rue_mohr: so,
05:30 PM rue_mohr: that update file format is silly simple, execpt I cant find the checksum
05:31 PM rue_mohr: polprog, I think the device does a checksum on its own rom when it starts, can you find that fn?
05:31 PM polprog: ill take a look
06:18 PM polprog: probably not on boot
06:18 PM polprog: the reference to the CRC string comes from a function that is called from another function that looks like a command decoder
06:25 PM polprog: 0x0802362 important address, used when printing
06:34 PM rue_shop3: hmm
06:34 PM rue_shop3: I wonder if its printing to serial or network
06:39 PM polprog: same
06:40 PM polprog: so far i keep finding string related functions
06:40 PM rue_mohr: ok
06:40 PM polprog: but im naming them and then the more complicated ones start making sense
06:40 PM rue_mohr: I get the impression they do a lot of things via strings
06:40 PM rue_mohr: nice
06:40 PM rue_mohr: see what you can work out below 0x10000
06:41 PM rue_mohr: everything over that is quite dynamic
06:41 PM rue_mohr: do you have a full dissassembly of it?
06:41 PM rue_mohr: I cant find a disassembler
06:42 PM polprog: im using ghidra now
06:42 PM polprog: i can export the full disasm but im working with the decompiler
06:43 PM rue_mohr: ok
06:43 PM polprog: .. i think i can export
06:44 PM polprog: or you can download ghidra and i can give you the project zip
06:44 PM polprog: its a nice program, intuitive
06:44 PM rue_mohr: is it a ide or?
06:44 PM polprog: its a disassembler/decompiler
06:44 PM polprog: from the NSA :D
06:44 PM polprog: they open source id
06:44 PM polprog: it*
06:45 PM rue_mohr: I think I had it and deleted it cause it was being useless
06:46 PM rue_mohr: https://github.com/NationalSecurityAgency/ghidra
06:50 PM polprog: strcpy(0x8023c8,s_PERIPHERALTYPE_000b781b,0xe);
06:51 PM rue_mohr: ?
06:51 PM polprog: 8023c8 must be some fast buffer
06:52 PM rue_mohr: ok so I cloned it
06:52 PM rue_mohr: do I build it?
06:52 PM rue_mohr: hey, I had a thought
06:52 PM polprog: noo download the compiled distribution
06:52 PM polprog: its in jav
06:52 PM polprog: java
06:52 PM rue_mohr: the source file names wouldn't be in there if the debugging was off when it was compiled
06:53 PM rue_mohr: so, that binary must have debug left on
06:53 PM rue_mohr: ok, how do I run it...
06:54 PM rue_mohr: oh
06:54 PM rue_mohr: have a ref for a compiled version you trust?
06:55 PM polprog: i just download a release from github
06:55 PM polprog: https://paste.debian.net/1244433/
06:55 PM polprog: does this look like a CRC function for you?
06:55 PM polprog: called early in init
06:56 PM rue_mohr: wow strange
06:57 PM rue_mohr: no it looks like its a decryption alg
06:58 PM rue_mohr: wasnt that a release?
06:58 PM rue_mohr: oh...
06:59 PM rue_mohr: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.1.4_build/ghidra_10.1.4_PUBLIC_20220519.zip
07:00 PM polprog: mm
07:00 PM rue_mohr: Exception in thread "main" java.lang.UnsupportedClassVersionError: LaunchSupport : Unsupported major.minor version 52.0
07:00 PM rue_mohr: at java.lang.ClassLoader.defineClass1(Native Method)
07:00 PM rue_mohr: at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
07:00 PM rue_mohr: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
07:00 PM rue_mohr: at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
07:00 PM rue_mohr: at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
07:00 PM rue_mohr: at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
07:00 PM rue_mohr: at java.security.AccessController.doPrivileged(Native Method)
07:00 PM rue_mohr: at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
07:00 PM rue_mohr: ...
07:00 PM rue_mohr: did I ever mention how I HATE java?
07:00 PM polprog: .... java
07:01 PM rue_mohr: openjdk-17-jre ?
07:03 PM polprog: i guess yea
07:04 PM rue_mohr: JDK 11+ (64-bit) could not be found and must be manually chosen!
07:04 PM polprog: .gzf file in the ircjunk/ directory
07:04 PM rue_mohr: this is a 32 bit system
07:04 PM Tom_L: having fun tonight?
07:04 PM rue_mohr: k, I need to find a 64 bit install
07:05 PM polprog: import that into the dragon tool (codebrowser)
07:05 PM rue_mohr: Tom_L,
07:05 PM polprog: im going to sleep, its soo late and i havent had supper
07:05 PM polprog: nn
07:05 PM rue_mohr: I'll have a bunch of work to set this up
07:05 PM rue_mohr: and I'm ankel deep in other things
07:05 PM polprog: same
07:05 PM polprog: its fun
07:05 PM rue_mohr: which wouldn't be so bad if I weren't on 24" stilts
07:06 PM rue_mohr: :]
07:06 PM polprog: :D
07:06 PM polprog: see you tomorrow :D
07:07 PM rue_mohr: heh
07:07 PM rue_mohr: I'll be there when you wake back up
07:08 PM rue_mohr: ok, new pot of tea
07:08 PM rue_mohr: .. I swear I just did one a cup ago
07:08 PM rue_mohr: Tom_L, ever done rubarb pie?
07:08 PM rue_mohr: this weekend
07:08 PM rue_mohr: -------------
07:08 PM rue_mohr: clean out injection mold via warming it up
07:09 PM rue_mohr: skeletonics suit
07:09 PM rue_mohr: fix tilt and pan mirror AGAIN
07:09 PM rue_mohr: lawn mowing
07:09 PM rue_mohr: maybe make some more pneumatic actuators
07:11 PM Tom_L: no
07:15 PM Tom_L: oh, this is friday...
07:15 PM Tom_L: i took off so it seems like saturday
07:33 PM rue_mohr: ah
07:38 PM rue_shop3: build valve handle wrenches
11:54 PM rue_mohr: well I got one more part done for that large cnc
11:55 PM rue_mohr: I'd really like to have it working to make parts for this suit
11:55 PM rue_mohr: but I realized that having it would be great for making templates for casting too