Skip to content

Instantly share code, notes, and snippets.

@AdamMagaluk
Last active December 16, 2015 03:59
Show Gist options
  • Save AdamMagaluk/5374280 to your computer and use it in GitHub Desktop.
Save AdamMagaluk/5374280 to your computer and use it in GitHub Desktop.
Gumstix writing mmc to nand

Setting Up Gumstix

Flashing Gumstix

  1. Open Applications->Intellistreets->Minicom

  2. Connect gumstix to Tobi board.

  3. Make sure usb cable is plugged into computer and the green light is on next to the usb cable.

  4. Run minicom -D /dev/ttyUSB0

  5. Insert programming micro sd card.

  6. Power gumstix on.

  7. When instructed on mincom press s key to stop bootting.

  8. Copy and paste mmc rescan 0; fatload mmc 0 ${loadaddr} flash-all.scr; source ${loadaddr}; setenv bootdelay 1; saveenv; and hit enter. Crtl-Shfit-V for paste in termincal. Or right-click and paste.

Verify output looks like;

599 bytes read                                                                  
## Executing script at 82000000                                                 
                                                                                
NAND erase.chip: device 0 whole chip                                            
Erasing at 0x1ffe0000 -- 100% complete.                                         
OK                                                                              
reading MLO                                                                     
                                                                                
24536 bytes read                                                                
HW ECC selected                                                                 
                                                                                
NAND write: device 0 offset 0x0, size 0x20000                                   
 131072 bytes written: OK                                                       
                                                                                
NAND write: device 0 offset 0x20000, size 0x20000                               
 131072 bytes written: OK                                                       
                                                                                
NAND write: device 0 offset 0x40000, size 0x20000                               
 131072 bytes written: OK                                                       
                                                                                
NAND write: device 0 offset 0x60000, size 0x20000                               
 131072 bytes written: OK                                                       
reading u-boot.bin                                                              
                                                                                
261828 bytes read                                                               
SW ECC selected                                                                 
                                                                                
NAND write: device 0 offset 0x80000, size 0x3fec4                               
 261828 bytes written: OK                                                       
                                                                                
NAND erase: device 0 offset 0x240000, size 0x20000                              
Erasing at 0x240000 -- 100% complete.                                           
OK                                                                              
reading uImage                                                                  
                                                                                
3432264 bytes read                                                              
                                                                                
NAND write: device 0 offset 0x280000, size 0x345f48                             
 3432264 bytes written: OK                                                      
reading rootfs.ubi                                                              
                                                                                
33292288 bytes read                                                             
                                                                                
NAND write: device 0 offset 0x680000, size 0x1fc0000                            
 33292288 bytes written: OK                                                     
Saving Environment to NAND...                                                   
Erasing Nand...                                                                 
Erasing at 0x240000 -- 100% complete.                                           
Writing to Nand... done   
  1. Remove microsd card.

  2. Insert media card that is already formatted to ext3.

  3. Enter reset hit enter. Wait a minute or two the gumstix will reboot once during its normal process and you should be left with:

Debian GNU/Linux 6.0 v3node-x ttyO2                                             
                                                                                
v3node-x login:
  1. Login using adam:sk582!@

  2. Run pidof v3node and verify a number appears like 417.

  3. Run df -h and last line will be:

/dev/mmcblk0p1         1924048     35688   1790620   2% /media/card
  1. Finished, power off gumstix and remove.

#Creating media cards

  1. Open Applications->Intellistreets->Gparted in main application menu. If instructed login with normal credentials.

  2. Switch devices on the top right dropdown box to /dev/sdb or similair. Will be one with ~2GB. You may have to refresh by Ctl-R if you removed and inserted a new card.

  3. Click on any partitions and click delete until you are left with a completely unallocated device.

  4. Click Partition->New

  5. Change File System to ext3 and click Add.

  6. Click green checkmark and click Apply.

  7. Will complete without errors.

  8. Can remove card now.

mmc rescan 0; fatload mmc 0 ${loadaddr} flash-gw.scr; source ${loadaddr}; setenv bootdelay 1; saveenv;
mmc rescan 0; fatload mmc 0 ${loadaddr} flash-all.scr; source ${loadaddr}; setenv bootdelay 1; saveenv;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment