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 - suruaZ

Pages: [1] 2 3 ... 9
1
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 16, 2005, 07:22:19 am »
Quote
Shouldn't be a problem. Like I said before, directories & links on a unix filesystem are still just special files that take up space, albeit a small amount compared to other 'regular' files.

Yes I agree with you. I just thought this could be the cause of error.

Quote
The syntax is correct for all modern bourne- & korn-based shells I'm aware of, which includes the version of sh provided by busybox, but let's see. What's the exact output of these commands on your Z?

Code: [Select]
root@grond[~]# N=4
root@grond[~]# T=$((T+N))
root@grond[~]# echo $N $T
4 4
root@grond[~]# T=$((T+N))
root@grond[~]# echo $N $T
4 8
root@grond[~]# T=$((T+N))
root@grond[~]# echo $N $T
4 12

Here is the error!!!
If I typed this in my default shell (/bin/bash) I got the same output as you.
But if I first typed:
/usr/bin/env sh

and after switched to the shell environment typed:

$ N=4
$ T=$((T+N))

the error returned:

arith: syntax error: "T+N"

I dodn't know in which shell I went after "/usr/bin/env sh" but after I have changed in your script the first line to the "/bin/bash" everything start to work and I found that my file.ipkg has installed size 966kb  

Thank you grog for your time and the nice script  

suruaZ

2
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 15, 2005, 02:06:42 am »
No echos for a folders now but still for a links.
Unfortunately again it stopped on "TOTALSIZE=$((TOTALSIZE+$line))" line.
I believe something wrong with syntax here.

suruaZ

3
Software / Plptools
« on: June 14, 2005, 07:42:41 am »
I'm just wonder what for connect Zaurus to Psion as they have uncompatible file-types ?

I found better solution for my old Psion using it as IR keyboard for Zaurus
 
suruaZ

4
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 14, 2005, 07:33:31 am »
Unfortunately no luck  
 
Nearly the same debug output as before and failed on the same line:
/home/QtPalmtop/bin/ipkg-size: arith: syntax error: "TOTALSIZE+224"

224 is the first echo - size of /

suruaZ

5
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 13, 2005, 02:35:52 pm »
Hi grog,

Seems you attached the wrong script - there're no changes compared to previous one.

suruaZ

6
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 11, 2005, 10:15:26 am »
grog,

Quote
Both of these outputs have me worried. Are they copy-n-paste? Does ipkg really return hash marks '#' at the beginning of each line? That would be the source of the problem if it does.

No, I typed this. # means root's prompt  

Quote
Assuming that the output of 'which sed' returns the path to the program, try this latest version (attached). If you don't have sed installed, you'd have to find & install that package before you can try this out. I've since added a '-remove' option, but that won't affect us trying to fix the '-size'.

I have sed installed. I have tested your last ipkg-wrapper with the same error...

Well I have a closer look onto wrapper debug output. This time I tried with file.ipkg installed. Please take a look onto wrapper-files.txt attached to see what files are installed first. Then look onto wrapper-size.txt. What is wrong there from my point of view:
1. The script processed lines with folders and links what is useless. The first three echos (224,304,2048) are folders and only forth (9612) is actually the filesize we need to sum in TOTALSIZE variable. Then again folder (1024) and link (15)... Must be something here to filter out folders and links;
2. After it processed all the lines from ipkg-files it starts to sum all echos and fails on the first step - /home/QtPalmtop/bin/ipkg-size: arith: syntax error: "TOTALSIZE+224". Note that 224 is the size of root folder echoed first.
It looks like command "TOTALSIZE=$((TOTALSIZE+$line))" has syntax error. After I have changed it to "$TOTALSIZE=$TOTALSIZE+$line" it starts to fails on the next line - "$((TOTALSIZE/1024))".

suruaZ

7
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 10, 2005, 11:22:49 am »
Quote
Looking back again at the first debug output you provided (wrapper.txt), it seems that the root of the problem is that your ipkg isn't finding any files. What ROM are you using?

Sharp ROM 3.13

