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

Как же это всё... по-китайски(
сделали проц, бросили на пол пути... "и так сойдёт"...
 

Итак) попробовал собрать ванильный OW под банану м2 ультра -- там нет SPI-NAND, у всех только sdcard/eMMC
ядер тоже не два, а четыре
могу попросить дефконфиги и дерево? На скриншоте просто явный T113
для H2-H3 даже адреса spi0 другие, как это всё вкорячивается?

 

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


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

On 11/21/2023 at 11:32 PM, toweroff said:

могу попросить дефконфиги и дерево? На скриншоте просто явный T113

я же давал ссылки

от OW я скопировал только раздел с коревой фс из готового имиджа, загрузчик и ядро свои от платы. Для spi-nand нужно больше телодвижений - смонтировать корневую фс имиджа и сделать имидж например ubifs

https://unix.stackexchange.com/a/316407/32558

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs

 

 

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

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


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

11 часов назад, toweroff сказал:

Как же это всё... по-китайски(
сделали проц, бросили на пол пути... "и так сойдёт"...

Ну так проц за 4$, вы что хотели, полные доки, огромное комьюнити и куча плющек?)) Нее вот купите аналог за 30-40$, вывезите из-под санкций, тогда может что-то и будет подобное...

11 часов назад, toweroff сказал:

для H2-H3 даже адреса spi0 другие, как это всё вкорячивается?

А даташит на что? Поменять адреса у совместимого модуля - это проблема?

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


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

35 минут назад, mantech сказал:

А даташит на что? Поменять адреса у совместимого модуля - это проблема?

нет, не проблема. Знать бы только, какие модули с какими совместимы

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


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

3 часа назад, toweroff сказал:

Знать бы только, какие модули с какими совместимы

SPI там почти у всех одинаковые, где-то доп. функционал, но для флешки он не нужен. 

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


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

Взял aw-boot, дерево и ядро от стартеркита. Собрал OpenWRT для бананы, rootfs засунул в ubi, прошил через xfel
 

