Mefolio

   


About
Mefolio, Yet another Mefo.

webmaster (at) dangofactory.net

Subscribe
Subscribe to rss

Links
These are a few of my favourite links.

  • raelity bytes ;-)
  • Categories

    « | 2026 | Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec | »

           
    Sat, 01 Aug 2026

    CKB01 ... C114

    Hardware specifications:

    • Software specifications:

    Disk partitions:

    Feelings

    = いいこと =

    = わるいこと =

    MODDING

    前提として以下の環境下でQSDK11.4をビルドします。

    VirtualBox 7.2
    Ubuntu 18.04(Linux 5.4.0-150-generic #167, x86_64)
    i7-3770S 6core / RAM 10GB / HDD 100GB

    必要なパッケージをインストールします。

    sudo su -  <=昇格はしておこう
    apt install git subversion gawk python2.7 zlib1g-dev libncurses5-dev libncursesw5-dev ocaml-nox libssl1.0-dev
    mkdir test && cd test

    repoというツールをインストールします。

    wget https://storage.googleapis.com/git-repo-downloads/repo -O repo
    chmod +x repo
    mv repo /usr/local/bin/

    QSDKは昔はcodeauroraにありましたが移管されたためcodelinaroから取得する必要があります。
    今回は11.4.5.7360をターゲットにします。
    これのカーネルバージョンは4.4.60です。
    syncにかなり時間がかかります。(softbank 1gbps契約でおおよそ1時間半)

    repo init -u git://git.codelinaro.org/clo/qsdk/releases/manifest/qstak -b release -m AU_LINUX_QSDK_NHSS.QSDK.11.4.0.5_TARGET_ALL.11.4.0.5.7360
    repo sync
    cd qsdk

    ひとまずmenuconfigします。以下のように設定しました。

      x x                           Target System (Qualcomm Atheros IPQ)  --->                                                x x
      x x                           Subtarget (QCA IPQ807x(64bit) based boards)  --->                                         x x
      x x                           Target Profile (Qualcomm-Atheros SDK Premium Profile)  --->
    

    またramdiskを有効にする必要があります。

    実際にmake

    make package/symlinks
    make defconfig
    make V=s

    しかしなぜかハッシュが一致しない。 qsdk/toolchain/glibc/common.mk:10:MD5SUM_2.19 = 42dad4edd3bcb38006d13b5640b00b38 となっているので変更する。 また公式による配布は終了しているのでhttps://github.com/nxp-qoriq-yocto-sdk/eglibc も使えるかもしれない。

    MD5 sum of the downloaded file does not match (file: b2463d4b1de83de390e03741ff50122a, requested: 42dad4edd3bcb38006d13b5640b00b38) - deleting download.
    No more mirrors to try - giving up.
    Checking out files from the svn repository...
    svn: E170013: Unable to connect to a repository at URL 'svn://svn.eglibc.org/branches/eglibc-2_19'
    svn: E000111: Can't connect to host 'svn.eglibc.org': Connection refused
    svn: E170013: Unable to connect to a repository at URL 'svn://svn.eglibc.org/branches/eglibc-2_19'
    svn: E000111: Can't connect to host 'svn.eglibc.org': Connection refused
    Makefile:27: recipe for target '/root/test/test/qsdk/dl/glibc-2.19-r25243.tar.bz2' failed
    make[3]: *** [/root/test/test/qsdk/dl/glibc-2.19-r25243.tar.bz2] Error 1
    make[3]: Leaving directory '/root/test/test/qsdk/toolchain/glibc/headers'
    toolchain/Makefile:81: recipe for target 'toolchain/glibc/headers/prepare' failed
    make[2]: *** [toolchain/glibc/headers/prepare] Error 2
    make[2]: Leaving directory '/root/test/test/qsdk'
    toolchain/Makefile:80: recipe for target '/root/test/test/qsdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-4.8-linaro_glibc-2.19/stamp/.toolchain_install' failed
    make[1]: *** [/root/test/test/qsdk/staging_dir/toolchain-aarch64_cortex-a53_gcc-4.8-linaro_glibc-2.19/stamp/.toolchain_install] Error 2
    make[1]: Leaving directory '/root/test/test/qsdk'
    /root/test/test/qsdk/include/toplevel.mk:210: recipe for target 'world' failed
    make: *** [world] Error 2

    さらにエラー。いったん(void)ncns;で対処。

    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-drv-gdc14ca2/nss_dma_log.c: Infunction 'nss_dma_test_perf_msg':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-drv-gdc14ca2/nss_dma_log.c:64:9: error: unused variable 'ncns' [-Werror=unused-variable]
      struct nss_cmn_node_stats *ncns = &ndtc->node_stats;
                                 ^
    cc1: all warnings being treated as errors
    scripts/Makefile.build:337: recipe for target '/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ip807x_64/qca-nss-drv-gdc14ca2/nss_dma_log.o' failed
    make[5]: *** [/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-drv-gdc14ca2/nssdma_log.o] Error 1

    またまたエラー。
    openswanは配布されていないようです。

    --2026-07-29 12:43:07--  http://downloads.openwrt.org/sources/openswan-2.6.51.3.                                                                                                                                                             tar.gz
    Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:65::644, 19                                                                                                                                                             9.232.150.132
    Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:65::644|:8                                                                                                                                                             0... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://sources.openwrt.org/openswan-2.6.51.3.tar.gz [following]
    --2026-07-29 12:43:08--  https://sources.openwrt.org/openswan-2.6.51.3.tar.gz
    Resolving sources.openwrt.org (sources.openwrt.org)... 2a03:4000:3b:221::1, 185.                                                                                                                                                             163.119.85
    Connecting to sources.openwrt.org (sources.openwrt.org)|2a03:4000:3b:221::1|:443                                                                                                                                                             ... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2026-07-29 12:43:09 ERROR 404: Not Found.
    
    Download failed.
    No more mirrors to try - giving up.
    Makefile:113: recipe for target '/root/test/test/qsdk/dl/openswan-2.6.51.3.tar.g                                                                                                                                                             z' failed

    念のためase, gcm, sha256を有効化。

      x x                                                                              -*- kmod-crypto-aead.................................. CryptoAPI AEAD support                                                                       x x
      x x                                                                              <*> kmod-crypto-aes.............................. AES cipher CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-arc4...................... ARC4 (RC4) cipher CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-authenc...................... Combined mode wrapper for IPsec                                                                       x x
      x x                                                                              -*- kmod-crypto-cbc................... Cipher Block Chaining CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-ccm................... Support for Counter with CBC MAC (CCM)                                                                       x x
      x x                                                                              -*- kmod-crypto-core.................................. Core CryptoAPI modules                                                                       x x
      x x                                                                              -*- kmod-crypto-crc32c..................................... CRC32c CRC module                                                                       x x
      x x                                                                              -*- kmod-crypto-ctr............................ Counter Mode CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-deflate................. Deflate compression CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-des......................... DES/3DES cipher CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-ecb..................... Electronic CodeBook CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-fcrypt........................ FCRYPT cipher CryptoAPI module                                                                       x x
      x x                                                                              <*> kmod-crypto-gcm................................ GCM/GMAC CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-gf128.... GF(2^128) multiplication functions CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-ghash.......................... GHASH digest CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-hash.................................. CryptoAPI hash support                                                                       x x
      x x                                                                              -*- kmod-crypto-hmac............................ HMAC digest CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-hw-geode.................... AMD Geode hardware crypto module                                                                       x x
      x x                                                                              < > kmod-crypto-hw-hifn-795x.................... HIFN 795x crypto accelerator                                                                       x x
      x x                                                                              < > kmod-crypto-hw-padlock..... VIA PadLock ACE with AES/SHA hw crypto module                                                                       x x
      x x                                                                              < > kmod-crypto-hw-talitos. Freescale integrated security engine (SEC) driver                                                                       x x
      x x                                                                              -*- kmod-crypto-iv.......................... CryptoAPI initialization vectors                                                                       x x
      x x                                                                              -*- kmod-crypto-manager.......................... CryptoAPI algorithm manager                                                                       x x
      x x                                                                              < > kmod-crypto-md4.............................. MD4 digest CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-md5.............................. MD5 digest CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-michael-mic........ Michael MIC keyed digest CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-misc................................. Other CryptoAPI modules                                                                       x x
      x x                                                                              -*- kmod-crypto-null................................... Null CryptoAPI module                                                                       x x
      x x                                                                              <*> kmod-crypto-ocf.............................................. OCF modules                                                                       x x
      x x                                                                              < >   kmod-crypto-ocf-hifn7751                                                                                                                      x x
      x x                                                                              < >   kmod-crypto-ocf-hifnhipp.......... OCF support for Hifn 7855/8155 devices                                                                     x x
      x x                                                                              < > kmod-crypto-pcbc...... Propagating Cipher Block Chaining CryptoAPI module                                                                       x x
      x x                                                                              -*- kmod-crypto-pcompress....... CryptoAPI Partial (de)compression operations                                                                       x x
      x x                                                                              < > kmod-crypto-qce.................................. QTI Crypto Engine (QCE)                                                                       x x
      x x                                                                              -*- kmod-crypto-rng....................... CryptoAPI random number generation                                                                       x x
      x x                                                                              -*- kmod-crypto-seqiv................. CryptoAPI Sequence Number IV Generator                                                                       x x
      x x                                                                              -*- kmod-crypto-sha1............................ SHA1 digest CryptoAPI module                                                                       x x
      x x                                                                              <*> kmod-crypto-sha256................. SHA224 SHA256 digest CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-crypto-test................................... Test CryptoAPI module                                                                       x x
      x x                                                                              <*> kmod-crypto-user........................... CryptoAPI userspace interface                                                                       x x
      x x                                                                              -*- kmod-crypto-wq............................. CryptoAPI work queue handling                                                                       x x
      x x                                                                              < > kmod-crypto-xts.............................. XTS cipher CryptoAPI module                                                                       x x
      x x                                                                              < > kmod-cryptodev..................... Driver for cryptographic acceleration                                                                       x x
      x x                                                                                                                                                                                                                                  x x
      x x                                                                                                                                                                                                                                  x x
    

    一応

    make defconfig
    

    qca/feeds/networking/openswan/Makefileを変更します

    PKG_NAME:=v
    PKG_VERSION:=2.6.51.3
    PKG_RELEASE:=1
    
    PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.gz
    PKG_SOURCE_URL:=https://github.com/xelerance/Openswan/archive/refs/tags/
    PKG_MD5SUM:=ae768d6c349e361bd9e7d9f23a33fabd
    PKG_BUILD_DIR:=$(BUILD_DIR)/Openswan-$(PKG_VERSION)
    

    そしてまたエラー #define _hasattribute(x) 0で対処する。

    lib/libopenswan/pfkey_v2_parse.c 
    linux/net/ipsec/inflate.c 
    linux/net/ipsec/infcodes.c 
    linux/net/ipsec/infblock.c 
    linux/net/ipsec/pfkey_v2_ext_process.c 
    linux/net/ipsec/aes/aes.c 
    linux/net/ipsec/pfkey_v2_parse.c
    linux/include/des/des_locl.h
    qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-ovsmgr-gdc5696b/ovsmgr_dp.c
    qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-ecm-g5187b67/frontends/nss/ecm_nss_ipv6.c
    qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-ecm-g5187b67/frontends/nss/ecm_nss_ipv4.c
    qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-ecm-g5187b67/frontends/nss/ecm_nss_common.h
    qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6_sysctl.c
    

    などにに存在する

    CC pfkey_v2_parse.c
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libopenswan/pfkey_v2_parse.c: In function 'pfkey_msg_parse':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libopenswan/pfkey_v2_parse.c:1321:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libopenswan/pfkey_v2_parse.c:1335:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libopenswan/Makefile:175: recipe for target 'pfkey_v2_parse.o' failed
    make[6]: *** [pfkey_v2_parse.o] Error 1
    
    CC aes.c
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c: In function 'aes_encrypt':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1317:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1322:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1335:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c: In function 'aes_decrypt':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1384:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1389:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/aes/aes.c:1402:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libcrypto/libaes/../../Makefile.library:107: recipe for target 'aes.o' failed
    make[7]: *** [aes.o] Error 1
    
    In file included from /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/net/ipsec/des/des_enc.c:59:0:
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/linux/include/des/des_locl.h:191:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/lib/libcrypto/libdes/../../Makefile.library:107: recipe for target 'des_enc.o' failed
    make[7]: *** [des_enc.o] Error 1
    
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/pfkey_v2_ext_process.c:492:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/pfkey_v2_ext_process.c:492:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    scripts/Makefile.build:337: recipe for target '/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/pfkey_v2_ext_process.o' failed
    make[6]: *** [/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/pfkey_v2_ext_process.o] Error 1
    
      CC [M]  /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.o
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c: In function 'ipcomp_deflate_blocks':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:238:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:238:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:266:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:266:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:345:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:345:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:365:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:365:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:374:5: warning: "__has_attribute" is not defined [-Wundef]
     #if __has_attribute(__fallthrough__)
         ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.c:374:20: error: missing binary operator before token "("
     #if __has_attribute(__fallthrough__)
                        ^
    scripts/Makefile.build:337: recipe for target '/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.o' failed
    make[6]: *** [/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/Openswan-2.6.51.3/modobj26/infblock.o] Error 1
    

    またそしてエラー。

    Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:65::644|:80... connec                                                                              ted.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://sources.openwrt.org/BIN-NSS.HK.11.4.0.5-5-R.tar.bz2 [following]
    --2026-07-29 14:27:32--  https://sources.openwrt.org/BIN-NSS.HK.11.4.0.5-5-R.tar.bz2
    Resolving sources.openwrt.org (sources.openwrt.org)... 2a03:4000:3b:221::1, 185.163.119.85
    Connecting to sources.openwrt.org (sources.openwrt.org)|2a03:4000:3b:221::1|:443... connect                                                                              ed.
    HTTP request sent, awaiting response... 404 Not Found
    2026-07-29 14:27:34 ERROR 404: Not Found.
    
    Download failed.
    No more mirrors to try - giving up.
    Makefile:48: recipe for target '/root/test/test/qsdk/dl/BIN-NSS.HK.11.4.0.5-5-R.tar.bz2' fa                                                                              iled
    

    配布されていたので修正。

    NSS_VER:=11.4.0.5
    NSS_SOC:=HK
    NSS_PROFILE:=R
    
    PKG_SOURCE:=BIN-NSS.$(NSS_SOC).$(NSS_VER)-$(PKG_VERSION)-$(NSS_PROFILE).tar.bz2
    PKG_SOURCE_URL:=https://github.com/quic/qca-sdk-nss-fw/raw/refs/heads/main/QCA_Networking_2021.SPF_11.4/CS/IPQ8074.ATH.11.4/
    PKG_BUILD_DIR:=$(BUILD_DIR)/BIN-NSS.$(NSS_SOC).$(NSS_VER)-$(PKG_VERSION)-$(NSS_PROFILE)
    

    まだエラー。 よくわからない変数が定義されていなかったため、とりあえず0で定義します。

      CC [M]  /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/matchnss_match.o
    In file included from /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g13998d/match/nss_match.c:27:0:
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/match/nss_matchpriv.h:32:6: error: "NSS_match_DEBUG_LEVEL" is not defined [-Werror=undef]
     #if (NSS_match_DEBUG_LEVEL < 2)
          ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/match/nss_matchpriv.h:38:6: error: "NSS_match_DEBUG_LEVEL" is not defined [-Werror=undef]
     #if (NSS_match_DEBUG_LEVEL < 3)
          ^
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/match/nss_matchpriv.h:44:6: error: "NSS_match_DEBUG_LEVEL" is not defined [-Werror=undef]
     #if (NSS_match_DEBUG_LEVEL < 4)
          ^
    cc1: all warnings being treated as errors
    scripts/Makefile.build:337: recipe for target '/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq87x_64/qca-nss-clients-g153998d/match/nss_match.o' failed
    make[6]: *** [/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/mtch/nss_match.o] Error 1
    

    これは使ってないだけなので(void)ver;でok

      CC [M]  /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6.o
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6.c: In function 'nss_tunipip6_decap_exception':
    /root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6.c:260:9: error: unused variable 'ver' [-Werror=unused-variable]
      int8_t ver = skb->data[0] >> 4;
             ^
    cc1: all warnings being treated as errors
    scripts/Makefile.build:337: recipe for target '/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6.o' failed
    make[6]: *** [/root/test/test/qsdk/build_dir/target-aarch64_cortex-a53_glibc-2.19/linux-ipq_ipq807x_64/qca-nss-clients-g153998d/tunipip6/nss_connmgr_tunipip6.o] Error 1
    

    USBからの場合

    IPQ807x# icache off
    IPQ807x# dcache off
    IPQ807x# nm.l 0x4a901e5c
    4a901e5c: e1600070 ? e7f000f0
    4a901e5c: e7f000f0 ? .
    IPQ807x# bootm 0x44000000#config@1
    undefined instruction
    pc : [<4a901e60>]          lr : [<4a77f808>]
    reloc pc : [<4a901e60>]    lr : [<4a77f808>]
    sp : 4a77f7a0  ip : 4a77f80c     fp : 00000000
    r10: 4a7d2ca0  r9 : 4a77fea0     r8 : 4a902760
    r7 : 4a3e8000  r6 : 4a77f804     r5 : 00000000  r4 : 00000000
    r3 : 00000050  r2 : 4a77f820     r1 : 00000012  r0 : 0200010f
    Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
    Resetting CPU ...
    

    X55からの場合

    IPQ807x# usb reset
    resetting USB...
    IPQ807x# fatload usb 0:0 0x44000000 uimage-initramfs.itb
    IPQ807x# md.l 0x44000000 4
    44000000: edfe0dd0 1c95ac01 38000000 608dac01    ...........8...`
    IPQ807x# bootm 0x44000000
    undefined instruction
    pc : [<4a901e60>]          lr : [<4a77f808>]
    reloc pc : [<4a901e60>]    lr : [<4a77f808>]
    sp : 4a77f7a0  ip : 4a77f80c     fp : 00000000
    r10: 4a7d2ca0  r9 : 4a77fea0     r8 : 4a902760
    r7 : 4a3e7000  r6 : 4a77f804     r5 : 00000000  r4 : 00000000
    r3 : 00000050  r2 : 4a77f820     r1 : 00000012  r0 : 0200010f
    Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
    Resetting CPU ...
    

    関係なさそう。

    FUN_4a901f9c(Kernel Boot WARP) -> FUN_4a901f0c (SCM CHECK) -> FUN_4a900724 (D CACHE CACHE) -> FUN_4a902e28(D CACHE ENABLE/DISABLE) -> > FUN_4a901f9c -> FUN_4a901f0c -> FUN_4a900724 -> FUN_4a902e28 -> SCM_BOOT(0x82000601) -> FUN_4a901f9c -> SCM_BOOT_WARP/FUN_4a901e7c -> FUN_4a900724 -> FUN_4a902e28 -> FUN_4a901f0c (RET) -> FUN_0a901e44 (CALL_SCM) -> FUN_4a901f0c (RET) -> FUN_4a901f9c (RET) -> FUN_4a901e7c (SCM_WRAPPER) -> FUN_0a901e44 (CALL_SCM) -> SCM呼び出し の順。 scmが怪しい。

    X55のものは起動するので。。。 おそらく、scmに飛んだ後の処理がビルドした後のitbを受け付けていない?

    IPQ807x# usbboot
    
    Loading from usb device 0, partition 0: Name: Whole Disk  Type: U-Boot
    Fit image detected...
       FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
        Image 0 (kernel@1)
        Image 1 (fdt@1)
        Default Configuration: 'config@1'
        Configuration 0 (config@1)
         Description:  OpenWrt
         Kernel:       kernel@1
         FDT:          fdt@1
    IPQ807x# fdt print /images
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    IPQ807x# fdt addr 0x44000000
    IPQ807x# fdt print /images
    images {
            kernel@1 {
                    description = "ARM64 OpenWrt Linux-4.4.60";
                    data = * 0x440000e8 [0x02ef6e00];
                    type = "kernel";
                    arch = "arm64";
                    os = "linux";
                    compression = "none";
                    load = <0x41080000>;
                    entry = <0x41080000>;
                    hash@1 {
                            value = <0x7395a5b1>;
                            algo = "crc32";
                    };
                    hash@2 {
                            value = <0xa82c373b 0xcf5677a9 0xac04e739 0xd0925de8 0x2c64d7d9>;
                            algo = "sha1";
                    };
            };
            fdt@1 {
                    description = "ARM64 OpenWrt qcom-ipq807x-hk09 device tree blob";
                    data = * 0x46ef702c [0x000140e4];
                    type = "flat_dt";
                    arch = "arm64";
                    compression = "none";
                    hash@1 {
                            value = <0x04f7965b>;
                            algo = "crc32";
                    };
                    hash@2 {
                            value = <0x38271377 0x0e901c41 0x588a0fb7 0xe55da384 0xc11bf2a5>;
                            algo = "sha1";
                    };
            };
    };
    IPQ807x#
    IPQ807x# fdt addr 0x46ef702c
    IPQ807x# fdt print /memory
    memory {
            device_type = "memory";
            reg = <0x00000000 0x40000000 0x00000000 0x20000000>;
    };
    IPQ807x# fdt print /reserved-memory
    reserved-memory {
            #address-cells = <0x00000002>;
            #size-cells = <0x00000002>;
            ranges;
            nss@40000000 {
                    no-map;
                    reg = <0x00000000 0x40000000 0x00000000 0x01000000>;
            };
            tzapp@4a400000 {
                    no-map;
                    reg = <0x00000000 0x4a400000 0x00000000 0x00200000>;
            };
            uboot@4a600000 {
                    no-map;
                    reg = <0x00000000 0x4a600000 0x00000000 0x00400000>;
            };
            sbl@4aa00000 {
                    no-map;
                    reg = <0x00000000 0x4aa00000 0x00000000 0x00100000>;
            };
            smem@4ab00000 {
                    no-map;
                    reg = <0x00000000 0x4ab00000 0x00000000 0x00100000>;
                    linux,phandle = <0x0000001b>;
                    phandle = <0x0000001b>;
            };
            tz@4ac00000 {
                    no-map;
                    reg = <0x00000000 0x4ac00000 0x00000000 0x00400000>;
            };
            wcnss@4b000000 {
                    no-map;
                    reg = <0x00000000 0x4b000000 0x00000000 0x05f00000>;
                    linux,phandle = <0x00000012>;
                    phandle = <0x00000012>;
            };
            q6_etr_dump@50f00000 {
                    no-map;
                    reg = <0x00000000 0x50f00000 0x00000000 0x00100000>;
                    linux,phandle = <0x00000013>;
                    phandle = <0x00000013>;
            };
            m3_dump@51000000 {
                    no-map;
                    reg = <0x00000000 0x51000000 0x00000000 0x00100000>;
            };
            wifi_dump@51100000 {
                    no-map;
                    reg = <0x00000000 0x51100000 0x00000000 0x00600000>;
            };
            wigig_dump@51300000 {
                    no-map;
                    reg = <0x00000000 0x51300000 0x00000000 0x00400000>;
            };
    };
    
    eth0
    IPQ807x# usb start
    IPQ807x#  fatls usb 0:0
     28087580   uimage-initramfs.itb
    
    1 file(s), 0 dir(s)
    
    IPQ807x#  fatload usb 0:0 0x44000000 uimage-initramfs.itb
    IPQ807x#  fdt addr 0x44000000
    IPQ807x# fdt print /images
    images {
            kernel@1 {
                    description = "ARM64 OpenWrt Linux-4.4.60";
                    data = * 0x440000e8 [0x01ab2e00];
                    type = "kernel";
                    arch = "arm64";
                    os = "linux";
                    compression = "none";
                    load = <0x41080000>;
                    entry = <0x41080000>;
                    hash@1 {
                            value = <0x3fc3aa0d>;
                            algo = "crc32";
                    };
                    hash@2 {
                            value = <0xf7aa3891 0x4aa609f2 0xd9fca68f 0x8cd07522 0xabf417d6>;
                            algo = "sha1";
                    };
            };
            fdt@1 {
                    description = "ARM64 OpenWrt qcom-ipq807x-hk09 device tree blob";
                    data = * 0x45ab302c [0x00015bec];
                    type = "flat_dt";
                    arch = "arm64";
                    compression = "none";
                    hash@1 {
                            value = <0x2cb1883e>;
                            algo = "crc32";
                    };
                    hash@2 {
                            value = <0x8249da6f 0x0acd0462 0xdf6c0390 0xea573f05 0xc74ee215>;
                            algo = "sha1";
                    };
            };
    };
    IPQ807x# fdt print /configurations
    configurations {
            default = "config@1";
            config@1 {
                    description = "OpenWrt";
                    kernel = "kernel@1";
                    fdt = "fdt@1";
            };
    };
    IPQ807x# fdt addr 0x45ab302c
    IPQ807x# fdt print /memory
    memory {
            device_type = "memory";
            reg = <0x00000000 0x40000000 0x00000000 0x20000000>;
    };
    IPQ807x# fdt print /reserved-memory
    reserved-memory {
            #address-cells = <0x00000002>;
            #size-cells = <0x00000002>;
            ranges;
            nss@40000000 {
                    no-map;
                    reg = <0x00000000 0x40000000 0x00000000 0x01000000>;
            };
            uboot@4a600000 {
                    no-map;
                    reg = <0x00000000 0x4a600000 0x00000000 0x00400000>;
            };
            tzapp@4a400000 {
                    no-map;
                    reg = <0x00000000 0x4a400000 0x00000000 0x00100000>;
            };
            sbl@4aa00000 {
                    no-map;
                    reg = <0x00000000 0x4aa00000 0x00000000 0x00100000>;
            };
            smem@4ab00000 {
                    no-map;
                    reg = <0x00000000 0x4ab00000 0x00000000 0x00100000>;
                    linux,phandle = <0x0000001a>;
                    phandle = <0x0000001a>;
            };
            tz@4ac00000 {
                    no-map;
                    reg = <0x00000000 0x4ac00000 0x00000000 0x00400000>;
            };
            wcnss@4b000000 {
                    no-map;
                    reg = <0x00000000 0x4b000000 0x00000000 0x03700000>;
                    linux,phandle = <0x00000011>;
                    phandle = <0x00000011>;
            };
            q6_etr_dump@4e700000 {
                    no-map;
                    reg = <0x00000000 0x4e700000 0x00000000 0x00100000>;
                    linux,phandle = <0x00000012>;
                    phandle = <0x00000012>;
            };
            m3_dump@4e800000 {
                    no-map;
                    reg = <0x00000000 0x4e800000 0x00000000 0x00100000>;
            };
            wifi_dump@4e900000 {
                    no-map;
                    reg = <0x00000000 0x4e900000 0x00000000 0x00200000>;
            };
    };
    IPQ807x#
    

    [/DEVICES] permanent link