[ANNOUNCE] AT32ipkg repository for all!

Go To Last Post
23 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi 'freaks,

I've started up a repository of avr32 packages. Is it .debs or .rpms? No. Although the newest busybox has built-in support for these 2, they are still big, kinda complex and most people don't have new busybox anyway. The packages are ipkg packages. From the page linked below you can get ipkg and ipkg.conf. Put them on your avr32, run "ipkg update" and "ipkg list" to see the packages I've got. There aren't heaps of them yet, but many many more to come!

http://niasdigital.com/bnizette/...

The whole idea is a community thing, if anyone has any binaries they think others would benefit from, please, please, please submit them! There's a Contributing section explaining how to go about it.

If you've got anything as .debs or .rpms you can email them through too and I can do a conversion without much effort :)

The libraries on there are, at the moment, really just useful as dependencies for other packages. When I get a spare millisecond I'll put up some -dev versions of the packages with the headers in so you can link against them too.

Have fun and once again, please, submit any binaries you might happen to have around!

-S.

p.s. The main source of confusion is likely to be wget. The one shipped with busybox doesn't work with ipkg. On the linked page you can download a binary of GNU wget which will work. The problem is that my web server has a really odd buglet where you can't download anything with wget in the name. Or I'm doing something wrong. Either way, you have to download the binary called 'wgt' and put the 'e' in it yourself when you copy it to /usr/bin. Annoying.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Update: A bit of a Wizard Wheeze; I've split the repo in to main and experimental so some untested packages can get some exposure. If you've already downloaded ipkg.conf and you want access to experimental packages, download the new ipkg.conf I just uploaded and uncomment the appropriate src line.

-S.

Last Edited: Mon. Dec 31, 2007 - 07:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice work, squidgit -- thanks very much for your efforts!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Happy Yew Year.

squidgit, i run into a few problems :(

The wgt link gives me the same binary version of busybox that doesn't support -passive-ftp.
When i try to get the wget.ipk manually i get the following message...

Quote:
Forbidden
You don't have permission to access /bnizette/repo/wget_1.10.2_avr32.ipk on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.39 Server at www.niasdigital.com Port 80


:?
I think the web server has a strange configuration?

... the only thing you cannot unscramble is eggs...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wBoellmann wrote:
The wgt link gives me the same binary version of busybox that doesn't support -passive-ftp.
When i try to get the wget.ipk manually i get the following message...
Gah, the stupid web serverness even confused me! Should now be fixed, thanks :)
wBoellmann wrote:

Quote:
Forbidden
You don't have permission to access /bnizette/repo/wget_1.10.2_avr32.ipk on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.39 Server at www.niasdigital.com Port 80


:?
I think the web server has a strange configuration?

The IT dude is still off lazing on a beach somewhere eating prawns and ogling girls in bikinis, once he gets back I'll track down the issue. Whhhhy would the web server not serve files with 'wget' in their name?! *cryy*

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there,

Wondering what I might be doing wrong here, I do an "ipkg update" and get the following:

-sh-3.2# ipkg update
--23:42:49--  http://www.niasdigital.com/bnizette/repo
           => `//tmp/ipkg/repo'
Resolving www.niasdigital.com... 61.14.187.155
Connecting to www.niasdigital.com|61.14.187.155|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.niasdigital.com/bnizette/repo/ [following]
--23:42:49--  http://www.niasdigital.com/bnizette/repo/
           => `//tmp/ipkg/index.html'
Connecting to www.niasdigital.com|61.14.187.155|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [  <=>                                                                   ] 6,556         30.63K/s             

