#garfield Logs
Apr 12 2021
#garfield Calendar
12:44 AM aandrew: any time I've worked with OpenOCD it's been an excercise in frustration
12:51 AM aandrew: and yes, I often have to build it from source
12:51 AM aandrew: good luck; good night
03:21 AM polprog_: once you get the right script it seems to work though
03:29 AM polprog_ is now known as polprog
04:06 AM Tom_L: 20-24
05:33 AM polprog: rue_mohr: any progress on the hard disk boads?
08:16 AM rue_bed2: polprog, nope, it clean stopped at openocd
08:19 AM polprog: hmm
08:19 AM polprog: whats the controller asic
08:34 AM rue_mohr: on this one 88i6545
08:47 AM rue_mohr: <PaulFertser> rue_mohr: my method when seeing issues like that is disconnecting from the target and connecting TDI to GND and Vcc to see if that message changes
08:47 AM rue_mohr: http://paste.debian.net/1193329/ <-- is where I'm at
08:53 AM polprog: ohh i couldnt read that part# from the pics yesterday
09:00 AM polprog: Error: JTAG scan chain interrogation failed: all ones
09:00 AM polprog: that soulnds like an issue
09:00 AM polprog: where did you get the jtag pinout by the way?
09:05 AM polprog: https://www.7-cpu.com/cpu/Kirkwood.html
09:15 AM rue_mohr: its a common one apparently
09:15 AM rue_mohr: I have a bunch of things with it
09:16 AM rue_mohr: mictor connectors are very common in high speed fpga stuff
09:16 AM rue_mohr: oh the t in trst is for target
09:21 AM polprog: hmm, good to know
09:32 AM polprog: https://www.malwaretech.com/2015/04/hard-disk-firmware-hacking-part-2.html
09:32 AM polprog: similar CPU, also feroceon
09:34 AM rue_mohr: there are two main articles I'v come across so far, yup
09:34 AM rue_mohr: the note says "oh by the way I turned on the console, I dont know if this makes a difference"
09:34 AM rue_mohr: so I have lots of things to try
09:35 AM polprog: what note
09:36 AM polprog: let me see if i have any dead hard disks but damn the idea of programming an arm cpu for which there is no documentation is wildly amusing
09:38 AM rue_mohr: seagate or western digital
09:39 AM polprog: either, you have a wd right?
09:39 AM rue_mohr: yes
09:39 AM rue_mohr: wd is handy, the drives die a lot
09:40 AM polprog: :P
09:40 AM rue_mohr: from sitting
09:40 AM rue_mohr: never had one die in service, but drives sitting on the archives shelf wont start back up
09:40 AM rue_mohr: I think they lose magnetics after a few years of inactivity
09:41 AM polprog: youre right
09:41 AM polprog: this one, thats not labelled and i dont remember anything about it
09:41 AM polprog: connected to power supply
09:41 AM polprog: doesnt even spin up
09:41 AM polprog: just clicks silently
09:41 AM polprog: wd caviar 80GB
09:41 AM rue_mohr: yea, was find when put away?
09:42 AM polprog: oh
09:42 AM polprog: it spinned up
09:42 AM rue_mohr: oh maybe the heads were just stuck
09:42 AM rue_mohr: see if it'll talk
09:44 AM rue_mohr: https://forum.hddguru.com/viewtopic.php?t=24650
09:44 AM rue_mohr: oh serial port
09:44 AM polprog: it behaves weird
09:44 AM rue_mohr: hmm the seagate commands are extensive
09:45 AM polprog: theres some windows with almost nothing on it, hmm
09:45 AM rue_mohr: "3. Short some magic pins to start X-Modem sequence in MCU boot code(E112 and 3.3V for PCB 13xx, 1335 for example). The number is etched on PCB as 2060-701335-xxx"
09:45 AM rue_mohr: hey
09:45 AM rue_mohr: mine is 2060-701335-005
09:46 AM polprog: heh
09:46 AM rue_mohr: lete to leave for work!!
09:46 AM polprog: 2060-701444-004
09:46 AM rue_mohr: this is fun tho
09:46 AM polprog: hmm
09:47 AM rue_mohr: hmmm
09:47 AM rue_mohr: yours will be more powerfull
09:47 AM rue_mohr: by the way, the control pwoer comes from the 12V, and it all runs WARM
09:48 AM polprog: yesterday i was thinking about how to make a boost converter with a buck converter IC
09:48 AM polprog: i think i got it
09:51 AM rue_mohr: the trick is in some of the app notes for some of the controllers
09:52 AM polprog: some of the foam has started to disintegrate
09:53 AM polprog: 88I6745 here
09:53 AM rue_mohr: k
09:54 AM rue_mohr: see what you can do, I'll be back in 8.5
11:59 AM polprog: so the altera blaster i have doesnt like oocd
11:59 AM polprog: >_>
12:14 PM polprog: the board doesnt wanna talk jtag
12:24 PM polprog: sneaky bastard
12:25 PM polprog: oooo
12:25 PM polprog: TDI and TDO was swapped crap
12:28 PM polprog: https://paste.debian.net/1193387/
12:28 PM polprog: so TDO on buspirate to TDO on the board
12:56 PM polprog: cant do much besides detect it
01:04 PM polprog: feroceon.cpu arp_reset assert 1
01:13 PM polprog: cant get this thing halted
01:49 PM polprog: i cant see how to halt that with openocd, you cant do anything if its not halted. I could only force it to reset state but you cant do anything then either
01:50 PM polprog: https://polprog.net/rozne1/ircjunk/various/ferroceon-oocd.cfg
02:44 PM aandrew: this is a really neat pan/tilt idea (all the motors are stationary), too bad it's so poorly documented: https://www.thingiverse.com/thing:3292767
02:47 PM aandrew: "The lower large herringbone gear connects to the top shaft. The upper large heringbone gear is fixed to the red bevel gear. When just the upper gear is driven, the top tilts. When just the lower gear is driven the top pans and tilts. To pan without tilt, the lower gear needs to run in the opposite direction to keep the tilt constant."
05:20 PM aandrew: heh
05:20 PM aandrew: I refreshed all the silica dessicant packs I had, I thought pink was dry and it went green or something but they start out blue and go pink
05:20 PM aandrew: 7min on defrost in the microwave did wonders
05:21 PM aandrew: and now my dry boxes for filament are all at about 25% and dropping (the air here is about 35%), hoping that helps bump the quality up on the PLA
05:23 PM aandrew: https://www.youtube.com/watch?v=HoSVPHVESiE is kind of cool
05:23 PM aandrew: DIY injection mold
05:25 PM Tom_itx: you didn't put the pla itself in the microwave to dry it?????
05:26 PM Tom_itx is now known as Tom_L
05:37 PM aandrew: um... no?
05:50 PM aandrew: https://www.thingiverse.com/thing:2951164 interesting take on the harmonic drive
06:02 PM aandrew: rue_mohr: you were playing with a similar idea: https://www.thingiverse.com/thing:4749783
06:26 PM rue_mohr: heh, nice work
06:28 PM rue_mohr: polprog, I have a howto on doing things to the drive once connected
06:28 PM rue_mohr: and I got a bunch more drives, seagate and WD
06:28 PM rue_mohr: some parallel ones
06:29 PM rue_mohr: so, what did he use as a heater then
06:29 PM rue_mohr: oh pipe heater ok
06:30 PM rue_mohr: I should just break down and buy some
06:30 PM polprog: rue_mohr: so did you get yors working as in can upload code?
06:37 PM rue_mohr: I just got home from work
06:37 PM rue_mohr: I cant be sure openocd is even working right with my adapter yet
06:37 PM polprog: i was asking about the howto content
06:55 PM polprog: i dont know why but openocd would not work with my usb blaster either
06:55 PM polprog: would be nice if i didnt have to use the bus pirate all the time
06:57 PM aandrew: usb blaster as in the Altera JTAG interface?
06:58 PM aandrew: I don't recall any specific issues with it but it's been years since I've used it. What specific error are you getting? Are you sure it's not a permissions issue on the USB device? (I usually run openocd as root to weed that stuff out)
07:03 PM polprog: i have a chinese clone that came with my MAX-something devboards from ebay
07:03 PM polprog: Info : Altera USB-Blaster II found (Firm. rev. = 6ÑV)
07:04 PM polprog: i think that NV is bad
07:04 PM polprog: :P
07:04 PM polprog: oocd just hangs at init
07:04 PM polprog: Info : Altera USB-Blaster II found (Firm. rev. = 6öñU)
07:04 PM polprog: yeah i think this blaster is not blasting
07:07 PM polprog: https://www.eevblog.com/forum/projects/altera-mini-usb-blaster-revision-c-clone-using-the-pic18f14k50/
07:13 PM rue_mohr: mine uses an stm32
07:14 PM rue_mohr: ok! I have a box of controllers, seagate and WD
07:14 PM rue_mohr: seagates have a serial port on them
07:16 PM rue_mohr: so many browser tabs, I should have started a new user for this
07:17 PM polprog: haha
07:17 PM rue_mohr: opening browsers across multiple users reduces crashing
07:17 PM rue_mohr: 25P05
07:18 PM rue_mohr: 512k
07:18 PM rue_mohr: !!?!?!?!?!
07:18 PM rue_mohr: its tiny
07:19 PM aandrew: hm?
07:19 PM rue_mohr: its the rom on one of the controllers
07:19 PM rue_mohr: thought it would be big
07:19 PM rue_mohr: not sure why
07:20 PM rue_mohr: so maybe I'll switch back to the ft232
07:20 PM rue_mohr: as an "ftdi"
07:21 PM aandrew: something tells me FT232 does not work
07:21 PM aandrew: FT2232 is what openocd knows
07:21 PM aandrew: I seem to remember running against this
07:21 PM rue_mohr: ok
07:21 PM rue_mohr: well
07:22 PM polprog: hmm j-link clone is available for $20
07:22 PM rue_mohr: can I do a loopback test on a usb blaster?
07:22 PM polprog: i think you can?
07:22 PM polprog: id just hook up a scope to TDI
07:22 PM rue_mohr: see, if we used a parallel port we would be done
07:22 PM polprog: dont cross the TDI TDO
07:22 PM polprog: what's the problem now
07:22 PM rue_mohr: ?
07:23 PM aandrew: hm nope they seem to say it will work
07:23 PM rue_mohr: what will work?
07:23 PM rue_mohr: ft232?
07:23 PM rue_mohr: or crossing the streams to destroy marshmellow man
07:24 PM aandrew: TXD = TCK out, RXD = TDI out, RTS = TDO in, CTS = TMS out, DTR = TRST# out, DCD = SRST# out
07:24 PM aandrew: yeah ft232
07:24 PM rue_mohr: ok
07:25 PM aandrew: adapter name is "ft232r" and can only do JTAG
07:25 PM rue_mohr: oh no
07:25 PM rue_mohr: I just unplugged the blaster
07:25 PM rue_mohr: my openocd deson't supprot tyhe ft232r
07:26 PM polprog: https://cdn.discordapp.com/attachments/823256419897704498/831294510805024768/IMG_20210413_002540.jpg
07:26 PM aandrew: you have to build it with support for it, it's not on by default (probably becuase it's janky as hell)
07:27 PM rue_mohr: interface ftdi
07:27 PM rue_mohr: trying that
07:27 PM aandrew: no
07:28 PM aandrew: "ft232r"
07:28 PM rue_mohr: trying it anyhow!
07:28 PM aandrew: heh
07:28 PM aandrew: usb_blaster seems to default to ftdi but also has ublast2
07:28 PM rue_mohr: Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
07:28 PM rue_mohr: trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
07:28 PM rue_mohr: adapter_nsrst_delay: 200
07:28 PM rue_mohr: jtag_ntrst_delay: 200
07:28 PM rue_mohr: thats all it said
07:29 PM aandrew: the "ftdi" interface wants MPSSE mode which the 232r does not have
07:29 PM aandrew: apparently 232h does though? maybe docs are wrong
07:29 PM rue_mohr: ok, lets see "if I can just build" openocd
07:30 PM rue_mohr: other paths are using the usb blaster and playing with a seagate drive that can probably do everything thru serial
07:30 PM aandrew: it wasn't difficult when i did it, I use debian as well
07:30 PM rue_mohr: start 2 new xterm windows for this...
07:30 PM rue_mohr: maybe it will be enough...
07:30 PM rue_mohr: openocd source isn't via github is it?
07:31 PM aandrew: um...
07:32 PM rue_mohr: do we have to use cvs?
07:32 PM aandrew: https://github.com/ntfreak/openocd
07:32 PM rue_mohr: or ftp different files from 18 different ftp sites?
07:32 PM aandrew: "official read-only mirror"
07:32 PM rue_mohr: ok
07:32 PM rue_mohr: didn't know if this was customized or not
07:33 PM rue_mohr: ah, question, does this require a 64 bit system
07:33 PM rue_mohr: everyone is doing that for no reason now
07:33 PM aandrew: no
07:34 PM rue_mohr: yay
07:34 PM rue_mohr: ./bootstrap (when building from the git repository)
07:34 PM rue_mohr: ./configure [options]
07:34 PM rue_mohr: make
07:34 PM rue_mohr: sudo make install
07:35 PM polprog: nighters
07:35 PM rue_mohr: night
07:35 PM polprog: ill look for some seagate disks tomorrow
07:36 PM rue_mohr: CMSIS-DAP Compliant Debugger no
07:36 PM rue_mohr: Nu-Link Programmer no
07:36 PM rue_mohr: Cypress KitProg Programmer no
07:36 PM rue_mohr: Linux GPIO bitbang through libgpiod no
07:36 PM rue_mohr: fine fine
07:36 PM rue_mohr: Bitbang mode of FT232R based devices yes (auto)
07:37 PM rue_mohr: I keep forgetting to put -j 6 on make
07:42 PM rue_mohr: ok, so between the versions they completely renamed all the options
07:42 PM rue_mohr: not helpfull
07:43 PM aandrew: ooh fancy https://www.thingiverse.com/thing:2410466
07:43 PM aandrew: yes they did
07:44 PM aandrew: that was one of the most infuriating bits
07:44 PM rue_mohr: so the help on how to do the hard drive stuff is in the wrong version
07:46 PM aandrew: why not download the old version source, rebuild with ft232r support?
07:48 PM rue_mohr: sooner or later someone wont help me cause its 0.0.0001 versions behind
07:49 PM rue_mohr: source [find interface/ft232r.cfg]
07:49 PM rue_mohr: is that right
07:49 PM rue_mohr: ?
07:49 PM rue_mohr: is that a real file, cause I dont have it
07:50 PM rue_mohr: if so, where do the files come form?
07:50 PM aandrew: in your source tree, search for that file
07:50 PM aandrew: find -name '*ft232r*'
07:50 PM rue_mohr: ok, where *should* the files be?
07:50 PM rue_mohr: not sure what root dir its looking for them fom
07:51 PM aandrew: that's in the ./configure output, I think something like /usr/local/share/openocd/
07:51 PM aandrew: make install should have done that
07:51 PM rue_mohr: huh it didn't
07:52 PM rue_mohr: ls /usr/local/share/openocd/
07:52 PM rue_mohr: OpenULINK/ contrib/ scripts/
07:53 PM rue_mohr: DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
07:53 PM rue_mohr: jtag_ntrst_delay: 200
07:53 PM aandrew: hm mine is /usr/share/openocd (probably because I have the package version installed) and /usr/share/openocd/scripts/interface is there
07:54 PM rue_mohr: interesting that the files that come with the source use depreciated options?
07:54 PM rue_mohr: so I guess it quit?
07:54 PM rue_mohr: Error: ft232r not found: vid=0403, pid=6001, serial=[any]
07:55 PM rue_mohr: [1253126.270173] usb 2-4: New USB device found, idVendor=0403, idProduct=6014, bcdDevice= 9.00
07:55 PM rue_mohr: right
07:55 PM rue_mohr: so then, usb blaster?
07:55 PM rue_mohr: this is going to be a LOT of circles
07:56 PM aandrew: yes, stick with ft232r for now
07:56 PM rue_mohr: ? should I rewrite the device code in the software?
07:56 PM aandrew: no
07:57 PM aandrew: just strip out the config to the bare minimum
07:57 PM aandrew: in fact ignore the scripts dir altogether
07:57 PM aandrew: just make your own openocd.cfg with what you want in it
07:57 PM aandrew: that's what I usually end up doing
07:57 PM rue_mohr: but it wont find my adapter cause the PID is wrong
07:57 PM rue_mohr: Error: ft232r not found: vid=0403, pid=6001, serial=[any]
07:58 PM rue_mohr: [1253126.270173] usb 2-4: New USB device found, idVendor=0403, idProduct=6014, bcdDevice= 9.00
07:58 PM rue_mohr: did I mention how I hate jtag
07:58 PM rue_mohr: ?
07:59 PM * Tom_L can't imagine why
07:59 PM aandrew: oh
07:59 PM rue_mohr: unless I'm gonna rewrite openocd, I think I should switch to the blaster
07:59 PM aandrew: you have an FT232H
07:59 PM aandrew: try MPSSE mode
07:59 PM rue_mohr: ?
07:59 PM aandrew: New USB device found, idVendor=0403, idProduct=6014, bcdDevice= 9.00
07:59 PM rue_mohr: yea
07:59 PM aandrew: VID:PID 0x0403:0x6014 is an FT232HL or Q
08:00 PM aandrew: that's the one that the 'ftdi' driver says it can use, it supposedly has MPSSE
08:00 PM rue_mohr: yes
08:00 PM rue_mohr: so..
08:00 PM aandrew: so why are you using the ft232r in that case
08:00 PM aandrew: Error: ft232r not found: vid=0403, pid=6001
08:00 PM rue_mohr: adapter driver MPSSE ?
08:00 PM aandrew: no, adapter driver 'ftdi'
08:01 PM aandrew: "This driver is for adapters using the MPSSE (Multi-Protocol Synchronous Serial Engine) mode built into many FTDI chips, such as the FT2232, FT4232 and FT232H"
08:01 PM rue_mohr: Error: Please specify ftdi_vid_pid
08:01 PM aandrew: sure, so specify 0403 6014
08:01 PM aandrew: ftdi_vid_pid 0x0403 0x6014
08:02 PM rue_mohr: tahnks
08:02 PM aandrew: depending on the exact hardware you have you may have a hell of a time figuring out the righ toptions
08:02 PM rue_mohr: Error: An adapter speed is not selected in the init script. Insert a call to "adapter speed" or "jtag_rclk" to proceed.
08:02 PM aandrew: there are a gazillion variants and it supports them all
08:02 PM aandrew: sure, put "adapter speed 1000"
08:03 PM rue_mohr: I was just on that one
08:03 PM aandrew: this bullshit is exactly what I have to go thorugh every time I fuck with openocd, it's infuriating
08:03 PM rue_mohr: !!
08:03 PM rue_mohr: Info : Listening on port 6666 for tcl connections
08:03 PM rue_mohr: Info : Listening on port 4444 for telnet connections
08:03 PM rue_mohr: Info : clock speed 1000 kHz
08:03 PM rue_mohr: Warn : Haven't made progress in mpsse_flush() for 2002ms.
08:03 PM rue_mohr: Warn : Haven't made progress in mpsse_flush() for 4005ms.
08:03 PM rue_mohr: Warn : Haven't made progress in mpsse_flush() for 8008ms.
08:03 PM rue_mohr: so, its entirely possable that the jtag isn't active
08:03 PM aandrew: hm that's an interesting warning
08:04 PM aandrew: try connecting it to something you KNOW has a working JTAG
08:04 PM rue_mohr: well
08:04 PM rue_mohr: to try to go forward, I want to try to find the "debug jumper" on the WD controller board
08:04 PM rue_mohr: this will require about 12 more browser windows
08:04 PM * Tom_L loans rue_mohr a couple
08:05 PM aandrew: rue_mohr: sure, but before you go down that undocumented rabbit hole, why not try sticking your hand into a hole that you know doesn't have something that'll bite?
08:05 PM aandrew: build confidence in your adapter and configuration then start poking at the unknown beast
08:06 PM rue_mohr: I might be 1 jumper away
08:06 PM rue_mohr: the howto I'm following said that the jumper was enabled, but they didn't say where the jumper was
08:07 PM rue_mohr: I'd like to quick find that first
08:15 PM aandrew: how's that working out for ya? :-)
08:17 PM rue_mohr: in the tut he said that he set the jumper, and didn't know if that was important to enabling the ftag
08:17 PM rue_mohr: and I dont know where that is
08:23 PM rue_mohr: Connect resistor 4k7 to P1 test point (+3.3v) and E6 test point.
08:27 PM rue_mohr: ok I think I should drop this and hook a serial console up to a seagate before I get too discouraged
08:47 PM rue_mohr: Preamp ID 00 unsupported
08:47 PM rue_mohr: Interface task reset
08:47 PM rue_mohr: 4096k x 16 SDRAM
08:47 PM rue_mohr: :)
08:47 PM rue_mohr: 9600 N81
08:48 PM rue_mohr: its sata tho, whatever, its talking to me
08:49 PM rue_mohr: http://nixware.net/fix-bricked-seagate-st31000340as-hard-disk-bsy-error
08:53 PM rue_mohr: F>N1
08:53 PM rue_mohr: Command Inactive - No VALID Cert Code Detected
08:54 PM rue_mohr: it likes this error, I think its flipping out cause it has no hardware
08:56 PM rue_mohr: F>-00,00,00,00
08:56 PM rue_mohr: 08FA
08:56 PM rue_mohr: I can read memory
09:05 PM rue_mohr: hahah whats funny
09:06 PM rue_mohr: is that you could use a drive thru a serial port like this
09:15 PM rue_mohr: ok
09:15 PM rue_mohr: so
09:15 PM rue_mohr: this looks like its in a stage of bootloading
09:15 PM rue_mohr: with the inability to move to the next stage cause its supposed to come off disk
09:15 PM rue_mohr: there seems to be a lot of blank memory
09:16 PM rue_mohr: Spin Motor Locked
09:16 PM rue_mohr: Index found - Spin Held -
09:16 PM rue_mohr: its upset
09:18 PM rue_mohr: >=0Pgm=00 Trk=00010DB0(00010DB0[000000]).0(0).000(000) Zn=FF Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ntrdy LBA=00000000
09:23 PM rue_mohr: F>D1,DA
09:23 PM rue_mohr: Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 1 2 3 4 5 6 7 8 9 A B C D E F
09:23 PM rue_mohr: 0100DA 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
09:23 PM rue_mohr: 0100FA 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
09:24 PM rue_mohr: it displays all the memory as 32 bit
09:28 PM aandrew: I remember screwing with this with some 1T Seagate drives
09:28 PM aandrew: couldn't get anywhere useful, too much conflicting data
09:28 PM rue_mohr: I should give it a body and try some things
09:29 PM rue_mohr: tho I dont think I need to
09:29 PM rue_mohr: Command Inactive - No VALID Cert Code Detected
09:30 PM rue_mohr: >Pgm=00 Trk=00010DB0(00010DB0[000000]).0(0).000(000) Zn=FF Err=00 ErCt=0000 Hlth=0000 CHlth=0000 Ntrdy LBA=00000000
09:30 PM rue_mohr: ^^ active status
09:36 PM rue_mohr: Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 1 2 3 4 5 6 7 8 9 A B C D E F
09:36 PM rue_mohr: 000000 FA0882FA FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9
09:36 PM rue_mohr: 000020 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9
09:36 PM rue_mohr: 000040 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9
09:36 PM rue_mohr: 000060 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA0858F9
09:36 PM rue_mohr: 000080 FA0858F9 FA0858F9 FA0858F9 FA0858F9 FA086C58 FA0858F9 FA0858F9 FA0858F9
09:36 PM rue_mohr: You know..
09:36 PM rue_mohr: that looks like a vector table
09:38 PM Tom_L: what hole have you fallen into?
09:38 PM rue_mohr: where FA0882FA is a jump to the init code, and FA0858F9 is a return from an unused vector
09:39 PM rue_mohr: how do I decompile arm commands?
09:39 PM rue_mohr: I'll work on the z80 again later, but this is interesting
09:40 PM rue_mohr: I'm sure of it, thats a vector table
09:48 PM rue_mohr: it cant modify it
09:48 PM rue_mohr: attempts to seem to lock it up
09:51 PM rue_mohr: 000000 the address is shown as 24 bits
09:52 PM rue_mohr: I wonder if its actually trying to write to flash flash
09:52 PM rue_mohr: casue the WE will be disabled I'm sure
09:59 PM rue_mohr: I'm not sure is it important but I have set board to test mode (First 3 pins are soldered to GND)
09:59 PM rue_mohr: ""
09:59 PM rue_mohr: option jumpers
10:05 PM Tom_L: are we having fun yet?
10:08 PM rue_mohr: http://meuk.spritesserver.nl/foto/foto/hdhack/IMG_2294.JPG
10:08 PM rue_mohr: ah
10:09 PM rue_mohr: no I still dont know
10:10 PM Tom_L: does the drive spin up or just using the board?
10:10 PM rue_mohr: its just a board
10:20 PM rue_mohr: huh, I just found what seems to be a fiber channel doc
10:27 PM rue_mohr: I dont see anything about grounding 3 pins to get to test mode
10:48 PM rue_mohr: ok I have another one going
10:49 PM rue_mohr: >D0000
10:49 PM rue_mohr: Addr 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 1 2 3 4 5 6 7 8 9 A B C D E F
10:49 PM rue_mohr: 000000 FA086E04 FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C
10:49 PM rue_mohr: 000020 FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C
10:49 PM rue_mohr: 000040 FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C FAC4600C
10:49 PM rue_mohr: different firmware, code located in a different spot, but same vector table
10:49 PM rue_mohr: and the jump command is just FA
10:50 PM rue_mohr: the address is the other 12 bits
10:50 PM rue_mohr: er 24 bits
10:50 PM rue_mohr: so, given the yea
10:50 PM rue_mohr: abolute jump command
10:50 PM rue_mohr: FA { 24 bit address }
10:50 PM aandrew: so what are you trying to do to the drive?
10:51 PM aandrew: that looks like a vector table
10:51 PM rue_mohr: turn a controller into a GPU for the z80
10:51 PM rue_mohr: yes!
10:51 PM rue_mohr: so is FA an absolute jump for an arm processor?
10:51 PM rue_mohr: the seagate drives allow you to dump memory via the serial interface
10:51 PM aandrew: you'd have to grab the ISA doc
10:51 PM aandrew: aha that's why
10:54 PM aandrew: hm, condition code 0xE (not 0xf) is always
10:54 PM aandrew: 0xf is not allowed
10:54 PM rue_mohr: ?
10:54 PM aandrew: even LDR PC, xxx would be 0xe not 0xf
10:54 PM rue_mohr: hmm
10:55 PM rue_mohr: so, its not an arm?
10:55 PM aandrew: thsi could be for the wrong ISA though
10:55 PM rue_mohr: mips I wonder
10:55 PM aandrew: this is ARM7TDMI
10:55 PM rue_mohr: oh
10:55 PM rue_mohr: they say this is
10:56 PM rue_mohr: feroceon
10:57 PM aandrew: that is ARMv5TE
11:00 PM aandrew: nope same issue
11:00 PM aandrew: 0xf is undefined
11:00 PM rue_mohr: iiiinteresting
11:00 PM aandrew: no
11:00 PM aandrew: I'm wrong
11:00 PM aandrew: 1111 is unconditional
11:01 PM aandrew: A is 1010, 101 is branch
11:01 PM aandrew: so yeah those are all jump unconditional
11:01 PM rue_mohr: sweet!
11:41 PM rue_mohr: Connect resistor 4k7 to P1 test point (+3.3v) and E6 test point.
11:48 PM aandrew: hm in openscad I'm trying import("foo.stl");
11:48 PM aandrew: but I don't see anything on the scren
11:48 PM aandrew: oh nevermind
11:48 PM aandrew: i was zoomed in way too far
11:50 PM aandrew: oh nevermind, openscad has no measurement tool
11:54 PM rue_mohr: technically the stls are unitless
11:55 PM rue_mohr: but usually people agree on 1mm/unit
11:56 PM aandrew: even then I can't measure in openscad