Yura Beznos
Members-
Posts
28 -
Joined
-
Last visited
Reputation
2 NeutralRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Приветствую. Естественно я читал эту документацию и она никак не прояснила ситуацию. Так и возник вопрос - "Заодно хотелось бы увидеть документацию описывающую в каких ситуациях данный механизм может быть применим.". Или проще - как использовать то и для чего? Документация на эти вопросы не отвечает. Только тезисно утверждает, что разработчику станет легче. Схемка последовательности облегчила бы понимание (как и примеры).
-
Например для фильтрации лишних сообщений приходится городить такую штуку как в коде: - https://github.com/YuraBeznos/FireFighter-drone-kos/blob/dev/klog_storage/src/klog_storage_entity.c#L28 Т.е. если нас интересуют проблемы с нашими модулями и их взаимодействия с другими компонентами, не видя системных сообщений. Если возможность подобных фильтров уже есть, хотелось бы видеть примеры.
-
Спасибо за ответ, но мне трудно принять подобное логическое построение. Продукт (яркий пример с сетевым драйвером в соседнем обсуждении) замечательно подождёт необходимого функционала до нового обновления, а документация нет? В любом случае это предложение, которое выглядит логичным если поставляется CLI SDK под Linux (где, вообще говоря, man и info приняты), но выбор за вами.
-
Данные с флеш карты не используются, помимо загрузочного образа. Пожалуйста, не пишите то, что не является верной и проверенной информацией это может ввести в заблуждение других участников. Обсуждается в данном случае проблема с драйвером, а не хранилищем. Как я уже написал, проблема с сетью в том, что в драйвер вшита проверка на префикс MAC адреса и моего префикса там нет.
-
В документе на официальном сайте мой MAC присутствует: https://pip.raspberrypi.com/categories/685-whitepapers-app-notes/documents/RP-003474-WP/Changing-MAC-addresses.pdf Текст ошибки есть в самом драйвере и в библиотеке: [1970-01-01T00:00:13.628][Error][kl.VfsNet][53:54][DNET_DRV] Error: Invalid MAC address prefix - /opt/KasperskyOS-Community-Edition-1.1.1.40/sysroot-aarch64-kos/bin/dnet_entity - /opt/KasperskyOS-Community-Edition-1.1.1.40/sysroot-aarch64-kos/lib/libdnetdrvs.a Жаль сетевой драйвер не open source.
-
Вывод `ip up` под Linux (последние два значения затёр "--"): 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether d8:3a:dd:8d:--:-- brd ff:ff:ff:ff:ff:ff inet 192.168.8.20/24 brd 192.168.8.255 scope global dynamic noprefixroute eth0 valid_lft 25170sec preferred_lft 25170sec 3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 link/ether d8:3a:dd:8d:--:-- brd ff:ff:ff:ff:ff:ff
-
На raspberry Pi 4b 1.5 rev не работает сеть. Пробовал пример из поставки KOS CE 1.1.1.40 examples/secure_login. Ниже журнал (serial port) целиком: U-Boot 2022.01 (Dec 12 2023 - 09:56:04 +0000) DRAM: 7.9 GiB RPI 4 Model B (0xd03115) MMC: mmcnr@7e300000: 1, mmc@7e340000: 0 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: serial Out: serial Err: serial Net: eth0: ethernet@7d580000 PCIe BRCM: link up, 5.0 Gbps x1 (SSC) Hit any key to stop autoboot: 2 1 0 26008032 bytes read in 1167 ms (21.3 MiB/s) ## Starting application at 0x10200000 ... [BOOT ] Starting... [BOOT ] Setting up arch flags... [BOOT ] Preparing memory... [BOOT ] Preparing ROMFS... [BOOT ] Preparing KasperskyOS kernel... [BOOT ] Preparing trampoline to kernel... [BOOT ] Preparing page table... [BOOT ] Preparing modules... [BOOT ] Freeing loader memory... [BOOT ] Dump physical memory map [BOOT ] Starting KasperskyOS... [HAL ] Exceptions initialized Loading: _ __ _ ___ ____ | |/ /__ _ ___ _ __ ___ _ __ ___| | ___ _ / _ \/ ___| | ' // _` / __| '_ \ / _ \ '__/ __| |/ / | | | | | \___ \ | . \ (_| \__ \ |_) | __/ | \__ \ <| |_| | |_| |___) | |_|\_\__,_|___/ .__/ \___|_| |___/_|\_\\__, |\___/|____/ |_| |___/ Built on: Oct 10 2023 09:39:21 Board: rpi4_bcm2711 SoC: bcm2711 ARCH: arm64 Git hash: autosar-developer-arm64-nxp-s32v234sbc-v4.1.0.27-150-gbc902d0df97f24272998798f5747501421c6be34 Found CPU: ARMv8 System control register: Instruction cache: enabled Data cache: enabled [HAL ] Internal PFN-allocator initiated. [HAL ] Private Area begin : 0x0000000000001000 [HAL ] Private Area end : 0x00007f7fffffffff [HAL ] Private Area size : 0x00007f7ffffff000 [HAL ] Shared Area begin : 0xffff808000000000 [HAL ] Shared Area end : 0xffffffffffffffff [HAL ] Shared Area size : 0x00007f8000000000 [HAL ] PTE Table Area begin : 0xffff800000000000 [HAL ] PTE Table Area end : 0xffff807fffffffff [HAL ] PTE Table Area size : 0x0000008000000000 [HAL ] Kernel Area begin : 0xffff808000000000 [HAL ] Kernel Area end : 0xfffffffffcffffff [HAL ] Kernel Area size : 0x00007f7ffd000000 [HAL ] Internal Area begin : 0xffffffffff400000 [HAL ] Internal Area end : 0xffffffffffffffff [HAL ] Internal Area size : 0x0000000000c00000 [HAL ] Temporary Area begin : 0xffffffffff400000 [HAL ] Temporary Area end : 0xffffffffff485fff [HAL ] Temporary Area size : 0x0000000000086000 [HAL ] Periphery Area begin : 0xffffffffff800000 [HAL ] Periphery Area end : 0xffffffffffffffff [HAL ] Periphery Area size : 0x0000000000800000 [HAL ] cpu #0 - 599MHz [HAL ] Cpu initialized. [HAL ] Temporary area initialized. [HAL ] SoC area mapped. begin: 0xffffffffff800000, size: 0x7000 [HAL ] Mmu initialized. [HAL ] WXN protection enabled. [HAL ] Zero space initialized. [HAL ] Found GICv2 with 256 interrupts. [HAL ] Interrupts initiated. [HAL ] Generic Timer found. [HAL ] Bootstrap Processor's ID - 0 CPU0 - boot strap processor CPU1 - ordinary processor CPU2 - ordinary processor CPU3 - ordinary processor [HAL ] Hardware Abstraction Layer successfully initialized. [INIT ] Starting core... [MM ] Max pfns : 0x0000001000000000 [MM ] Max kernel VAD : 0x0000100000000000 [MM ] Max user VAD : 0x0000600000000000 [MM ] Max buddy order : 0x0000000000000010 [MM ] PageInfo size : 0x0000000000000020 [MM ] Pfn DB begin : 0xffffc00005000000 [MM ] Pfn DB end : 0xffffc40004ffffff [MM ] Pfn DB size : 0x0000040000000000 [MM ] Kmalloc begin : 0xffffc40005000000 [MM ] Kmalloc end : 0xffffc40008ffffff [MM ] Kmalloc size : 0x0000000004000000 [MM ] Kernel VAD begin : 0xffff808000000000 [MM ] Kernel VAD end : 0xfffffffffcffffff [MM ] Kernel VAD size : 0x00007f7ffd000000 [MM ] User VAD begin : 0x0000000000001000 [MM ] User VAD end : 0x00007f7fffffffff [MM ] User VAD size : 0x00007f7ffffff000 [MM ] PFN range #00[__x] begin : 0x0000000000000000 [MM ] PFN range #00[__x] end : 0x000000000000004c [MM ] PFN range #00[__x] size : 0x000000000000004d [MM ] PFN range #01[r__] begin : 0x000000000000004d [MM ] PFN range #01[r__] end : 0x0000000000000056 [MM ] PFN range #01[r__] size : 0x000000000000000a [MM ] PFN range #02[___] begin : 0x0000000000000057 [MM ] PFN range #02[___] end : 0x0000000000000057 [MM ] PFN range #02[___] size : 0x0000000000000001 [MM ] PFN range #03[rw_] begin : 0x0000000000000058 [MM ] PFN range #03[rw_] end : 0x00000000000001b8 [MM ] PFN range #03[rw_] size : 0x0000000000000161 [MM ] PFN range #04[rw_] begin : 0x00000000000001b9 [MM ] PFN range #04[rw_] end : 0x00000000000001c3 [MM ] PFN range #04[rw_] size : 0x000000000000000b [MM ] PFN range #05[rwx] begin : 0x00000000000001c4 [MM ] PFN range #05[rwx] end : 0x00000000000002c2 [MM ] PFN range #05[rwx] size : 0x00000000000000ff [MM ] PFN range #06[rwx] begin : 0x00000000000002c3 [MM ] PFN range #06[rwx] end : 0x0000000000010210 [MM ] PFN range #06[rwx] size : 0x000000000000ff4e [MM ] PFN range #07[__x] begin : 0x0000000000010211 [MM ] PFN range #07[__x] end : 0x0000000000010211 [MM ] PFN range #07[__x] size : 0x0000000000000001 [MM ] PFN range #08[rwx] begin : 0x0000000000010212 [MM ] PFN range #08[rwx] end : 0x0000000000010285 [MM ] PFN range #08[rwx] size : 0x0000000000000074 [MM ] PFN range #09[rwx] begin : 0x0000000000010286 [MM ] PFN range #09[rwx] end : 0x0000000000011ab7 [MM ] PFN range #09[rwx] size : 0x0000000000001832 [MM ] PFN range #10[rwx] begin : 0x0000000000011ab8 [MM ] PFN range #10[rwx] end : 0x000000000003b3ff [MM ] PFN range #10[rwx] size : 0x0000000000029948 [MM ] PFN range #12[rwx] begin : 0x0000000000040000 [MM ] PFN range #12[rwx] end : 0x000000000007ffff [MM ] PFN range #12[rwx] size : 0x0000000000040000 [MM ] Main range mapped begin : 0xffffc00005000000 [MM ] Main range mapped end : 0xffffc00005ffffff [MM ] Main range mapped size : 0x0000000001000000 [MM ] PFN DB size: 16384 KB [MM ] PFN database created. [MM ] Add PFN range begin : 0x00000000012cb000 [MM ] Add PFN range end : 0x0000000010210fff [MM ] Add PFN range size : 0x000000000ef46000 [MM ] Add PFN range begin : 0x0000000010212000 [MM ] Add PFN range end : 0x0000000010285fff [MM ] Add PFN range size : 0x0000000000074000 [MM ] Add PFN range begin : 0x0000000011ab8000 [MM ] Add PFN range end : 0x000000003b3fffff [MM ] Add PFN range size : 0x0000000029948000 [MM ] Add PFN range begin : 0x0000000040000000 [MM ] Add PFN range end : 0x000000007fffffff [MM ] Add PFN range size : 0x0000000040000000 [MM ] Atomic buddy object created (8 MB). [MM ] Atomic PFN allocator initialized. [MM ] kalloc allocator created. [MM ] kmalloc/kfree initialized. [MM ] Memory Manager successfully initialized. [PROF ] Profiler statistics initialized. [VMM ] #PF handler was installed. [SMP ] Initializing per-CPU areas... [SMP ] per-CPU area size: 8384 [SMP ] full per-CPU areas size: 36864 [UID ] Uid allocator initialized. [SID ] Sid allocator initialized. [IO ] Initialize MMIO subsystem. [IO ] Initialize DMA subsystem. [IO ] Hardware interrupts successfully initialized. [IO ] Resources registry initialized. [VMM ] System address space initialized. [VMM ] Internal VMM areas initialized. [TASK ] Task infrastructure initialized. [SMP ] Idle thread for CPU #0 created. [SMP ] Idle thread for CPU #1 created. [SMP ] Idle thread for CPU #2 created. [SMP ] Idle thread for CPU #3 created. [TASK ] Scheduler interrupts initialized. [HAL ] cpu #3 - 599MHz [HAL ] cpu #2 - 599MHz [HAL ] cpu #1 - 599MHz [SMP ] CPU #3 - boostrapped. [SMP ] CPU #2 - boostrapped. [SMP ] CPU #1 - boostrapped. [TASK ] GSI page initialized. [PROF ] Profiler initialized. [TASK ] Multitasking infrastructure initialized. [TIME ] Time infrastructure initialized. [ROFS ] Files: 22, size: 25370624 (0x01832000). [ROFS ] File #00: einit - size: 780640 (0x000be960) [ROFS ] File #01: server.crt - size: 993 (0x000003e1) [ROFS ] File #02: server.key - size: 1704 (0x000006a8) [ROFS ] File #03: rootCA.crt - size: 1115 (0x0000045b) [ROFS ] File #04: dhparams-2048.pem - size: 424 (0x000001a8) [ROFS ] File #05: index.html - size: 403 (0x00000193) [ROFS ] File #06: auth.html - size: 3611 (0x00000e1b) [ROFS ] File #07: result_ok.html - size: 629 (0x00000275) [ROFS ] File #08: result_err.html - size: 651 (0x0000028b) [ROFS ] File #09: styles.css - size: 862 (0x0000035e) [ROFS ] File #10: access_denied.html - size: 341 (0x00000155) [ROFS ] File #11: ramdisk0.img - size: 2097152 (0x00200000) [ROFS ] File #12: WebServer - size: 4805768 (0x00495488) [ROFS ] File #13: AuthService - size: 6591064 (0x00649258) [ROFS ] File #14: tls - size: 1570184 (0x0017f588) [ROFS ] File #15: VfsNet - size: 3732800 (0x0038f540) [ROFS ] File #16: dhcpcd_entity - size: 1108320 (0x0010e960) [ROFS ] File #17: VfsRamFs - size: 1150920 (0x00118fc8) [ROFS ] File #18: bsp_hw - size: 776672 (0x000bd9e0) [ROFS ] File #19: gpio_hw - size: 659232 (0x000a0f20) [ROFS ] File #20: ramdisk - size: 658144 (0x000a0ae0) [ROFS ] File #21: ksm.module - size: 1376200 (0x0014ffc8) [AUDIT] Starting core audit... [VLOG ] Virtual logging subsystem initialized. [VMM ] Virtual Memory Manager service initialized. [IO ] I/O subsystem successfully initialized. [FS ] File System Manager successfully initialized. [XHCI ] XHCIDBG service initialized. [CM ] Connection Manager successfully initialized. [KSM ] Module: 'ksm.module' loaded. [KSM ] Audit log created. [KSM ] Module: 'ksm.module' initialized. [KSM ] Server: 'kl.core.Core' executed. [KSM ] Security system successfully initialized. [INIT ] Starting 'Einit' ... [INIT ] Starting system worker. [1970-01-01T00:00:11.527][Info][kl.drivers.RAMDisk][21:22][BLKDEVSR] Ramdisk server start. [1970-01-01T00:00:11.527][Info][kl.drivers.BSP][33:34][BSPSR] Server starting. [1970-01-01T00:00:11.627][Info][kl.drivers.RAMDisk][21:22][BLKPART] Add MBR/EBR partition 'ramdisk0_p0', type: 0x83, offset: 2048, size: 2048 (in sectors) [1970-01-01T00:00:11.640][Error][kl.drivers.RAMDisk][21:22][BLKPART] MBR is not valid, found signature = 0x0 [1970-01-01T00:00:11.650][Error][kl.drivers.RAMDisk][21:22][BLKPART] MBR not found on disk 'ramdisk1' [1970-01-01T00:00:11.659][Info][kl.drivers.RAMDisk][21:22][BLKDEVSR] Port 'ramdisk0' successfully registered. [1970-01-01T00:00:11.669][Info][kl.drivers.RAMDisk][21:22][BLKDEVSR] Port 'ramdisk1' successfully registered. [1970-01-01T00:00:11.679][Info][kl.drivers.RAMDisk][21:22][BLKDEVSR] Port 'ramdisk0_p0' successfully registered. [1970-01-01T00:00:13.540][Info][kl.VfsRamFs][39:40][NS] Can't connect with Name Server. [1970-01-01T00:00:13.547][Info][kl.VfsRamFs][39:40][BLKDEVCL] Start client initialization. [1970-01-01T00:00:13.555][Info][kl.VfsRamFs][39:40][BLKDEVCL] Discovered static channel to server 'kl.drivers.RAMDisk', endpoint 'kl.drivers.RAMDisk.ramdisk'. [1970-01-01T00:00:13.569][Info][kl.VfsRamFs][39:40][BLKDEVCL] Connection with server 'kl.drivers.RAMDisk' established. [1970-01-01T00:00:13.628][Error][kl.VfsNet][53:54][DNET_DRV] Error: Invalid MAC address prefix [1970-01-01T00:00:14.137][Info][kl.VfsNet][53:54][NS] Can't connect with Name Server. [Info][kl.VfsNet][crt0-common.c:init_vfs_backend:578][CRT0] _vfs_fs = _vfs_net = env(server:kl.VfsNet) entropy: ready [VfsNet] started [1970-01-01T00:00:14.330][Info][kl.VfsRamFs][39:40][NS] Can't connect with Name Server. [Info][kl.VfsRamFs][crt0-common.c:init_vfs_backend:591][CRT0] _vfs_fs = env(server:kl.VfsRamFs) [VfsRamFs] started [VfsRamFs] Successfully mounted devfs, /dev, devfs [Info][multi_vfs_secure_login.AuthService][crt0-common.c:init_vfs_backend:591][CRT0] _vfs_fs = env(client:kl.VfsRamFs) [AuthService] Service started [Info][kl.TlsEntity][crt0-common.c:init_vfs_backend:584][CRT0] _vfs_fs = env(client:kl.VfsRamFs), _vfs_net = env(client:kl.VfsNet) Failed to connect to kl.crypto.tls.TlsEvent Failed to connect to Tls event, continue as standalone [Info][kl.rump.Dhcpcd][crt0-common.c:init_vfs_backend:584][CRT0] _vfs_fs = env(client{fs->net}:kl.VfsRamFs), _vfs_net = env(client:kl.VfsNet) dhcpcd-9.4.1 starting no valid interfaces found no interfaces have a carrier [1970-01-01T00:00:15.168][Info][kl.TlsEntity][65:66][NS] Can't connect with Name Server. failed to connect to kl.CertificateManager TLS: Failed to connect to Certificate Manager, continue as standalone TLS: certificate_storage_init: failed to connect to the server TLS: Failed to connect to Certificate Storage, using direct file access [Info][multi_vfs_secure_login.WebServer][crt0-common.c:init_vfs_backend:584][CRT0] _vfs_fs = env(client:kl.VfsRamFs), _vfs_net = env(client:kl.TlsEntity) TLS: Init entry 23