Spoiler
[I] AWBoot starting
[I] SPI-NAND: W25N01GV detected
[I] SPI-NAND: dt blob: Copy from 0x00020000 to 0x44000000 size:0x0000609a
[I] SPI-NAND: Image: Copy from 0x00040000 to 0x44800000 size:0x0055f100
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.0-rc3 (user@user-virtual-machine) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP Fri Dec  9 09:47:39 MSK 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: ES-T113-NANO-NAND
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 48 MiB at 0x45000000
[    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-0x0000000041ffffff]
[    0.000000]   node   0: [mem 0x0000000042000000-0x00000000420fffff]
[    0.000000]   node   0: [mem 0x0000000042100000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000047ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s15764 r8192 d21100 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: mem=128M cma=48M console=ttyS3,115200 earlyprintk=sunxi-uart,0x2500c00 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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 64980K/131072K available (9216K kernel code, 874K rwdata, 2244K rodata, 1024K init, 281K bss, 16940K 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 event tracing is enabled.
[    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] 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.008388] Switching to timer-based delay loop, resolution 41ns
[    0.014836] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.024521] Console: colour dummy device 80x30
[    0.029204] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.039567] pid_max: default: 32768 minimum: 301
[    0.044556] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051892] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.060542] CPU: Testing write buffer coherency: ok
[    0.066002] CPU0: update cpu_capacity 1024
[    0.070123] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.076856] Setting up static identity map for 0x40100000 - 0x40100060
[    0.083539] rcu: Hierarchical SRCU implementation.
[    0.088387] rcu:     Max phase no-delay instances is 1000.
[    0.094178] smp: Bringing up secondary CPUs ...
[    0.099670] CPU1: update cpu_capacity 1024
[    0.099683] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.099806] smp: Brought up 1 node, 2 CPUs
[    0.113693] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.120171] CPU: All CPU(s) started in SVC mode.
[    0.125352] devtmpfs: initialized
[    0.133046] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.140955] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.151297] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.159878] pinctrl core: initialized pinctrl subsystem
[    0.166665] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.173692] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.181430] thermal_sys: Registered thermal governor 'step_wise'
[    0.181609] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.196017] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.210416] platform 5460000.tcon-top: Fixing up cyclic dependency with 5200000.mixer
[    0.218749] platform 5460000.tcon-top: Fixing up cyclic dependency with 5100000.mixer
[    0.226855] platform 5461000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.236231] platform 5470000.lcd-controller: Fixing up cyclic dependency with 5460000.tcon-top
[    0.246256] platform 7090000.rtc: Fixing up cyclic dependency with 7010000.clock-controller
[    0.263845] SCSI subsystem initialized
[    0.267854] usbcore: registered new interface driver usbfs
[    0.273631] usbcore: registered new interface driver hub
[    0.279027] usbcore: registered new device driver usb
[    0.284256] mc: Linux media interface: v0.10
[    0.288578] videodev: Linux video capture interface: v2.00
[    0.294369] pps_core: LinuxPPS API ver. 1 registered
[    0.299563] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.308742] PTP clock support registered
[    0.313142] Advanced Linux Sound Architecture Driver Initialized.
[    0.320252] clocksource: Switched to clocksource arch_sys_counter
[    0.334213] NET: Registered PF_INET protocol family
[    0.339521] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.347313] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.355728] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.363871] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.371932] TCP bind hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.379117] TCP: Hash tables configured (established 1024 bind 1024)
[    0.385863] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.392740] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.400195] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.408103] Initialise system trusted keyrings
[    0.412944] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.500924] Key type asymmetric registered
[    0.505050] Asymmetric key parser 'x509' registered
[    0.510316] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.518064] io scheduler mq-deadline registered
[    0.522825] io scheduler kyber registered
[    0.542431] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.559271] CAN device driver interface
[    0.564412] usbcore: registered new interface driver usb-storage
[    0.570879] UDC core: g_serial: couldn't find an available UDC
[    0.579058] sun6i-rtc 7090000.rtc: registered as rtc0
[    0.584270] sun6i-rtc 7090000.rtc: setting system clock to 1970-01-02T01:40:15 UTC (92415)
[    0.593068] sun6i-rtc 7090000.rtc: RTC enabled
[    0.598057] i2c_dev: i2c /dev entries driver
[    0.603616] sun8i-di 5400000.deinterlace: Device registered as /dev/video0
[    0.611910] sun8i_tvd 5c00000.tvd: error -ENXIO: IRQ irq_tvd1 not found
[    0.618861] sun8i_tvd 5c00000.tvd: Failed to init tvd1
[    0.625556] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.634983] sun8i-ce 3040000.crypto: Set mod clock to 300000000 (300 Mhz) from 400000000 (400 Mhz)
[    0.644764] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.653012] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.661218] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.669372] sun8i-ce 3040000.crypto: will run requests pump with realtime priority
[    0.677489] sun8i-ce 3040000.crypto: Register cbc(aes)
[    0.682689] sun8i-ce 3040000.crypto: Register ecb(aes)
[    0.687829] sun8i-ce 3040000.crypto: Register cbc(des3_ede)
[    0.693442] sun8i-ce 3040000.crypto: Register ecb(des3_ede)
[    0.699276] sun8i-ce 3040000.crypto: Register md5
[    0.704207] sun8i-ce 3040000.crypto: Register sha1
[    0.709016] sun8i-ce 3040000.crypto: Register sha224
[    0.714010] sun8i-ce 3040000.crypto: Register sha256
[    0.719217] sun8i-ce 3040000.crypto: Register sha384
[    0.724429] sun8i-ce 3040000.crypto: Register sha512
[    0.729637] sun8i-ce 3040000.crypto: Register stdrng
[    0.735373] sun8i-ce 3040000.crypto: CryptoEngine Die ID 0
[    0.741773] random: crng init done
[    0.741807] usbcore: registered new interface driver usbhid
[    0.751194] usbhid: USB HID core driver
[    0.755837] cedrus 1c0e000.video-codec: Device registered as /dev/video2
[    0.766162] sun20i-codec 2030000.audio-codec: supply avcc not found, using dummy regulator
[    0.774647] sun20i-codec 2030000.audio-codec: supply hpvcc not found, using dummy regulator
[    0.786169] NET: Registered PF_PACKET protocol family
[    0.791535] can: controller area network core
[    0.795967] NET: Registered PF_CAN protocol family
[    0.800787] can: raw protocol
[    0.803878] can: broadcast manager protocol
[    0.808070] can: netlink gateway - max_hops=1
[    0.812698] Key type dns_resolver registered
[    0.817060] Registering SWP/SWPB emulation handler
[    0.822353] Loading compiled-in X.509 certificates
[    0.850567] sun20i-d1-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.859451] 2500800.serial: ttyS2 at MMIO 0x2500800 (irq = 235, base_baud = 1500000) is a AW_16550A
[    0.869674] 2500c00.serial: ttyS3 at MMIO 0x2500c00 (irq = 236, base_baud = 1500000) is a AW_16550A
[    0.878824] printk: console [ttyS3] enabled
[    0.878824] printk: console [ttyS3] enabled
[    0.887416] printk: bootconsole [earlycon0] disabled
[    0.887416] printk: bootconsole [earlycon0] disabled
[    0.898765] 2501400.serial: ttyS5 at MMIO 0x2501400 (irq = 237, base_baud = 1500000) is a AW_16550A
[    0.910313] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.915645] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.923970] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.930348] Creating 4 MTD partitions on "spi0.0":
[    0.935140] 0x000000000000-0x000000020000 : "awboot"
[    0.940748] 0x000000020000-0x000000040000 : "dtb"
[    0.945977] 0x000000040000-0x000000840000 : "kernel"
[    0.960502] 0x000000840000-0x000008000000 : "filesystem"
[    1.104442] sunxi_can 2504000.can: device registered ( base=(ptrval), irq=240 )
[    1.112795] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
[    1.119159] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
[    1.125384] dwmac-sun8i 4500000.ethernet: PTP uses main clock
[    1.131184] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 58000 (expect 0)
[    1.140428] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
[    1.147658] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
[    1.154906] dwmac-sun8i 4500000.ethernet: COE Type 2
[    1.159869] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
[    1.166664] dwmac-sun8i 4500000.ethernet: Normal descriptors
[    1.172327] dwmac-sun8i 4500000.ethernet: Chain mode enabled
[    1.177993] dwmac-sun8i 4500000.ethernet: device MAC address 6a:87:3d:b5:a5:11
[    1.187367] dwmac-sun8i 4500000.ethernet: Enable PHY clk
[    1.192785] dwmac-sun8i 4500000.ethernet: Reset ext PHY
[    1.235985] ehci-platform 4200000.usb: EHCI Host Controller
[    1.236516] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    1.241642] ehci-platform 4200000.usb: new USB bus registered, assigned bus number 1
[    1.251618] ohci-platform 4200400.usb: Generic Platform OHCI controller
[    1.265288] ohci-platform 4200400.usb: new USB bus registered, assigned bus number 2
[    1.270400] g_serial gadget.0: Gadget Serial v2.4
[    1.277739] g_serial gadget.0: g_serial ready
[    1.284291] sun8i-thermal 2009400.temperature-sensor: supply vref not found, using dummy regulator
[    1.294010] ehci-platform 4200000.usb: irq 242, io mem 0x04200000
[    1.300631] ohci-platform 4200400.usb: irq 243, io mem 0x04200400
[    1.306829] ubi0: attaching mtd3
[    1.320280] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[    1.327361] hub 1-0:1.0: USB hub found
[    1.330335] sunxi-mmc 4020000.mmc: initialized, max. request size: 2047 KB, uses new timings mode
[    1.331201] hub 1-0:1.0: 1 port detected
[    1.375800] hub 2-0:1.0: USB hub found
[    1.379608] hub 2-0:1.0: 1 port detected
[    1.739176] ubi0: scanning is finished
[    1.753198] ubi0: attached mtd3 (name "filesystem", size 119 MiB)
[    1.759310] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.766223] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.773018] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.779973] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    1.785984] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.793208] ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 315531185
[    1.802289] ubi0: available PEBs: 669, total reserved PEBs: 289, PEBs reserved for bad PEB handling: 20
[    1.811735] ubi0: background thread "ubi_bgt0d" started, PID 106
[    1.811937] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.828544] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.835320] ALSA device list:
[    1.838302]   #0: sun20i-codec
[    1.841615] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.850309] cfg80211: failed to load regulatory.db
[    3.545361] UBIFS (ubi0:0): static UBI volume - read-only mode
[    3.552579] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.668791] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    3.677123] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.687054] UBIFS (ubi0:0): FS size: 32378880 bytes (30 MiB, 255 LEBs), max 442 LEBs, journal size 7364608 bytes (7 MiB, 58 LEBs)
[    3.698709] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    3.704557] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID BC73AF36-5808-4508-93D6-F8505E06FFFD, small LPT model
[    3.725076] VFS: Mounted root (ubifs filesystem) readonly on device 0:15.
[    3.740346] devtmpfs: mounted
[    3.744596] Freeing unused kernel image (initmem) memory: 1024K
[    3.750768] Run /sbin/init as init process
[    4.104147] init: Console is alive
[    4.107877] init: - watchdog -
[    4.167507] kmodloader: no module folders for kernel version 6.1.0-rc3 found
[    4.176512] init: - preinit -
[    5.026047] dwmac-sun8i 4500000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    5.035031] dwmac-sun8i 4500000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] (irq=POLL)
[    5.043890] dwmac-sun8i 4500000.ethernet eth0: No Safety Features support found
[    5.051238] dwmac-sun8i 4500000.ethernet eth0: No MAC Management Counters available
[    5.058903] dwmac-sun8i 4500000.ethernet eth0: PTP not supported by HW
[    5.065946] dwmac-sun8i 4500000.ethernet eth0: configuring for phy/rmii link mode
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
[    7.221196] mount_root: mounting /dev/root
[    7.225585] UBIFS (ubi0:0): cannot re-mount R/W - UBI volume is R/O
[    7.249553] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.295048] procd: - early -
[    7.299520] procd: - watchdog -
[    7.868305] procd: - watchdog -
[    7.874129] procd: - ubus -
[    8.037293] procd: - init -
Please press Enter to activate this console.
[    8.500021] kmodloader: no module folders for kernel version 6.1.0-rc3 found
[    8.981564] urngd: v1.0.2 started.



