s5vi's Motorola p2k phone page
September 03, 2010, 09:36:53 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
Your Ad Here
News: 29000 member !!!
V-6.0.0 with CDMA support is available now.
To become VIP: you can do it via PayPal: http://www.el-co.hu/p2k05/paypal.html
 
   Home   Help Login Register  

Email me.
You can help me to work on P2kc.
I'm looking for a freelance work.
Upcoming V-5.0.0 can be branded with your company for a small fee. Please contact me.
Email me.
Your Ad Here
Pages: [1]   Go Down
  Print  
Author Topic: V_0.5 released  (Read 3172 times)
0 Members and 1 Guest are viewing this topic.
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 758



WWW Email
« on: December 30, 2007, 12:13:19 pm »

http://www.el-co.hu/dl/p2kc/p2kc-V_0.5.tar.bz2

- Archive contains binaries also. You can "make install" without compiling.
  if dont work on your distribution please compile.
- Seem upload download function implemented.
- In options dialog you can set p2k-core arguments, and a command before exit.
- Create folder and delete file implemented.
Logged

bahathir
Newbie
*
Offline Offline

Posts: 9


« Reply #1 on: January 02, 2008, 10:29:57 am »

Happy New Year !

This version's p2k-core can list and upload files (info a, file l, file u file) but, segfaulted during file d.

Test.
Code:
P2k:> info a
P2k:> file l
P2k:> file d /a/mobile/certs/root/x509/kjava/j2me_domain_registry.sm
Reading /a/mobile/certs/root/x509/kjava/j2me_domain_registry.sm 00 00002488 bytes, chunks:0003/0003 100%
Segfaulted

fwrite() at 1876

My initial investigation reveals wrong value in variable tmp2  and might be for filename too.
filename = /j2me_domain_registry.sm
tmp2 = RAZRV3xx/j2me_domain_registry.sm

Hope this bug report helps you.

TQ.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 758



WWW Email
« Reply #2 on: January 02, 2008, 01:20:41 pm »

Uhh sorry for that.
I made a change in syntax to use easily in p2kc (gui)
file d filename-with-path-on-p2k destination-folder

so you can use "." as current folder:
file d /a/mobile/certs/root/x509/kjava/j2me_domain_registry.sm .

i tried to check if this param omitted, but made a mistake, will fix it
Logged

melknin
Newbie
*
Offline Offline

Posts: 1


« Reply #3 on: January 09, 2008, 08:44:14 am »

This program is fantastic! Thank you!

I did have some trouble trying to upload a large file (10360862 bytes), and it crashed with a segfault. I think the problem was that Sendbuf was too large to be on the stack. At any rate, this patch seems to have fixed the issue.

Code:
diff -r p2kc/p2k-core/p2k-core.c p2kc.orig/p2k-core/p2k-core.c
1394,1396c1394,1395
<       const int chunksize=0x400;
<       int bytes_done=0,i=0,k=0,thisChunkSize,numchunks;
<       unsigned char Sendbuf[chunksize+16];
---
>       int bytes_done=0,chunksize=0x400,i=0,k=0,numchunks;
>       unsigned char Sendbuf[size+16];
1414,1420c1413,1418
<                       thisChunkSize = chunksize;
<                       if (size-bytes_done<0x400) thisChunkSize=size-bytes_done;
<                       setInt16(Sendbuf+4,thisChunkSize+8);    // argsize (extra bytes)
<                       setInt32(Sendbuf+12,thisChunkSize);     // extra bytes (cmd args)
<                       memcpy(Sendbuf+16,buffer+bytes_done,thisChunkSize);
<                       if (P2k_SendCommand (hdev,Sendbuf,thisChunkSize+16,Recbuf)==-1) return 0;
<                       bytes_done=bytes_done+thisChunkSize;i=i+1;
---
>                       if (size-bytes_done<0x400) chunksize=size-bytes_done;
>                       setInt16(Sendbuf+4,chunksize+8);        // argsize (extra bytes)
>                       setInt32(Sendbuf+12,chunksize);         // extra bytes (cmd args)
>                       memcpy(Sendbuf+16,buffer+bytes_done,chunksize);
>                       if (P2k_SendCommand (hdev,Sendbuf,chunksize+16,Recbuf)==-1) return 0;
>                       bytes_done=bytes_done+chunksize;i=i+1;

Hope this helps. Keep up the great work!
Logged
marsmissions
Newbie
*
Offline Offline

Posts: 5


Email
« Reply #4 on: February 10, 2008, 10:09:20 am »

Under ubuntu with my Z3, no files are listed under the left pane when I click a drive from the list.

The last version to work and display files was 0.3
« Last Edit: February 10, 2008, 10:18:46 am by marsmissions » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 758



WWW Email
« Reply #5 on: February 11, 2008, 02:49:15 pm »

pls test p2k-core V_1.5 (from p2kc 0.6 bundle)
p2k-core itself can list your files?

Logged

marsmissions
Newbie
*
Offline Offline

Posts: 5


Email
« Reply #6 on: February 20, 2008, 09:42:35 pm »

p2k core can list all of my files.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!