Build ath25 fail - clean build [solved]

I cannot build ath25 - clean git clone and build. When compile clean ath25 it build fine. I will check which option is critical.
My config:

cat diffconfig_dir300
CONFIG_TARGET_ath25=y
CONFIG_TARGET_ath25_DEVICE_generic=y
CONFIG_TARGET_BOARD="ath25"
# CONFIG_IPV6 is not set
# CONFIG_KERNEL_DEBUG_INFO is not set
# CONFIG_KERNEL_DEBUG_KERNEL is not set
# CONFIG_KERNEL_ELF_CORE is not set
# CONFIG_KERNEL_IPV6 is not set
# CONFIG_KERNEL_SWAP is not set
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_firewall is not set
# CONFIG_PACKAGE_iptables is not set
# CONFIG_PACKAGE_kmod-ipt-conntrack is not set
# CONFIG_PACKAGE_kmod-ipt-core is not set
# CONFIG_PACKAGE_kmod-ipt-nat is not set
# CONFIG_PACKAGE_kmod-ipt-offload is not set
# CONFIG_PACKAGE_kmod-lib-crc-ccitt is not set
# CONFIG_PACKAGE_kmod-nf-conntrack is not set
# CONFIG_PACKAGE_kmod-nf-flow is not set
# CONFIG_PACKAGE_kmod-nf-ipt is not set
# CONFIG_PACKAGE_kmod-nf-ipt6 is not set
# CONFIG_PACKAGE_kmod-nf-nat is not set
# CONFIG_PACKAGE_kmod-nf-reject is not set
# CONFIG_PACKAGE_kmod-ppp is not set
# CONFIG_PACKAGE_libip4tc is not set
# CONFIG_PACKAGE_libip6tc is not set
# CONFIG_PACKAGE_libpthread is not set
# CONFIG_PACKAGE_libxtables is not set
# CONFIG_PACKAGE_odhcpd-ipv6only is not set
# CONFIG_PACKAGE_opkg is not set
# CONFIG_PACKAGE_ppp is not set

Error:


Configuring kmod-cfg80211.
Configuring kmod-mac80211.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-gpio-button-hotplug:
 * 	kernel (= 4.14.67-1-aed568edb625b7ca1b6c5a88cb17a4b7) * 
 * opkg_install_cmd: Cannot install package kmod-gpio-button-hotplug.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ath:
 * 	kernel (= 4.14.67-1-aed568edb625b7ca1b6c5a88cb17a4b7) * 	kernel (= 4.14.67-1-aed568edb625b7ca1b6c5a88cb17a4b7) * 	kernel (= 4.14.67-1-aed568edb625b7ca1b6c5a88cb17a4b7) * 
 * opkg_install_cmd: Cannot install package kmod-ath.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ath5k:
 * 	kernel (= 4.14.67-1-aed568edb625b7ca1b6c5a88cb17a4b7) * 
 * opkg_install_cmd: Cannot install package kmod-ath5k.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/mnt/openwrt/OpenwrtDIR300'