Quote
What does 'ipkg --version' return?

ipkg: unknown option --version
As I can see /home/QtPalmtop/bin/ipkg is link to the /usr/QtPalmtop.rom/bin/ipkg shell script. No ipkg executables found.

Quote
Can you copy-n-paste the output of 'ipkg files opera' (or whatever the real package name is) & I'll take another look.

# ipkg files zip
#//usr
#//usr/bin
#//usr/bin/zip

After I have installed ipkg version 0.99.37 and have changed the link the output slightly changed:
# ipkg files zip
#/usr
#/usr/bin
#/usr/bin/zip

But ipkg-size linked to the latest wrapper retutns the same error
Attached is wrapper-log. Seems it scans more files than needs to find the size if zip installation.

suruaZ [ Invalid Attachment ]

8
General Discussion / How To Slow Down Zaurus2pc Connection
« on: June 08, 2005, 12:04:05 pm »
Thanks omega, it works. I just use 1% of the program's functionallity.
More ideas? Open source? Free?

suruaZ

9
General Discussion / How To Slow Down Zaurus2pc Connection
« on: June 08, 2005, 08:47:33 am »
Hi ALL,

I'm using Z+apache connected to PC(Windose) through the USB base for streaming stuff tests. The speed is too high for my needs - I need to imitate a slow dialup line.
Is there a way to slow down the connection speed?

Thanks in advance,
suruaZ

10
Accessories / Psion As External Ir Keyboard For Z
« on: June 06, 2005, 05:48:42 am »
Thank you Dan!

Finally I was able to run this  
May be this will be useful for someone else. To prepare:

Code: [Select]
mknod /dev/irkbdsim c 61 0
insmod -f /path-to/irkbdsim.o

Next to start IR keyboard Psion:

Code: [Select]
cat /dev/ttyS2 > /dev/irkbdsim
Start "irkb" program on Psion, point IR reciver/transmiter one another and...
you have quite comfortable IR keyboard - just don't forget to rotate the Z screen 90 degrees CW for full experience.

suruaZ

11
General Discussion / Modul Compilation Question
« on: June 04, 2005, 01:54:08 pm »
I'm trying to compile a modul for kernel. The comand I use:
Code: [Select]
# gcc -O6 -Wall -D__KERNEL__ -c -o irkbdsim.o irkbdsim.cOn IPAQs cluster this produced irkbdsim.o after some warnings.
When I tried the same command on Zaurus with zgcc I have got exactly the same warnings but no irkbdsim.o was generated. Why?

I need to compile it locally as lsmod rejects modules compiled for other than mine kernels.

suruaZ

12
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 03, 2005, 10:54:40 am »
Quote
Interesting. 'ls' doesn't seem to be returning the file size. That would cause
a problem . You are issuing the command 'ls -l', that's 'el es space dash el',
right?

Sure.

Quote
What do these commands come back with?

Code: [Select]
$ ls -l $(which ls)

lrwxrwxrwx    1 root     root            7 Jun  2 17:21 /bin/ls -> busybox

Quote
Code: [Select]
$ ls -f

ls: invalid option -- f

Quote
As well, does 'ipkg-files opera' return anything at all? I suspect it doesn't.

Nothing returns back, guess opera has other name for ipkg.

Quote
Does this output look similar to yours (similar being it results in a list of
numbers followed by the file name, not this list exactly)?

