JM K

Forum Replies Created

Viewing 30 posts - 1 through 30 (of 74 total)
  • Author
    Posts
  • in reply to: Compilation error with new .bb file #3614
    JM K
    Participant

    Hey Rishi,

    take out this part:

    do_fetch () {

    mkdir -p ${WORKDIR}/${P}

    cp hellobrother.c ${WORKDIR}/${P}

    }

    Also chnage S = “${WORKDIR}/${P}” to S = “${WORKDIR}

    Update PR = “r2” so that the program compiles afresh. Give that a try.

    Regards,

    JM

    in reply to: Compilation error with new .bb file #3612
    JM K
    Participant

    Hi Rishi,

    have a look at the bitbake file in the link:

    http://www.multitech.net/developer/products/multiconnect-ocg/development/development-examples/

    The error says you have a problem with your C program. Try posting the C program that you are trying to compile.

    Best Regards,

    JM

    in reply to: Re: Question regarding sqlite3 on the CoreCDP2.0.2. #3609
    JM K
    Participant

    Hi Jesse,

    Thanks a lot. The SQLite3 is working fine with the PHP 5.3.6. I never wanted to use the PDO in my application development. I appreciate the Multitech Software Engineering Development team efforts to have launched the latest version of CoreCDP at the right time.

    Best Regards,

    JM

    in reply to: Re: Question regarding sqlite3 on the CoreCDP2.0.2. #3607
    JM K
    Participant

    Dear Jesse,

    the phpinfo() output is displaying sqlite3 module version: 0.7-dev and sqlite library: 3.7.4 under the sqlite3 subheading. Does this mean php now supports sqlite3? I remember you having mentioned earlier regarding some changes to be made in the bitbake file of the php. I would appreciate it if you can let me know more on this.

    Best Regards,

    JM

    in reply to: Re: Question rgearding php 5.3.6 on CoreCDP 2.0.2. #3604
    JM K
    Participant

    Hi,

    the problem has been fixed.

    Best Regards,

    JM

    in reply to: Re: Question rgearding php 5.3.6 on CoreCDP 2.0.2. #3603
    JM K
    Participant

    Hi,

    I tried using the same php.ini I’d used with the old version of php (5.2.11) and was unsuccessful (still only got 404) so then I tried downloading the latest version of php.ini from http://svn.php.net/viewvc/php/php-src/trunk/php.ini-production?view=co

    I tried using this as well but still am stuck with the 404. I tried to bitbake php once more along with lighttpd along with uncommenting the fastcgi part in the lighttpd.conf and uncommenting cgi.fix_pathinfo = 1 in the php.ini. The phpinfo() shows no errors when I invoked it from the command line neither did lighttpd when I tried starting/restarting the web server.

    I would appreciate it if someone can give me any suggestions/advice that might fix this problem. Thank you and have a great day.

    Best Regards,

    JM

    in reply to: Re: Question rgearding php 5.3.6 on CoreCDP 2.0.2. #3602
    JM K
    Participant

    Hi,

    I bitbaked the latest version of php (5.3.6) however could not find a php.ini file. In the older version of php (5.2.11), I remember that a php.ini-dist used to get generated each time I bitbaked php. Also when I used the command line interface to check phpinfo() on the CDP, it did not display a configuration file anywhere. In the previous version configuration file showed the location of php.ini. When I tried to write some php code and use the web browser to run it, all I got was a 404. When i restarted lighttpd, I got no errors. Any suggestions on how to solve this one would be very much appreciated. Thank you and have a great day.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3590
    JM K
    Participant

    Dear Bryan,

    please disregard my question. Think there’s a problem with the recipe. Thanks for your help installing the new corecdp.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3589
    JM K
    Participant

    Hi Bryan,

    Thanks for your response. I ran in to this error when I tried bitbaking one of my old recipes on the new corecdp-2.0.2. The recipe bitbaked fine on the old version. Error is:

    ERROR: LexToken(Rbace,’}’,0,0)

    followed by

    LexToken(NEWLINE,’n’,0,0)

    LexToken(NEWLINE,’n’,0,0)

    LexToken(TOKEN,’do_install’,0,0)

    LexToken(LPARENS,'(‘,0,0)

    LexToken(RPARENS,’)’,0,0)

    Please do let me know how to fix this one.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3587
    JM K
    Participant

    Dear Bryan,

    It worked. I could log in to the CDP. I have another question. I used to put all my programs in the recipes folder in a directory called user-collection and there is not a user-collection folder in the corecdp-2.0.2 instead there is a folder called user-layer. Are user-collection (corecdp-1.1.1) and user-layer (corecdp-2.0.2) the same? Thank you.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3585
    JM K
    Participant

    Dear Bryan,

    I copied the said files to the SD card and inserted the SD card in to the CDP Device and then issued the command that you have posted. Here is the log:

    # cd flash-upgrade

    # ls

    rootfs.jffs2 uImage.bin

    # touch /var/volatile/do_flash_upgrade

    # reboot

    Broadcast message from root (pts/0) (Mon Dec 5 11:15:54 2011):

    The system is going down for reboot NOW!

    # Connection to 192.168.2.1 closed by remote host.

    Connection to 192.168.2.1 closed.

    jm@jm-desktop:~$ ssh root@192.168.2.1

    ssh: connect to host 192.168.2.1 port 22: No route to host

    jm@jm-desktop:~$ ssh root@192.168.2.1

    ssh: connect to host 192.168.2.1 port 22: No route to host

    jm@jm-desktop:~$ ssh root@192.168.2.1

    ssh: connect to host 192.168.2.1 port 22: No route to host

    jm@jm-desktop:~$ ssh root@192.168.2.1

    ssh: connect to host 192.168.2.1 port 22: No route to host

    jm@jm-desktop:~$ ssh root@192.168.2.1

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

    Someone could be eavesdropping on you right now (man-in-the-middle attack)!

    It is also possible that the RSA host key has just been changed.

    The fingerprint for the RSA key sent by the remote host is

    ab:e7:36:a3:e5:a5:da:e5:06:c8:a7:70:66:a4:35:2b.

    Please contact your system administrator.

    Add correct host key in /home/jm/.ssh/known_hosts to get rid of this message.

    Offending key in /home/jm/.ssh/known_hosts:1

    RSA host key for 192.168.2.1 has changed and you have requested strict checking.

    Host key verification failed.

    Looks like there is some kind of verification issue. Please do let me know how to solve this one. Thank you.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3582
    JM K
    Participant

    Dear Bryan,

    thanks for your response. Here is the output you requested:

    jm@jm-desktop:~/Desktop/corecdp-2.0.2/build/tmp/deploy/eglibc/images/mtcdp$ ls -l

    total 285156

    lrwxrwxrwx 1 jm jm 48 2011-12-02 10:26 at91bootstrap.bin -> at91sam9g20nf-nandflashboot-2.13-r1.corecdp3.bin

    -rwxr-xr-x 1 jm jm 5220 2011-12-02 10:26 at91sam9g20nf-nandflashboot-2.13-r1.corecdp3.bin

    lrwxrwxrwx 1 jm jm 62 2011-12-02 16:34 corecdp-base-image-mtcdp.jffs2 -> CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp.rootfs.jffs2

    lrwxrwxrwx 1 jm jm 60 2011-12-02 16:34 corecdp-base-image-mtcdp.tar -> CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp.rootfs.tar

    -rw-r–r– 1 jm jm 16252928 2011-12-02 16:34 CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp.rootfs.jffs2

    -rw-r–r– 1 jm jm 33914880 2011-12-02 16:34 CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp.rootfs.tar

    drwxr-xr-x 2 jm jm 4096 2011-12-02 10:28 CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp-testlab

    -rw-r–r– 1 jm jm 78118912 2011-12-02 16:29 CoreCDP-corecdp-full-image-eglibc-ipk-2.0.2-mtcdp.rootfs.jffs2

    -rw-r–r– 1 jm jm 159641600 2011-12-02 16:29 CoreCDP-corecdp-full-image-eglibc-ipk-2.0.2-mtcdp.rootfs.tar

    drwxr-xr-x 2 jm jm 4096 2011-12-02 16:30 CoreCDP-corecdp-full-image-eglibc-ipk-2.0.2-mtcdp-testlab

    lrwxrwxrwx 1 jm jm 62 2011-12-02 16:29 corecdp-full-image-mtcdp.jffs2 -> CoreCDP-corecdp-full-image-eglibc-ipk-2.0.2-mtcdp.rootfs.jffs2

    lrwxrwxrwx 1 jm jm 60 2011-12-02 16:29 corecdp-full-image-mtcdp.tar -> CoreCDP-corecdp-full-image-eglibc-ipk-2.0.2-mtcdp.rootfs.tar

    -rw-r–r– 1 jm jm 1929751 2011-12-02 09:59 modules-2.6.35-r4.corecdp5-mtcdp.tgz

    lrwxrwxrwx 1 jm jm 62 2011-12-02 10:27 rootfs.jffs2 -> CoreCDP-corecdp-base-image-eglibc-ipk-2.0.2-mtcdp.rootfs.jffs2

    -rwxr-xr-x 1 jm jm 159244 2011-12-02 10:12 u-boot-mtcdp-1.3.4-r9.bin

    lrwxrwxrwx 1 jm jm 25 2011-12-02 10:12 u-boot-mtcdp.bin -> u-boot-mtcdp-1.3.4-r9.bin

    -rw-r–r– 1 jm jm 1936596 2011-12-02 09:59 uImage-2.6.35-r4.corecdp5-mtcdp.bin

    lrwxrwxrwx 1 jm jm 35 2011-12-02 09:59 uImage.bin -> uImage-2.6.35-r4.corecdp5-mtcdp.bin

    drwxr-xr-x 2 jm jm 4096 2011-12-02 10:26 Utilities

    After doing a corecdp-base-image, renaming the files and having failed to copy them, I did a corecdp-full-image from the command prompt.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3580
    JM K
    Participant

    Hi Bryan,

    I renamed both files somehow they both had a black arrow on their respective icons. I created a folder flash-upgrade on the SD card and when I tried copying these files I was faced with an error: Filesystem does not support symbolic links. Then I checked the properties of both rootfs.jffs2 and the uImage.bin and their type was listed as: Link to unknown. (application/octet-stream). I did a corecdp-base-image from the prompt after a source-env-oe.sh. Please do let me know how to fix this one. Thank you and have a great day.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3578
    JM K
    Participant

    Dear Jesse,

    I would very much appreciate it, in case you find the time if you modify the php recipe to accommodate sqlite3. That would solve a lot of potential problems in my application development. Thank you and have a great day.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3577
    JM K
    Participant

    Dear Bryan,

    Good to hear from you. Thank you for the response. I just started downloading the latest CoreCDP 2.0.2, looks like that is going to take a while. The first step where I copy the rootfs.jffs2 to the SD card is after I extract the build system and build the cross compilation tool chain, sample kernel and filesystem image, yes? I would appreciate it if you could answer my question.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3575
    JM K
    Participant

    Dear Jesse,

    Thank you for the response. I have decided to upgrade to the latest CoreCDP 2.0.2. As for installing CoreCDP 2.0.2, would all these steps have to be followed along with setting up TFTP server again?

    http://www.multitech.net/developer/products/multiconnect-ocg/getting-started/

    I am worried about the part of setting up and configuring the TFTP server as I ran into some problems last time. I would appreciate it if you could advice/suggest me on this one.

    Thank you and have a great day.

    Best Regards,

    JM

    in reply to: How to upgrade to php-5.3.0? #3573
    JM K
    Participant

    Hi Jesse,

    thank you for your response. I don’t think I can upgrade to Corecdp 2.0.2 due to some time constraints. Isn’t there a compatible bitbake recipe for php-5.3.0? In case this (bitbake recipe) is included in the new version of Corecdp, can you please post it in the forum. Would the recipe included with the latest version of Corecdp have any compatibility problems with the Corecdp 1.0.0? (the one I am using presently) Any idea what to change in the recipe such that php compiles with sqlite? I tried searching for a recipe in git.openembedded.org but could not find a good one. I would be very much thankful if you could help me out with this one.

    Best Regards,

    JM

    in reply to: Question regarding OpenSSL. #3549
    JM K
    Participant

    Dear Jesse,

    Thank you for your advice/suggestion. Have a great day.

    Best Regards,

    JM

    in reply to: How to enable mysql5 library for php? #3529
    JM K
    Participant

    Dear Jesse,

    Thanks a lot for your excellent suggestion/advice. I installed MySQL Server and MySQL Client then as per your advice, changed my mind and decided to install sqlite. I faced no hassles so far like the mysql. Installation wise it was much simpler and I felt sqlite functions in php were much easier than mysql. Thanks again.

    Best Regards,

    JM

    in reply to: How to enable mysql5 library for php? #3527
    JM K
    Participant

    Hi,

    I keep getting this error:

    ERROR 2002 (HY00) : Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’. When I checked there was no file called mysql.sock in the tmp folder. I did an scp of mysql5 located in the openembedded/recipes/mysql to the CDP. I found that there were a few mysql files located in the /usr/bin folder. I copied the mysql file in to the /etc/init.d folder and tried to start the mysql service:

    # /etc/init.d/mysql start

    I get the response:

    ERROR 2002 (HY00) : Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’

    Is there any further installation procedure to be followed for installing mysql? I have gone through different forums. Most of the time they are all related to native linux and so the solutions just don’t fit. I would appreciate any advice/suggestions on this one.

    Best Regards,

    JM

    in reply to: How to enable mysql5 library for php? #3526
    JM K
    Participant

    Hi,

    My phpinfo() shows that MySQL support ==> enabled however I get a warning when I view the phpinfo():

    PHP warning: PHP Startup: Cannot dynamically load mysql.so – dynamic modules are not supported in Unknown on line 0.

    I changed the php.ini file in the following way:

    I uncommented the line: extension=mysql.so

    I loaded this new php.ini file however the warning persists also the mysql_connect() function fails to work.

    Any help would be very much appreciated.

    Best Regards,

    JM

    in reply to: How to enable mysql5 library for php? #3525
    JM K
    Participant

    I don’t think there is a bitbake recipe for php5-mysql.

    http://packages.ubuntu.com/lucid/php5-mysql

    Any help would be appreciated on this one.

    Best regards,

    JM

    JM K
    Participant

    Dear Jessie,

    Thank you for your advice/suggestions. I got it to work. Thanks again.

    Best Regards,

    JM

    JM K
    Participant

    Hi,

    when I issue the command:

    # /etc/init.d/lighttpd start

    It returns:

    Starting Lighttpd Web Server: /usr/sbin/lighttpd is already running

    2182

    lighttpd.

    Looks like lighttpd is running fine. I am not able to find any php files (php.ini) in the /etc folder. I bitbaked php and did an scp to the CDP. I would appreciate it if someone could tell me if the php.ini file or any other php files exist at all in the /etc folder of the CDP. I feel I am missing out on some step while trying to install php.

    When I issue the following commands:

    # php-cgi -v

    It returns:

    PHP 5.2.11 (cgi-fcgi) (built: Nov 3 2011 11:06:13)

    Copyright (c) 1997-2009 THE PHP Group

    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

    # php -v

    It returns:

    PHP 5.2.11 (cli) (built: Nov 7 2011 11:18:19)

    Copyright (c) 1997-2009 THE PHP Group

    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

    Thank you and have a great day.

    Best Regards,

    JM

    JM K
    Participant

    Dear Jessie,

    thank you very much for your response. I followed your advice and enabled mod_cgi instead of fastcgi and reinstalled lighttpd. This was the response:

    # opkg install lighttpd_1.4.18-r15.5 to 1.4.18-r16.1.5…

    Upgrading lighttpd on root from 1.4.18-r15.1.5 to 1.4.18-r16.1.5…

    Configuring lighttpd

    System startup links for /etc/init.d/lighttpd already exist.

    Restarting Lighttpd Web Server: no /usr/sbin/lighttpd found; none killed

    lighttpd.

    I did not get the previous errors that I got while trying to configure fastcgi. Does this mean lighttpd is successfully installed with php?

    To test php I found a suggestion on this link:

    http://redmine.lighttpd.net/wiki/1/TutorialLighttpdAndPHP#PHP-in-CGI-Mode

    I found the following suggestion under the sub heading PHP in CGI Mode:

    “Open your browser and go to http://localhost/, you should have a welcome page. You can put your PHP files in C:lighttpdhtdocs – To test PHP, just create a file named index.php, save it in the Lighttpd root directory (C:lighttpdhtdocs) and paste this content into this file:

    <?php

    phpinfo();

    ?>

    Accessing http://localhost/, you should get a page that lists all PHP variables and information.

    Please note that FastCGI doesn’t work on Windows at this time. Good luck! “

    What should be my ‘server.port’ value in the lighttpd.conf. If I use port 80 will that in any way affect the scp?

    I am a bit confused at this stage as I think the web browser is run from the native linux machine how to run it on the CDP?

    I would appreciate it if my questions are answered. Thank you very much and have a great day.

    Best Regards,

    JM

    in reply to: Suggestion regarding user interface. #3405
    JM K
    Participant

    Hi Jessie,

    What is really strange is that no file called php.ini exists. There is only a file called php.ini-recommended in the location: build/tmp/work/armv5te-corecdp-linux-gnueabi/php-5.2.11-r10/php-5.2.11 The line:

    cgi.fix_pathinfo=1 has got to be uncommented. When I uncomment this one and rename this file as php.ini and then proceed to bitbake it, the same file again gets renamed as php.ini-recommended and the line: cgi.fix_pathinfo=1 gets commented. Is this unusual? Ideally where (path) should php.ini reside? Thank you and have a great day.

    Best Regards,

    JM

    in reply to: Suggestion regarding user interface. #3403
    JM K
    Participant

    Hi Jesse,

    Thank you for the response. I did check the path. It was in: /usr/bin/php-cgi. I changed the lighttpd.conf line:

    fastcgi.server = ( “.php” =>

    (“localhost” =>

    (

    “socket” => “/tmp/php-fastcgi-socket”‘

    “bin-path” => “/usr/bin/php-cgi”

    )

    )

    )

    Though I changed this one the lighttpd config still is searching for php in /usr/local/bin:

    2011-11-03 112:34:21: (mod_fastcgi.c.990) chdir failed: No such file or directory /usr/local/bin/php-cgi

    Is there some other place in the lighttpd.conf that I might have missed with regard to changing the path?

    Thank you and have a great day.

    Best Regards,

    JM

    in reply to: Suggestion regarding user interface. #3401
    JM K
    Participant

    After having made a few more changes now when I issue the command:

    # php-cgi -v

    It returns:

    PHP 5.2.11 (cgi-fcgi) (built: Nov 3 2011 11:06:13)

    Copyright (c) 1997-2009 THE PHP Group

    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

    I think php-cgi is successfully installed however when I install lighttpd to the CDP I keep getting the same errors:

    2011-10-28 15:47:55: (mod_fastcgi.c.990) chdir failed: No such file or directory /usr/local/bin/php

    2011-10-28 15:47:55: (mod_fastcgi.c.999) execve failed for: /usr/local/bin/php No such file or directory

    # 2011-10-28 15:47:55: (mod_fastcgi.c.1025) the fastcgi-backend /usr/local/bin/php failed to start:

    2011-10-28 15:47:55: (mod_fastcgi.c.1029) child exited with status 2 /usr/local/bin/php

    2011-10-28 15:47:55: (mod_fastcgi.c.1032) If you’re trying to run PHP as a FastCGI backend, make sure you’re using the FastCGI-enabled version.

    You can find out if it is the right one by executing ‘php -v’ and it should display ‘(cgi-fcgi)’ in the output, NOT ‘(cgi)’ NOR ‘(cli)’.

    For more information, check http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add ‘fastcgi’ to the USE flags.

    2011-10-28 15:47:55: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed.

    2011-10-28 15:47:55: (server.c.895) Configuration of plugins failed. Going down.

    Any help/suggestions on how to fix this one would be very much appreciated.

    Best Regards,

    JM

    in reply to: Suggestion regarding user interface. #3400
    JM K
    Participant

    I have also tried changing the path in the lighttpd.conf from /usr/local/bin/php to /usr/local/bin/php-cgi as suggested by:

    http://redmine.lighttpd.net/wiki/lighttpd/Docs%3AModFastCGI without any success.

    Regards,

    JM

    in reply to: Suggestion regarding user interface. #3399
    JM K
    Participant

    Hi,

    thank you very much Jessie for the response. I installed all the required modules mentioned in the corecdp-webserver-image.bb and also uncommented the fastcgi module part in the lighttpd.conf and also uncommented the path_info part in the php.ini. The php.ini exists in armv5te-corecdp-linux-gnueabi/php-5.2.11-r4

    when I try to install lighttpd on the CDP this is the output:

    Installing lighttpd (1.4.18-r11.1.5) to root…

    Configuring lighttpd

    System startup links for /etc/init.d/lighttpd already exist.

    Restarting Lighttpd Web Server: no /usr/sbin/lighttpd found; none killed

    lighttpd.

    2011-10-28 15:47:55: (mod_fastcgi.c.990) chdir failed: No such file or directory /usr/local/bin/php

    2011-10-28 15:47:55: (mod_fastcgi.c.999) execve failed for: /usr/local/bin/php No such file or directory

    # 2011-10-28 15:47:55: (mod_fastcgi.c.1025) the fastcgi-backend /usr/local/bin/php failed to start:

    2011-10-28 15:47:55: (mod_fastcgi.c.1029) child exited with status 2 /usr/local/bin/php

    2011-10-28 15:47:55: (mod_fastcgi.c.1032) If you’re trying to run PHP as a FastCGI backend, make sure you’re using the FastCGI-enabled version.

    You can find out if it is the right one by executing ‘php -v’ and it should display ‘(cgi-fcgi)’ in the output, NOT ‘(cgi)’ NOR ‘(cli)’.

    For more information, check http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add ‘fastcgi’ to the USE flags.

    2011-10-28 15:47:55: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed.

    2011-10-28 15:47:55: (server.c.895) Configuration of plugins failed. Going down.

    I think for some reason the php is not getting installed as when I issue the command:

    # php -v

    The following is returned:

    -bash php: command not found

    When I however issue the command:

    # lighttpd -v

    The following is returned:

    lighttpd-1.4.18 – a light and fast webserver

    Build-Date: Oct 28 2011 14:08:03

    I would appreciate any suggestions/advice on this one. Thank you and have a great day.

    Best Regards,

    JM

Viewing 30 posts - 1 through 30 (of 74 total)