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 15:58, 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 4 easy steps:

    1. 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".
    2. Step 2: Put Meteohub Image ont 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.
      • On Linux you use the "dd" command. Please insert the USB stick into your Linux box and check via "dmesg" what device the stick as been mapped to. In the following example it has been mapped to "/dev/sdj"
         host:~# dmesg<br>...<br>[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?)



    On setup page, you will get directions how to make a Meteohub from these three ingrediants.


    caption