Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - scrapheap

Pages: [1] 2 3
1
Zaurus - pdaXrom / Battery Drain In R197 Sp8
« on: December 03, 2007, 07:31:15 am »
Quote from: ecc_hy
Same problem in my C1000.
That is why I back to 1.1 beta3

I have noticed a similar thing, but only If I suspend while powered from the mains and then disconnect the mains.  If I suspend while not being powered from the mains then it seems to suspend fine and doesn't eat the battery.

2
Zaurus - pdaXrom / New Packages Announcement
« on: November 06, 2007, 08:31:57 am »
Quote from: Capn_Fish
On a different note, I feel like I made a package and didn't announce it/upload it, so if there's a package in the packages list that isn't in the feed, let me know.

Well I have knocked together (see end of post) a quick perl script to check the contents of the Package file is actually available from the feed.

It outputs if the file was valid, empty or missing followed by the url that it was checking.

It then lists all the packages it found in the feed (assuming that it can get an index of the feed) that weren't in the Packages file preceded by the word Extra.

If looking for problems just run it with the following command

verifyFeed.pl [FEED URLS] | grep -v Valid

and it will give you output like the following (from your feed Capn_Fish so you can now see what needs updating and adding)

http://www.techassassins.com/Zaurus/feed/
Missing http://www.techassassins.com/Zaurus/feed/d...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/w....2_armv5tel.ipk
Missing http://www.techassassins.com/Zaurus/feed/w....8_armv5tel.ipk

Extra   http://www.techassassins.com/Zaurus/feed/d...92_armv5tel.ipk
Extra   http://www.techassassins.com/Zaurus/feed/l....1_armv5tel.ipk
Extra   http://www.techassassins.com/Zaurus/feed/l...el_armv5tel.ipk
Extra   http://www.techassassins.com/Zaurus/feed/n...20_armv5tel.ipk
Extra   http://www.techassassins.com/Zaurus/feed/p....2_armv5tel.ipk
Extra   http://www.techassassins.com/Zaurus/feed/p....4_armv5tel.ipk

************* verifyFeed.pl *************

Code: [Select]
#!/usr/bin/perl

use LWP::Simple;
use strict;
if(scalar(@ARGV)<1)
{
    print STDERR "usage: verifyFeed.pl [FEED URLS]\n";
    exit;
}

foreach my $feed (@ARGV)
{
    print "$feed\n";
    $feed=~s/\/$//;

    my $packages=LWP::Simple::get("$feed/Packages");
    my $index=LWP::Simple::get("$feed/");
    my %listed;
    
    if($packages)
    {
        my @files=$packages=~m/filename\s*:\s*(.*)\s*/gi;

        my $valid=1;
        foreach my $file (@files)
        {
            my ($content_type, $document_length, $modified_time, $expires, $server)=LWP::Simple::head("$feed/$file");
            if(!$content_type)
            {
                print "Missing\t";
            }
            elsif(!$document_length)
            {
                print "Empty\t";
            }
            else
            {
                $listed{$file}=1;
                print "Valid\t";
            }
            print "$feed/$file\n";
        }
        print "\n";
    }
    else
    {
        print "Error, No Package List\n";
    }

    if($index)
    {
        my @files=$index=~m/        foreach my $file (@files)
        {
            if(!$listed{$file})
            {
                print "Extra\t$feed/$file\n";
            }
        }
        print "\n";
    }
    else
    {
        print "Error, Unable to get index list\n";
    }
}

3
Zaurus - pdaXrom / Uboot Emergency Console To The Rescue
« on: November 06, 2007, 07:40:54 am »
Well, the other day I deletes the symbolic link to grep, egrep and fgrep.  This wasn't a problem at the time as I have compiled the full version of grep and it was in /usr/local/bin.  The problem was that I have /usr/local/ symlinked to a directory on my SD card and when I rebooted I discovered that the zaurushw startup script needed grep and it couldn't find it as it hadn't mounted the SD card yet.

"Not a problem" I thought, "just log in an move grep and it's libs into /bin/ and /lib/", but then I discovered that without the zaurushw script having run correctly or because grep was missing I couldn't log in.

"Great" I thought, "now I can try out the UBoot emergency console"