23:42:50 (30.50 KB/s) - `//tmp/ipkg/index.html' saved [6556]

Updated list of available packages in /usr/lib/ipkg/lists/at32ipkg
-sh-3.2# 

However, it seems the file /usr/lib/ipkg/lists/at32ipkg is not created..

This is on the ngw100 board using the 2.6.23.atmel.4 kernel with spidev enabled..

Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup, ipkg.conf was whitespace corrupted, please download the new one I just put up :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That did it! Thanks very much

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any chance of a tcl 8.5 ipkg being added? :mrgreen:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Added it to my request list, fingers crossed I'll get to them this weekend :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How about crontab ;) I know it came with my ngw100 where it went is anyone's guess =)

Thanks!

-Altrez

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Added to Experimental:

- cron (including crontab)
- openvpn (untested)
- tcl (seems to segfault a lot, looking in to it)

Did I miss something? ISTR the request for openvpn also including a request for opensomethingelse.

Once someone can tell me openvpn is OK I'll move that to stable, same with cron. Cron is usually part of busybox on embedded systems but it's not like it's got a huge footprint anyway.

I'll look in to tcl, I'm sure it shouldn't explode (I hope it shouldn't!) so I'll give that another crack later.

Have fun :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you so much for your hard work!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Added to Experimental

- JamVM Java Virtual Machine
- GNU Classpath (classpath and classpath-examples packaged separately, only classpath required for jamvm)

These are thanks to toelen. Thanks Leen, you're a legend :D.

Be warned, this are _hhhuuugemungous_. Classpath is ~130MB, the examples are a further few MB. JamVM by itself is only pretty small but depends on classpath.

In addition to this, a significant amount of RAM is needed by JamVM. Neither the STK1000 nor the NGW100 have sufficient resources without enabling swap.

You've been warned, now go enjoy!!

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it possible to install a 130MB package on STK or NGW with ipkg? I built an ipkg for Boost yesterday, it weighed in at about 400MB. When I tried to install it on the NGW, it crashed the system after a few minutes of installing. It starting killing other processes, starving for memory.

I'm going to upgrade my SDRAM to 64MB this weekend. My chip is shipping from Digikey as we speak :)

I like cats, too. Let's exchange recipes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

classpath installed just fine on my NGW without swap enabled; didn't run until I enabled swap.

You will have to mount /tmp as something other than a tmpfs or enable swap before install as ipkg tries to decompress the package somewhere in /tmp. You will indeed run out of RAM if you try and decompress a 400MB gz to it! Not even 64MB will help you there ;-)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks for the tip. I hadn't considered the mechanics of what is going on in ipkg. It certainly would suck up all of the RAM quickly the way I have it setup now. It will also help if I strip the binaries before I create the package too :wink:

I like cats, too. Let's exchange recipes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK 'freaks: 'fess-up time ;)

Short story: if you've been using my repo and in your root directory you see any .ipk files or any folders names IPKG_BUILDxxx please delete them; they're just taking up useless space, sorry :)

Longer story: With some of the packages I, without thinking, used the staging directory to store the package too. This creates a race whereby the package builder can in fact package it's own temp files. If I run this builder multiple times the extra spoodge grows exponentially.

The best example of this is classpath; the classpath package I just uploaded is 9MB. The old one which suffered badly from the previous quirk and was, errm, 122MB :oops:

I'll repackage other affected packages as soon as I can; in the mean time as I say, please just remove any .ipk and IPKG_BUILDxxx things you may find lying around in your root directory :)

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey Squidgit, having another issue:

-sh-3.2# ipkg install wget
The following package were previously requested but have not been installed:
wget libopenssl
Install them now [Y/n] ? y
--23:57:15--  http://downloads.openwrt.org/kamikaze/packages/avr32//wget_1.10.2-2_avr32.ipk
           => `//tmp/ipkg/wget_1.10.2-2_avr32.ipk'
Resolving downloads.openwrt.org... 195.56.146.238
Connecting to downloads.openwrt.org|195.56.146.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 86,077 (84K) [application/octet-stream]

100%[=======================================================================>] 86,077        53.13K/s             

23:57:17 (52.97 KB/s) - `//tmp/ipkg/wget_1.10.2-2_avr32.ipk' saved [86077/86077]

Killed
Killed
Killed
Unpacking wget...Done.
Configuring wget...Killed
Killed
-sh-3.2# 

This is on a fairly fresh build on a STK1000 board using the monolithic spidev kernel from the repository..

It seems to kill off processes like proftpd too.. what the heck?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

0_o check dmesg.. The only thing I know of which can do killing is the OOMkiller (out of memory). If it is that then there ain't much which can be done except enabling swap, giving it more memory or manually killing memory-intensive background processors.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah yes, you are correct sir.. I had forgotten that the STK1000 only has 8MB of SDRAM, I've been spoiled by the NGW100 up til now.. I tried killing a few processes off but it still was not enough, I suppose I'll set up a swap partition on the SDcard instead..

Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hola, I was attempting to install php5 from ipkg, and got the following message:

ipkg_depends: Warning: libsqlite3 mentioned in dependency but no package found in /usr/lib/ipkg/lists

When I go to run it I get this:

# php -v
php: can't resolve symbol 'mblen'
php: can't resolve symbol '__avr32_s32_to_f32'
PHP 5.1.6 (cgi-fcgi) (built: Feb 18 2008 12:09:29)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Something seems spazzy..

Do I need to cross-compile libsqlite3 seperately? If it is a buildroot only solution, is there a way I can add it in without blowing away all the modified settings I've come up with so far in the development?

Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm, that repo is fairly broken actually, most packages are built against different library versions, it seems yours don't match.

The dependency should be met from the openwrt repo, they may have pulled it, grr.

-S.