Changes between Version 29 and Version 30 of TBR/BSP/Beagleboard
- Timestamp:
- 05/27/15 20:38:03 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TBR/BSP/Beagleboard
v29 v30 50 50 51 51 If you want to track the RTEMS master repo and Ben's WIP branch try the following: 52 52 {{{ 53 53 $ git clone git://git.rtems.org/data/rtems.git 54 54 Cloning into 'rtems'... … … 75 75 $ git checkout beaglebone-wip 76 76 Switched to branch 'beaglebone-wip' 77 }}} 77 78 78 79 To update the branch to the current master fetch the origin then: 79 80 81 {{{ 80 82 $ git checkout beaglebone-wip 81 83 Switched to branch 'beaglebone-wip' … … 87 89 Applying: nothing 88 90 .... 91 92 }}} 89 93 = Debugging = 90 94 … … 97 101 98 102 To run OpenOCD: 99 103 {{{ 100 104 $ curl http://www.rtems.org/ftp/pub/rtems/people/chrisj/beagle/bbxm.cfg > bbxm.cfg 101 105 $ ~/development/openocd/git/bin/openocd -f bbxm.cfg -c "reset" … … 122 126 dm37x.cpu: cpsr: 0x000001f3 pc: 0x00015dec 123 127 dm37x.cpu: MMU: disabled, D-Cache: disabled, I-Cache: enabled 124 125 The file http://www.rtems.org/ftp/pub/rtems/people/chrisj/beagle/bbxm.cfg contains initialisation sequence needed to get the board set up so code can be downloaded into RAM. The sequence is from the cunnig capture Ben did with qemu. 128 }}} 129 130 The file http://www.rtems.org/ftp/pub/rtems/people/chrisj/beagle/bbxm.cfg contains initialization sequence needed to get the board set up so code can be downloaded into RAM. The sequence is from the cunnig capture Ben did with qemu. 126 131 = Building U-Boot = 127 132 128 133 129 134 To build U-Boot: 130 135 {{{ 131 136 $ git clone git://git.denx.de/u-boot.git 132 137 $ cd u-boot … … 136 141 $ gmake CROSS_COMPILE=arm-rtems4.11- omap3_beagle_config 137 142 $ gmake CROSS_COMPILE=arm-rtems4.11- 143 }}} 138 144 139 145 Note: I use FreeBSD so gmake is required. 140 146 141 147 U-Boot can be run via JTAG. Start OpenOCD and then run: 142 148 {{{ 143 149 $ arm-rtems4.11-gdb u-boot 144 150 GNU gdb (GDB) 7.6.2 … … 198 204 (gdb) c 199 205 206 }}} 207 208 200 209 On the console serial port with a baudrate of 115200 I see: 201 210 211 {{{ 202 212 U-Boot 2014.04 (Apr 16 2014 - 13:16:21) 203 213 … … 219 229 Hit any key to stop autoboot: 0 220 230 OMAP3 beagleboard.org # 231 232 }}} 233 234 221 235 = Initializing the SOC without bootcode = 222 236 … … 229 243 230 244 However booting an SD-card with MLO and U-Boot on it from a qemu does let me record the i/o operations it does. I added this code to qemu: 231 245 {{{ 232 246 index aab4a31..2c357d1 100644 233 247 --- a/memory.c … … 277 291 if (!mr->ops->write) { 278 292 293 }}} 294 279 295 and put the resulting commands in the reset-init hook of the openocd target config. I included the reads just in case the HW behaviour is affected by it. The list is unnecessarily long but I haven't bothered trimming it yet before I see it actually working. This gets very far in initializing the device. I can load an .exe now from gdb and the disassembly looks okay so I assume the RAM writing is working. But it has an exception on the first instruction. I haven't figured out why. I have seen hello.exe execute properly once so I'm sure it's close. 280 296