So I booted into it (holding down OK when restarting the Zaurus) and up popped the emergence console.  The SD card was auto mounted but the NAND partition wasn't, but a little experimentation later and I had mounted the NAND partition (/dev/mtdblock2 with a filetype of jffs2).  I copied the grep commands across to /bin/ on the NAND partition and then copied the relevant libraries for them to the /lib/ (I figured out the libraries required by simply running the command and when it complained about not being able to find a library I moved it)

After all that I rebooted, logged in and everything is back running fine again.

4
Zaurus - pdaXrom / St268
« on: November 02, 2007, 05:20:54 am »
Quote from: Capn_Fish
What's the ipk name supposed to be? It should follow the NAME_VERSION_armv5tel.ipk, with no other underscores in the filename or in the control file (that messes up the installation/removal of packages). To make things worse, the forum changes - to _, which really messes up some package names.

Thanks.

The name is supposed to be  dm9601-st268_2.6.18_armv5tel.ipk as it is the 2.6.18 version of the dm9601 module patched to support the ST268.  Of course the forum has changed the - to _ which I didn't realise it does.

5
Zaurus - pdaXrom / Supported Usb Lan Dongle
« on: November 01, 2007, 10:02:40 am »
Don't get a Dynamode USB-NIC-1427-100 LAN Dongle as I have had big problems with mine not working on some networks but working on others.  I contacted their tech support and they said that they don't support linux.  I then sent them a link to their web page for the product which clearly states that linux is support.  They just responded saying that the web page is incorrect and needs to be updated.

So it looks like I have to now go to the hassle of finding a replacement.  I am waiting to hear back from linksys as to what chipset they use in their USB200M (hopefully it is a rtl8150, but we will see.)

6
Zaurus - pdaXrom / St268
« on: November 01, 2007, 08:04:39 am »
I have created a package for the patched dm9601 kernel module for the 2.6.16 kernel in r198 which I have attached.  If anyone tries it and finds some problems with it or finds that it works fine for them then please let me know.

7
Zaurus - pdaXrom / Kernel Headers For R198
« on: November 01, 2007, 07:55:55 am »
From the other pages about ipk's that I have looked at it look like it needs to be called postinst and I also need to create a postrm as well for uninstalling.

8
Zaurus - pdaXrom / Kernel Headers For R198
« on: November 01, 2007, 06:30:18 am »
Is there a way to make an ipk run a script after the module has been installed (can I just add a post-install script in the control.tar.gz).

What I need this for is I am making a ipk for my patched dm9601 kernel module and I need to get the zaurus to run depmod -a after installing.

9
Zaurus - pdaXrom / St268
« on: November 01, 2007, 05:43:30 am »
I have tried it now connecting directly to the switch and with a powered hub and I get the same result.  I have also tried it on XP machine with the drivers installed and that said that the cable wasn't connected.  I am wondering if I have a faulty USB NIC.  I have contacted the manufacturers tech support and hopefully they will have a suggest or at least replace it with a one they know to be working.

10
Zaurus - pdaXrom / St268
« on: November 01, 2007, 04:54:47 am »
I got it working last night at home.  I am wondering if it is a power issue.  I will try it closer to one of our switches at work and if it works then I will try it through a powered USB hub.

11
Zaurus - pdaXrom / Kernel Headers For R198
« on: October 31, 2007, 12:30:25 pm »
Is there any info on creating ipks for pdaxrom?  If so I will look at packaging them.  Of course it might be easier to just tar the lot for those few who would want it.

12
Zaurus - pdaXrom / Kernel Headers For R198
« on: October 31, 2007, 11:58:46 am »
I had to build the kernel but now that I have done this I can compile the module.

Thanks for the help with this guys.

13
Zaurus - pdaXrom / St268
« on: October 31, 2007, 09:46:51 am »
I have managed to compile the module and install it and it now detects my USB device and creates eth0.  But now dhcpcd doesn't pick up a ip address.

If I bring up the interface by setting the IP manually it fails to ping other devices I know are on the network.

14
Zaurus - pdaXrom / Kernel Headers For R198
« on: October 30, 2007, 04:06:58 pm »
Quote from: Capn_Fish
I think you just need to do a "make dep," then point the thing you want to compile to the kernel source directory.

Thanks I will give it a try.

15
Zaurus - pdaXrom / St268
« on: October 30, 2007, 04:06:10 pm »
Quote from: Capn_Fish
The problem of dhcpcd not working?

The problem is that when the dm9601 module is modprobed it doesn't detect my interface as it is a ST268 so it doesn't create eth0.

Pages: [1] 2 3