Jump to content

Sony IMX230 Linux driver: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 5: Line 5:
<td><div class="clear; float:right">__TOC__</div></td>
<td><div class="clear; float:right">__TOC__</div></td>
<td>
<td>
<html>
{{Shopping_cart_mpo}}
<div id='product-component-1594671854188'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'ridgerun1.myshopify.com',
      storefrontAccessToken: 'b0ca98633a82de5d2f63cd51f5af30ac',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '1684420821063',
        node: document.getElementById('product-component-1594671854188'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "button": {
        "font-family": "Open Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px",
        ":hover": {
          "background-color": "#0187a7"
        },
        "background-color": "#0196ba",
        ":focus": {
          "background-color": "#0187a7"
        },
        "border-radius": "5px",
        "padding-left": "50px",
        "padding-right": "50px"
      },
      "quantityInput": {
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px"
      }
    },
    "text": {
      "button": "Add to cart"
    },
    "googleFonts": [
      "Open Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Open Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px",
        ":hover": {
          "background-color": "#0187a7"
        },
        "background-color": "#0196ba",
        ":focus": {
          "background-color": "#0187a7"
        },
        "border-radius": "5px",
        "padding-left": "50px",
        "padding-right": "50px"
      },
      "quantityInput": {
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px"
      }
    },
    "googleFonts": [
      "Open Sans"
    ]
  },
  "cart": {
    "styles": {
      "button": {
        "font-family": "Open Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "18px",
        "padding-top": "17px",
        "padding-bottom": "17px",
        ":hover": {
          "background-color": "#0187a7"
        },
        "background-color": "#0196ba",
        ":focus": {
          "background-color": "#0187a7"
        },
        "border-radius": "5px"
      },
      "title": {
        "color": "#4c4c4c"
      },
      "header": {
        "color": "#4c4c4c"
      },
      "lineItems": {
        "color": "#4c4c4c"
      },
      "subtotalText": {
        "color": "#4c4c4c"
      },
      "subtotal": {
        "color": "#4c4c4c"
      },
      "notice": {
        "color": "#4c4c4c"
      },
      "currency": {
        "color": "#4c4c4c"
      },
      "close": {
        "color": "#4c4c4c",
        ":hover": {
          "color": "#4c4c4c"
        }
      },
      "empty": {
        "color": "#4c4c4c"
      },
      "noteDescription": {
        "color": "#4c4c4c"
      },
      "discountText": {
        "color": "#4c4c4c"
      },
      "discountIcon": {
        "fill": "#4c4c4c"
      },
      "discountAmount": {
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Open Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Open Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#0196ba",
        ":hover": {
          "background-color": "#0187a7"
        },
        ":focus": {
          "background-color": "#0187a7"
        }
      },
      "count": {
        "font-size": "18px"
      }
    },
    "googleFonts": [
      "Open Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#4c4c4c"
      },
      "title": {
        "color": "#4c4c4c"
      },
      "price": {
        "color": "#4c4c4c"
      },
      "fullPrice": {
        "color": "#4c4c4c"
      },
      "discount": {
        "color": "#4c4c4c"
      },
      "discountIcon": {
        "fill": "#4c4c4c"
      },
      "quantity": {
        "color": "#4c4c4c"
      },
      "quantityIncrement": {
        "color": "#4c4c4c",
        "border-color": "#4c4c4c"
      },
      "quantityDecrement": {
        "color": "#4c4c4c",
        "border-color": "#4c4c4c"
      },
      "quantityInput": {
        "color": "#4c4c4c",
        "border-color": "#4c4c4c"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
</html>
<td>
<td>
{{GStreamer debug}}
{{GStreamer debug}}
Line 324: Line 72:
</pre>
</pre>


* Then '''make''' the SDK and install following the Started Guide mentioned before
* Then '''make''' the SDK and install it following the Started Guide mentioned before


===Using Jetpack===
===Using Jetpack===
Line 330: Line 78:
* Follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Downloading_the_code | Compiling_Tegra_X1/TX2_source_code (Downloading the code)]] to get the kernel source code.
* Follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Downloading_the_code | Compiling_Tegra_X1/TX2_source_code (Downloading the code)]] to get the kernel source code.


* If you didn't have download the toolchain yet, follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Toolchain | Compiling_Tegra_TX1/TX2_source_code (Toolchain)]]
* If you didn't have downloaded the toolchain yet, follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Toolchain | Compiling_Tegra_TX1/TX2_source_code (Toolchain)]]


* Once you have the source code, apply the patches for fix kernel error during compilation and add the support for the IMX230:
* Once you have the source code, apply the patches to fix kernel error during compilation and add the support for the IMX230:


<pre>
<pre>
Line 363: Line 111:
[[Compile_gstreamer_on_Jetson_TX1_and_TX2]]
[[Compile_gstreamer_on_Jetson_TX1_and_TX2]]


 
{{Ambox
'''Important Note:''' When you are accessing the board through serial or ssh and you want to run a pipeline to display with autovideosink, nveglglessink, xvimagesink or any other video sink, you have to run your pipeline with ''DISPLAY=:0'' at the beginning of the description:
|type=notice
|small=left
|issue='''Important Note:''' When you are accessing the board through serial or ssh and you want to run a pipeline to display with '''autovideosink''', '''nveglglessink''', '''xvimagesink''' or any other video sink, you have to run your pipeline with '''''DISPLAY=:0''''' at the beginning of the description:
|style=width:unset;
}}


<pre style="background:#d6e4f1">
<pre style="background:#d6e4f1">
Line 433: Line 185:
</pre>
</pre>


Open the file raw2rgbpnm.c and change the line 489 with:
Open the file raw2rgbpnm.c and change line 489 with:


<pre>
<pre>
Line 491: Line 243:


=== Framerate with v4l ===
=== Framerate with v4l ===
This test was developed with v4l-util tools to capture a raw image and to measure the framerate.  
This test was developed with v4l-util tools to capture a raw image and measure the framerate.  
<pre>
<pre>
nvidia@tegra-ubuntu:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=5344,height=4016,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap
nvidia@tegra-ubuntu:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=5344,height=4016,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap
Line 610: Line 362:
</pre>
</pre>


The average for each core while dual capturing is: [22.64%, 21.14%, 25.07%, 27.64%] and the memory is 2429MB for the total system, for only the dual capture the armload is [15.37%, 18.85%, 22.81%, 22.81%] for each core and takes 609MB of memory.
The average for each core while dual capturing is: [22.64%, 21.14%, 25.07%, 27.64%], and the memory is 2429MB for the total system, for only the dual capture the armload is [15.37%, 18.85%, 22.81%, 22.81%] for each core and takes 609MB of memory.


{{ContactUs}}
{{ContactUs}}


[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Sony]]
[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Sony]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.