BusyBox v1.36.1 (2023-11-13 00:58:08 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05-SNAPSHOT, r23627-b38b5c4299
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@(none):/#

что-то там с разделами, нужно разбираться... скорее всего, скрипты пытаются обращаться к mmcblk, а их просто нет...
 

Изменено пользователем haker_fox
Убрал под спойлер длинный лог.

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


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

On 11/23/2023 at 8:42 PM, toweroff said:

Взял aw-boot, дерево и ядро от стартеркита. Собрал OpenWRT для бананы, rootfs засунул в ubi, прошил через xfel

плата стартеркита ? сделал скрипт для конвертации корневой из имиджа блочного устройства OW в ubi для sk, выполнять надо в директории  buildroot/output/images после сборки минимального конфига

Quote

buildroot-2022.08.3-sk-t113/output/images$ sudo ./ow.sh openwrt-sunxi-cortexa7-sinovoip_bananapi-m2-ultra-ext4-sdcard.img p2

записать всё в nand

Quote

buildroot-2022.08.3-sk-t113/output/images$ sudo sh flash_nand.bat

 

скрипт меняет консоль  ttyS0 -> console и добавляет ещё консоль на usb ttyGS0, IP адреса сконфигурировал из консоли и доустановил пакетики как и в прошлый раз

 

Screenshot from 2023-11-23 23-19-26.png

ow.sh

On 11/23/2023 at 8:42 PM, toweroff said:

скорее всего, скрипты пытаются обращаться к mmcblk, а их просто нет...

какие скрипты и зачем им к mmcblk обращаться если корень на UBI ?

On 11/23/2023 at 8:42 PM, toweroff said:
0.000000] Kernel command line: mem=128M cma=48M console=ttyS3,115200 earlyprintk=sunxi-uart,0x2500c00 ubi.mtd=3 root=ubi0_0 rootfstype=ubifs rootwait

 

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

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


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

