Page 1 of 2
Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 3:11 am
by hanhan_spm
Hi,
I try to build image for AirTight C-75. it is supported by openwrt since 21.02.0
www openwrt org/toh/hwdata/airtight/airtight_c-75
(why i can not post URL ?)
the device is an ISP grade AP, so it has some nice feature.
- Qualcomm Atheros QCA9550
- Dual band 2.4Ghz and 5Ghz
- 1port usb 2.0
- console port rj-45 cisco style
- standard PoE 802.3af
- 128mb RAM
drawback : only 1xWAN and 1xLAN (both 1Gbps)
there are 2 version 16mb and 32mb ROM (mine 32mb)
it has been 10 some years since i compile a source code ... so bear with me...
I use Ubuntu 22.04.3 LTS for base system
i install :
(from openwrt guide)
build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \
python3-distutils rsync unzip zlib1g-dev file wget
(from gargoyle guide)
build-essential asciidoc binutils bzip2 gawk \
gettext git libncurses5-dev zlib1g-dev patch \
unzip zlib1g-dev lib32gcc-s1 libc6-dev-i386 \
subversion flex uglifyjs git gcc-multilib p7zip \
p7zip-full msmtp libssl-dev texinfo
(also ...)
npm nodejs terser
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 3:28 am
by hanhan_spm
First Try :
~>make custom
I select ATH79 and AirTight C-75
~>make
Failed ... error ( very early stage ... just like 50 lines... the stop)
after did some more read.... i need some more install (from openwrt guide)
so i try to download and compile openwrt with the same selection... it compiled normal...
so i try again "make custom"
some progress.... but still error
Second try :
i delete the entire folder...
i git the source code again...
this time i did :
~> make FULL_BUILD=true ath79
after some hours... it fail too... and i can not find the log build
so i re 'make' (without clean up)
~> make FULL_BUILD=true ath79 | ts '[%Y-%m-%d %H:%M:%S]' | tee build.log
i will post the result in few hours...
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 9:32 am
by Lantis
Check your PATH has python on it and it points to python3.
It used to be necessary to install “python-is-python3” package on earlier Ubuntu, not sure if still needed on newer ones.
If you get a build failure, make with
make BUILD_THREADS=1 ath79
This will put the failure reason right at the bottom of the log and easier to understand.
It will be much slower.
Once you have successfully built ath79 once, let’s look at getting your device building.
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 9:57 am
by hanhan_spm
i lost power after 2 hour and 18 minutes ... (F*#K!!!!)
power goes down for less than 10 mins.... arrrrgggggg.....
(sorry for the language)
Lantis wrote: ↑Mon Jul 01, 2024 9:32 am
Check your PATH has python on it and it points to python3.
It used to be necessary to install “python-is-python3” package on earlier Ubuntu, not sure if still needed on newer ones.
python 3 was installed... but my PATH in env does not have python
i install python-is-python3 ... just in case
Lantis wrote: ↑Mon Jul 01, 2024 9:32 am
If you get a build failure, make with
make BUILD_THREADS=1 ath79
This will put the failure reason right at the bottom of the log and easier to understand.
It will be much slower.
i will use this as last resort....
Lantis wrote: ↑Mon Jul 01, 2024 9:32 am
Once you have successfully built ath79 once, let’s look at getting your device building.
that was the idea... i want to make sure i can compile untouch source config first....
is there any build log?
or i have to do what i did (tee command)
Thank u @lantis
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 1:09 pm
by hanhan_spm
Hello again...
I search the error... something to do with not enough memory ? i use 4gb
well... maybe i need to do single thread compiling after all
Code: Select all
/home/god/gargoyle-1/ath79-src/staging_dir/host/bin/install -c -m 644 b-header-vars /home/god/gargoyle-1/ath79-src/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib/gcc/mips-openwrt-linux-musl/11.2.0/plugin/include/b-header-vars
make[6]: Leaving directory '/home/god/gargoyle-1/ath79-src/build_dir/toolchain-mips_24kc_gcc-11.2.0_musl/gcc-11.2.0-initial/gcc'
make[5]: Leaving directory '/home/god/gargoyle-1/ath79-src/build_dir/toolchain-mips_24kc_gcc-11.2.0_musl/gcc-11.2.0-initial'
make[4]: Leaving directory '/home/god/gargoyle-1/ath79-src/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#2225.31#213.57#1451.89
ERROR: toolchain/gcc/initial failed to build.
make[3]: Leaving directory '/home/god/gargoyle-1/ath79-src'
make[2]: Leaving directory '/home/god/gargoyle-1/ath79-src'
make[1]: Leaving directory '/home/god/gargoyle-1/ath79-src'
make[1]: Entering directory '/home/god/gargoyle-1/ath79-src'
make[2]: Entering directory '/home/god/gargoyle-1/ath79-src'
make[2]: Leaving directory '/home/god/gargoyle-1/ath79-src'
#
# No change to .config
#
make[1]: Leaving directory '/home/god/gargoyle-1/ath79-src'
Editing config file to build in English-EN translation
Warning: injecting haserl-i18n package into config file
BUILDING BANNER
**************************************************************************
Gargoyle is now building target: ath79 / nand
(with 6 build threads)
**************************************************************************
------ it continue to compile for a while ------
/home/god/gargoyle-1/ath79-src/staging_dir/host/bin/install -c -m 644 b-header-vars /home/god/gargoyle-1/ath79-src/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/initial/lib/gcc/mips-openwrt-linux-musl/11.2.0/plugin/include/b-header-vars
make[6]: Leaving directory '/home/god/gargoyle-1/ath79-src/build_dir/toolchain-mips_24kc_gcc-11.2.0_musl/gcc-11.2.0-initial/gcc'
make[5]: Leaving directory '/home/god/gargoyle-1/ath79-src/build_dir/toolchain-mips_24kc_gcc-11.2.0_musl/gcc-11.2.0-initial'
make[4]: Leaving directory '/home/god/gargoyle-1/ath79-src/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#3.99#3.76#8.03
ERROR: toolchain/gcc/initial failed to build.
make[3]: Leaving directory '/home/god/gargoyle-1/ath79-src'
make[2]: Leaving directory '/home/god/gargoyle-1/ath79-src'
make[1]: Leaving directory '/home/god/gargoyle-1/ath79-src'
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 6:25 pm
by Lantis
None of those lines tell you why it failed, that’s why you need to run a single build thread on failure.
tee is the only way I’ve ever done build logs
Re: Trying to build AirTight C-75 system
Posted: Mon Jul 01, 2024 9:11 pm
by hanhan_spm
Thank u @lantis
it works....
single thread is the answer...
now the main purpose...
*finger cross*...
Re: Trying to build AirTight C-75 system
Posted: Tue Jul 02, 2024 11:56 am
by hanhan_spm
report :
custom compile completed
Re: Trying to build AirTight C-75 system
Posted: Thu Jul 04, 2024 12:37 am
by hanhan_spm
hi lantis..
it failed to boot to the initramfs as a test
it might be because the image is too large...
the openwrt image size is around 6mb
the gargoyle imag esize is around 12mb (it take twice as big?)
googling came up with :
https://forum.openwrt.org/t/backup-copy ... /198732/14
i will try to move the bootm to 88000000
booting initramfs:
Code: Select all
U-Boot 1.1.4 (Nov 16 2015 - 20:42:59)
ap135 - Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(200): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x6, 0x1d)
Tap values = (0x11, 0x11, 0x11, 0x11)
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 208k for U-Boot at: 87fc8000
Reserving 192k for malloc() at: 87f98000
Reserving 44 Bytes for Board Info at: 87f97fd4
Reserving 36 Bytes for Global Data at: 87f97fb0
Reserving 128k for boot params() at: 87f77fb0
Stack Pointer at: 87f77f98
Now running in RAM - U-Boot at: 87fc8000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 32 MB
*** Warning *** : PCIe WLAN Module not found !!!
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0x1
Fetching MAC Address from 0x87feab2c
Fetching MAC Address from 0x87feab2c
ath_gmac_enet_initialize: reset mask:c02200
Scorpion ----> S17 PHY *
Vlan config...
s17 phy0 register value 0x00004140
TEST: FINAL REG VAL after TX Calibration - 0x86000000
TEST: FINAL XMII VAL after RX Calibration - 0x96000000
TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00000001
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7335
eth0: e8:c7:4f:17:db:20
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x800c0000 cfg2 0x7214
eth1: e8:c7:4f:17:db:21
eth1 up
eth0, eth1
Setting 0x18116290 to 0x50a0214f
Hit any key to stop autoboot: 0
multiboot=1
Trying eth0
eth0 link down
FAIL
Trying eth1
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.100.100; our IP address is 192.168.100.1
Filename 'gargoyle_1.15.x-c-75-initramfs-kernel.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
done
Bytes transferred = 12490019 (be9523 hex)
## Checking Image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.10.201
Created: 2023-11-25 18:18:57 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 12489955 Bytes = 11.9 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Attempting to boot OpenWRT Ram Image...
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.10.201
Created: 2023-11-25 18:18:57 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 12489955 Bytes = 11.9 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x81000040 ...OK
Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 543
Decoding error = 1
LZMA ERROR 1 - must RESET board to recover
boot env :
Code: Select all
setenv multiboot 1
setenv initramfs ' echo Attempting to boot OpenWRT Ram Image...; set bootargs "console=ttyS0,115200 init=/sbin/init root=/dev/ram0 rw rd_start=0x81200000 rd_size=13M mtdparts=ath-nor0:256k(u-boot),128k(uboot-env),2048k(kernel),13312k(rootfs),576k(dummy),64k(ART);ath-nor1:16M(opt)";bootm 81000000'
setenv openwrt 'echo Booting from internal Flash...;bootm 9f060000'
setenv bootsel 'if tftp 81000000 gargoyle-c-75-initramfs-kernel.bin;then if imi 81000000;then run initramfs;else run openwrt;fi;else run openwrt;fi'
setenv bootcmd 'if print multiboot&&test $multiboot = 1;then run bootcfg;run bootsel;else run openwrt;fi'
setenv bootcfg 'set ipaddr 192.168.1.1;set serverip 192.168.1.100;set netretry no'
setenv bootargs 'console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),128k(uboot-env),2048k(kernel),13888k(rootfs),64k(ART);ath-nor1:16M(opt)'
setenv bootdelay 2
setenv netmask 255.255.255.0
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.100
setenv filesize 1000000
setenv fileaddr 80060000
Re: Trying to build AirTight C-75 system
Posted: Thu Jul 04, 2024 3:01 am
by hanhan_spm
change the bootm to 83000000 fix the problem
the initramfs runs...
the missing part is the 5Ghz wifi ...
it only have 2.4Ghz wifi
the gargoyle system seems everything is ok...
@lantis... any hint of direction to which part of source code i should look into ?
Thank you again ..