Results 1 to 15 of 18

Thread: Problems compiling custom based firmware (using Kfurge howto)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ok, lets say I install a freshly new ubuntu on my laptop today. And after that I should install any possible updates.

    *Second, I should install ash as well as symlink '/bin/sh' -> '/bin/bash', right?
    *untar the toolchain (tools.3.0 ?) as well as GPL-file. Both the files should be untared in /opt.
    * symlink mkcramfs
    * export PATH=/opt/brcm/hndtools-mipsel-linux/bin
    * make clean && make rebuild in /opt/WL700g/nasoc/src/apps

    and should be it ?

    Damn it, I must have done this a thousand times, what am I missing or doing wrong....

    Do you have skype or msn - it's easier to stay in contact and also for me to receive help. I believe you can find info about me in forum (at least I did edit it last night).

    - Hytekk

  2. #2
    Relative to a fresh ubuntu install, I had to install the gcc toolchain, kernel sources, make, rcs, binutils and a few others.

    What's your /opt/brcm directory look like? Should be:

    kfurge@kfurge-laptop:/opt/brcm$ ls -l
    total 16
    lrwxrwxrwx 1 kfurge kfurge 25 2007-09-12 21:11 hndtools-mipsel-linux -> hndtools-mipsel-linux-3.0
    drwxr-xr-x 9 kfurge kfurge 4096 2007-09-12 21:11 hndtools-mipsel-linux-3.0
    drwxr-xr-x 9 kfurge kfurge 4096 2005-10-25 00:52 hndtools-mipsel-linux-3.2.3
    lrwxrwxrwx 1 kfurge kfurge 29 2007-09-12 21:11 hndtools-mipsel-uclibc -> hndtools-mipsel-uclibc-0.9.19
    drwxr-xr-x 6 kfurge kfurge 4096 2007-09-12 21:11 hndtools-mipsel-uclibc-0.9.19

    The GPL source file can be put anywhere. I put mine in my user account in /home/kfurge.

    I do this when bringing up a new system:

    1) Untar tools into /opt and make sure symlinks are as above
    2) apt-get make and dash
    3) symlink /bin/ash to /bin/dash
    4) Untar source into my user directory under my username
    5) cd into ~/WL700g_*/nasoc/src/apps
    6) do a "make rebuild"
    7) Wait for it to barf, and install missing pieces
    8) Repeat step 7 until it builds

    Please post the output from step 7.

    - K.C.

  3. #3

    Unhappy

    I get this error......

    #cd app-packages && ./rebuild
    make apps-install
    make[1]: Entering directory `/opt/WL700g/nasoc/src/apps'
    rm -rf /opt/WL700g/nasoc/src/apps/mipsel/extarget
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Japan/img' to `CVS': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Japan/picts' to `PersonalData': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Japan/picts' to `basic': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Japan/picts' to `CVS': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Taiwan/img' to `CVS': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Taiwan/picts' to `PersonalData': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Taiwan/picts' to `basic': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_Taiwan/picts' to `CVS': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_English/img' to `CVS': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_English/picts' to `PersonalData': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_English/picts' to `basic': Permission denied
    rm: cannot chdir from `/opt/WL700g/nasoc/src/apps/mipsel/extarget/web/Layout_English/picts' to `CVS': Permission denied
    make[1]: *** [apps-install] Error 1
    make[1]: Leaving directory `/opt/WL700g/nasoc/src/apps'
    make: *** [rebuild] Error 2

    If I do list any of these directories it looks like this:
    total 0
    ?--------- ? ? ? ? ? mipsel/extarget/web/Layout_English/picts/CVS/.
    ?--------- ? ? ? ? ? mipsel/extarget/web/Layout_English/picts/CVS/

    Any ideas?

    - Hytekk
    Last edited by Hytekk; 22-09-2007 at 07:35.

  4. #4

    Talking Working as root !

    Hi again,

    all the time I have run 'make rebuild' as a normal user, but this time I tried it out as root - and what do you know, it works !!!

    Strange how it is I'm quite happy - could perhaps anyone explain why it is working as root and not as a normal user? The way I see it's about these damn directories in '.../apps/mipsel/extarget/web/' that a normal user can't seem to access....

    Isn't there anyone who have experienced the same problem as I have ??

    Anyway, Im moving along as root, following Kfurge's "Step #2, Adding support for executing a custom startup script (rc.local)"

    - Hytekk

  5. #5
    Hmm, I seem to have some issues concerning the adduser-package.

    Trying to download for an example, util-linux gives me this:
    'Installing util-linux (2.12r-2) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...r-2_mipsel.ipk
    Configuring adduser
    syntax error
    postinst script returned status 255
    ERROR: adduser.postinst returned 255
    Configuring util-linux
    Successfully terminated.'

    and if I try reinstalling adduser I end up with this:

    'ipkg install adduser
    Package adduser (1.5.1-1) installed in root is up to date.
    Configuring adduser
    syntax error
    postinst script returned status 255
    ERROR: adduser.postinst returned 255
    Nothing to be done
    Successfully terminated.'

    Is this normal ? I also seem to be "missing" passwd - so that I can change a users password (not smbpasswd, this I have and seem to work ok - at least as far as I can see at the moment!)

    / Hytekk

  6. #6
    Join Date
    Aug 2007
    Location
    Austria
    Posts
    52
    Quote Originally Posted by Hytekk View Post
    Hmm, I seem to have some issues concerning the adduser-package.

    Trying to download for an example, util-linux gives me this:
    'Installing util-linux (2.12r-2) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/op...r-2_mipsel.ipk
    Configuring adduser
    syntax error
    postinst script returned status 255
    ERROR: adduser.postinst returned 255
    Configuring util-linux
    Successfully terminated.'

    and if I try reinstalling adduser I end up with this:

    'ipkg install adduser
    Package adduser (1.5.1-1) installed in root is up to date.
    Configuring adduser
    syntax error
    postinst script returned status 255
    ERROR: adduser.postinst returned 255
    Nothing to be done
    Successfully terminated.'

    Is this normal ? I also seem to be "missing" passwd - so that I can change a users password (not smbpasswd, this I have and seem to work ok - at least as far as I can see at the moment!)

    / Hytekk

    there are a few packages which don't install clean with using ipkg
    e.g. fail2ban, syslog-ng and adduser (as far as i've tried till now)

    the adduser tool basically works but i had to comment out the commands in
    /opt/lib/ipkg/info/adduser.postinst and adduser.prerm in order to get rid of the error message.

    brgds
    tiwag

  7. #7
    Quote Originally Posted by Hytekk View Post
    Hi again,

    all the time I have run 'make rebuild' as a normal user, but this time I tried it out as root - and what do you know, it works !!!
    Weird, but easy enough to fix. Just "chmod -R" the directory until it stops complaining and build as a normal user.

    - K.C.

Similar Threads

  1. How-to : install kfurge 1.0.4.6_kc_02a custom firmware
    By jeromv in forum WL-700g Tutorials
    Replies: 5
    Last Post: 16-02-2008, 22:49
  2. New 1.0.4.6 based custom firmware
    By kfurge in forum WL-700g Firmware Discussion
    Replies: 272
    Last Post: 20-11-2007, 16:15
  3. Quickguide installing custom firmware?
    By Grandmaster in forum WL-700g Firmware Discussion
    Replies: 28
    Last Post: 05-03-2007, 14:46
  4. custom firmware based on 1.9.5.0 beta?
    By Teddy in forum WL-500g Custom Development
    Replies: 5
    Last Post: 14-05-2006, 20:08
  5. Custom Firmware v1.1.2.7
    By JOCKYW2001 in forum WL-HDD Firmware Releases
    Replies: 59
    Last Post: 11-12-2004, 12:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •