Talk:Bare metal

From Openmoko

Revision as of 11:31, 23 November 2008 by RussellSteicke (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Has anyone tried this on the freerunner hardware (ie not in qemu)?

To answer my own question: I have tried this on a real device.
Use /dev/ttyACM0 as the kermit device.
Kermit file transfers wouldn't work (some sort of flow control issue, I think) and I ended up writing the data into memory with the mm command.
GTA02v5 # mm 35000000
35000000: 00000000 ? e3a0d203
35000004: 00000000 ? e28dd60a
35000008: 00000000 ? e3a02456
3500000c: 00000000 ? e2822014
35000010: 00000000 ? e5923000
35000014: 00000000 ? e2233001
35000018: 00000000 ? e2233008
3500001c: 00000000 ? e5823000
35000020: 00000000 ? e3a04403
35000024: 00000000 ? e2544001
35000028: 00000000 ? 1afffffd
3500002c: 00000000 ? eafffff7
35000030: 00000000 ? -1
GTA02v5 # go 35000000
## Starting application at 0x35000000 ...
(Note that the machine code is slightly different to the example code. I'm toggling a LED and the buzzer.)
RussellSteicke 10:31, 23 November 2008 (UTC)
Personal tools

Has anyone tried this on the freerunner hardware (ie not in qemu)?

To answer my own question: I have tried this on a real device.
Use /dev/ttyACM0 as the kermit device.
Kermit file transfers wouldn't work (some sort of flow control issue, I think) and I ended up writing the data into memory with the mm command.
GTA02v5 # mm 35000000
35000000: 00000000 ? e3a0d203
35000004: 00000000 ? e28dd60a
35000008: 00000000 ? e3a02456
3500000c: 00000000 ? e2822014
35000010: 00000000 ? e5923000
35000014: 00000000 ? e2233001
35000018: 00000000 ? e2233008
3500001c: 00000000 ? e5823000
35000020: 00000000 ? e3a04403
35000024: 00000000 ? e2544001
35000028: 00000000 ? 1afffffd
3500002c: 00000000 ? eafffff7
35000030: 00000000 ? -1
GTA02v5 # go 35000000
## Starting application at 0x35000000 ...
(Note that the machine code is slightly different to the example code. I'm toggling a LED and the buzzer.)
RussellSteicke 10:31, 23 November 2008 (UTC)