----- INFO: (documented updated December 9th 2010 by jconnolly@buglabs.net) ----- This process was designed to get users who may have received their BUGs before 12/8/2010 with a working, calibrated fuel-gauge (to monitor battery life) and an envrionment variable in the bootloader consistent with what will be production software. That said, reprogramming an already-programmed BUGbase is not destructive. ------------- INSTRUCTIONS: ------------- I assume linux here. Be careful! Make sure you use the right letter! wget http://bugcommunity.com/downloads/files/2.0/BQ-machid-updater/create-card.sh chmod 775 create-card.sh sudo ./create-card.sh /dev/XXX (where XXX is the devnode of your SD card. NOT partition. card. i.e. sdc, mmcblk0. NOT sdc1, mmcblk0p1). --------- BEHAVIOR: --------- You'll see the LEDs on the front panel flash (as a they normally do on boot), then go off as the kernel is executed. After bqupdate has been done, assuming it is successful, you'll see a green heartbeat on the WIFI LED. If it is unsuccessful, you'll see a RED heartbeat on the WIFI LED. If you're looking at the serial console, you should see something like: ... mmc1 is available reading config.img 817 bytes read ## Executing script at 81600000 ============================================================ Setting machid ============================================================ running setenv machid C10 saving environment with saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x240000 -- 100% complete. Writing to Nand... done ============================================================ Loading ramdisk and kernel to run bqupdate ============================================================ running mmc init mmc1 is available Loading kernel with fatload mmc 0:1 0x80000000 /uImage reading /uImage 2646904 bytes read Loading ramdisk with fatload mmc 0:1 0x83000000 /uInitramfs.ub reading /uInitramfs.ub 4292283 bytes read Booting kernel with bootm 0x80000000 0x83000000 ## Booting kernel from Legacy Image at 80000000 ... Image Name: Linux-2.6.31-omap1-ge8ddcac Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2646840 Bytes = 2.5 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 83000000 ... Image Name: uInitramfs Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 4292219 Bytes = 4.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Using machid 0xc10 from environment Starting Kernel ... Uncompressing Linux............................................................................................... .................................................................................. done, booting the kernel. Linux version 2.6.31-omap1-ge8ddcac (jconnolly@jconnolly-linux) (gcc version 4.3.1 (GCC) ) #10 Wed Dec 8 16:15:55 EST 2010 .... .... Reading /home/root/Bug20_0500_0120_GOLDEN.dfi... Current firmware version: 120 Enter ROM mode... Begin IF copy... IF copy successful. Begin IF erase... Row 2 successfully erased Error check verifies first two lines are clear. Begin mass erase... Mass erase successful. Begin writing image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Image write completed, verifying checksum... Checksum verified - Image write successful. Begin writing back IF rows... IF Row 1 written back successfully IF Row 0 written back successfully Finished updating. Exiting ROM mode... Issuing RESET, IT_ENABLE and SEALED commands... Successfully issued RESET on address 0x55 bqupdate completed. ... That's it. Pop the SD out and program the next BUG2.0.