Модератор: коллеги, прошу длинные простынки кода или логов прятать под спойлер. Спойлер - это кнопка с глазом в Вашем редакторе сообщений. В противном случае каждый пост занимает несколько экранов монитора. Сложно читать всю ветку. Один пост выше я отредактировал самостоятельно.

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


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

7 часов назад, sasamy сказал:

плата стартеркита ? сделал скрипт для конвертации корневой из имиджа блочного устройства OW в ubi для sk, выполнять надо в директории  buildroot/output/images после сборки минимального конфига

спасибо большое!
да, плата стартеркита. Собрал минимальный конфиг, запустил скрипт:
 

Now: ./ow.sh openwrt-sunxi-cortexa7-sinovoip_bananapi-m2-ultra-ext4-sdcard.img p2 sdcard.img p2 ./mnt ../target
find losetup    [OK]
find dd         [OK]
find awk        [OK]
find sed        [OK]
find cat        [OK]
find e2fsck     [OK]
find resize2fs  [OK]
find mkfs.ubifs [OK]
find ubinize    [OK]
find src image  [OK]
find dst image  [OK]
find free loop for src [OK]
attach openwrt-sunxi-cortexa7-sinovoip_bananapi-m2-ultra-ext4-sdcard.img to /dev/loop11 losetup: openwrt-sunxi-cortexa7-sinovoip_bananapi-m2-ultra-ext4-sdcard.img: Warning: file does not fit into a 512-byte sector; the end of the file will be ignored.
[OK]
find free loop for dst [OK]
attach sdcard.img to /dev/loop12 [OK]
find src root partition [OK]
find dst root partition [OK]
copy /dev/loop11p2 to /dev/loop12p2 dd: error writing '/dev/loop12p2': No space left on device
61+0 records in
60+0 records out
62914560 bytes (63 MB, 60 MiB) copied, 0.0928189 s, 678 MB/s
[ERROR]

 

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


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

