s5vi's Motorola p2k phone page
March 12, 2010, 05:11:49 am *
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 [2]   Go Down
  Print  
Author Topic: SquashFS and V8/Z6  (Read 7586 times)
0 Members and 2 Guests are viewing this topic.
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #15 on: October 19, 2007, 08:07:38 am »

Very good job....
You can try to compile squashfs-tools 3.2 with the same way.
It contains unsquasfs.
And pick mksquashfs.exe from 2.1 and unsquasfs.exe from 3.2
Logged

rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #16 on: October 19, 2007, 10:19:03 pm »

That was the idea, but the "newer" squashfs-tools need some more files (e.g. sysctl.h and ioctl.h) which is not in my cygwin and copying them from any Linux distro does not quite work.
Anyway I will use cygwin to install this and see what happens.
Logged

Nothing is impossible, only miracles take a bit longer!
rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #17 on: October 21, 2007, 12:33:27 am »

I have managed to have 4 skins in the "My Files" location, which means you can have easy access to them via Windows Explorer. So only problem now is the iconres.ezx of the V8 which still can not be opened and repackt.
More info here

Update: I have added a new folder in which I have linked the startup-/shutdown animation and sounds, so these can now be edited also via Windows Explorer.
« Last Edit: October 21, 2007, 11:43:45 pm by rasputin007 » Logged

Nothing is impossible, only miracles take a bit longer!
Rocket
Newbie
*
Offline Offline

Posts: 2


« Reply #18 on: October 22, 2007, 09:52:32 am »

Hello, everybody!
I'm interested in SquashFS tools for Windows too.
I'm developing EZXCodec program (can be downloaded from russian forum.motofan.ru, direct link to attachment with current version - http://forum.motofan.ru/index.php?act=Attach&type=post&id=144644 (program is multi-language and contains english docs))
So far for CramFS support I used Win32 builds of mkcramfs and cramfsck.
Now users want Z6/V8 support too (SquashFS).

Future plans are:
- add support for SquashFS;
- add support for JFFS (E6 and A1200 using it along with CramFS);
- get rid of cli external apps and build FS' support inside my exe...
Logged
rasputin007
VIP
Jr. Member
*****
Offline Offline

Posts: 56


rasputin007@hotmail.co.uk
WWW Email
« Reply #19 on: October 24, 2007, 01:31:21 am »

I'm developing EZXCodec program (can be downloaded from russian forum.motofan.ru, direct link to attachment with current version - http://forum.motofan.ru/index.php?act=Attach&type=post&id=144644 (program is multi-language and contains english docs))
Can you open a V8 iconres.ezx file and repack it again?
It is possible with the Z6 iconres.ezx, but not with V8 iconres.ezx. And that is at the moment the last hurdle that stops V8 skinners.
PS. the link you gave is not working -> "Problem loading page" message  Cry
« Last Edit: October 24, 2007, 01:33:02 am by rasputin007 » Logged

Nothing is impossible, only miracles take a bit longer!
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #20 on: October 24, 2007, 08:23:37 am »

I can download, copied here:
http://www.el-co.hu/dl/ezxcodec_06_pre1.7z
Logged

Rocket
Newbie
*
Offline Offline

Posts: 2


« Reply #21 on: October 30, 2007, 09:20:28 am »

Found compiled mksquashfs 2.1 for Windows here
Still looking for unsquashfs...
btw next version of EZXCodec will be able to compile/decompile iconres.ezx (using info from that file)
no support for pictures format used in Z6/V8 though...
Logged
chnrxn
Newbie
*
Offline Offline

Posts: 1


« Reply #22 on: December 25, 2008, 07:24:34 am »

squashfs-tools indeed can be compiled for Cygwin (after some modifications). The compile issues are related to

  • sysctl: finding the number of CPUs
  • detecting the number of columns for the progress bar

I've generated a patch against squashfs3.4, and I'm attaching it here.

Save the patch into the squashfs-tools directory as patch.txt and run the following command:

Code:
patch -p2 < patch.txt

Note: You should be at a Cygwin prompt, and should have installed "patch" in your Cygwin.

