Can you share the config file to makemenu.
would you explain me post root menu how do I boot the firmware
If some one could help me. getting following error with bootm
IPQ6018# bootm 0x43000000
Loading kernel from FIT Image at 43000000 ...
Using 'config@1' configuration
Trying 'kernel-1' kernel subimage
Description: ARM64 OpenWrt Linux-6.6.45
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x430000e8
Data Size: 11015211 Bytes = 10.5 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x41000000
Entry Point: 0x41000000
Hash algo: crc32
Hash value: 3a825c11
Hash algo: sha1
Hash value: 0e1ea7b351b9a12adcdd548a0ae7e75c02bffb20
Verifying Hash Integrity ... crc32+ sha1+ OK
Loading fdt from FIT Image at 43000000 ...
Using 'config@1' configuration
Trying 'fdt-1' fdt subimage
Description: ARM64 OpenWrt arista_ap-cp01-c3 device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x43a81658
Data Size: 34796 Bytes = 34 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 36233698
Hash algo: sha1
Hash value: f62cceac97d4ba53599dfa7bc8ff50d7833f4b7e
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x43a81658
Uncompressing Kernel Image ... Unimplemented compression type 3
exit not allowed from main input shell.
It's probably LZMA compression.
correct how do i change that to gzip.
If you use these sources, this line should be removed: https://github.com/FruitBoi/openwrt/blob/main/target/linux/qualcommax/image/ipq60xx.mk#L58
If I remove that block and boot then it it gives error of image size too large
Loading fdt from FIT Image at 41000000 ...
Using 'config@1' configuration
Trying 'fdt-1' fdt subimage
Description: ARM64 OpenWrt arista_ap-cp01-c3 device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x41b9bb28
Data Size: 34796 Bytes = 34 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 36233698
Hash algo: sha1
Hash value: f62cceac97d4ba53599dfa7bc8ff50d7833f4b7e
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x41b9bb28
Uncompressing Kernel Image ... Error: inflate() returned -5
Image too large: increase CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...
finally got in with changing the memory addr.
but now facing an issue with interface configuration unable to get the network.
Hi if anyone could help me here.
I have flashed the bin "openwrt-qualcommax-ipq60xx-arista_ap-cp01-c3-squashfs-sysupgrade.bin" it was successful but still, it is loading stock firmware and not the openwrt. following are the logs which show openwrt was found but it is not being loaded
steps followed
-
tftpboot 0x43000000 openwrt-qualcommax-ipq60xx-arista_ap-cp01-c3-squashfs-sysupgrade.bin
-
erase ${kernel} ${kernel_size}
-
cp.b 0x43000000 ${kernel} ${kernel_size}
-
reset
following are the boot logs : https://clbin.com/Eh39h
following is the print_env : https://clbin.com/CUFpj
hey all! I've been experimenting around with this for about 3 weeks now just trying to see what I can and cannot do.
a few things.
you need to always remove the option labeled "fitimagelzma" as that will always cause an decompression failure type 3 error.
second is the ethernet driver doesn't work, this is due to a missing ; separating the two options. which I think causes the wrong option to be selected inside the make file.
I wanted to write that for future folks who stumble upon this trying to get their own APs working.
I've been trying to figure out how to get the sysupgrade.bin file to work that way openwrt can just be permanently installed. theres two things I'm concerned about and that being
A: the secure boot portion thats apparently enabled
B: the TPM chip it complains about being present but not on when it boots into the default operating system.
so I'd like to request help with getting a sysupgrade made that works correctly, if anyone has any insight or wants any information please do reply I'd appreciate it!
thank you!
noting: I'm using FruitBois additions to openwrt to make this work with some fixes applied.
you can use my repo, I have removed the compression and taken the base from @LemonFruit, and synced it into the latest one.
https://github.com/sanketnaik08/openwrt/tree/main
also with the help of @dosdude1, I have flashed it permanently
follow the steps
In order to get the content onto the device, you need to first extract the "kernel" file from the "sysupgrade" image produced when building OpenWrt (it is a gzipped tar, so just extract with tar -xvf). The other kernel image (ITB file) includes a ramdisk, and won't retain any settings on reboots.
You need the kernel image mentioned and the UBI filesystem image. To write the filesystem, simply use tftpboot to download the UBI image, and write it to NAND by simply running "flash rootfs" at the U-Boot prompt. To flash the kernel, download the kernel image using tftpboot, then write it to NOR using the following commands:
- sf probe
- sf erase ${kernel} ${kernel_size}
- sf write ${fileaddr} ${kernel} ${filesize}
You then need to change the boot args to point to the correct root partition, do so by setting NVRAM like so:
setenv bootargs "console=ttyMSM0,115200n8 rootfstype=squashfs ubi.mtd=0 ubi.block=0,rootfs root=/dev/ubiblock0_1"
Lastly, you need to set the boot command in NVRAM like so:
setenv ubootscript "sf probe; sf read ${fileaddr} ${kernel} ${kernel_size}; bootm ${fileaddr};"
Finally, save NVRAM:
saveenv
Then you are done.
that worked so well! thank you so so much sanketnaik08 and dosdude1. gotta get a bunch of stuff manually configured but its flashed permanently and it seems to be registering everything so far correctly.
so as an update.
so far I've experienced a few things so far.
first. I am experiencing some issues with opkg mainly with the repo downloads.openwrt.org/snapshots/targets/qualcommax/ipq60xx/packages/ as it just. doesn't exist. I'm unaware of how to fix that at the moment or how one would go about setting up that repo.
second. I'm having issues relating to the 5ghz band. it works, sorta. its limited to 20mhz channel bandwidths and is only pushing around 200mbps, which is short of even my aerohive AP230s by around 130mbps. I'm hoping to maybe fix this but I'm unsure how.
the third and more complicated. I've been experiencing crashes with this AP so far that I'd like to sort and fix.
a snippet of the crash before it rebooted.
[ 20.538509] qcom-q6v5-wcss-pil cd00000.remoteproc: fatal error received:
[ 20.538509] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.5.0.1-03982-QCAHKSWPL_SILICONZ-3
[ 20.538509] Image Variant : IMAGE_VARIANT_STRING=6018.wlanfw.evalQ
[ 20.538509]
[ 20.538509] NOC_error.c:474 NOCError: FATAL ERRORparam0 :zero, param1 :zero, param2 :zero.
[ 20.538509] Thread ID : 0x0000006f Thread name : ABTIST182 Process ID : 0
[ 20.538509] Register:
[ 20.538509] SP : 0x4af81ef8
[ 20.538509] FP : 0x4af81f00
[ 20.538509] PC : 0x4ac8db68
[ 20.538509] SSR : 0x00000008
[ 20.538509] BADVA : 0x00020000
[ 20.538509] LR : 0x4ac8d304
[ 20.538509]
[ 20.538509] Stack Dump
[ 20.538509] from : 0x4af81ef8
[ 20.538509] to : 0x4af81fd0
[ 20.538509]
[ 20.585436] remoteproc remoteproc0: crash detected in cd00000.remoteproc: type fatal error
[ 20.607629] remoteproc remoteproc0: handling crash #1 in cd00000.remoteproc
[ 20.615670] remoteproc remoteproc0: recovering cd00000.remoteproc
[ 20.625845] Internal error: synchronous external abort: 0000000096000210 [#1] SMP
[ 20.628773] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_inet ath11k_ahb(O) ath11k(O) pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_lc
[ 20.682569] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 6.6.57 #0
[ 20.704805] Hardware name: Arista AP-C200P (DT)
[ 20.712267] pstate: 404000c5 (nZcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 20.716523] pc : 0xffffffc07931376c
[ 20.723461] lr : 0xffffffc07931395c
[ 20.726934] sp : ffffffc080003f00
[ 20.730406] x29: ffffffc080003f00 x28: ffffffc080bee140 x27: 0000000000000000
[ 20.733886] x26: ffffff803fdea280 x25: ffffffc080bee140 x24: 0000000000000000
[ 20.741003] x23: ffffff8002cda200 x22: 0000000000000027 x21: 0000000000000000
[ 20.748122] x20: ffffffc08082b138 x19: ffffff80027e5d80 x18: ffffffc0845cbae0
[ 20.755240] x17: ffffffbfbf2dc000 x16: ffffffc080000000 x15: ffffffffffffffff
[ 20.762358] x14: 0000000000000000 x13: 0000000000000347 x12: ffffff80031a1d60
[ 20.769476] x11: ffffff80031a1d38 x10: 00000000000008a0 x9 : ffffffc080be3cf0
[ 20.776594] x8 : 0000000000a1803c x7 : 0000000000000000 x6 : 0000000000000000
[ 20.783712] x5 : 0000000000a18040 x4 : ffffffc085a18040 x3 : 0000000000000200
[ 20.790830] x2 : 0000000000000002 x1 : 0000000000000002 x0 : ffffff80031a0000
[ 20.797947] Call trace:
[ 20.805058] 0xffffffc07931376c
[ 20.807316] __handle_irq_event_percpu+0x48/0x128
[ 20.810443] handle_irq_event+0x44/0xcc
[ 20.815302] handle_fasteoi_irq+0xc0/0x1e0
[ 20.818948] generic_handle_domain_irq+0x2c/0x44
[ 20.823116] gic_handle_irq+0x6c/0x9c
[ 20.827888] call_on_irq_stack+0x24/0x4c
[ 20.831449] do_interrupt_handler+0x80/0x8c
[ 20.835441] el1_interrupt+0x34/0x54
[ 20.839347] el1h_64_irq_handler+0x18/0x24
[ 20.843167] el1h_64_irq+0x68/0x6c
[ 20.847072] default_idle_call+0x28/0x3c
[ 20.850459] do_idle+0x1cc/0x1ec
[ 20.854537] cpu_startup_entry+0x38/0x3c
[ 20.857750] kernel_init+0x0/0x1dc
[ 20.861655] arch_post_acpi_subsys_init+0x0/0x8
[ 20.864869] start_kernel+0x514/0x648
[ 20.869295] __primary_switched+0xb4/0xbc
[ 20.873119] Code: f94e0804 0b0700a5 12001c22 8b050084 (b9400084)
[ 20.877114] ---[ end trace 0000000000000000 ]---
[ 20.883188] Kernel panic - not syncing: synchronous external abort: Fatal exception in interrupt
[ 20.887882] SMP: stopping secondary CPUs
[ 20.896645] Kernel Offset: disabled
[ 20.900544] CPU features: 0x0,00000000,10000000,0000400b
[ 20.903760] Memory Limit: none
[ 20.909313] Rebooting in 3 seconds..
this was all I could capture and looking for a crash log did not yield anything. I've enabled capturing on my serial console system in the hopes that when it does this again, I can provide a more complete log surrounding what happened.
regardless, hopefully this snippet is something to work from around the crash. I have a feeling its due to the 5ghz radio not working correctly but I don't really know how to confirm this.
additional information. I'm utilizing the version of openwrt uploaded to sanketnaik08's github. which is utilizing snapshot R27893-2de7f56233. if you need any more information please let me know I'm more then happy to provide it.
thank yall for whatever help yall can provide!
Actually didn't face any issue but you can try once with the following repo only remove the compression part from it if image is not accepted.
Is it possible to get a copy of your make menuconfig save file? I'm curious what extra things you have enabled.
so I did attempt to use this but ran into the same issues as before. one of my aps refuses to utilize anything above 20mhz channel widths and crashes every 3 to 5 hours, the other crashes every 3 to 5 days but I'm able to change all of the settings about it.
are you all using the Arista C200P? or just the regular C200? I know functionally they should be the same but its worth checking just in case theres something not right with the firmware the radios are getting.