Can't build my custom freetz

SystemR89

Neuer User
Mitglied seit
20 Feb 2009
Beiträge
48
Punkte für Reaktionen
0
Punkte
0
Hi everyone!
I just downloaded freetz-1.0.3-rc1 but after some tries I've not compiled yet my custom freetz.
Every time it stop the compiling process with this message:
STEP 1: UNPACK
unpacking firmware image
splitting kernel image
unpacking filesystem image
2190 inodes (2430 blocks) to write
/home/michele/freetz-1.0.3-rc1/./tools/usr/bin/fakeroot: line 166: 17675 Abortito FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
ERROR: modunsqfs: Error in build/original/kernel/kernelsquashfs.raw
make: *** [firmware-nocompile] Error 1

What's wrong?

Thanks in advance!
Michele
 
Hi.
There seems to be a problem with the new squashfs (3.4). You can try to checkout freetz-1.1 stable branch. We have no solution at the moment. Can you please write down some informations about your Hardware, OS an VM?

Regards
Oliver
 
I use Debian Unstable on a Core 2 Duo cpu and I've a Fritz!Box 7270 International Version.
Ok, I download via svn freetz-1.1 and tried to compile it but now I get another error:
patching usb.pandu: MAXDEVCOUNT
applying patch file ./patches/470-volumecounter.sh
adding volume counter
applying patch file ./patches/cond/de/470-volumecounter_7270.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/home/home.js usr/www/all/html/de/home/home.js
|--- usr/www/all/html/de/home/home.js Mon Dec 22 19:32:36 2008
|+++ usr/www/all/html/de/home/home.js Wed Dec 24 00:59:27 2008
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 45
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/internet/budget.frm usr/www/all/html/de/internet/budget.frm
|--- usr/www/all/html/de/internet/budget.frm 2008-11-24 17:25:33.000000000 +0100
|+++ usr/www/all/html/de/internet/budget.frm 2008-12-24 00:07:50.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 57
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/internet/budget.html usr/www/all/html/de/internet/budget.html
|--- usr/www/all/html/de/internet/budget.html 2008-11-24 17:25:33.000000000 +0100
|+++ usr/www/all/html/de/internet/budget.html 2008-12-24 00:07:50.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 102
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/internet/budget.js usr/www/all/html/de/internet/budget.js
|--- usr/www/all/html/de/internet/budget.js 2008-11-24 17:25:17.000000000 +0100
|+++ usr/www/all/html/de/internet/budget.js 2008-12-24 00:07:50.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
can't find file to patch at input line 241
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/internet/inetstat.html usr/www/all/html/de/internet/inetstat.html
|--- usr/www/all/html/de/internet/inetstat.html 2008-12-23 22:45:55.000000000 +0100
|+++ usr/www/all/html/de/internet/inetstat.html 2008-12-24 00:09:20.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
can't find file to patch at input line 334
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur usr/www/all/html/de/internet/inetstat.js usr/www/all/html/de/internet/inetstat.js
|--- usr/www/all/html/de/internet/inetstat.js 2008-12-23 22:45:55.000000000 +0100
|+++ usr/www/all/html/de/internet/inetstat.js 2008-12-24 00:07:50.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
5 out of 5 hunks ignored
----------------------------------------------------------------------
ERROR: modpatch: Error in patch-file ./patches/cond/de/470-volumecounter_7270.patch
make: *** [firmware-nocompile] Error 2
 
Hrm, seems like another missing changeset... I will merge it.

Regards
Oliver
 
Hi.
There seems to be a problem with the new squashfs (3.4). You can try to checkout freetz-1.1 stable branch. We have no solution at the moment. Can you please write down some informations about your Hardware, OS an VM?
Oliver

I have exactly the same problem, trying to compile freetz trunk on x64 fedora 10 (all current updates), FritzBox 7270 (German version, 8MB flash):

Code:
(...)
STEP 1: UNPACK
unpacking firmware image
splitting kernel image
unpacking filesystem image
  3112 inodes (3275 blocks) to write
  /home/chris/Software/freetz-trunk/./tools/usr/bin/fakeroot: line 178: 27629 Aborted            FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
ERROR: modunsqfs: Error in build/original/kernel/kernelsquashfs.raw
make: *** [firmware-nocompile] Error 1
 
Zuletzt bearbeitet:
Same problem here

My build of trunk is also broken. The last successful build, about a week ago, was based on AiO 13640.

In the moment, I'm able to build 1.1-stable for a 16MB 7270, but trunk fails with the above mentioned error. I did not change the freetz config since the last build (no added or removed packages). Trunk also fails to build if I start with a clean checkout and deselect everything. I also tried to go back to earlier revisions without success. Building the toolchain locally also does not help.

My environment is fedora 10, x86_64. There have been some updates released in the last week, kde42 for example, maybe there is some coincidence? The system has all updates installed, too.
 
Can you point me to a location where I can download fedora 10?

Regards
Oliver
 
I downloaded one of the Installable LiveCD images from http://fedoraproject.org/en/get-fedora to boot the initial system. You can install the base system on your hard disk in about 10 minutes. (Installing all available updates will take somewhat longer, of course)

Eventually you can find some vmware images too. The only ones I found were 32-bit versions.
 
Code:
svn up
Regards
Oliver
 

yeah!
I compiled a new firmware from stable branch :)

However I found some bugs:

-with trunk
- I get the same error of 1.0.3-rc1 (squashfs problem)
- Download of readline-5.2.tar.gz and freetype-2.3.5.tar.bz2 fail

-with the lastest stable revision
- I can't select International firmware with 16M flash because the second option disappear! It works only selecting deutsch language..
- Download of readline-5.2.tar.gz fail

Regards,
Michele
 
Zuletzt bearbeitet:
Can you select 16M option with trunk? 7270 international should always be 16M. ;-)

Regards
Oliver
 
Can you select 16M option with trunk?

in trunk and stable with International enabled 16M option disappear.


7270 international should always be 16M. ;-)

Theoretically yes, but selecting international seem to assume a 8M flash :/

TRUNK
Compilation always fail because squashfs problem

STABLE
Compilation with stable selecting deutsch language + 16M finish successfully
Compilation with stable selecting International language finish with an error (image is too big)
 
Please try trunk with latest change.

Regards
Oliver
 
Please try trunk with latest change.

Now in menuconfig I see 16M selected by default with international firmware, make fail with the previous error
Code:
michele@Samsung-Notebook:~/fritz11/trunk$ make
STEP 1: UNPACK
unpacking firmware image
splitting kernel image
unpacking filesystem image
  2190 inodes (2430 blocks) to write
  /home/michele/fritz11/trunk/./tools/usr/bin/fakeroot: line 178:  6819 Abortito                FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"
ERROR: modunsqfs: Error in build/original/kernel/kernelsquashfs.raw
make: *** [firmware-nocompile] Error 1

Can you merge this patch in stable branch?
 
I can't help you with this error because I can't repeat it. I tried Ubuntu and Fedora 10 x86_64. But both work.

Regards
Oliver
 
I can't help you with this error because I can't repeat it. I tried Ubuntu and Fedora 10 x86_64. But both work.

Regards
Oliver

Tomorrow I'll try an Ubuntu with a virtual machine to compile trunk...

Can you merge the patch for international firmware (16M flash) in stable branch?
 
I can't help you with this error because I can't repeat it. I tried Ubuntu and Fedora 10 x86_64. But both work.

I worked a bit on this. Here's what I found out so far:

A possible workaround for users having the problem is to use the unsquash3-lzma binary from the freetz-stable-1.1 branch. This requires changing the fwmod script to use the stable binary.

While playing with ltrace and strace I noticed that unsquashfs fails non-deterministically. Adding a -p 1 to the command (use only a single cpu) does not change the result.

My system is using a dual core (core 2 duo) cpu. Is your build environment, Olli, using only a single cpu?

I'll attach the ltrace and strace output from the following command line for further reference.
Code:
rm -rf build/original/filesystem && ltrace /home/make/projects/freetz-trunk/./tools/unsquashfs3-lzma -n -f -p 1 -dest build/original/filesystem build/original/kernel/kernelsquashfs.raw
rm -rf build/original/filesystem && strace /home/make/projects/freetz-trunk/./tools/unsquashfs3-lzma -n -f -p 1 -dest build/original/filesystem build/original/kernel/kernelsquashfs.raw

Please let me know if I can do something to help getting trunk fixed.
 

Anhänge

  • ltrace1.txt
    139.4 KB · Aufrufe: 3
  • ltrace2.txt
    99.4 KB · Aufrufe: 2
  • strace1.txt
    21.7 KB · Aufrufe: 2
  • strace2.txt
    20 KB · Aufrufe: 2
I have a core 2 duo too. But it seems that my Fedora 10 is only running on one core in VMWare. I don't know why. edit: Works now with two cores but still no error.

Which image did you unpack? Can you try a 7170 (squashfs2 image)?

Regards
Oliver
 
Zuletzt bearbeitet:
I also tried version 3.4 on a native Athlon dual-core CPU without problems.

PS:
Are you sure that you are using only 1 thread? The last lines of strace2.ttx suggest otherwise:
Code:
futex(0xade1f0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
+++ killed by SIGABRT +++
It seems that the program receives SIGABRT while it is in the futex() syscall.

Can you repeat it with "strace -f"? And I think ltrace also has the option -f.
 
Zuletzt bearbeitet:

Statistik des Forums

Themen
246,512
Beiträge
2,253,337
Mitglieder
374,329
Neuestes Mitglied
Ingo2208
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.