Talk:Bare metal

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: Has anyone tried this on the freerunner hardware (ie not in qemu)?)
 
Line 1: Line 1:
 
Has anyone tried this on the freerunner hardware (ie not in qemu)?
 
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 <tt>/dev/ttyACM0</tt> 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 <tt>mm</tt> 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.)

Revision as of 12:31, 23 November 2008

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