Notes

From GumstixWiki

Out of the box gumstix tend to say "bad CRC" on boot. Press a key on hard reboot and in uboot type: saveenv

etherstix needed this in /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 152.78.189.12
netmask 255.255.255.0
broadcast 152.78.189.255
gateway 152.78.189.254
pre-up /sbin/modprobe smc91x

To get the gumstix visible via bluetooth, the /etc/default/bluetooth baud speeds need to be changed from 115200/115200 to 57600/921600. This file overrides /etc/init.d/S30bluetooth.

Contents

Summary of reflashing linux on a connex xm

NB: new (buildroot rev 1440+) Gumstix buildroot revisions by default build the filesystem for use on systems with UBoot 1.2 and do not include the kernel in the filesystem

See the Official gumstix wiki on flashing for more up-to-date instructions.


Transfering data to u-boot using the serial port

reset it and press a key to get into uboot
with serial download:
GUM> loadb a2000000
do kermit send in hyperterminal
GUM> protect on 1:0-1
GUM> erase all
GUM> cp.b a2000000 40000 ${filesize}


Transfering data to u-boot using TFTP

Flashing is significantly faster using tftp transfer via an Ethernet expansion board. But has no other differences from serial transfers, in most cases the commands are interchangeable.

First of all we need to give the gumstix an IP address and the address of the TFTP server it will get the data from, then save the enviroment so these setting stick.

GUM> setenv ipaddr 192.168.0.2
GUM> setenv serverip 192.168.0.1
GUM> saveenv
Saving Environment to Flash...
.
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
.
Protected 1 sectors
GUM>

Now transfer the data with the following command:

GUM> tftp a2000000 rootfs.gumsense

where a2000000 is a location in RAM where the data is stored and rootfs.gumsense is a file available from the TFTP server.


While TFTP transfer is fast in our experience it is a bit tricky! Often a transfer will timeout and fail.

GUM> tftp a2000000 rootfs.gumsense
Using SMC91C1111-0 device
TFTP from server 152.78.64.205; our IP address is 152.78.65.78
Filename 'rootfs.gumsense'.
Load address: 0xa2000000
Loading: T #################################################################
         #################################################################
         ##T T ###############################################################
         #######################<snip>###################################
         #####T ############################################################
         #################################################################
         ###T ########T T T T T T T T T T T T T T T 
Retry count exceeded; starting again
Using SMC91C1111-0 device
TFTP from server 152.78.64.205; our IP address is 152.78.65.78
Filename 'rootfs.gumsense'.
Load address: 0xa2000000
Loading: T T T T T T T T T T T T T T T T T T T T 
Retry count exceeded; starting again

In our experience after getting four T T T T in a row it is a sign the transfer will fail so we Ctrl+C to stop the transfer. We also found that after a failed attempt the gumstix needed to be rebooted before it will start recieving data again.

To reboot u-boot simply type:

GUM> reset


A succeful transfere will look like this:

         <snip>
         ###############################T ##################################
         ###############################
done
Bytes transferred = 15466496 (ec0000 hex)
GUM>


Commiting a new image to flash

Once a transfer is succesfull it is a good idea to get a crc32 checksum of the data, especially if it is a new u-boot image:

GUM> crc32 a2000000 ${filesize}
CRC32 for a2000000 ... a20273a7 ==> 66bbc2bd


Once we are happy the transfer was succesfull we can commit the image to flash. The new approach to this is a three step process.

First transfer the filesystem image to the gumstix

GUM> tftp a2000000 rootfs.gumsense
GUM> pro on 1:0-1 && jera all && cp.b a2000000 40000 ${filesize}

the last command will protect the uboot, erase all the unprotected blocks and then copy the filesysten to address 40000.


Second transfer the kernel image to the gumstix

GUM> tftp a2000000 uImage.gumsense
GUM> katinstall 100000


Third reboot

GUM> reset

passwdless ssh

nice link here http://openzaurus.org/wordpress/howto/passwordless-ssh/