Anonymous
×
Create a new article
Write your page title here:
We currently have 24 articles on smartbedded. Type your article name above or click on one of the titles below and start writing!



    smartbedded
    24Articles
    Revision as of 18:18, 3 October 2011 by Admin (talk | contribs)
    caption

    When you have your virgin iConnect, a suitable USB stick (or SD card plus card reader combo) in front of you and the Meteohub image downladed (as described here), then we are ready to start patching your iConnect by 3 easy steps:

    Step 1: Extract Meteohub Image

    First of all you have to decompress the downloaded file. As the file is in ".rar" format you have to use one of the file-decompressors availabe that can handle ".rar" files. On Windows you can use 7zip, on Linux "unrar" utility (link) can be used for that. Result of "unrar" is a file about 4GB in size that is named like "mhiconnect-stick-xyz.img".

    Step 2: Put Meteohub Image onto USB stick

    The file resulting from step 1 is not a file the pure binary low-level data. Please be aware that this data has not to be placed into a file system you have already brought onto the USB stick, but that this data includes 3 partitions with separate filesystems in it. Therefore, just copying the resulting ".img" file onto the stick, as you normally do with files, will not work. You need a special tool for that.

    Linux

    On Linux you use the "dd" command. Please insert the USB stick into your Linux box and check via "dmesg" what device the stick has been mapped to. In the following example it has been mapped to "/dev/sdj"

    host:~# dmesg
    ...
    [708634.148013] usb 2-8: new high speed USB device using ehci_hcd and address 9
    [708634.566078] usb 2-8: New USB device found, idVendor=058f, idProduct=6387
    [708634.566082] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [708634.566084] usb 2-8: Product: Mass Storage Device
    [708634.566086] usb 2-8: Manufacturer: JetFlash
    [708634.566088] usb 2-8: SerialNumber: Q05E7OLZ
    [708634.566409] scsi24 : usb-storage 2-8:1.0
    [708635.613921] scsi 24:0:0:0: Direct-Access     JetFlash TS4GJF130        8.07 PQ: 0 ANSI: 2
    [708635.614072] sd 24:0:0:0: Attached scsi generic sg9 type 0
    [708635.617302] sd 24:0:0:0: [sdj] 7987200 512-byte logical blocks: (4.08 GB/3.80 GiB)
    [708635.617910] sd 24:0:0:0: [sdj] Write Protect is off
    [708635.617913] sd 24:0:0:0: [sdj] Mode Sense: 03 00 00 00
    [708635.617915] sd 24:0:0:0: [sdj] Assuming drive cache: write through
    [708635.621534] sd 24:0:0:0: [sdj] Assuming drive cache: write through
    [708635.621538]  sdj: sdj1 sdj2 sdj3
    [708635.624279] sd 24:0:0:0: [sdj] Assuming drive cache: write through
    [708635.624281] sd 24:0:0:0: [sdj] Attached SCSI removable disk

    We are just looking for "sdj" and are not interested in the partitions recognized on the stick (sdj1, sdj2, sdj3). The print out above tells that "/dev/sdj" is the target device. To make sure that the device ist not mounted by some background processes you should manually unmount all partitions by "umount". In the given example this will be

    umount /dev/sdj1; umount /dev/sdj2; umouunt /dev/sdj3

    When this throws errors about not mounted file systems that is fine. Don't worry. Now it is time to bring the Meteohub image onto the stick. In the example above this will be done by

    dd if=mhiconnect-stick-xyz.img of=/dev/sdj bs=1M

    Please be careful with that command. When you choose the wrong "of=" target (i.e. your system drive) this will be overwritten without further notice and you will have to restore your Linux box! As dd has to transport 4GB of data to the stick this will take a few minutes. When finished dd will report number of written blocks. If it reports that not all blocks could be written, something is wrong with your USB stick (may be less than 4GB in size?).
    When "dd" has completed without error, this step is finished and you can pull the USB stick from your Linux box.

    Windows

    On Windows you need to download and run a special tool to do the required low-level writing to the USB stick. The tool of choice is "ImageWriter" from SuSE (you find additional information about this tool here). Please download ImageWriter.exe to your Windows PC. It does not need to be installed it is just a small executable to run. Please insert the USB stick into your PC wait a few seconds and then start downloaded "ImageWriter.exe". Wait until a dialog like this pops up:

    Imagewriter1.png

    Please select the inserted USB stick from the target drop-down list. Then open the file browser by clicking "Select" button. "*.img" files are not displayed by default so first thing to do is to enter "*.img" as file name. Having done that you will see the file "mhiconnect-stick-xyz.img" on the list. Select and open this file. Dialog should now look like this:

    Imagewriter2.png

    Press "copy" and the image data will be written to USB stick. When operation has finished without error, you are done with this step. Please pull the USB stick from your Windows PC.

    Step 3: Patch the iConnect

    Iconnect-reset.png

    Patching the iConnect is done in a few very simple tasks.

    1. Completely disconnect the iConnect (power, ethernet, USB devices) and connect the created Meteohub USB stick to one of the four USB ports.
    2. Locate the reset pin hole at the rear of the iconnect. Take a paper clip and bend it open, as it will be used to press reset button behing pin hole at the rear. Insert paper clip end into the reset pin hole and press slightly. You should feel a soft "click" indicating that you hit and pressed the reset button behind the hole.
    3. Keep the reset button pressed while connecting the power cord to the iConnect again. Keep the reset button pressed until blue flashing power LED changes to red. This will take about 15 seconds. Red power LED indicates iConnect has been successfully booted into "update mode".
    4. Now you can release the reset button. You will see the power LED start flashing blue after a while. Then blue LED of the USB port where the USB stick is connected will also start flashing.
    5. Update process has finisched when LEDs above all USB ports turn to blue. This should just take a few minutes. After that, system will hold for a few seconds and will reboot. All LEDs will go off when reboot starts.
    6. On reboot power LED starts flashing blue again, will then go off for a while and will come back as solid blue when system has been booted successfully.
    7. About one minute after successfull boot, Meteohub will signal the IP it has received via DHCP from your router by blinking with power LED in red and blue. If you are interested how to read this, please have a look here. After signaling of LED has been done, Power LED will turn back to solid blue.

    Your Meteohub is now ready to g. Just follow instaructions on www.meteohub.de. The Setup Guide might be a good starting point.


    caption