OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 270460.0
July 26, 2009 05:53 AM

Categories: WGR614L (Legacy Product)

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Stephen

Member
Joined: 07/02/2009

I got an segmentation error when compiling wgr614v8-v1.1.1_1.0.20NA_src code, can anyone take a look for me ?

 ### Create LZMA kernel ####################
mipsel-linux-objcopy -O binary -g /home/bo/netgear/org/release/src/linux/linux/vmlinux /home/bo/netgear/org/release/src/router/mipsel/vmlinux.bin
../../tools/lzma e /home/bo/netgear/org/release/src/router/mipsel/vmlinux.bin /home/bo/netgear/org/release/src/router/mipsel/vmlinux.lzma

LZMA 4.17 Copyright (c) 1999-2004 Igor Pavlov  2005-04-18
trx -o /home/bo/netgear/org/release/src/router/mipsel/linux.trx /home/bo/netgear/org/release/src/router/mipsel/vmlinux.lzma /home/bo/netgear/org/release/src/router/mipsel/target.squashfs
warning: increasing offset 463485 to 463488
rm -f /home/bo/netgear/org/release/src/router/mipsel/vmlinux.bin /home/bo/netgear/org/release/src/router/mipsel/vmlinux.lzma
###########################################
### Create .chk files for Web UI upgrade ##
cd /home/bo/netgear/org/release/src/router/mipsel && touch rootfs && \
        ../../../tools/packet -k linux.trx -f rootfs -b compatible.txt \
        -ok kernel_image -oall kernel_rootfs_image -or rootfs_image \
        -i  && \
        rm -f rootfs && \
        cp kernel_rootfs_image.chk wgr614v8_`date +%m%d%H%M`.chk
/bin/sh: line 5: 29768 Segmentation fault      ../../../tools/packet -k linux.trx -f rootfs -b compatible.txt -ok kernel_image -oall kernel_rootfs_image -or rootfs_image -i
make: *** [install] Error 139

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

July 26, 2009 11:04 PM

From this log it seems that u r having problems in creating a chk image and ur compilation part is through ....
It seems there is some problem in the tools which r used to create a chk image ...
Please check if these tools r OK or not ....
U r thru the compilation part .. its just some trivial problem in chk relted tools....

July 29, 2009 12:13 AM

Any update Stephen ?

August 10, 2009 3:12 PM

I find out the problem now. When doing 'make menuconfig' in the /router directory, if you change any configuration and save it, the segmentation fault will appear. So I can only exit without saving when doing 'make menuconfig'.
But right now I wanna add some code into the firmware, thus I need to change the configuration. How can I figure this out?

August 11, 2009 12:06 AM

If you are getting a segmentation fault for make menuconfig it means there is some problem in your build environment ..... Please check if u r using proper toolchain ... and also which kernel you are using in the PC where u compile ur code ...

September 12, 2010 5:46 PM updated: September 13, 2010 6:36 AM

If still true or can anyone come in handy - a problem in the variable fw_cfg_file from the file bcm4718/src/router/Makefile, in this segment

cd $ (PLATFORMDIR) & & touch rootfs & & \
.. / .. / .. / Tools / packet-k linux.trx-f rootfs-b $ (BOARDID_FILE) \
-Ok kernel_image-oall kernel_rootfs_image-or rootfs_image \
-I $ (fw_cfg_file) & & \
rm-f rootfs & & \
cp kernel_rootfs_image.chk $ (FW_NAME) _ `date +% m% d% H% M`. chk

This variable is empty, so the error of segmentation.
I corrected this transfer line
fw_cfg_file: = .. / .. / .. / project / acos / include / ambitCfg.h
outside the
ifeq ($(CONFIG_ACOS_MODULES),y)

Main problem in 'make menuconfig', which create .config file without variable CONFIG_ACOS_MODULES, so you must to use make PROFILE=your_router_model instead make menuconfig

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window