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
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....
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?
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 ...
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
This variable is empty, so the error of segmentation.
I corrected this transfer line
outside the
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