Code:
Index: squashfs3.4/squashfs-tools/unsquashfs.c
===================================================================
--- squashfs3.4/squashfs-tools/unsquashfs.c (revision 4)
+++ squashfs3.4/squashfs-tools/unsquashfs.c (revision 7)
@@ -49,9 +49,11 @@
 #include <sys/time.h>
 
 #ifndef linux
+#ifndef __CYGWIN__
 #define __BYTE_ORDER BYTE_ORDER
 #define __BIG_ENDIAN BIG_ENDIAN
 #define __LITTLE_ENDIAN LITTLE_ENDIAN
+#endif /* __CYGWIN__ */
 #else
 #include <endian.h>
 #endif
@@ -2411,6 +2413,9 @@
  if(sigprocmask(SIG_BLOCK, &sigmask, &old_mask) == -1)
  EXIT_UNSQUASH("Failed to set signal mask in intialise_threads\n");
 
+#ifdef __CYGWIN__
+ processors = atoi(getenv("NUMBER_OF_PROCESSORS"));
+#else /* __CYGWIN__ */
  if(processors == -1) {
 #ifndef linux
  int mib[2];
@@ -2431,6 +2436,7 @@
  processors = get_nprocs();
 #endif
  }
+#endif /* __CYGWIN__ */
 
  if((thread = malloc((3 + processors) * sizeof(pthread_t))) == NULL)
  EXIT_UNSQUASH("Out of memory allocating thread descriptors\n");
Index: squashfs3.4/squashfs-tools/read_fs.c
===================================================================
--- squashfs3.4/squashfs-tools/read_fs.c (revision 4)
+++ squashfs3.4/squashfs-tools/read_fs.c (revision 7)
@@ -36,9 +36,11 @@
 #include <sys/mman.h>
 
 #ifndef linux
+#ifndef __CYGWIN__
 #define __BYTE_ORDER BYTE_ORDER
 #define __BIG_ENDIAN BIG_ENDIAN
 #define __LITTLE_ENDIAN LITTLE_ENDIAN
+#endif /* __CYGWIN__ */
 #else
 #include <endian.h>
 #endif
Index: squashfs3.4/squashfs-tools/global.h
===================================================================
--- squashfs3.4/squashfs-tools/global.h (revision 4)
+++ squashfs3.4/squashfs-tools/global.h (revision 7)
@@ -71,4 +71,9 @@
 typedef squashfs_inode_t squashfs_inode;
 typedef squashfs_block_t squashfs_block;
 
+#ifdef __CYGWIN__
+#include <sys/termios.h>
+#define FNM_EXTMATCH  (1 << 5)
 #endif
+
+#endif
\ No newline at end of file
Index: squashfs3.4/squashfs-tools/mksquashfs.c
===================================================================
--- squashfs3.4/squashfs-tools/mksquashfs.c (revision 4)
+++ squashfs3.4/squashfs-tools/mksquashfs.c (revision 7)
@@ -49,10 +49,12 @@
 #include <fnmatch.h>
 
 #ifndef linux
+#ifndef __CYGWIN__
 #define __BYTE_ORDER BYTE_ORDER
 #define __BIG_ENDIAN BIG_ENDIAN
 #define __LITTLE_ENDIAN LITTLE_ENDIAN
 #include <sys/sysctl.h>
+#endif /* __CYGWIN__ */
 #else
 #include <endian.h>
 #include <sys/sysinfo.h>
@@ -3161,6 +3163,9 @@
 
  signal(SIGUSR1, sigusr1_handler);
 
+#ifdef __CYGWIN__
+ processors = atoi(getenv("NUMBER_OF_PROCESSORS"));
+#else
  if(processors == -1) {
 #ifndef linux
  int mib[2];
@@ -3181,6 +3186,7 @@
  processors = get_nprocs();
 #endif
  }
+#endif /* __CYGWIN__ */
 
  if((thread = malloc((2 + processors * 2) * sizeof(pthread_t))) == NULL)
  BAD_ERROR("Out of memory allocating thread descriptors\n");

I've edited the patch to remove some redundant changes.
« Last Edit: December 25, 2008, 08:37:42 am by chnrxn » Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

s5vi webdesign: | www.inox-crom.hu | www.tancsicscipo.hu | www.el-co.hu | www.fulopkapu.hu | editdekor.atw.hu
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!