Odp: ZTE MF18A
Tak, plik masz wydobyć z oryginalnego softu i odpowiednio przerobić jak będzie potrzeba. To tez jest gdziś w wątku o mf286d lub mf289f
MF298F nie ma w 22.03.2 bo jest za stare, jest w gałęzi openwrt-22.03
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Sprzęt / Hardware → ZTE MF18A
Strony Poprzednia 1 2 3 4 … 10 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
Tak, plik masz wydobyć z oryginalnego softu i odpowiednio przerobić jak będzie potrzeba. To tez jest gdziś w wątku o mf286d lub mf289f
MF298F nie ma w 22.03.2 bo jest za stare, jest w gałęzi openwrt-22.03
Pewnie to: https://eko.one.pl/forum/viewtopic.php? … 19#p266119
Ale niewiele mi to mówi ... z jakich dwóch źródłowych plików....
Dwa pliki danymi do radia, jeden od 2.4GHz, drugi od 5GHz. Z jakich to już zobacz np. w oryginalnym bootloogu co próbuje załadować jako firmware i co jest fizycznie na partycjach.
W logu jest np takie coś
[ 44.654305] wlan: [4413:I:ANY] ol_ath_download_firmware: 2068: : BOARDDATA DOWNLOAD TO address 0xc0000
[ 44.664528] wlan: [4413:I:ANY] boardid_to_filename: 425: soc0: Selecting board data file name boardData_1_0_IPQ4019_DK04_2G.bin
[ 44.673730] wlan: [4413:I:ANY] ol_transfer_bin_file: 1388: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boardData_1_0_IPQ4019_DK04_2G.bin
[ 44.685322] wlan: [4413:I:ANY] ol_transfer_bin_file: 1419: downloading file 3, Download data len 12064oraz :
[ 47.616676] wlan: [4413:I:ANY] ol_ath_download_firmware: 2068: : BOARDDATA DOWNLOAD TO address 0xc0000
[ 47.626996] wlan: [4413:I:ANY] boardid_to_filename: 417: Warning : No board id matched. Selecting default boarddata file
[ 47.636068] wlan: [4413:I:ANY] boardid_to_filename: 425: soc1: Selecting board data file name boarddata_1.bin
[ 47.647099] wlan: [4413:I:ANY] ol_transfer_bin_file: 1388: Board Data File download to address=0xc0000 file name=IPQ4019/hw.1/boarddata_1.bin
[ 47.657113] wlan: [4413:I:ANY] ol_transfer_bin_file: 1419: downloading file 3, Download data len 12064
[ 47.669836] wlan: [4413:I:ANY] ol_transfer_bin_file: 1692: Board extended Data download address: 0x0
ces/platform/soc/a000000.wifi/net/wifi0/queues/tx-0 ***czyli dla 2GHz trzeba z orginału wydobyć plik boardData_1_0_IPQ4019_DK04_2G.bin i plik boarddata_1.bin dla 5GHz ?
Pierwsze tak, drugie - nie bardzo, bo on jakiś generyczny sobie pobrał. Czyżby producent dał ciała?
Dalej też coś jest:
ces/platform/soc/a000000.wifi/net/wifi0/queues/tx-0 ***
***net link recv add@/devices/platform/soc/a000000.wifi/net/soc0 ***
*[ 47.698039] wlan: [6:E:ANY] [soc0] FWLOG: [53392] WAL_DBGID_RST_STATS ( 0x1, 0x1, 0x96c, 0x0, 0x4160d4)
[ 47.698039]
[ 47.698883] wlan: [6:E:ANY] [soc0] FWLOG: [53434] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x94c, 0x94c, 0x0)
[ 47.698883]
[ 47.699117] wlan: [4413:I:ANY] ol_ath_download_firmware: 2086: Using 0x1234 for the remainder of init
[ 47.699131] wlan: [4413:I:ANY] ol_transfer_bin_file: 1002: Selecting OTP binary for CHIP Version -807706952
[ 47.699321] wlan: [4413:I:ANY] ol_transfer_bin_file: 1419: downloading file 0, Download data len 4712
[ 47.715810] wlan: [4413:I:ANY] ol_ath_download_firmware: 2115: [Non-Flash] : Ignore Module param
[ 47.715820] wlan: [4413:I:ANY] ol_ath_download_firmware: 2133: Second otp download Param 700
[ 47.725840] wlan: [4413:I:ANY] ol_ath_download_firmware: 2139: Second OTP download and Execute is good, param=0x0
[ 47.725854] wlan: [4413:I:ANY] ol_transfer_bin_file: 1135: Mission mode: Firmware CHIP Version -807706952
[ 47.726639] wlan: [4413:I:ANY] ol_swap_seg_alloc: 3104: 6ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
[ 47.726639]
[ 47.727068] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3181: ol_swap_wlan_memory_expansion: length:207475 size_left:207495 dma_size_left:262144 fw_temp:d5361004 fw_entry_size:207499
[ 47.727084] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3201: ol_swap_wlan_memory_expansion: dma_virt_addr :d52bb000 fw_temp: d5361008 length: 207475
[ 47.727345] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3210: 6Swap: bytes_left to copy: fw:16; dma_page:54669
[ 47.727345]
[ 47.727362] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3181: ol_swap_wlan_memory_expansion: length:0 size_left:12 dma_size_left:54669 fw_temp:d5393a7f fw_entry_size:207499
[ 47.727372] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3184: 6Swap: wrong length read:0
[ 47.727372]
[ 47.727386] wlan: [4413:I:ANY] ol_swap_wlan_memory_expansion: 3228: 6ol_swap_wlan_memory_expansion: Swap total_bytes copied: 207475 Target address 417d40
[ 47.727386]
[ 47.727547] wlan: [4413:I:ANY] ol_transfer_swap_struct: 2724: soc=c82c0500 target_write_addr=417d40 seg_info=c85c9550
[ 47.727558] wlan: [4413:I:ANY] ol_transfer_swap_struct: 2731: :Code swap structure successfully downloaded for bin type =2
[ 47.727571] wlan: [4413:I:ANY] ol_ath_code_data_swap: 2833: bin_filename=IPQ4019/hw.1/athwlan.bin swap_filename=/lib/firmware/IPQ4019/hw.1/athwlan.codeswap.bin
[ 47.727616] wlan: [4413:I:ANY] ol_transfer_bin_file: 1202: Downloading firmware file: IPQ4019/hw.1/athwlan.bin
[ 47.728483] wlan: [4413:I:ANY] ol_transfer_bin_file: 1419: downloading file 1, Download data len 384288
[ 47.929866] wlan: [6:E:ANY] [soc0] FWLOG: [53434] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x94c, 0x94c, 0x0)
[ 47.929866]
[ 47.941040] wlan: [6:E:ANY] [soc0] FWLOG: [53434] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x94c, 0x94c, 0x0)
[ 47.941040]
[ 47.950576] wlan: [6:E:ANY] [soc0] FWLOG: [53434] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x94c, 0x94c, 0x0)
[ 47.950576]
[ 47.962283] wlan: [6:E:ANY] [soc0] FWLOG: [53570] WAL_DBGID_PDEV_INFO_PRINT ( 0x16, 0x0, 0x7, 0x10, 0x10)
[ 47.962283]
[ 47.973337] wlan: [6:E:ANY] [soc0] FWLOG: [53570] WAL_DBGID_PDEV_INFO_PRINT ( 0x16, 0x10, 0x10, 0x10, 0x12)
[ 47.973337]
**net link recv add@/devices/platform/soc/a000000.wifi/net/soc0/queues/rx-0 ***
***net link recv add@/devices/platform/soc/a000000.wifi/net/soc0/queues/tx-0 ***
error: device not found
error: device not found
error: device not found
error: device not found
error: device not found
unzip: can't open /etc_rw/fota/image.zip[.zip]
error: device not found
21:22:26 UP>>[update_control.c:2941]start zte_dm
21:22:26 UP>>[update_control.c:2196]fsm turn from 0 to 0.
rm: can't remove '/tmp/uptime_log.txt': No such file or directory
[ 49.132049] wlan: [4413:I:ANY] ol_target_init: 2486: Download FW done.
[ 49.132107] wlan: [4413:I:ANY] ol_get_tgt_dump_location: 2291: Retrived fw_io_mem_size_l = 600000 fw_io_mem_addr_l = 87500000
[ 49.137558] wlan: [4413:I:ANY] ol_ath_copy_tgt_iram: 2361: tgt iram paddr: 0x980000 host paddr 0x87700000 Radio id 1
[ 49.315339] wlan: [4413:I:ANY] ol_ath_soc_attach: 7151: WMI attached. wmi_handle cba58600
[ 49.315463] wlan: [4413:I:ANY] htc_wmi_init: 6161: htc_wmi_init() HT Create . cbbf0000
[ 49.322596] wlan: [4413:I:ANY] htc_wmi_init: 6225: [htc_wmi_init:6225] host_enable 0 nss_nwifi_offload 0
[ 49.336565] wlan: [4413:I:ANY] ol_target_init_complete: 6347: CDP soc attach success
[ 49.340134] wlan: [4413:I:ANY] htc_set_async_ep: 428: htc_set_async_ep: htc_handle cbbf0000, ep 2, value 1
[ 49.348962] wlan: [6:I:TIF] init_deinit_sw_version_check: 2023: Firmware_Build_Number:28
[ 49.357275] wlan: [6:E:TIF] init_deinit_populate_fw_version_cmd: 108: failed to save fw version
[ 49.366060] wlan: [6:I:TIF] init_deinit_peer_cache_support: 417: Peer Caching Enabled ; num_peers = 530, num_active_peers = 52 num_tids = 104, num_vdevs = 17
[ 49.373984] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 2 idx 0 num_units 53 unit_len 256
[ 49.388241] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 3 idx 1 num_units 53 unit_len 1024
[ 49.397884] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 4 idx 2 num_units 53 unit_len 4096
[ 49.407794] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 8 idx 3 num_units 1 unit_len 327680
[ 49.418210] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 9 idx 4 num_units 1 unit_len 819200
[ 49.427732] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 1 idx 5 num_units 531 unit_len 744
[ 49.437394] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 6 idx 6 num_units 35 unit_len 3072
[ 49.447226] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 7 idx 7 num_units 1 unit_len 6144
[ 49.457955] wlan: [6:I:TIF] init_deinit_mem_mgr_alloc_chunk: 1495: req_id 5 idx 8 num_units 531 unit_len 2084
[ 49.466994] wlan: [6:I:dfs] WLAN_DEBUG_DFS_ALWAYS : wlan_dfs_pdev_obj_create_notification: 421: dfs_offload 0
[ 49.476539] wlan: [6:I:dfs] WLAN_DEBUG_DFS_ALWAYS : dfs_agile_soc_obj_init: 2850: dfs->dfs_psoc_idx: 0
[ 49.486429] wlan: [6:I:dfs] WLAN_DEBUG_DFS_ALWAYS : dfs_agile_soc_obj_init: 2856: dfs_soc_obj->num_dfs_privs: 1
[ 49.496506] wlan: [6:I:dfs] WLAN_DEBUG_DFS_ALWAYS : dfs_get_po_radars: 512: UNINIT domainMoże tu są dwa radia 5Ghz?
Jest jakiś athwlan.codeswap.bin i athwlan.bin ...
To też występuje w innych qualcommach, ale to nie tego potrzebujesz. Bierz ten generyczny i zobacz czy go czasami nie ma w openwrt, skoro oryginał na tym jedzie to tak musi być.
Co to znaczy bierz ten generyczny ?:)
W dts w linii qcom,ath10k-calibration-variant wpisuje sie generic ? czy coś w ten deseń ?
Nie, w dts wpisujesz w variant taką nazwę jaka nadałeś w board.json użytego do stworzenia board-2 z tych plików które wyciągnąłeś z oryginalnego softu.
Skoro na initramfs z mf286d miałem wifi 2,4ghz , to jak w dts zostawie tak ten fragment to się skompiluje ze sterownikiem od mf286d ?
&wifi0 {
status = "okay";
nvmem-cell-names = "pre-calibration", "mac-address";
nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0>;
mac-address-increment = <2>;
qcom,ath10k-calibration-variant = "zte,mf286d";
};Nie, będzie szukał BDF'a od mf286d. Jak wkompilujesz odpowiedni pakiet to go znajdzie i użyje (pakiet nazywa się ipq-wifi-zte_mf286d )
Da się jakoś zrzut mtd17 odworzyć ? ( próbowałem przez unsqashfs ,ale nie działa)
Czy trzeba ponownie przez tftp wysyłać te pliki na uruchominym MF18A ? No i w jakim katalogu tych plików szukać ?
Da się, masz: https://we.tl/t-svS9gPD7QH
W /lib/firmware są.
Dzięki , nie wiem dlaczego mi tego unsqashfs nie otworzył...
Zaraz zobaczymy co z tego wyjdzie.....
Teraz patrze w logu , i jest jeszcze coś takiego:
wlan: [4413:I:ANY] ol_ath_download_firmware: 1980: First OTP download and Execute is good address:0x8400 return param 4660
[ 50.433002] wlan: [4413:I:ANY] ol_ath_download_firmware: 2000: ol_ath_download_firmware:##Board Id 1 , CHIP Id 1
[ 50.444793] wlan: [4413:I:ANY] ol_ath_download_firmware: 2068: : BOARDDATA DOWNLOAD TO address 0xc0000
[ 50.455086] wlan: [4413:E:QDF] qdf_fs_read[84]: caldata data size mismatch, fsize=529, cal_size=4096
000.wifi/net/soc1/queues/tx-0 ***
***net link recv add@/bus/pla[ 50.475233] wlan: [4413:I:ANY] ol_transfer_bin_file: 1388: Board Data File download to address=0xc0000 file name=AR900B/hw.2/boardData_AR900B_CUS239_5G_v2_001.bin
[ 50.478870] wlan: [4413:I:ANY] ol_transfer_bin_file: 1419: downloading file 3, Download data len 12064
[ 50.493588] wlan: [4413:I:ANY] ol_transfer_bin_file: 1692: Board extended Data download address: 0x0
tform/drivers/ath10k_wifi2_ahb ***Jakby jakiś drugi chip od 5Ghz....
No i błąd przy kompilacji....
Utworzony plik board-2.bin przy użyciu tego qca-swiss-knife wrzucam do katalogu package/firmware/ipq-wifi i zmieniam nazwę na board-zte_mf18a.qca4019 ?
W dużym skrócie tak.
To niewiem już gdzie jest błąd...
Błąd zaczyna się odtego:
FATAL ERROR: Couldn't open "/home/marcin/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.10.154/arch/arm/boot/dts/qcom-ipq4019-mf18a.dtb": No such file or directorya np dla mf286d i mf289f się kompiluje.
Mogę ci powiedzieć dlaczego... musisz zmodyfikować łatkę target/linux/ipq40xx/patches-5.10/901-arm-boot-add-dts-files.patch i dopisać linię dla mf18a żeby kompilowało się dtb. Identycznie jak jest dla md286d i mf289f...
Sprawdzałem ten plik , i był zmodyfikowany... a teraz patrzę i nie jest...
Dobra ,zobaczymy co teraz wyjdzie.
Po długich bojach udało mi się coś takiego upiec.
Generalnie najpierw odczytuje się nand ,przez co numery partycji piersze są z nanda , a później dopiero z flasha ( czli tak jak w mf286d , gdzie rootfs jest mtd9 , a powinno być tak jak w mf289f , gdzie rootfs jest mtd17) . Co trzeba zrobić w dts ?
No i wifi jest tlko 2,4GHz , 5GHz się nie wczytało...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.156 (marcin@marcin-Virtual-Machine) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r19900-2b5154214c) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 SMP Sun Nov 27 14:43:08 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: ZTE MF18A
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000080000000-0x000000008fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x0000000087dfffff]
[ 0.000000] node 0: [mem 0x0000000087e00000-0x0000000087ffffff]
[ 0.000000] node 0: [mem 0x0000000088000000-0x000000008fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[ 0.000000] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] Kernel command line: root=/dev/ubiblock0_1
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 236948K/262144K available (6184K kernel code, 604K rwdata, 1552K rodata, 11264K init, 237K bss, 25196K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[ 0.000009] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[ 0.000025] Switching to timer-based delay loop, resolution 20ns
[ 0.000335] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[ 0.000359] pid_max: default: 32768 minimum: 301
[ 0.000539] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000558] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001544] CPU: Testing write buffer coherency: ok
[ 0.001894] qcom_scm: convention: smc legacy
[ 0.002831] Setting up static identity map for 0x80300000 - 0x8030003c
[ 0.002996] rcu: Hierarchical SRCU implementation.
[ 0.003262] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.003616] smp: Bringing up secondary CPUs ...
[ 0.007088] smp: Brought up 1 node, 4 CPUs
[ 0.007112] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[ 0.007123] CPU: All CPU(s) started in SVC mode.
[ 0.012621] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.012779] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.012806] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.013040] pinctrl core: initialized pinctrl subsystem
[ 0.014822] NET: Registered protocol family 16
[ 0.015157] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.016292] thermal_sys: Registered thermal governor 'step_wise'
[ 0.016718] cpuidle: using governor ladder
[ 0.016775] cpuidle: using governor menu
[ 0.044043] cryptd: max_cpu_qlen set to 1000
[ 0.048292] usbcore: registered new interface driver usbfs
[ 0.048361] usbcore: registered new interface driver hub
[ 0.048421] usbcore: registered new device driver usb
[ 0.048473] pps_core: LinuxPPS API ver. 1 registered
[ 0.048485] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.048514] PTP clock support registered
[ 0.050244] clocksource: Switched to clocksource arch_sys_counter
[ 0.051141] NET: Registered protocol family 2
[ 0.051393] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.052076] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.052137] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.052178] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.052229] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.052352] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052393] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052665] NET: Registered protocol family 1
[ 0.052713] PCI: CLS 0 bytes, default 64
[ 0.181883] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.186379] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.186401] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.322871] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[ 0.322898] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[ 0.324301] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[ 0.324404] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 0.324497] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[ 0.324594] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[ 0.324923] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.325489] msm_serial 78af000.serial: msm_serial: detected port #0
[ 0.325539] msm_serial 78af000.serial: uartclk = 1843200
[ 0.325595] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 33, base_baud = 115200) is a MSM
[ 0.325625] msm_serial: console setup on port #0
[ 0.861503] printk: console [ttyMSM0] enabled
[ 0.866666] msm_serial: driver initialized
[ 0.875738] loop: module loaded
[ 0.877300] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[ 0.877694] nand: Micron MT29F1G08ABAEAWP
[ 0.884344] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.888297] 13 fixed-partitions partitions found on MTD device qcom_nand.0
[ 0.895733] OF: Bad cell count for /soc/qpic-nand@79b0000/nand@0/partitions
[ 0.902570] OF: Bad cell count for /soc/qpic-nand@79b0000/nand@0/partitions
[ 0.910037] OF: Bad cell count for /soc/qpic-nand@79b0000/nand@0/partitions
[ 0.916407] OF: Bad cell count for /soc/qpic-nand@79b0000/nand@0/partitions
[ 0.923968] Creating 13 MTD partitions on "qcom_nand.0":
[ 0.930245] 0x000000000000-0x0000000a0000 : "fota-flag"
[ 0.936923] 0x0000000a0000-0x000000120000 : "ART"
[ 0.941835] 0x000000120000-0x0000001a0000 : "mac"
[ 0.946591] 0x0000001a0000-0x000000260000 : "reserved2"
[ 0.951537] 0x000000260000-0x000000660000 : "cfg-param"
[ 0.959534] 0x000000660000-0x000000a60000 : "log"
[ 0.964707] 0x000000a60000-0x000000b00000 : "oops"
[ 0.966447] 0x000000b00000-0x000001000000 : "reserved3"
[ 0.975143] 0x000001000000-0x000001800000 : "web"
[ 0.982923] 0x000001800000-0x000003500000 : "rootfs"
[ 1.009844] mtd: setting mtd9 (rootfs) as root device
[ 1.010159] mtdsplit: no squashfs found in "rootfs"
[ 1.013937] 0x000003500000-0x000004e00000 : "data"
[ 1.041724] 0x000004e00000-0x000007600000 : "fota"
[ 1.078577] 0x000007600000-0x000008000000 : "iot-db"
[ 1.093791] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 1.095351] spi-nor spi0.0: gd25q16 (2048 Kbytes)
[ 1.099964] 8 fixed-partitions partitions found on MTD device spi0.0
[ 1.104575] Creating 8 MTD partitions on "spi0.0":
[ 1.110978] 0x000000000000-0x000000040000 : "0:SBL1"
[ 1.116206] 0x000000040000-0x000000060000 : "0:MIBIB"
[ 1.121264] 0x000000060000-0x0000000c0000 : "0:QSEE"
[ 1.126101] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[ 1.131204] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[ 1.135732] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[ 1.141340] 0x0000000f0000-0x0000001b0000 : "0:APPSBL"
[ 1.146649] 0x0000001b0000-0x000000200000 : "0:reserved1"
[ 1.243743] ESS reset ok!
[ 1.316165] ESS reset ok!
[ 1.625937] PHY 0 single test PSGMII issue happen!
[ 1.921466] PHY0 test see issue!
[ 1.996339] ESS reset ok!
[ 2.482791] PHY 3 single test PSGMII issue happen!
[ 2.541908] PHY 4 single test PSGMII issue happen!
[ 2.603020] PHY3 test see issue!
[ 2.603673] PHY4 test see issue!
[ 2.677639] ESS reset ok!
[ 3.371402] i2c /dev entries driver
[ 3.373446] sdhci: Secure Digital Host Controller Interface driver
[ 3.373705] sdhci: Copyright(c) Pierre Ossman
[ 3.379951] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.388474] NET: Registered protocol family 10
[ 3.391780] Segment Routing with IPv6
[ 3.394448] NET: Registered protocol family 17
[ 3.398151] 8021q: 802.1Q VLAN Support v1.8
[ 3.402556] Registering SWP/SWPB emulation handler
[ 3.427780]▒[ 3.456853] Freeing unused kernel memory: 11264K
[ 3.514031] Run /init as init process
[ 3.969090] init: Console is alive
[ 3.969389] init: - watchdog -
[ 3.983199] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.988827] genirq: irq_chip msmgpio did not update eff. affinity mask of irq 101
[ 4.229970] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.230140] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 4.234666] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[ 4.242070] xhci-hcd xhci-hcd.0.auto: irq 104, io mem 0x08a00000
[ 4.252218] hub 1-0:1.0: USB hub found
[ 4.257610] hub 1-0:1.0: 1 port detected
[ 4.261509] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 4.265218] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 4.270565] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 4.280550] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.285242] hub 2-0:1.0: USB hub found
[ 4.292959] hub 2-0:1.0: 1 port detected
[ 4.297151] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 4.300619] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 4.306103] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000000002010010
[ 4.313516] xhci-hcd xhci-hcd.1.auto: irq 105, io mem 0x06000000
[ 4.323619] hub 3-0:1.0: USB hub found
[ 4.329049] hub 3-0:1.0: 1 port detected
[ 4.332916] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 4.336656] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 4.342000] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 4.349614] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.356685] hub 4-0:1.0: USB hub found
[ 4.364456] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 4.370112] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.376297] init: - preinit -
[ 4.629585] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.688153] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.789430] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.132527] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 9.369656] procd: - early -
[ 9.369916] procd: - watchdog -
[ 9.932277] procd: - watchdog -
[ 9.936374] procd: - ubus -
[ 9.964350] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.988823] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.989844] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.002255] procd: - init -
Please press Enter to activate this console.
[ 10.382137] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.390205] usbcore: registered new interface driver cdc_wdm
[ 10.391068] Loading modules backported from Linux version v5.15.74-0-ga3f2f5ac9d61
[ 10.394992] Backport generated by backports.git v5.15.74-1-0-ge2d78967
[ 10.406606] urngd: v1.0.2 started.
[ 10.415492] usbcore: registered new interface driver usbserial_generic
[ 10.415599] usbserial: USB Serial support registered for generic
[ 10.475055] PPP generic driver version 2.4.2
[ 10.476184] NET: Registered protocol family 24
[ 10.479918] usbcore: registered new interface driver qmi_wwan
[ 10.498853] random: crng init done
[ 10.498907] random: 30 urandom warning(s) missed due to ratelimiting
[ 11.528834] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 11.528927] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 11.549459] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 11.597539] ath10k_ahb a000000.wifi: Loading BDF type 0
[ 11.597991] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 091db60c
[ 12.890948] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 12.890998] ath10k_ahb a000000.wifi: msdu-desc: 2500 skid: 32
[ 12.939538] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
[ 12.941137] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[ 13.082817] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-nvmem max-sta 32 raw 0 hwcrypto 1
[ 14.265833] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 14.265920] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 14.279197] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[ 14.331210] ath10k_ahb a800000.wifi: Loading BDF type 0
[ 14.331285] ath10k_ahb a800000.wifi: failed to fetch board data for bus=ahb,bmi-chip-id=0,bmi-board-id=31,variant=zte,mf18a from ath10k/QCA4019/hw1.0/board-2.bin
[ 14.531477] ath10k_ahb a800000.wifi: failed to fetch board-2.bin or board.bin from ath10k/QCA4019/hw1.0
[ 14.531552] ath10k_ahb a800000.wifi: failed to fetch board file: -12
[ 14.539724] ath10k_ahb a800000.wifi: could not probe fw (-12)
[ 14.554429] usbcore: registered new interface driver option
[ 14.554567] usbserial: USB Serial support registered for GSM modem (1-port)
[ 14.562300] kmodloader: done loading kernel modules from /etc/modules.d/*Zobacz czy w ath10k/QCA4019/hw1.0/board-2.bin masz w nagłówku bus=ahb,bmi-chip-id=0,bmi-board-id=31,variant=zte,mf18a. Jeżeii nie to prawdopodobnie źle przygotowałeś plik .
Z loga orginału nic nie wskazywało ,że ID będzie 31 ( w sumie tak jak w MF286D) ,dopiero w tym przygotowanym obrazie widać ,że tego szuka.
Przygotowany plik board-2.bin z ID 31 i tym plikiem defaultowym boarddata_1.bin spowodował ,że radio się pojawiło , ale nie działa ( nie rozgłasza sieci).
Chyba jest tak jak w MF289f , że jest osobny chip AR900B (cokolwiek to jest ) , i to z niego jest 5Ghz....
Ale najpierw chciałbym uporządkować partycje ,żeby móc wgrać sysupgrade na initramfs , co zrobić żeb partycje z flasha były pierwsze ? ( a może to nie przeszkadza ,że nie są tak jak w orginale)
Próbowałem rzeczy w stylu flash@1 ,ale nic nie dawało.
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// Copyright (c) 2022, Pawel Dembicki <paweldembicki@gmail.com>.
#include "qcom-ipq4019.dtsi"
#include <dt-bindings/soc/qcom,tcsr.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
model = "ZTE MF18A";
compatible = "zte,mf18a";
aliases {
led-boot = &led_internal;
led-failsafe = &led_internal;
led-running = &led_internal;
led-upgrade = &led_internal;
};
chosen {
/*
* bootargs forced by u-boot bootipq command:
* 'ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait'
*/
bootargs-append = " root=/dev/ubiblock0_1";
};
gpio-restart {
compatible = "gpio-restart";
gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
};
leds {
compatible = "gpio-leds";
led_internal: led-0 {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
label = "blue:internal_led";
default-state = "keep";
};
led-1 {
function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
keys {
compatible = "gpio-keys";
wifi {
label = "wifi";
linux,code = <KEY_RFKILL>;
gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
};
reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
};
wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
};
};
soc {
rng@22000 {
status = "okay";
};
mdio@90000 {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
reset-delay-us = <2000>;
};
ess-psgmii@98000 {
status = "okay";
};
tcsr@1949000 {
compatible = "qcom,tcsr";
reg = <0x1949000 0x100>;
qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
};
tcsr@194b000 {
/* select hostmode */
compatible = "qcom,tcsr";
reg = <0x194b000 0x100>;
qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
status = "okay";
};
ess_tcsr@1953000 {
compatible = "qcom,tcsr";
reg = <0x1953000 0x1000>;
qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
};
tcsr@1957000 {
compatible = "qcom,tcsr";
reg = <0x1957000 0x100>;
qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
};
usb2@60f8800 {
status = "okay";
};
usb3@8af8800 {
status = "okay";
};
crypto@8e3a000 {
status = "okay";
};
watchdog@b017000 {
status = "okay";
};
ess-switch@c000000 {
status = "okay";
};
edma@c080000 {
status = "okay";
};
};
};
&blsp_dma {
status = "okay";
};
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
flash@1 {
/* u-boot is looking for "n25q128a11" property */
compatible = "jedec,spi-nor", "n25q128a11";
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "0:SBL1";
reg = <0x0 0x40000>;
read-only;
};
partition@40000 {
label = "0:MIBIB";
reg = <0x40000 0x20000>;
read-only;
};
partition@60000 {
label = "0:QSEE";
reg = <0x60000 0x60000>;
read-only;
};
partition@c0000 {
label = "0:CDT";
reg = <0xc0000 0x10000>;
read-only;
};
partition@d0000 {
label = "0:DDRPARAMS";
reg = <0xd0000 0x10000>;
read-only;
};
partition@e0000 {
label = "0:APPSBLENV";
reg = <0xe0000 0x10000>;
read-only;
};
partition@f0000 {
label = "0:APPSBL";
reg = <0xf0000 0xc0000>;
read-only;
};
partition@1b0000 {
label = "0:reserved1";
reg = <0x1b0000 0x50000>;
read-only;
};
};
};
};
&blsp1_uart1 {
pinctrl-0 = <&serial_pins>;
pinctrl-names = "default";
status = "okay";
};
&cryptobam {
status = "okay";
};
&gmac0 {
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_config_0>;
};
&gmac1 {
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_config_0>;
mac-address-increment = <1>;
};
&nand {
pinctrl-0 = <&nand_pins>;
pinctrl-names = "default";
status = "okay";
nand@0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "fota-flag";
reg = <0x0 0xa0000>;
read-only;
};
partition@a0000 {
label = "ART";
reg = <0xa0000 0x80000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
precal_art_1000: precal@1000 {
reg = <0x1000 0x2f20>;
};
precal_art_5000: precal@5000 {
reg = <0x5000 0x2f20>;
};
};
partition@120000 {
label = "mac";
reg = <0x120000 0x80000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x0 0x6>;
};
};
partition@1a0000 {
label = "reserved2";
reg = <0x1a0000 0xc0000>;
read-only;
};
partition@260000 {
label = "cfg-param";
reg = <0x260000 0x400000>;
read-only;
};
partition@660000 {
label = "log";
reg = <0x660000 0x400000>;
};
partition@a60000 {
label = "oops";
reg = <0xa60000 0xa0000>;
};
partition@b00000 {
label = "reserved3";
reg = <0xb00000 0x500000>;
read-only;
};
partition@1000000 {
label = "web";
reg = <0x1000000 0x800000>;
};
partition@1800000 {
label = "rootfs";
reg = <0x1800000 0x1d00000>;
};
partition@3500000 {
label = "data";
reg = <0x3500000 0x1900000>;
};
partition@4e00000 {
label = "fota";
reg = <0x4e00000 0x2800000>;
};
partition@7600000 {
label = "iot-db";
reg = <0x7600000 0xa00000>;
};
};
};
};
&qpic_bam {
status = "okay";
};
&tlmm {
i2c_0_pins: i2c_0_pinmux {
mux {
pins = "gpio20", "gpio21";
function = "blsp_i2c0";
bias-disable;
};
};
mdio_pins: mdio_pinmux {
mux_1 {
pins = "gpio6";
function = "mdio";
bias-pull-up;
};
mux_2 {
pins = "gpio7";
function = "mdc";
bias-pull-up;
};
};
nand_pins: nand_pins {
pullups {
pins = "gpio52", "gpio53", "gpio58",
"gpio59";
function = "qpic";
bias-pull-up;
};
pulldowns {
pins = "gpio54", "gpio55", "gpio56",
"gpio57", "gpio60",
"gpio62", "gpio63", "gpio64",
"gpio65", "gpio66", "gpio67",
"gpio69";
function = "qpic";
bias-pull-down;
};
};
serial_pins: serial_pinmux {
mux {
pins = "gpio16", "gpio17";
function = "blsp_uart0";
bias-disable;
};
};
spi_0_pins: spi_0_pinmux {
pinmux {
function = "blsp_spi0";
pins = "gpio13", "gpio14", "gpio15";
drive-strength = <12>;
bias-disable;
};
pinmux_cs {
function = "gpio";
pins = "gpio12";
drive-strength = <2>;
bias-disable;
output-high;
};
};
};
&usb2_hs_phy {
status = "okay";
};
&usb3_ss_phy {
status = "okay";
};
&usb3_hs_phy {
status = "okay";
};
&wifi0 {
status = "okay";
nvmem-cell-names = "pre-calibration", "mac-address";
nvmem-cells = <&precal_art_1000>, <&macaddr_config_0>;
mac-address-increment = <2>;
qcom,ath10k-calibration-variant = "zte,mf18a";
};
&wifi1 {
status = "okay";
nvmem-cell-names = "pre-calibration", "mac-address";
nvmem-cells = <&precal_art_5000>, <&macaddr_config_0>;
mac-address-increment = <3>;
qcom,ath10k-calibration-variant = "zte,mf18a";
};Tu zrób flash@0 a tam nand@1. Ale w niczym to nie powinno przeszkadzać i tak wszystko jest szukane po nazwach.
Zamiana tego spowodowała ,że się resetował.
Jeszcze jest jakaś inna możliwość , czy to olać ?
Daruj sobie.
Strony Poprzednia 1 2 3 4 … 10 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Sprzęt / Hardware → ZTE MF18A
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc