Difference between revisions of "Gumstix Crapola"
Jump to navigation
Jump to search
| (4 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
[http://docwiki.gumstix.org/index.php/Connecting_via_Serial_-_Linux Linux Serial Connection] (kermit used) | [http://docwiki.gumstix.org/index.php/Connecting_via_Serial_-_Linux Linux Serial Connection] (kermit used) | ||
| + | |||
| + | [http://docwiki.gumstix.org/index.php/Replacing_the_filesystem_image 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== | ||
| + | *[http://gumstix.com/store/catalog/product_info.php?products_id=210 motherboard] 600MHz, 128MB RAM | ||
| + | *[http://gumstix.com/store/catalog/product_info.php?products_id=207 10/100 network adapter] | ||
| + | *[http://gumstix.com/store/catalog/product_info.php?products_id=184 breakout board] for i2c and serial headers | ||
| + | *[http://gumstix.com/store/catalog/product_info.php?products_id=148 power adapter] | ||
| + | *[http://gumstix.com/store/catalog/product_info.php?products_id=161 screw kit] | ||
| + | Total cost: $270.50 + shipping | ||
| + | *''Optional:'' [http://gumstix.com/store/catalog/product_info.php?products_id=191 WiFi module] for network adapter | ||
| + | **Cost: $40 | ||
| + | |||
| + | ==Other stuff to buy== | ||
| + | *crimper and parts for header sockets | ||
| + | *dual-row header pins | ||
| + | *TTL-RS232 adapters | ||
| + | *TTL or RS232 to USB adapters | ||
Latest revision as of 06:04, 5 February 2009
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
- motherboard 600MHz, 128MB RAM
- 10/100 network adapter
- breakout board for i2c and serial headers
- power adapter
- screw kit
Total cost: $270.50 + shipping
- Optional: WiFi module for network adapter
- Cost: $40
Other stuff to buy
- crimper and parts for header sockets
- dual-row header pins
- TTL-RS232 adapters
- TTL or RS232 to USB adapters