package/Makefile:104: recipe for target '/mnt/openwrt/OpenwrtDIR300/staging_dir/target-mips_mips32_musl/stamp/.package_install' failed
make[1]: *** [/mnt/openwrt/OpenwrtDIR300/staging_dir/target-mips_mips32_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/mnt/openwrt/OpenwrtDIR300'
/mnt/openwrt/OpenwrtDIR300/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

It compile fine with:

CONFIG_TARGET_ath25=y
CONFIG_TARGET_ath25_Default=y
CONFIG_TARGET_BOARD="ath25"
# CONFIG_ATH_USER_REGD is not set
# CONFIG_IPV6 is not set
CONFIG_KERNEL_COREDUMP=y
CONFIG_KERNEL_DEBUG_INFO=y
CONFIG_KERNEL_DEBUG_KERNEL=y
CONFIG_KERNEL_ELF_CORE=y
# CONFIG_KERNEL_IPV6 is not set
CONFIG_KERNEL_SWAP=y
# CONFIG_PACKAGE_ATH_DFS is not set
# CONFIG_PACKAGE_MAC80211_MESH is not set
# CONFIG_PACKAGE_dnsmasq is not set
# CONFIG_PACKAGE_firewall is not set
# CONFIG_PACKAGE_iptables is not set
# CONFIG_PACKAGE_kmod-ipt-conntrack is not set
# CONFIG_PACKAGE_kmod-ipt-core is not set
# CONFIG_PACKAGE_kmod-ipt-nat is not set
# CONFIG_PACKAGE_kmod-ipt-offload is not set
# CONFIG_PACKAGE_kmod-nf-conntrack is not set
# CONFIG_PACKAGE_kmod-nf-flow is not set
# CONFIG_PACKAGE_kmod-nf-ipt is not set
# CONFIG_PACKAGE_kmod-nf-ipt6 is not set
# CONFIG_PACKAGE_kmod-nf-nat is not set
# CONFIG_PACKAGE_kmod-nf-reject is not set
# CONFIG_PACKAGE_kmod-ppp is not set
# CONFIG_PACKAGE_libip4tc is not set
# CONFIG_PACKAGE_libip6tc is not set
# CONFIG_PACKAGE_libpthread is not set
# CONFIG_PACKAGE_libxtables is not set
# CONFIG_PACKAGE_odhcpd-ipv6only is not set
# CONFIG_PACKAGE_opkg is not set
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_kmod-lib-crc-ccitt=y

For DIR-300 16MB/4MB flash. Will be used as switch and AP - no iptables, LUCI etc, only ssh access.
first I flash:
on tftp I put:

ls -al /var/lib/tftpboot/
total 2888
drwxr-xr-x  2 root nogroup    4096 Aug 30 12:43 .
drwxr-xr-x 81 root root       4096 Aug 30 11:51 ..
-rwxr-xr-x  1 root root    1245184 Aug 30 12:42 openwrt-ath25-generic-kernel.lzma
-rw-r--r--  1 root root    1703936 Aug 30 12:43 openwrt-ath25-generic-squashfs-rootfs.bin

on DIR-300 console execute(putty) :


== Executing boot script in 4.990 seconds - enter ^C to abort
^C
DD-WRT>
DD-WRT> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> ip_address -h 192.168.1.1
IP: 192.168.1.10/255.255.255.0, Gateway: 192.168.1.1
Default server: 192.168.1.1
DD-WRT> load -r -b %{FREEMEMLO} openwrt-ath25-generic-kernel.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040800-0x801707ff, assumed entry at 0x80040800
DD-WRT> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
... Erase from 0xbfc30000-0xbfd60000: ...................
... Program from 0x80040800-0x80170800 at 0xbfc30000: ...................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT>
DD-WRT> load -r -b %{FREEMEMLO} openwrt-ath25-generic-squashfs-rootfs.bin
Using default protocol (TFTP)
Raw file loaded 0x80040800-0x801e07ff, assumed entry at 0x80040800
DD-WRT> fis create rootfs
... Erase from 0xbfd60000-0xbff00000: ..........................
... Program from 0x80040800-0x801e0800 at 0xbfd60000: ..........................
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> 
DD-WRT> reset

and DIR-300 boot:

root@OpenWrt:/# dmesg 
[    0.000000] Linux version 4.14.67 (kofec@E5420Mint) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7981-a6e11ccb13)) #0 Wed Aug 29 19:00:58 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019064 (MIPS 4KEc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] On node 0 totalpages: 4096
[    0.000000] free_area_init_node: node 0, pgdat 8039ed20, node_mem_map 80403020
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 4096 pages, LIFO batch:0
[    0.000000] random: get_random_bytes called from 0x803a2724 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 12076K/16384K available (2952K kernel code, 137K rwdata, 364K rodata, 184K init, 198K bss, 4308K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 128
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 20774570075 ns
[    0.000044] sched_clock: 32 bits at 92MHz, resolution 10ns, wraps every 23342213114ns
[    0.093925] Calibrating delay loop... 183.70 BogoMIPS (lpj=918528)
[    0.247254] pid_max: default: 32768 minimum: 301
[    0.303331] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.381815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.478520] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.595452] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.670236] NET: Registered protocol family 16
[    0.725362] Can't analyze schedule() prologue at 8031ebb8
[    0.874847] clocksource: Switched to clocksource MIPS
[    0.941291] NET: Registered protocol family 2
[    0.996916] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.079706] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.155501] TCP: Hash tables configured (established 1024 bind 1024)
[    1.232162] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.301397] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.377303] NET: Registered protocol family 1
[    1.429005] PCI: CLS 0 bytes, default 16
[    1.459740] Radio config found at offset 0xf8 (0x1f8)
[    1.549079] Crashlog allocated RAM at address 0xf00000
[    1.630362] workingset: timestamp_bits=30 max_order=12 bucket_order=0
[    1.739465] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.808609] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.992085] io scheduler noop registered
[    2.038321] io scheduler deadline registered (default)
[    2.100486] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.196960] serial8250: ttyS0 at MMIO 0x11100000 (irq = 9, base_baud = 5750000) is a 16550A
[    2.296346] console [ttyS0] enabled
[    2.379633] bootconsole [early0] disabled
[    2.480695] ar2315-spiflash ar2315-spiflash.0: 4096 Kbytes flash detected
[    2.575388] Searching for RedBoot partition table in spiflash at offset 0x3d0000
[    3.039138] Searching for RedBoot partition table in spiflash at offset 0x3e0000
[    3.502859] 6 RedBoot partitions found on MTD device spiflash
[    3.572014] Creating 6 MTD partitions on "spiflash":
[    3.631853] 0x000000000000-0x000000030000 : "RedBoot"
[    3.704474] 0x000000030000-0x000000160000 : "vmlinux.bin.l7"
[    3.784163] 0x000000160000-0x0000003e0000 : "rootfs"
[    3.849281] mtd: device 2 (rootfs) set to be root filesystem
[    3.917851] 1 squashfs-split partitions found on MTD device rootfs
[    3.992372] 0x0000002d0000-0x0000003e0000 : "rootfs_data"
[    4.074338] 0x0000003e0000-0x0000003ef000 : "FIS directory"
[    4.152968] 0x0000003ef000-0x0000003f0000 : "RedBoot config"
[    4.232712] 0x0000003f0000-0x000000400000 : "boardconfig"
[    4.376558] eth0: Atheros AR231x: 00:1e:58:85:6f:8e, irq 4
[    4.519858] IP17xx: Found IP175C at 0:00
[    4.688305] libphy: ar231x_eth_mii: probed
[    4.906966] eth0: attached PHY driver [IC+ IP17xx] (mii_bus:phy_addr=0:00)
[    4.996733] NET: Registered protocol family 17
[    5.050827] 8021q: 802.1Q VLAN Support v1.8
[    5.158519] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    5.245421] Freeing unused kernel memory: 184K
[    5.298969] This architecture does not have kernel memory protection.
[    5.694951] random: fast init done
[    8.640944] init: Console is alive
[    8.683616] init: - watchdog -
[   11.214585] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   11.470643] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   11.569761] init: - preinit -
[   15.415089] eth0: link up (100Mbps/full duplex)
[   17.957847] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   18.098917] urandom-seed: Seed file not found (/etc/urandom.seed)
[   18.544184] procd: - early -
[   18.580065] procd: - watchdog -
[   19.630296] procd: - watchdog -
[   19.671190] procd: - ubus -
[   19.946288] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.025809] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.102960] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.188693] procd: - init -
[   21.166424] kmodloader: loading kernel modules from /etc/modules.d/*
[   21.251507] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   21.347929] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   22.287420] ath: EEPROM regdomain: 0x0
[   22.287470] ath: EEPROM indicates default country code should be used
[   22.287484] ath: doing EEPROM country->regdmn map search
[   22.287530] ath: country maps to regdmn code: 0x3a
[   22.287553] ath: Country alpha2 being used: US
[   22.287568] ath: Regpair used: 0x3a
[   22.290628] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   22.297900] ath5k: phy0: Atheros AR2317 chip found (MAC: 0x90, PHY: 0x48)
[   22.496682] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.792537] urandom_read: 4 callbacks suppressed
[   24.792579] random: jshn: uninitialized urandom read (4 bytes read)
[   25.144620] random: jshn: uninitialized urandom read (4 bytes read)
[   26.378829] random: jshn: uninitialized urandom read (4 bytes read)
[   43.626312] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   44.015184] jffs2_build_filesystem(): unlocking the mtd device... 
[   44.015243] done.
[   44.112911] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   59.213539] eth0: link up (100Mbps/full duplex)
[   59.431960] br-lan: port 1(eth0.1) entered blocking state
[   59.497131] br-lan: port 1(eth0.1) entered disabled state
[   59.563771] device eth0.1 entered promiscuous mode
[   59.621607] device eth0 entered promiscuous mode
[   60.637489] br-lan: port 1(eth0.1) entered blocking state
[   60.702589] br-lan: port 1(eth0.1) entered forwarding state
[   67.826211] done.
[   67.849791] jffs2: notice: (650) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   70.107830] overlayfs: upper fs does not support tmpfile.
[  137.135206] random: crng init done
root@OpenWrt:/# 
root@OpenWrt:/# free
             total       used       free     shared    buffers     cached
Mem:         12260      10500       1760         56       1192       3116
-/+ buffers/cache:       6192       6068
Swap:            0          0          0
root@OpenWrt:/#

I've recently had some very strange build failures. I finally gave in an destroyed all the build directories, including the build chain, and I have not been plagued by that type of failure in recent builds. One downside is that rebuilding the build chain gives you time for a beer or two...

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.