[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[200/300] oPKG v0.1.8 - Updated on 21st Feb
12-15-2010, 02:29 AM (This post was last modified: 02-12-2011 08:36 AM by vaidyasr.)
Post: #76
RE: [Apps] I-pkg A/C200 - Updated on 3rd Dec
(12-14-2010 06:55 PM)xray Wrote:  After you will release i will remove the googlecode site.
I'll included them on next release.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-15-2010, 07:41 AM
Post: #77
RE: [Apps] I-pkg A/C200 - Updated on 3rd Dec
Updated with -nmt6.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-16-2010, 03:07 AM
Post: #78
RE: [Apps] I-pkg A/C200 - Updated on 15th Dec
I'd appreciate a pointer to a good site for newbies and ipkg packaging, please!
The offical(?) site seems to be down at the moment: http://handhelds.org/moin/moin.cgi/Ipkg

I've successfully compiled vim 7.3 (since I missed the undo function) but I have not found any good reference/tutorial on how to create a .ipk package from compile or source. Google mostly gave me pages that were dedicated to a certain platform.

Or could the `ipkg-utils' be made for the C200 too? The one I looked at was customized for the old Compaq Ipaq PDA's, made in python, but perhaps there are better alternatives.



Speaking of alternatives:
- why don't we start implementing native compiles with source, instead of pre-compiled binaries?

While it will take quite a while to build up just the base (gcc & friends), and them some for each application, it would allow for simpler ipk administration; just some simple(?) script to set env, set flags and kick of the configure and make etc. together with the spec file for dependencies to be managed first. Shouldn't that be easier to update and maintain rather than actually doing and distributing whole binaries?

By the way, `vim' was pretty straight forward to compile, and I think it just requires ncurses.

For others who compile natively:
I use `make-3.81', since kernel code for 2.6.22.19 is said to notcompile with make 3.82(?)

I generally configure with:
Code:
./configure --prefix=/usr/local CFLAGS="-EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2" LDFLAGS="-EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2"
Using just -EL -fPIC -march=74kc flags works too, but is supposed to be less optimized for the Sigma CPU(?)

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-20-2010, 09:24 AM
Post: #79
RE: [Apps] I-pkg A/C200 - Updated on 20th Dec
Updated again with new repo as it is easy to maintain the repo via scp/rsync.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-20-2010, 11:26 AM
Post: #80
RE: [Apps] I-pkg A/C200 - Updated on 20th Dec
Made the modifications in next version of ipkg to add/remove services in gaya automatically upon installation.
Advantages:

1. Helpful to add/remove the qt/directfb applications via ipkg and the app/games will be added automatically in web services.
2. No more manual invoke of qt and/or directfb based applications.
3. Services will be removed when you remove from ipkg.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-22-2010, 12:24 AM
Post: #81
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
That's great, vaidyasr!


i've found some good documentation on how to make an ipk package and I am writing my own HowTo, specific for the NMT's. I intend to post on the NMT wiki soon, to hopefully encourage more people to use it. But I should at least have successfully completed to make an .ipk myself before I publish it...

For the fun of it, I compiled and made an ipk of the little utility "httping": http://www.vanheusden.com/httping/
My ipk package is here: http://www.cerveras.es/feed/httping_1.4.4_mips.ipk
I placed a Packages file in the same webroot, updated the ipkg.conf:
Code:
src 200dc11ab http://www.cerveras.es/feed
and did the ipkg update. The package is listed with ipkg list, but when I attempt to install I get this:
Code:
# ipkg install httping
Installing httping (1.4.4) to root...
Downloading http://www.cerveras.es/feed/(null)
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `wget --passive-ftp    -q -P /tmp/ipkg-GrEX8A http://www.cerveras.es/feed/(null)'
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 2: `wget --passive-ftp    -q -P /tmp/ipkg-GrEX8A http://www.cerveras.es/feed/(null)'
Failed to download httping. Perhaps you need to run 'ipkg update'?
http://www.cerveras.es/feed/(null)?
Where have I missed to populate the filename?

The file is obviously there with UNIX permissions 744, click link above. On my Mac:
Code:
$ wget --passive-ftp    -q -P ~/Downloads/A http://www.cerveras.es/feed/httping_1.4.4_mips.ipk
ITSEHBG-XN0003:ipkg cero$ file ~/Downloads/A/httping_1.4.4_mips.ipk
httping_1.4.4_mips.ipk: gzip compressed data, from Unix, last modified: Tue Dec 21 23:40:51 2010, max compression


On a different note; I tried to install manually: ipkg install /path/to/httping_1.4.4_mips.ipk but that also ended up with errors:
Code:
# ipkg -V3 install /share/Dev/ipkg-temp/httping_1.4.4_mips.ipk
WARNING: Ignoring unknown configuration parameter: /nmt/apps/lib  
WARNING: Ignoring unknown configuration parameter: alias dir ls
pkg_info_preinstall_check: updating arch priority for each package
pkg_info_preinstall_check: update file owner list
Configuring unpacked packages
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package /share/Dev/ipkg-temp/httping_1.4.4_mips.ipk.
Check the spelling or perhaps run 'ipkg update'
hash_table[pkg-hash] n_buckets=0 n_elements=187 max_conflicts=0 n_conflicts=0
hash_table[file-hash] n_buckets=0 n_elements=18209 max_conflicts=0 n_conflicts=0
hash_table[obs-file-hash] n_buckets=0 n_elements=0 max_conflicts=0 n_conflicts=0

Could you please have a look on what I may be doing wrong?


Another question:
- In the control file there's a "section:" field, what is the schema for that?
I assume it is used for searching/indexing somehow, so it would be valuable to keep some kind of standard.
For now I'll assume what's in the Packages file on your github main repo.


Thank you

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-22-2010, 02:06 AM (This post was last modified: 12-22-2010 02:06 AM by vaidyasr.)
Post: #82
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
(12-22-2010 12:24 AM)dc11ab Wrote:  Could you please have a look on what I may be doing wrong?

All steps are correct but I don't understand why it was not through.

I am doing the following way and I have referred the following webpage http://buffalo.nas-central.org/wiki/Cons...evelopers) for packaging.

1. Build the package for my cross compile toolchain and make a distclean and build a cross compile toolchain for /share/Apps/local path. (I can do the make install with different prefix, but some of the programs are failed to install in different location apart from the configured path).

2. Create a directory CONTROL with control file on in under the /share/Apps/local directory with the below contents eventhough some of them are empty.
Code:
Package: peg-e
Architecture: mips
Priority: optional
Section: games
Version: 1.1.0-1
Maintainer: vaidyasr <vaidyasr@networkedmediatank.com>
Source: http://gottcode.org/peg-e/peg-e-1.1.0-src.tar.bz2
Description: Peg-E is a peg solitaire game in which you jump over pieces in order to remove them from the board, ultimately trying to eliminate all but one.
Depends: qt-libs
Suggests:
Conflicts:
Section may be useful, if you want to build a GUI utility to sort out of the category, but right now I think it is no use.
3. Using ipkg-build utility give the /share/Apps/local directory to build the ipk file.
4. Using ipkg-make-index utility to build the Packages.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-22-2010, 07:25 PM (This post was last modified: 12-22-2010 07:47 PM by dc11ab.)
Post: #83
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
I solved the problem with the "(NULL)": I had not specified the fields "Filename" and "Size" in the feed server Packages file. Now it almost works!

The httping_1.4.4_mips.ipk I made installed and works fine for me, apart from one issue, see below on man pages.

From the installation:
Quote:can't get /share/Apps/local//share/Apps/ipkg-web/lib/ipkg/info/httping.control open for read
Configuring httping
Successfully terminated.
Collected errors:
Unable to open the control file in set_flags_from_control
Hmm, there's something fishy with that directory.
EDIT: I found what went wrong: I had called the control directory "CONTROL" (with caps) and not "control". Fixed that and now have a clean install:
Code:
# ipkg install httping
WARNING: Ignoring unknown configuration parameter: /nmt/apps/lib  
WARNING: Ignoring unknown configuration parameter: alias dir ls
Installing httping (1.4.4) to root...
Downloading http://www.cerveras.es/feed/httping_1.4.4_mips.ipk
Configuring httping
Successfully terminated.
PCH-C200[ipkg-temp]# man httping                
man: no manual entry for 'httping'

But the other thing I found thus far is that I can't load man pages. I've sourced the env, and have:
MANPATH=:/usr/local/share/man:/share/Apps/local/share/man:/usr/local/share/man:/share/Apps/local/share/man

There are man files there, but I can't load any man page at all!?



Please give it a try. ikpg.conf entry:
src 200dc11ab http://www.cerveras.es/feed

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-22-2010, 10:14 PM
Post: #84
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
I made a first release of an article on basic NMT ipkg usage and package creation here:
http://www.networkedmediatank.com/wiki/index.php/Ipkg

Additions, corrections or errors and further improvements are much welcome!

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to dc11ab for this post
12-23-2010, 01:14 PM
Post: #85
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
I've added the text editor `nano' v2.2.6 and the libcddb-devel v1.3.2 to my repository.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-23-2010, 05:33 PM (This post was last modified: 12-23-2010 05:37 PM by dc11ab.)
Post: #86
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
vaidyasr, I can't see the Squeezebox ipk when I do ipkg update. It seems to be uploaded on the Sourceforge repo, aren't you use the github anymore? The Packages file may not be update?

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-24-2010, 03:31 AM
Post: #87
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
(12-23-2010 05:33 PM)dc11ab Wrote:  vaidyasr, I can't see the Squeezebox ipk when I do ipkg update. It seems to be uploaded on the Sourceforge repo, aren't you use the github anymore? The Packages file may not be update?

I have compiled the whole squeezebox with perl & dependent CPAN modules in my C200. I was able to make the ipkg, but I am still fixing the ipkg-make-index script to make the Packages file. It can't be hand made, because, I have added around 90 perl modules.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-24-2010, 08:28 AM
Post: #88
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
That's a lot of work. I appreciate your efforts.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
12-24-2010, 04:01 PM
Post: #89
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
Updated the Packages file for all perl modules and python2.4 added.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
12-24-2010, 08:16 PM
Post: #90
RE: [Apps] I-pkg A200/A210/C200 - Updated on 20th Dec
Darn, we are away on X-mas holidays so I can't test this for a couple of days... It will be exciting to come home again :-D

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [100/200/300/400] Community Software Installer 2.7.4.0 ** UPDATED MAR 18th 2013** jhmiller 291 23,033 05-20-2013 05:51 PM
Last Post: jhmiller
  [200/300/400] aMule v2.3.1 - Updated 7th Oct vaidyasr 131 37,694 04-24-2013 07:19 PM
Last Post: TReneR
  [400] oPKG v0.1.8 - 400 Series - Updated on 5th Jan vaidyasr 134 8,524 04-12-2013 02:11 PM
Last Post: marcolivier
Star [100/200/300/400] Download Manager v3.2 Released - Updated Apr 10th vaidyasr 1,690 551,145 03-29-2013 02:23 PM
Last Post: TReneR
  [200/300] [Apps] QtWebKit - Web Browser - Updated 23rd Sep vaidyasr 269 112,805 02-12-2013 12:41 PM
Last Post: Willem53
  [300/400] opkg / mc / urar vs unrar wumm 1 396 02-10-2013 05:53 PM
Last Post: vaidyasr
Brick [100/200/300/400] CSI Lite 1.3.1 *** UPDATED JAN. 17 2012 *** Revell 10 1,340 01-19-2013 10:08 AM
Last Post: Exter
  [200/300/400] MKVTools v1.1.1 - Updated 27th Feb vaidyasr 42 14,154 01-19-2013 02:08 AM
Last Post: Koreano
  [100/200/300/400] fuppes - v0.660 UPnP A/V Media Server - Updated 15th Dec vaidyasr 14 4,766 01-01-2013 03:55 AM
Last Post: Uisge
  [200] [CSI] Community Software Installer 2.7.2 ** UPDATED DEC 28th 2011 ** Ger Teunis 794 184,761 12-21-2012 10:23 AM
Last Post: werner

Forum Jump: