Перейти к содержанию
    

Allwinner T113-S3 SPI NAND создание разделов файловой системы

Выполнил команду: grep "NAND" .config

В ответ пусто....

Выполнил команду: grep "UBI" .config

В ответ:

CONFIG_TCP_CONG_CUBIC=y

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/20/2024 at 7:15 AM, AlexLir said:

Выполнил команду: grep "NAND" .config

В ответ пусто....

так включите - у вас там всё выключено, без драйверов ничего не будет работать - скопируйте и вставьте в конец .config

Quote

CONFIG_MTD=y
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_NAND_CORE=y
CONFIG_MTD_SPI_NAND=y
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND_ECC_SW_HAMMING=y
CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC=y
CONFIG_MTD_NAND_ECC_SW_BCH=y
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y

 

после этого запустите конфигуратор

make ARCH=arm olddefconfig

и соберите ядро

 

 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Добавил в конец файла... так же паника ядра.

При этом команды: grep "NAND" .config и grep "UBI" .config отображают корректно

Весь лог.

Спойлер

Allwinner T113 AWBoot r6186 starting...
SPI-NAND: W25N01GV detected
SPI-NAND: read dt blob of size 22381 at 43.00MB/S
SPI-NAND: read Image of size 5312528 at 49.00MB/S
booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.0.1 (alx@ubuntu) (arm-linux-gnueabihf-gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #25 SMP Tue Aug 20 16:05:32 +05 2024
[    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: MangoPi MQ-Dual
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 72 MiB
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s15252 r8192 d21612 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: mem=128M cma=72M ubi.mtd=3 root=ubi0_0 rootfstype=ubifs rootwait console=tty0 console=ttyS1,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 116312K/131072K available (8192K kernel code, 839K rwdata, 1992K rodata, 1024K init, 290K bss, 14760K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    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] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000011] Switching to timer-based delay loop, resolution 41ns
[    0.000164] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000586] Console: colour dummy device 80x30
[    0.000859] printk: console [tty0] enabled
[    0.000902] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000931] pid_max: default: 32768 minimum: 301
[    0.001088] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001119] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001669] CPU: Testing write buffer coherency: ok
[    0.001996] /cpus/cpu@0 missing clock-frequency property
[    0.002046] /cpus/cpu@1 missing clock-frequency property
[    0.002065] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002832] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002996] rcu: Hierarchical SRCU implementation.
[    0.003014] rcu:     Max phase no-delay instances is 1000.
[    0.003526] smp: Bringing up secondary CPUs ...
[    0.004231] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004351] smp: Brought up 1 node, 2 CPUs
[    0.004392] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004408] CPU: All CPU(s) started in SVC mode.
[    0.004920] devtmpfs: initialized
[    0.008876] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009104] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009142] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.009298] pinctrl core: initialized pinctrl subsystem
[    0.010566] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010885] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.011650] thermal_sys: Registered thermal governor 'step_wise'
[    0.011889] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.011932] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.018286] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[    0.018385] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[    0.018672] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.019025] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5604000.tv-encoder
[    0.019105] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.019862] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[    0.042769] SCSI subsystem initialized
[    0.042894] usbcore: registered new interface driver usbfs
[    0.042942] usbcore: registered new interface driver hub
[    0.042998] usbcore: registered new device driver usb
[    0.043171] mc: Linux media interface: v0.10
[    0.043208] videodev: Linux video capture interface: v2.00
[    0.043252] pps_core: LinuxPPS API ver. 1 registered
[    0.043265] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.043296] PTP clock support registered
[    0.043729] Advanced Linux Sound Architecture Driver Initialized.
[    0.044777] clocksource: Switched to clocksource arch_sys_counter
[    0.051955] NET: Registered PF_INET protocol family
[    0.052172] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.052716] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.052762] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.052787] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052816] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.052845] TCP: Hash tables configured (established 1024 bind 1024)
[    0.052934] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.052978] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.053140] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.053826] RPC: Registered named UNIX socket transport module.
[    0.053866] RPC: Registered udp transport module.
[    0.053878] RPC: Registered tcp transport module.
[    0.053889] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.055618] Initialise system trusted keyrings
[    0.056024] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.060977] NFS: Registering the id_resolver key type
[    0.061058] Key type id_resolver registered
[    0.061073] Key type id_legacy registered
[    0.061122] Key type asymmetric registered
[    0.061138] Asymmetric key parser 'x509' registered
[    0.061273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.061298] io scheduler mq-deadline registered
[    0.061311] io scheduler kyber registered
[    0.121157] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.123926] CAN device driver interface
[    0.124010] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.124029] ehci-platform: EHCI generic platform driver
[    0.124137] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.124171] ohci-platform: OHCI generic platform driver
[    0.125961] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.126105] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:03:27 UTC (86607)
[    0.126238] sun6i-rtc 7090000.rtc: RTC enabled
[    0.126426] i2c_dev: i2c /dev entries driver
[    0.127526] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.128329] usbcore: registered new interface driver usbhid
[    0.128356] usbhid: USB HID core driver
[    0.129307] gnss: GNSS driver registered with major 245
[    0.129534] NET: Registered PF_PACKET protocol family
[    0.129573] can: controller area network core
[    0.129643] NET: Registered PF_CAN protocol family
[    0.129660] can: raw protocol
[    0.129674] can: broadcast manager protocol
[    0.129692] can: netlink gateway - max_hops=1
[    0.129873] Key type dns_resolver registered
[    0.129980] Registering SWP/SWPB emulation handler
[    0.130081] Loading compiled-in X.509 certificates
[    0.801174] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.822627] 2500000.serial: ttyS0 at MMIO 0x2500000 (irq = 230, base_baud = 1500000) is a 16550A
[    0.844297] 2500400.serial: ttyS1 at MMIO 0x2500400 (irq = 231, base_baud = 1500000) is a 16550A
[    1.620307] printk: console [ttyS1] enabled
[    1.646021] 2500c00.serial: ttyS2 at MMIO 0x2500c00 (irq = 232, base_baud = 1500000) is a 16550A
[    1.656813] UBI error: cannot open mtd 3, error -19
[    1.661915] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.752745] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.759534] ALSA device list:
[    1.762516]   No soundcards found.
[    1.766412] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.775086] cfg80211: failed to load regulatory.db
[    1.780175] VFS: Cannot open root device "ubi0_0" or unknown-block(0,0): error -19
[    1.787790] Please append a correct "root=" boot option; here are the available partitions:
[    1.796158] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.804424] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.0.1 #25
[    1.810348] Hardware name: Generic DT based system
[    1.815149]  unwind_backtrace from show_stack+0x10/0x14
[    1.820392]  show_stack from dump_stack_lvl+0x40/0x4c
[    1.825457]  dump_stack_lvl from panic+0x104/0x2f8
[    1.830259]  panic from mount_block_root+0x164/0x1fc
[    1.835234]  mount_block_root from prepare_namespace+0x9c/0x18c
[    1.841162]  prepare_namespace from kernel_init+0x18/0x12c
[    1.846657]  kernel_init from ret_from_fork+0x14/0x2c
[    1.851718] Exception stack(0xc8815fb0 to 0xc8815ff8)
[    1.856774] 5fa0:                                     00000000 00000000 00000000 00000000
[    1.864953] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.873132] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.879750] CPU1: stopping
[    1.882458] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.0.1 #25
[    1.888372] Hardware name: Generic DT based system
[    1.893156]  unwind_backtrace from show_stack+0x10/0x14
[    1.898383]  show_stack from dump_stack_lvl+0x40/0x4c
[    1.903434]  dump_stack_lvl from do_handle_IPI+0xec/0x124
[    1.908834]  do_handle_IPI from ipi_handler+0x18/0x20
[    1.913884]  ipi_handler from handle_percpu_devid_irq+0x78/0x134
[    1.919890]  handle_percpu_devid_irq from generic_handle_domain_irq+0x28/0x38
[    1.927026]  generic_handle_domain_irq from gic_handle_irq+0x74/0x88
[    1.933384]  gic_handle_irq from generic_handle_arch_irq+0x34/0x44
[    1.939565]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    1.945835]  call_with_stack from __irq_svc+0x98/0xb0
[    1.950886] Exception stack(0xc8849f70 to 0xc8849fb8)
[    1.955934] 9f60:                                     00000005 00000000 00001009 c0115ea0
[    1.964102] 9f80: c103ee80 00000001 c0d04f0c c0d04f54 4000406a 410fc075 00000000 00000000
[    1.972270] 9fa0: c0d03d80 c8849fc0 c010722c c0107230 60000013 ffffffff
[    1.978874]  __irq_svc from arch_cpu_idle+0x38/0x3c
[    1.983753]  arch_cpu_idle from do_idle+0x110/0x13c
[    1.988632]  do_idle from cpu_startup_entry+0x18/0x1c
[    1.993682]  cpu_startup_entry from secondary_start_kernel+0x11c/0x124
[    2.000206]  secondary_start_kernel from 0x401015a0
[    2.005262] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

10 минут назад, AlexLir сказал:

[    1.656813] UBI error: cannot open mtd 3, error -19

Что ж вы хотели...

16 минут назад, AlexLir сказал:

SPI-NAND: read Image of size 5312528 at 49.00MB/S

Кстати неплохая скорость..

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

В 20.08.2024 в 16:27, mantech сказал:

Что ж вы хотели...

Вот и не пойму почему не может открыть MTD...

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/20/2024 at 2:17 PM, AlexLir said:

При этом команды: grep "NAND" .config и grep "UBI" .config отображают корректно

в DT вы прописали spi-nand с разделами как у меня в примере было ? в логе должно быть такое

Quote

[    0.674909] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.680270] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.688666] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.695090] Creating 4 MTD partitions on "spi0.0":
[    0.699911] 0x000000000000-0x000000020000 : "awboot"
[    0.705501] 0x000000020000-0x000000040000 : "dtb"
[    0.710733] 0x000000040000-0x000000840000 : "kernel"
[    0.725216] 0x000000840000-0x000008000000 : "filesystem"

 

возможно забыли DTB новый записать на флешку и записали только само ядро. Флешка у вас судя по логу такая же как у меня так что описание геометрии подойдёт из моего примера, едиственное у вас awboot использует адреса для dtb и ядра немного другие поэтому надо корректировать либо в awboot либо в DT смещения и размеры разделов подогнать под awboot. Ещё у вас ядро не может выделить столько памяти для аллокатора CMA сколько вы у него запрашиваете - надо урезать осетра

Quote

[    0.000000] Kernel command line: mem=128M cma=72M ubi.mtd=3 root=ubi0_0 rootfstype=ubifs rootwait console=tty0 console=ttyS1,115200

Quote

[    0.000000] cma: Failed to reserve 72 MiB

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Разделы как у вас в примере было сделано.

awboot пересобрал с дебагом и адреса правильные:

Спойлер

SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00020000 to 0x44000000 size:0x0000576d
SPI-NAND: read dt blob of size 22381 at 43.00MB/S
[D] SPI-NAND: Image: Copy from 0x00040000 to 0x44800000 size:0x00511010
SPI-NAND: read Image of size 5312528 at 49.00MB/S
booting linux...

cma изменил на 48, ошибка пропала.

Как будто linux не может к флешку найти...

Изменено пользователем AlexLir

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/20/2024 at 4:37 PM, AlexLir said:

А может быть что в ядре что то отключено, например SPI не правильно в конфиге задан?

а может он в вашем ядре вообще не работает, версия ядра какая-то странная - 6.0.1, похоже на какой-то китайский самодел, t113 давно в майнстримном ядре есть

https://elixir.bootlin.com/linux/v6.10.6/source/arch/arm/boot/dts/allwinner/sun8i-t113s-mangopi-mq-r-t113.dts

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Вот тут ядро брал: https://github.com/Evlers/linux_kernel_t113.

ссылкой на майнстримное ядро не поделитесь.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/20/2024 at 10:08 PM, AlexLir said:

ссылкой на майнстримное ядро не поделитесь

это шутка такая ? попробуйте latest release 6.10.6

https://www.kernel.org/

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Вот нашелся бы герой нашего времени и сделал необходимые файлы/патчи для
https://github.com/armbian/build
что бы можно собирать образ для SD/eMMC/SPI.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/20/2024 at 10:36 PM, sasamy said:

попробуйте latest release 6.10.6

побыстрому убрал то что у меня нет и добавил разделы, конфиг в DT мангопи - всё как описывал, взлетело вообще без вопросов

Quote

AWBoot starting
SPI-NAND: W25N01GV detected
SPI-NAND: dt blob: Copy from 0x00020000 to 0x44000000 size:0x000044b8
SPI-NAND: Image: Copy from 0x00040000 to 0x44800000 size:0x00594cb0
booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.10.6 (sasa@sasa-HP-255-G8-Notebook-PC) (arm-linux-gnueabihf-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP Tue Aug 20 22:41:34 MSK 2024
[    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: MangoPi MQ-R-T113
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 48 MiB at 0x45000000 on node -1
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] percpu: Embedded 13 pages/cpu s21140 r8192 d23916 u53248
[    0.000000] Kernel command line: mem=128M cma=48M console=ttyS3,115200 ubi.mtd=3 root=ubi0_0 rootfstype=ubifs rootwait
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32768
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 65940K/131072K available (9216K kernel code, 965K rwdata, 2492K rodata, 1024K init, 266K bss, 15980K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000013] Switching to timer-based delay loop, resolution 41ns
[    0.000225] Console: colour dummy device 80x30
[    0.000272] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000287] CPU: Testing write buffer coherency: ok
[    0.000325] pid_max: default: 32768 minimum: 301
[    0.000483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000501] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001299] /cpus/cpu@0 missing clock-frequency property
[    0.001334] /cpus/cpu@1 missing clock-frequency property
[    0.001345] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002380] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002574] rcu: Hierarchical SRCU implementation.
[    0.002584] rcu:     Max phase no-delay instances is 1000.
[    0.003316] smp: Bringing up secondary CPUs ...
[    0.003890] smp: Brought up 1 node, 1 CPU
[    0.003908] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.003916] CPU: All CPU(s) started in SVC mode.
[    0.004467] devtmpfs: initialized
[    0.007924] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008143] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008170] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.009660] pinctrl core: initialized pinctrl subsystem
[    0.011405] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.012310] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013210] thermal_sys: Registered thermal governor 'step_wise'
[    0.013356] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.013370] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.015883] platform 2001000.clock-controller: Fixed dependency cycle(s) with /soc/rtc@7090000
[    0.018008] platform 5100000.mixer: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.018197] platform 5200000.mixer: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.018530] platform 5200000.mixer: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.018608] platform 5100000.mixer: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.018673] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/mixer@5200000
[    0.018744] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@5470000
[    0.018761] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@5461000
[    0.018776] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/mixer@5100000
[    0.019002] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@5461000
[    0.019081] platform 5461000.lcd-controller: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.019326] platform 5460000.tcon-top: Fixed dependency cycle(s) with /soc/lcd-controller@5470000
[    0.019406] platform 5470000.lcd-controller: Fixed dependency cycle(s) with /soc/tcon-top@5460000
[    0.019760] platform 7010000.clock-controller: Fixed dependency cycle(s) with /soc/clock-controller@2001000
[    0.019835] platform 7010000.clock-controller: Fixed dependency cycle(s) with /soc/rtc@7090000
[    0.019936] platform 7010000.clock-controller: Fixed dependency cycle(s) with /soc/rtc@7090000
[    0.020140] platform 2001000.clock-controller: Fixed dependency cycle(s) with /soc/rtc@7090000
[    0.020272] platform 7090000.rtc: Fixed dependency cycle(s) with /soc/clock-controller@7010000
[    0.024389] SCSI subsystem initialized
[    0.024864] usbcore: registered new interface driver usbfs
[    0.024905] usbcore: registered new interface driver hub
[    0.024942] usbcore: registered new device driver usb
[    0.025134] mc: Linux media interface: v0.10
[    0.025186] videodev: Linux video capture interface: v2.00
[    0.025261] pps_core: LinuxPPS API ver. 1 registered
[    0.025269] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    0.025285] PTP clock support registered
[    0.025779] Advanced Linux Sound Architecture Driver Initialized.
[    0.026795] clocksource: Switched to clocksource arch_sys_counter
[    0.035391] NET: Registered PF_INET protocol family
[    0.035599] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.036171] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.036200] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.036213] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.036230] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.036267] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036359] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.036394] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.036551] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.037360] RPC: Registered named UNIX socket transport module.
[    0.037376] RPC: Registered udp transport module.
[    0.037381] RPC: Registered tcp transport module.
[    0.037385] RPC: Registered tcp-with-tls transport module.
[    0.037389] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.038240] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.039319] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.040028] NFS: Registering the id_resolver key type
[    0.040076] Key type id_resolver registered
[    0.040082] Key type id_legacy registered
[    0.040194] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.040204] io scheduler mq-deadline registered
[    0.040211] io scheduler kyber registered
[    0.040232] io scheduler bfq registered
[    0.103443] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.114122] CAN device driver interface
[    0.117178] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.117306] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T00:00:02 UTC (86402)
[    0.117736] i2c_dev: i2c /dev entries driver
[    0.119581] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[    0.120025] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.120496] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.120793] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.121064] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.121297] sun8i-ce 3040000.crypto: Register cbc(aes)
[    0.121319] sun8i-ce 3040000.crypto: Register ecb(aes)
[    0.121329] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[    0.121338] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[    0.121369] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[    0.122248] usbcore: registered new interface driver usbhid
[    0.122261] usbhid: USB HID core driver
[    0.124543] NET: Registered PF_PACKET protocol family
[    0.124562] can: controller area network core
[    0.124629] NET: Registered PF_CAN protocol family
[    0.124639] can: raw protocol
[    0.124646] can: broadcast manager protocol
[    0.124656] can: netlink gateway - max_hops=1
[    0.124779] Key type dns_resolver registered
[    0.124952] Registering SWP/SWPB emulation handler
[    0.131249] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.149488] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    0.155951] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.157457] printk: legacy console [ttyS3] disabled
[    0.178210] 2500c00.serial: ttyS3 at MMIO 0x2500c00 (irq = 233, base_baud = 1500000) is a 16550A
[    0.178271] printk: legacy console [ttyS3] enabled
[    1.109764] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.115098] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.123695] 4 fixed-partitions partitions found on MTD device spi0.0
[    1.130117] Creating 4 MTD partitions on "spi0.0":
[    1.134912] 0x000000000000-0x000000020000 : "awboot"
[    1.140685] 0x000000020000-0x000000040000 : "dtb"
[    1.146056] 0x000000040000-0x000000840000 : "kernel"
[    1.161380] 0x000000840000-0x000008000000 : "filesystem"
[    1.313205] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests (id=vbus)
[    1.326085] ehci-platform 4200000.usb: EHCI Host Controller
[    1.331772] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 1
[    1.340661] ohci-platform 4200400.usb: Generic Platform OHCI controller
[    1.347382] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 2
[    1.355519] ohci-platform 4200400.usb: irq 237, io mem 0x04200400
[    1.361812] ehci-platform 4200000.usb: irq 236, io mem 0x04200000
[    1.367999] ubi0: attaching mtd3
[    1.396805] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[    1.404021] hub 1-0:1.0: USB hub found
[    1.408185] hub 1-0:1.0: 1 port detected
[    1.432276] hub 2-0:1.0: USB hub found
[    1.436367] hub 2-0:1.0: 1 port detected
[    1.636828] random: crng init done
[    1.808313] ubi0: scanning is finished
[    1.843028] ubi0: volume 0 ("rootfs") re-sized from 99 to 934 LEBs
[    1.849883] ubi0: attached mtd3 (name "filesystem", size 119 MiB)
[    1.855994] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.862897] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.869691] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.876647] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    1.882656] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.889879] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1849652771
[    1.899012] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[    1.908402] clk: Disabling unused clocks
[    1.912512] ALSA device list:
[    1.915480]   No soundcards found.
[    1.919264] ubi0: background thread "ubi_bgt0d" started, PID 54
[    1.928381] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    2.039986] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    2.048299] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    2.058214] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), max 958 LEBs, journal size 9023488 bytes (8 MiB, 72 LEBs)
[    2.070039] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    2.075868] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID CD9D518A-DF43-4018-A7DD-55AF305A0C08, small LPT model
[    2.093484] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    2.107067] devtmpfs: mounted
[    2.111272] Freeing unused kernel image (initmem) memory: 1024K
[    2.117573] Run /sbin/init as init process
[    2.683176] UBIFS (ubi0:0): start fixing up free space
[    4.120080] UBIFS (ubi0:0): free space fixup complete
[    4.133058] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 57
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    4.667988] udevd[86]: starting version 3.2.11
[    4.865311] udevd[87]: starting eudev-3.2.11
done
Saving random seed: OK
Starting network: Cannot find device "eth0"
Cannot find device "eth0"
Cannot find device "eth0"
Cannot find device "can0"
FAIL
Starting dropbear sshd: OK

Welcome to Buildroot
buildroot login:

 

сначала взял дефолтный конфиг

make ARCH=arm sunxi_defconfig

скопипастил в полученный .config то что писал выше, запустил конфигуратор

make ARCH=arm olddefconfig

Изменено пользователем sasamy

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

17 hours ago, sasamy said:

это шутка такая ? попробуйте latest release 6.10.6

https://www.kernel.org/

У меня 6.10.6 под Kubuntu 24.04 собирается с ошибкой:

drivers/net/wireless/realtek/rtl8189fs/os_dep/linux/ioctl_cfg80211.c:9672:26: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_ap_update *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_beacon_data *)’ [-Werror=incompatible-pointer-types]
 9672 |         .change_beacon = cfg80211_rtw_change_beacon,

хотя файл   ioctl_cfg80211.c  идентичен  такому же в 6.4.10, которая собирается успешно.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

On 8/21/2024 at 3:54 PM, nanorobot said:

У меня 6.10.6 под Kubuntu 24.04 собирается с ошибкой:

drivers/net/wireless/realtek/rtl8189fs

не вводите в заблуждение - такого драйвера в майнстримном ядре нет

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/net/wireless/realtek?h=v6.10.6

 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
К сожалению, ваш контент содержит запрещённые слова. Пожалуйста, отредактируйте контент, чтобы удалить выделенные ниже слова.
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...