<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックDataBase on i.MX28</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333055#M45091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a question about databases. I need to install PostgreSQL on i.MX28, in which application will write data. I download postgresql-9.3.5.tar.bz2 from postgresql.org, install it in rootfs directory of LTIB. Then I create new database, and write into it three rows. Then I wrote SD card and launch i.mx. But when I try to launch any of scripts of pgsql, I get only errors.&lt;/P&gt;&lt;P&gt;root@freescale /pgsql/bin$ ./psql&lt;/P&gt;&lt;P&gt;./psql: line 1: syntax error: unexpected "("&lt;/P&gt;&lt;P&gt;root@freescale /pgsql/bin$ ./postgres&lt;/P&gt;&lt;P&gt;./postgres: line 1: syntax error: unexpected "("&lt;/P&gt;&lt;P&gt;And application can't connect to db too.&lt;/P&gt;&lt;P&gt;I tried to connect to db from application on windows, everything ok.&lt;/P&gt;&lt;P&gt;So, how can I start the PostgreSQL server on i.mx? Or there is something wrong?&lt;/P&gt;&lt;P&gt;And I also create a new user Admin to launch postgresql (because it is impossible to launch it under root), so should I create another user on i.mx?&lt;/P&gt;&lt;P&gt;Maybe there is another way of installation PostgreSQL on i.mx? With LTIB and .spec?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2014 10:58:30 GMT</pubDate>
    <dc:creator>alexandrglukhov</dc:creator>
    <dc:date>2014-10-17T10:58:30Z</dc:date>
    <item>
      <title>DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333055#M45091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a question about databases. I need to install PostgreSQL on i.MX28, in which application will write data. I download postgresql-9.3.5.tar.bz2 from postgresql.org, install it in rootfs directory of LTIB. Then I create new database, and write into it three rows. Then I wrote SD card and launch i.mx. But when I try to launch any of scripts of pgsql, I get only errors.&lt;/P&gt;&lt;P&gt;root@freescale /pgsql/bin$ ./psql&lt;/P&gt;&lt;P&gt;./psql: line 1: syntax error: unexpected "("&lt;/P&gt;&lt;P&gt;root@freescale /pgsql/bin$ ./postgres&lt;/P&gt;&lt;P&gt;./postgres: line 1: syntax error: unexpected "("&lt;/P&gt;&lt;P&gt;And application can't connect to db too.&lt;/P&gt;&lt;P&gt;I tried to connect to db from application on windows, everything ok.&lt;/P&gt;&lt;P&gt;So, how can I start the PostgreSQL server on i.mx? Or there is something wrong?&lt;/P&gt;&lt;P&gt;And I also create a new user Admin to launch postgresql (because it is impossible to launch it under root), so should I create another user on i.mx?&lt;/P&gt;&lt;P&gt;Maybe there is another way of installation PostgreSQL on i.mx? With LTIB and .spec?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 10:58:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333055#M45091</guid>
      <dc:creator>alexandrglukhov</dc:creator>
      <dc:date>2014-10-17T10:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333056#M45092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you actually installed x86 PostgreSQL on your PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such outputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; ./psql: line 1: syntax error: unexpected "("&lt;BR /&gt;&amp;gt; ./postgres: line 1: syntax error: unexpected "("&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mean that Linux OS running on the board does not recognize&lt;BR /&gt;psql and postgres as executable binaries and tryes to run them&lt;BR /&gt;as scriprs. It suggests me that psql and postgres are actually&lt;BR /&gt;x86 binaries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it with "file" utility such way. Here busybox &lt;BR /&gt;is i.MX28 binary and /bin/bash is x86 one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vik@tecno:~/ltib/1012-28/ltib-perl/rootfs/bin$ file busybox&lt;BR /&gt;busybox: setuid ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped&lt;BR /&gt;vik@tecno:~/ltib/1012-28/ltib-perl/rootfs/bin$ file /bin/bash&lt;BR /&gt;/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped&lt;BR /&gt;vik@tecno:~/ltib/1012-28/ltib-perl/rootfs/bin$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so you need to get PostgreSQL compiled for right architecture&lt;BR /&gt;or compile it from sources yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 04:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333056#M45092</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2014-10-21T04:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333057#M45093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way. I can offer you to use mysql instead.&lt;BR /&gt;It is included into the BSP for i.MX28.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 05:24:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333057#M45093</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2014-10-21T05:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333058#M45094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, thank you for your answers. But I need to install PostgreSQL. Well, I should compile it from sources. That sounds good, but I don't know how) Please, could you give me any advices how to do it? Becaue I have no idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 07:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333058#M45094</guid>
      <dc:creator>alexandrglukhov</dc:creator>
      <dc:date>2014-10-21T07:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333059#M45095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, Buildroot (&lt;A href="http://buildroot.org/download.html" title="http://buildroot.org/download.html"&gt;http://buildroot.org/download.html&lt;/A&gt;) contains that PostgreSQL, which is needed for i.mx28. But is it possible to take it from there and past into rootfs of ltib?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 11:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333059#M45095</guid>
      <dc:creator>alexandrglukhov</dc:creator>
      <dc:date>2014-10-21T11:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333060#M45096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do that, first you need to download PostgreSQL source files.&lt;BR /&gt;For example you can get them from their official site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you need to compile them on your host PC using cross compiler.&lt;BR /&gt;You can use toolchain from LTIB.&lt;BR /&gt;Or may try using use CodeSourcery (Mentor) toolchain on Windows host:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.mentor.com/embedded-software/codesourcery"&gt;http://www.mentor.com/embedded-software/codesourcery&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/"&gt;http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternativelly you can compile PostgreSQL directly on the board if you install gcc there.&lt;BR /&gt;However I suppose this way is worse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 06:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333060#M45096</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2014-10-22T06:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: DataBase on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333061#M45097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried to compile with LTIB. I downloaded postgresql-9.3.5.tar.bz2 from their site and put it&amp;nbsp; into rpm/SOURCES, and created in&amp;nbsp; dist/lfs-5.1 directory postgresql with file postgresql.spec in it. File contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%define pfx /opt/freescale/rootfs/%{_target_cpu}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Summary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : PostgreSQL for arm&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : postgresql&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 9.3.5&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Release&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;License&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Vendor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : PostgreSQL&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Packager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : System Environment/Libraries&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN&gt;URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://xxxx/"&gt;http://&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : %{name}-%{version}.tar.bz2&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;BuildRoot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : %{_tmppath}/%{name}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Prefix&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : %{pfx}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Description&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%{summary}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Prep&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%setup&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Build&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;make&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Install&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;rm -rf $RPM_BUILD_ROOT&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Clean&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;rm -rf $RPM_BUILD_ROOT&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%Files&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%defattr(-,root,root)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;%{pfx}/*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After ./ltib -p postgresql.spec I get errors:&lt;/P&gt;&lt;P&gt;checking for zic... no&lt;/P&gt;&lt;P&gt;configure: error:&lt;/P&gt;&lt;P&gt;When cross-compiling, either use the option --with-system-tzdata to use&lt;/P&gt;&lt;P&gt;existing time-zone data, or set the environment variable ZIC to a zic&lt;/P&gt;&lt;P&gt;program to use during the build.&lt;/P&gt;&lt;P&gt;error: Bad exit status from /home/ubuntu/Projects/TionPro28/ltib/ltib/tmp/rpm-tmp.2856 (%build)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, my .spec file is bad, could you help me to create correct .spec? Or may be give an advise about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 08:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DataBase-on-i-MX28/m-p/333061#M45097</guid>
      <dc:creator>alexandrglukhov</dc:creator>
      <dc:date>2014-10-22T08:05:36Z</dc:date>
    </item>
  </channel>
</rss>