On 11/24/2023 at 7:06 AM, toweroff said:
attach sdcard.img to /dev/loop12 [OK]
copy /dev/loop11p2 to /dev/loop12p2 dd: error writing '/dev/loop12p2': No space left on device

не хватает места в имидже sdcard.img - надо через конфиг буилдрута увеличить и собрать, 256М должно с запасом для OW хватить

Quote

make menuconfig

Filesystem images  --->
[*] ext2/3/4 root filesystem
(256M) exact size

make

после сборки нового имиджа (не надо пересобирать - просто make всегда лепит новый sdcard.img) запустить скрипт ow.sh, ow.sh делает сразу два имиджа - один для блочных устройств и второй для nand

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


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

хватило и 128)

Огромное спасибо! Всё взлетело!
теперь нужно будет собрать OW с доработанным форвардером (или вообще с concentratord), но это совершенно другая песня

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


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

On 11/24/2023 at 9:26 AM, toweroff said:

теперь нужно будет собрать OW с доработанным форвардером (или вообще с concentratord)

имейте ввиду что ядро в буилдруте собирается с минимальным конфигом в том числе и для сети  - надо добавлять в конфиге ядра то что нужно или взять дистрибутивный конфиг (армбиан например) для того же банана например чтобы не гадать что включить, модули ядра которые собираются в OW не будут работать с ядром буилдрута или нужно делать полный порт для платы на OW, но это долго и не особо нужно - проще только корневую фс брать

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

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


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

5 минут назад, sasamy сказал:

имейте ввиду что ядро в буилдруте собирается с минимальным конфигом в том числе и для сети  - надо добавлять в конфиге ядра то что нужно или взять дистрибутивный конфиг (армбиан например) для того же банана например чтобы не гадать что включить, модули ядра которые собираются в OW не будут работать с ядром буилдрута или нужно делать полный порт для платы на OW, но это долго и не особо нужно - проще только корневую фс брать

да, я видел в скрипте, что и модули тоже копируются, я про них совсем забыл. В OW ядро-то 5.15 вроде
 

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


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

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

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

Гость
Ответить в этой теме...

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

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

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

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

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

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