Modify

Opened 9 years ago

Closed 9 years ago

Last modified 22 months ago

#1128 closed defect (fixed)

failing to make ixp4xx-2.6

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: other Version:
Keywords: Cc:

Description

Hi.
I could download apex-1.4.7. Thanks a lot.
Now, npe causes error ;)

owrt@localhost ~/kamikaze/snapshot/trunk $ make V=99
make[1]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/scripts/config'
make[1]: `conf' is up to date.
make[1]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/scripts/config'
make[1]: Entering directory `/home/owrt/kamikaze/snapshot/trunk'
make -C tools install
make[2]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/tools'
make install-targets
make[3]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/tools'
make[3]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/tools'
make[2]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/tools'
make[1]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk'
make[1]: Entering directory `/home/owrt/kamikaze/snapshot/trunk'
make -C toolchain install
make[2]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/toolchain'
make[2]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/toolchain'
make[1]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk'
make[1]: Entering directory `/home/owrt/kamikaze/snapshot/trunk'
make -C target compile
make[2]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target'
make -C linux prepare
make[3]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux'
make -C ixp4xx-2.6 prepare
make[4]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6'
make[4]: `prepare' is up to date.
make[4]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6'
make[3]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux'
make -C linux compile
make[3]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux'
make -C ixp4xx-2.6 compile
make[4]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6'
make[4]: `compile' is up to date.
make[4]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6'
make[3]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux'
make -C linux/ixp4xx-2.6/image compile
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 34: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-avila-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 37: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-avila-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 34: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-gateway7001-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 37: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-gateway7001-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 34: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-nslu2-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 37: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-nslu2-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 34: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-nas100d-2.6-zImage: No such file or directory
/home/owrt/kamikaze/snapshot/trunk/scripts/arm-magic.sh: line 37: /home/owrt/kamikaze/snapshot/trunk/bin/openwrt-nas100d-2.6-zImage: No such file or directory
make[3]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image'
make -C apex BUILD_DIR="/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image/apex'
install -m0755 /home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx/apex-1.4.7/apex.bin /home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx/apex-nslu2-armeb.bin
make[4]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image/apex'
make -C npe-ucode BUILD_DIR="/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
mkdir /home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3
mkdir: cannot create directory `/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3': File exists
make[4]: *** [/home/owrt/kamikaze/snapshot/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.prepared] Error 1
make[4]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target/linux/ixp4xx-2.6/image'
make[2]: *** [image_compile] Error 2
make[2]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk/target'
make[1]: *** [target/compile] Error 2
make[1]: Leaving directory `/home/owrt/kamikaze/snapshot/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (5)

comment:1 Changed 9 years ago by lschweiss

Same problem here. This series of problems started when the NPE microcode was added.

comment:2 Changed 9 years ago by jr

Few minor problems with ixp4xx target. Notification to download microcode from Intel's website is never shown to user and even after downloading it build fails.

First attempt with 'make V=99'. Shouldn't this display somewhere "You must manually download IPL_ixp400NpeLibrary-2_3.zip" message that's present in target/linux/ixp4xx-2.6/image/npe-ucode/Makefile?

make -C npe-ucode BUILD_DIR="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
mkdir /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3
unzip -d /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.. /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip
unzip:  cannot find or open /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip, /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip.zip or /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip.ZIP.
make[4]: *** [/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.prepared] Error 9
make[4]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image'
make[2]: *** [image_compile] Error 2
make[2]: Leaving directory `/opt/k6089/trunk/target'
make[1]: *** [target/compile] Error 2
make[1]: Leaving directory `/opt/k6089/trunk'
make: *** [world] Error 2

Second attempt after copying IPL_ixp400NpeLibrary-2_3.zip to dl directory.

make -C npe-ucode BUILD_DIR="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
mkdir /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3
mkdir: cannot create directory `/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3': File exists
make[4]: *** [/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.prepared] Error 1
make[4]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image'
make[2]: *** [image_compile] Error 2
make[2]: Leaving directory `/opt/k6089/trunk/target'
make[1]: *** [target/compile] Error 2
make[1]: Leaving directory `/opt/k6089/trunk'
make: *** [world] Error 2

Third attempt after deleting /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3 make is complaining.

make -C npe-ucode BUILD_DIR="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
mkdir /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3
unzip -d /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.. /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip
Archive:  /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/
  inflating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c  
  inflating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/ixNpeDlImageConverter.c  
mv /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/
mv: cannot stat `/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c': No such file or directory
make[4]: *** [/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.prepared] Error 1
make[4]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image'
make[2]: *** [image_compile] Error 2
make[2]: Leaving directory `/opt/k6089/trunk/target'
make[1]: *** [target/compile] Error 2
make[1]: Leaving directory `/opt/k6089/trunk'
make: *** [world] Error 2

Now where did that extra ".." came to unzip destination path? When target/linux/ixp4xx-2.6/image/npe-ucode/Makefile is patched with hack below allows build to continue, but obiviously it's not proper fix just quick and dirty hack. It doesn't address problem with not showing where to get needed microcode either.

make -C npe-ucode BUILD_DIR="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" TARGET="/opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx" install
make[4]: Entering directory `/opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode'
mkdir -p /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3
unzip -d /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.. /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip
Archive:  /opt/k6089/trunk/dl/IPL_ixp400NpeLibrary-2_3.zip
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/
   creating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/
  inflating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c  
  inflating: /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw/src/npeDl/ixNpeDlImageConverter.c  
mv /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/../ixp400_xscale_sw /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/ixp400_xscale_sw
mv /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/
rm -rf /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/ixp400_xscale_sw
cp -fpR ./src/* /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/
touch /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/.prepared
( cd /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3 ; \
  gcc -Wall IxNpeMicrocode.c -o IxNpeMicrocode ; \
  ./IxNpeMicrocode -be )
Writing image: IXP425.NPE_B Func:  0 Rev: 02.01 Size: 11964 to: 'NPE-B.01000201'
install -m0755 /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/npe-ucode-2.3/NPE-B /opt/k6089/trunk/build_armeb/linux-2.6-ixp4xx/
--- /opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode/Makefile.orig      2007-01-13 20:16:04.000000000 +0200
+++ /opt/k6089/trunk/target/linux/ixp4xx-2.6/image/npe-ucode/Makefile   2007-01-13 20:18:53.000000000 +0200
@@ -20,8 +20,9 @@
 include $(INCLUDE_DIR)/unpack.mk
 
 $(PKG_BUILD_DIR)/.prepared:
-       mkdir $(PKG_BUILD_DIR)
+       mkdir -p $(PKG_BUILD_DIR)
        $(PKG_UNPACK)
+       mv $(PKG_BUILD_DIR)/../ixp400_xscale_sw $(PKG_BUILD_DIR)/ixp400_xscale_sw
        mv $(PKG_BUILD_DIR)/ixp400_xscale_sw/src/npeDl/IxNpeMicrocode.c $(PKG_BUILD_DIR)/
        rm -rf $(PKG_BUILD_DIR)/ixp400_xscale_sw
        $(CP) ./src/* $(PKG_BUILD_DIR)/

comment:3 Changed 9 years ago by jr

This is partially fixed. See https://dev.openwrt.org/changeset/6111

comment:4 Changed 9 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

The npe-ucode check is now (since r6148) a prereq check, so it appears before starting the compile.

comment:5 Changed 22 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.