question in building wgr614v8-v1.1.1_1.0.20NA_src

5 posts / 0 new
Last post
Stephen
Stephen's picture
question in building wgr614v8-v1.1.1_1.0.20NA_src

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

achilles
achilles's picture
From this log it seems that u

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....

Stephen
Stephen's picture
I find out the problem now.

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?

achilles
achilles's picture
If you are getting a

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 ...

Alex V. Varlamov
Alex V. Varlamov's picture
If still true or can anyone

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