Gumstix Crapola

From New IAC Wiki
Jump to navigation Jump to search

Serial TTL converter

breakout-vx layout image

Linux Serial Connection (kermit used)

flashing the root filesystem on the gumstix

Flashing root image

as root:

kermit -l /dev/ttyS0
C-Kermit 8.0.209, 17 Mar 2003, for Red Hat Linux 8.0
Copyright (C) 1985, 2003,
 Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/daq/brian/j/) C-Kermit>set speed 115200
/dev/ttyS0, 115200 bps
(/home/daq/brian/j/) C-Kermit>set reliable
(/home/daq/brian/j/) C-Kermit>fast
(/home/daq/brian/j/) C-Kermit>set carrier-watch off
(/home/daq/brian/j/) C-Kermit>set flow-control none
(/home/daq/brian/j/) C-Kermit>set prefixing all
(/home/daq/brian/j/) C-Kermit>set file type bin
(/home/daq/brian/j/) C-Kermit>set rec pack 4096
(/home/daq/brian/j/) C-Kermit>set send pack 4096
(/home/daq/brian/j/) C-Kermit>set window 5
(/home/daq/brian/j/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
GUM>loadb a2000000
## Ready for binary (kermit) download to 0xA2000000 at 115200 bps...
(Back at daq1.physics.isu.edu)
----------------------------------------------------
(/home/daq/brian/j/) C-Kermit>
(/home/daq/brian/j/) C-Kermit>send rootfs.arm_nofpu.jffs2
(/home/daq/brian/j/) C-Kermit>connect                    
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size      = 0x005e31b4 = 6173108 Bytes
## Start Addr      = 0xA2000000
GUM> loadb a2000000
## Ready for binary (kermit) download to 0xA2000000 at 115200 bps...
(Back at daq1.physics.isu.edu)
----------------------------------------------------
(/home/daq/brian/j/) C-Kermit>send uImage
(/home/daq/brian/j/) C-Kermit>                           
(/home/daq/brian/j/) C-Kermit>
(/home/daq/brian/j/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size      = 0x005e31b4 = 6173108 Bytes
## Start Addr      = 0xA2000000
GUM> pro on 1:0-1 && jera all && cp.b a2000000 40000 ${filesize}
Protect Flash Sectors 0-1 in Bank # 1
.. done
Erase Flash Bank # 1 - Warning: 2 protected sectors will not be erased!
.................................................................................................... done
Copy to Flash... done
GUM> loadb a2000000
## Ready for binary (kermit) download to 0xA2000000 at 115200 bps...
(Back at daq1.physics.isu.edu)
----------------------------------------------------
(/home/daq/brian/j/) C-Kermit>send uImage
(/home/daq/brian/j/) C-Kermit>connect
Connecting to /dev/ttyS0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size      = 0x000f24a0 = 992416 Bytes
## Start Addr      = 0xA2000000
GUM> bootm
## Booting image at a2000000 ...
  Image Name:   uImage
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:    992352 Bytes = 969.1 kB
  Load Address: a0008000
  Entry Point:  a0008000
OK
Starting kernel ...

Notes:

  • To switch to the kermit> prompt type ctrl-| followed by c
  • You may have to hit enter to get the GUM> prompt the first time

Gumstix parts for standard system

Total cost: $270.50 + shipping

Other stuff to buy

  • crimper and parts for header sockets
  • dual-row header pins
  • TTL-RS232 adapters
  • TTL or RS232 to USB adapters