Code: [Select]
$ du /bin/* | head
1 ? ? ? /bin/addgroup
1 ? ? ? /bin/adduser
1 ? ? ? /bin/ash
1 ? ? ? /bin/bash
1 ? ? ? /bin/bashbug
536 ? ? /bin/busybox
1 ? ? ? /bin/cat
1 ? ? ? /bin/chgrp
1 ? ? ? /bin/chmod
1 ? ? ? /bin/chown

Yes very similar. Here is mine:
Code: [Select]
0    /bin/addgroup
0    /bin/adduser
106    /bin/ash
548    /bin/bash
228    /bin/busybox
0    /bin/cat
0    /bin/chgrp
4    /bin/chkmntsh
0    /bin/chmod
0    /bin/chown

Quote
If it's similar, then this script modification might work better for you. It's
not as accurate, but I don't think we're going for the gold as far as accuracy
. This version should use the du command on your box to get the file sizes,
which in the busybox version only returns block size not byte size.

Let me know how it goes.

Unfortunately not - the same error like was before  

BTW you could attach scripts after renaming to .txt May be I got some copy-paste error?

suruaZ

13
General Discussion / Using a Zaurus as Cell Phone
« on: June 02, 2005, 11:45:11 am »
Quote
weird, when I enter it, the card then says "OK", registers, and I lose usbnet connectivity! According to /var/log/messages on the PC, it's as if I unplugged the USB port.

at+creg?
+CREG: 0,0
OK
at+cops?
+COPS: 0
at+cpin="1234"
OK
--- if you're on usbnet, quickly unplug/replug USB and hope not to lose ssh session ---
at+creg?
+CREG: 0,1
OK
at+cops?
+COPS: 0,0,"UK CELLNET"

If modem response OK after "at+cpin..." it's mean SIM card accepted the PIN.
Loosing of usbnet is not related to this, I beleive.

Quote
I tried the manual dialup suggested in externe forums:
http://216.239.59.104/search?q=cache:MXBMF...lient=firefox-a

and got back the gibberish which is ppp.

So, I've now got to try and get the GPRS stuff working, weird thing is when I resume the card, and use minicom to unlock the PIN, the cacko dialup networking program tells me the card is busy. sigh.

On remote location (low signal level) I have problems with connecting to my GPRS provider through the built-in network applet so I do the next:
1. With minicom:
 Unlock the SIM with at+cpin...
 at+cgdcont=... to set up GPRS
 atd1234... to call GPRS provider
 After connection established (CONNECT, and some !}}!}... rubbish) I switch to the next shell window
2. With shell:
just start pppd with something like "pppd file pppd-options"

It works fine for me although not the best (comfortable) solution.

suruaZ

14
Software / How To Find Memory Occupied By Installed *.ipk
« on: June 02, 2005, 10:38:48 am »
Quote
Do you get those errors multiple times? What's the output of this?

Every time I use ipks-size. Just error differ - sometimes it's "TOTALSIZE+number" but sometimes "TOTALSIZE/1024"

Quote
Code: [Select]
$ ls -l $(which opera)

lrwxrwxrwx root root /home/QtPalmtop/bin/opera -> /usr/QtPalmtop.rom/bin/opera

Quote
Code: [Select]
# set -x # TESTINGAnd then run this command:

Code: [Select]
$ ipkg-size opera 2>&1 | tee /var/tmp/wrapper.logAnd attach the log file & I'll figure out what's wrong.

+ [ 1 -ne 1 ]
+ ACTION=size
+ [ -s opera ]
+ ipkg-files opera
+ xargs ls -l
+ read line
+ read line
+ [ 1 -ne 1 ]
+ ACTION=files
+ [ -s opera -a ! -d opera ]
+ ipkg files opera
+ exit 0
/home/QtPalmtop/bin/ipkg-size: arith: syntax error: "TOTALSIZE/1024"
+ exit 0

What I found - if I issued the command with non-existed file ("ipkg-size zzz" for example) the output is the same. Seems it cann't find opera.

More problems with existed packages. For example:

ipkg-size zip 2>&1 | tee /var/tmp/wrapper.log

creates a big log (attached) with scanning of a lot unrelated files while zip instalation is only single file /usr/bin/zip
 
Thanks,
suruaZ

15
General Discussion / Using a Zaurus as Cell Phone
« on: June 02, 2005, 06:40:29 am »
Quote
* it's best to disable the PIN on the SIM card otherwise the CF GSM card can't register! there is some magic to send the PIN to the CF modem, but reading the AT command set was bending my brain!

at+cpin="1234"

I do it very often while connecting to my GPRS provider with minicom  

suruaZ

Pages: [1] 2 3 ... 9