[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4694: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4695: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4696: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
8devices Community - View topic - Carambola2 minimal httpd + php + db
www.8devices.com
View unanswered posts | View active topics It is currently 27 Apr 2024, 07:21



Reply to topic  [ 3 posts ] 
 Carambola2 minimal httpd + php + db 
Author Message

Joined: 25 Jun 2012, 14:22
Posts: 10
Hi guys

After hours of googling and trying to teach myself the necessary things to get what I need, I'd like to verify if what I found out is remotely correct,
as I'm really afraid of bricking my Carambola2.

First off, I'm not anew to programming or compiling things, but the whole procedure in getting a working openWRT image for Carambola2
is indeed something I am inexperienced at.

What I would like to have is the following: Carambola2 running an httpd (be it Apache or lighttpd, whatever, as long as it supports: ), PHP and some sort
of Database. Preferred would be mysql, but if there's not enough ram for that and I'll have to write my own textfile based db, I won't mind.

So from what I've gathered, the packages on github for carambola2 are not something I could download directly to my carambola but more like
build scripts such as the Makefile which I can use for a crosscompiler for the Atheros Chip used on Carambola2 (correct?)

So the steps to get one of these packages working would be to get either a real Linux box or a virtual one and doing the following:

A)get crosscompiler for AR9331 for the Linux I am using on my desktop.
B)get package descriptions from github
C) use some magical resource gathering tool (wget?) to automatically download the actual sources needed for that specific package
D)compile that package using the crosscompiler
E)now I have my package -> load it on carambola2 -> done

What I've done so far with Linux on other machines is to just download required packages to get what I need, but I've never actually compiled one myself.
I come from the AVR/ARM world and have compiled plenty of stuff for those devices, but never one that ran an OS, so I've always just compiled the
entire system running on that chip and in case of Carambola2 that all seems a little new to me, so sorry if I'm asking stupid questions.

Also, I find it hard to navigate around 8devices wiki, as I can't find a directory of all articles and all the ones linked are specifically written for carambola2.

I don't need anybody to do the necessary steps for me (unless thats easier than explaining them to me :D ) but a tiny list of steps of what I actually need to
do and what I don't need to do to get an httpd + php + database running (and an ftpd would actually be really nice) would be greatly appreciated :-)

I am running MAC OSX 10.8.3, if it's possible to compile directly on that, that would of course be great. As i've seen on openwrt's wiki it's possible for openwrt in general, but if that also works for this specific openwrt carambola version, I'm not sure. - Is it?

Sorry for the long post, I usually write shorter ones but I'm afraid it might have made the wrong impression of me just
being too lazy to do the necessary research, had I just posted a quick question.

Nik


14 Jun 2013, 18:53
Profile

Joined: 25 Jun 2012, 14:22
Posts: 10
Hi guys,

so I figured out most of my problems above. Found lighttpd, mysql, php5, php5-cgi and a ftp server (as far as I remember vsftpd)
Anyway, so I included all those packages in the build in menuconfig with (*) - maybe this is already where I'm wrong
and should have just chosen M and copied the packages later?

Well anyway, after 5 hours of compilining I got some errors and reran make with V=s
Apparantly the error occors in some file related to sound (see attached picture).

However I didn't change anything in the sound menu. Does anybody know what's going on here?

Nik

(P.S. for lack of a faster choice I am compiling on a XUBUNTU in virtual box on mac os x 10.8.3)


Attachments:
File comment: My options in sound menu of menuconfig are default as far as I recall (?)
soundopt.png
soundopt.png [ 35.42 KiB | Viewed 2632 times ]
File comment: with make V=s generated output
builderror.png
builderror.png [ 120.5 KiB | Viewed 2632 times ]
15 Jun 2013, 09:16
Profile

Joined: 25 Jun 2012, 14:22
Posts: 10


15 Jun 2013, 16:00
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.