ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.45k stars 1.74k forks source link

cm211-1 S905l-3无法刷入 #118

Closed Windrunner20 closed 2 years ago

Windrunner20 commented 2 years ago

貌似这个盒子有很多版本,我这个是s905l-3的2+8版本,我试了150大佬的20.10的所有版本只有bionic能刷入, 但是当我完成写入emmc操作,并显示eemc copy成功之后再进入系统就进不去了,过后重新刷bionic也失败了。 另外您的s905x固件也刷写失败了,我的刷法是,更改uenv文件内dtb为s905-p212.dtb;将s905-p212.bin 改为u-bot.ext。仅修改这两处不知道操作是否正确。 今晚先提个issue,明天上跑码。 小白不懂挺多,请见谅。

Sent from PPHub

ophub commented 2 years ago

修改的目的是找到合适的dtb让盒子从USB启动。如果你已经从USB启动了,就不要修改,改成其他的就可能错了,每次修改了要先从USB再次重新启动测试下这个方案是否可行。

写入EMMC原则上都是使用的和USB一样的配置方案,不需要你从USB启动后修改什么方案才能写入EMMC,从来没有这样的操作。有些教程里提到的修改 /boot/uEnv.txt 也是在USB未插入盒子之前,在电脑上打开你USB里的boot分区进行修改,而不是从USB启动后再修改。

能否写入EMMC的基础是这个盒子的bootloader有没有锁定,是否支持写入第三方固件,有的盒子是不可以写入的,只能在USB/TF/SD等外接卡上使用,它们的内置的EMMC不让写入,操作无效。目前已知可以使用Armbian的s905 soc盒子还没有一个支持写入EMMC的,比如Beelink-Mini-MX-2G, MXQ-Pro+4K等设备,都只支持在USB/TF/SD上使用。

理论上内核是 5.4 内核的 s905x 固件在 s905l 盒子中可以使用,无须修改任何东西。但是 5.10+ 内核需要你测试下u-boot是否支持。

有次我在某论坛看到有个帖子说以下这些运营商免费赠送的电视盒子经测试可以支持SD/TF/USB使用,但不支持写入EMMC,基本上都是百兆网卡,具体情况未知,有设备的可以从USB测试下,没有这些设备的也不建议买,虽然都是二三十块钱就能买一个,但是现在基本上普及了千兆光纤入户,这些百兆网卡的设备有点鸡肋了。

魔百盒CM201-1(S905L-b 四核 2GHz,1G+8G) 魔百盒CMC-01-E G2 40F(S905m 四核 1.5GHz,1G+4G) 魔百盒HM201(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-D(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-S(S905L 四核 2GHz,1G+8G) 百视通R3300-M(S905m 四核 1.5GHz,1G+4G) 百视通R3300-L(S905L 四核 2GHz,1G+8G) 创维E951(S905L 四核 2GHz,1G+8G) 创维900V21C(S905L 四核 2GHz,1G+8G) 数码视讯Q5/Q7(S905M 四核 1.5/2GHz,1G+8G) UT斯达康MC8638S(S905L 四核 2GHz,1G+4G) 天邑TY1208-Z(晶晨S905MB非高安版) 海信ip108h(S905L 四核 2GHz,1G+8G,53U1M,联通版) 杰赛s65(S905L 四核 2GHz,1G+8G)

Windrunner20 commented 2 years ago

我使用https://post.smzdm.com/p/awk8mpq4/ 中的Armbian_5.97_Aml-g12_Debian_buster_default_5.3.0_20190923.img,结合https://zhuanlan.zhihu.com/p/461442176 的最后一步写入emmc,可以成功启动并刷入emmc,但是无法使用HDMI和有线网络,所以尝试了bable150和您的几乎所有文件,各种各样的错误都遇到过,我就不一一列举了,遇到最多的情况是:

GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 78214

BL2 Built : 14:48:45, Sep 26 2018.
gxl g6d68897 - yao.zhang@droid07

Board ID = 4, adc=302
set vcck to 1070 mv
set vddee to 1070 mv
CPU clk: 1200MHz
DDR3
DDR3 chl: Rank0+1 @ 792MHz - FAIL
DDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 2b 08 4f 39 16 5d 25 00 4b 3f 1c 62 25 01 4a 3a 15 5f 28 02 4f 3b 17 5f 612   - PASS

Rank0: 2048MB(auto)-2T-11
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: 0x00007600
Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00047400
NOTICE:  BL3-1: v1.0(debug):361f8a7
NOTICE:  BL3-1: Built : 16:43:26, Dec 19 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3103-9234004 2018-12-27 10:43:23 yao.zhang@droid07]
efuse init ops = c5
efuse init hdcp = c, cf9=7
x2_hp_e = 0
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 ad b3 60 a0 0 c5 not ES chip
[0.568162 Inits done]
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9
DRAM:
MMC:    In:    Out:   Err:   wipe_data=successful
wipe_cache=successful
upgrade_step=2
[BL31]: tee size: 0
rebootmode=cold_boot

Starting the controller
 ()
start amlogic old u-boot
 ()
[BL31]: tee size: 0
[BL31]: tee size: 0
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.9.0-arm-64 (root@vbox) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #20.10 SMP PREEMPT Wed Oct 14 12:04:42 MSK 2020
[    0.000000] Machine model: Amlogic Meson GXL (S905X) P212 Development Board
[    0.000000] efi: UEFI not found.
[    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[    0.000000] Reserved memory: created CMA memory pool at 0x000000006b400000, size 256 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000001000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fbf1100-0x7fbf2fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000001000000-0x000000003fffffff]
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000001000000-0x0000000004ffffff]
[    0.000000]   node   0: [mem 0x0000000007300000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000010200000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000001000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 22 pages/cpu s51480 r8192 d30440 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 502592
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x3bfff000-0x3ffff000] (64MB)
[    0.000000] Memory: 1635348K/2042880K available (16188K kernel code, 1308K rwdata, 6464K rodata, 3392K init, 927K bss, 145388K reserved, 262144K cma-reserved)
[    0.000000] random: get_random_u64 called from cache_random_seq_create+0x80/0x150 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized
[    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.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000313] Console: colour dummy device 80x25
[    0.000731] printk: console [tty0] enabled
[    0.000832] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000853] pid_max: default: 32768 minimum: 301
[    0.000957] LSM: Security Framework initializing
[    0.001054] AppArmor: AppArmor initialized
[    0.001111] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.001134] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002517] rcu: Hierarchical SRCU implementation.
[    0.003462] EFI services will not be available.
[    0.003760] smp: Bringing up secondary CPUs ...
[    0.004329] Detected VIPT I-cache on CPU1
[    0.004385] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004935] Detected VIPT I-cache on CPU2
[    0.004985] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005518] Detected VIPT I-cache on CPU3
[    0.005566] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005640] smp: Brought up 1 node, 4 CPUs
[    0.005704] SMP: Total of 4 processors activated.
[    0.005716] CPU features: detected: 32-bit EL0 Support
[    0.005727] CPU features: detected: CRC32 instructions
[    0.015604] CPU: All CPU(s) started at EL2
[    0.015662] alternatives: patching kernel code
[    0.016957] devtmpfs: initialized
[    0.022331] Registered cp15_barrier emulation handler
[    0.022362] Registered setend emulation handler
[    0.022377] KASLR disabled due to lack of seed
[    0.022722] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.022757] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.029888] xor: measuring software checksum speed
[    0.068172]    8regs     :  2373.000 MB/sec
[    0.108204]    32regs    :  2723.000 MB/sec
[    0.148243]    arm64_neon:  2310.000 MB/sec
[    0.148253] xor: using function: 32regs (2723.000 MB/sec)
[    0.148314] pinctrl core: initialized pinctrl subsystem
[    0.148863] DMI not present or invalid.
[    0.149361] NET: Registered protocol family 16
[    0.150927] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.150993] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.151134] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.151238] audit: initializing netlink subsys (disabled)
[    0.151463] audit: type=2000 audit(0.148:1): state=initialized audit_enabled=0 res=1
[    0.152496] thermal_sys: Registered thermal governor 'step_wise'
[    0.152741] cpuidle: using governor ladder
[    0.152781] cpuidle: using governor menu
[    0.153109] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.153205] ASID allocator initialised with 65536 entries
[    0.154019] Serial: AMBA PL011 UART driver
[    0.179055] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.179081] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.179094] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.179106] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.180933] cryptd: max_cpu_qlen set to 1000
[    0.248468] raid6: neonx8   gen()  2145 MB/s
[    0.316519] raid6: neonx8   xor()  1608 MB/s
[    0.384598] raid6: neonx4   gen()  2199 MB/s
[    0.452627] raid6: neonx4   xor()  1593 MB/s
[    0.520682] raid6: neonx2   gen()  2095 MB/s
[    0.588736] raid6: neonx2   xor()  1478 MB/s
[    0.656788] raid6: neonx1   gen()  1824 MB/s
[    0.724842] raid6: neonx1   xor()  1249 MB/s
[    0.792898] raid6: int64x8  gen()  1490 MB/s
[    0.860966] raid6: int64x8  xor()   784 MB/s
[    0.929005] raid6: int64x4  gen()  1668 MB/s
[    0.997061] raid6: int64x4  xor()   839 MB/s
[    1.065117] raid6: int64x2  gen()  1420 MB/s
[    1.133172] raid6: int64x2  xor()   730 MB/s
[    1.201227] raid6: int64x1  gen()  1057 MB/s
[    1.269282] raid6: int64x1  xor()   559 MB/s
[    1.269292] raid6: using algorithm neonx4 gen() 2199 MB/s
[    1.269302] raid6: .... xor() 1593 MB/s, rmw enabled
[    1.269312] raid6: using neon recovery algorithm
[    1.269786] ACPI: Interpreter disabled.
[    1.270901] iommu: Default domain type: Translated
[    1.271155] vgaarb: loaded
[    1.271714] SCSI subsystem initialized
[    1.272147] usbcore: registered new interface driver usbfs
[    1.272199] usbcore: registered new interface driver hub
[    1.272263] usbcore: registered new device driver usb
[    1.272673] pps_core: LinuxPPS API ver. 1 registered
[    1.272686] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.272710] PTP clock support registered
[    1.272747] EDAC MC: Ver: 3.0.0
[    1.273614] FPGA manager framework
[    1.273718] Advanced Linux Sound Architecture Driver Initialized.
[    1.274272] NetLabel: Initializing
[    1.274287] NetLabel:  domain hash size = 128
[    1.274296] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.274349] NetLabel:  unlabeled traffic allowed by default
[    1.274870] clocksource: Switched to clocksource arch_sys_counter
[    1.275148] VFS: Disk quotas dquot_6.6.0
[    1.275210] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.275333] FS-Cache: Loaded
[    1.275813] AppArmor: AppArmor Filesystem Enabled
[    1.276053] pnp: PnP ACPI: disabled
[    1.281142] NET: Registered protocol family 2
[    1.281676] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.281728] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.281847] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    1.282057] TCP: Hash tables configured (established 16384 bind 16384)
[    1.282217] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    1.282273] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    1.282480] NET: Registered protocol family 1
[    1.282970] RPC: Registered named UNIX socket transport module.
[    1.282990] RPC: Registered udp transport module.
[    1.282999] RPC: Registered tcp transport module.
[    1.283008] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.283025] NET: Registered protocol family 44
[    1.283045] PCI: CLS 0 bytes, default 64
[    1.283249] Trying to unpack rootfs image as initramfs...
[    1.733029] Freeing initrd memory: 10664K
[    1.733916] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.737309] Initialise system trusted keyrings
[    1.737515] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    1.742257] zbud: loaded
[    1.743603] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.743902] FS-Cache: Netfs 'nfs' registered for caching
[    1.744460] NFS: Registering the id_resolver key type
[    1.744497] Key type id_resolver registered
[    1.744507] Key type id_legacy registered
[    1.744600] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.744613] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.745608] FS-Cache: Netfs 'cifs' registered for caching
[    1.745903] Key type cifs.spnego registered
[    1.745926] Key type cifs.idmap registered
[    1.745950] ntfs: driver 2.1.32 [Flags: R/W].
[    1.746495] JFS: nTxBlock = 8192, nTxLock = 65536
[    1.751123] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[    1.752604] ocfs2: Registered cluster interface o2cb
[    1.752823] OCFS2 User DLM kernel interface loaded
[    1.754460] gfs2: GFS2 installed
[    1.791877] NET: Registered protocol family 38
[    1.791908] Key type asymmetric registered
[    1.791918] Asymmetric key parser 'x509' registered
[    1.791928] Asymmetric key parser 'pkcs8' registered
[    1.791996] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.792151] io scheduler mq-deadline registered
[    1.792163] io scheduler kyber registered
[    1.792321] io scheduler bfq registered
[    1.806188] soc soc0: Amlogic Meson Unknown (Unknown) Revision 2a:e (c5:2) Detected
[    1.810186] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
[    1.812099] Serial: AMBA driver
[    1.812482] c11084c0.serial: ttyAML6 at MMIO 0xc11084c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    1.812652] serial serial0: tty port ttyAML6 registered
[    1.813057] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 15, base_baud = 1500000) is a meson_uart
[    2.880468] printk: console [ttyAML0] enabled
[    2.897977] brd: module loaded
[    2.905857] loop: module loaded
[    2.906721] Loading iSCSI transport class v2.0-870.
[    2.908808] iscsi: registered transport (tcp)
[    2.916338] libphy: Fixed MDIO Bus: probed
[    2.918347] VFIO - User Level meta-driver version: 0.3
[    2.923121] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.928151] ehci-pci: EHCI PCI platform driver
[    2.932602] ehci-platform: EHCI generic platform driver
[    2.937865] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.943871] ohci-pci: OHCI PCI platform driver
[    2.948292] ohci-platform: OHCI generic platform driver
[    2.953936] usbcore: registered new interface driver usb-storage
[    2.959580] mousedev: PS/2 mouse device common for all mice
[    2.965830] i2c /dev entries driver
[    2.972214] sdhci: Secure Digital Host Controller Interface driver
[    2.974455] sdhci: Copyright(c) Pierre Ossman
[    2.979013] Synopsys Designware Multimedia Card Interface Driver
[    2.991884] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    3.019550] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    3.044665] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.045860] ledtrig-cpu: registered to indicate activity on CPUs
[    3.051553] meson-sm: secure-monitor enabled
[    3.055735] gxl-crypto c883e000.crypto: will run requests pump with realtime priority
[    3.062931] gxl-crypto c883e000.crypto: will run requests pump with realtime priority
[    3.071105] hid: raw HID events driver (C) Jiri Kosina
[    3.076045] usbcore: registered new interface driver usbhid
[    3.081258] usbhid: USB HID core driver
[    3.086019] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[BL31]: tee size: 0
[    3.097402] no UART detected at 0x1
[    3.101406] NET: Registered protocol family 17
[    3.101662] Key type dns_resolver registered
[    3.106048] registered taskstats version 1
[    3.109717] Loading compiled-in X.509 certificates
[    3.114527] zswap: loaded using pool lzo/zbud
[    3.118943] Key type ._fscrypt registered
[    3.122581] Key type .fscrypt registered
[    3.126474] Key type fscrypt-provisioning registered
[    3.132363] Btrfs loaded, crc32c=crc32c-generic
[    3.142983] Key type encrypted registered
[    3.143045] AppArmor: AppArmor sha1 policy hashing enabled
[    3.162845] meson-drm d0100000.vpu: Queued 3 outputs on vpu
[    3.190934] meson-dw-hdmi c883a000.hdmi-tx: Unsupported HDMI controller (0d0d:0d:0d)
[    3.193267] ------------[ cut here ]------------
[    3.197624] WARNING: CPU: 0 PID: 176 at drivers/regulator/core.c:2089 _regulator_put.part.0+0x154/0x160
[    3.206925] Modules linked in:
[    3.209948] CPU: 0 PID: 176 Comm: kworker/0:2 Not tainted 5.9.0-arm-64 #20.10
[    3.217016] Hardware name: Amlogic Meson GXL (S905X) P212 Development Board (DT)
[    3.224356] Workqueue: events deferred_probe_work_func
[    3.229439] pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--)
[    3.234958] pc : _regulator_put.part.0+0x154/0x160
[    3.239701] lr : regulator_put+0x38/0x50
[    3.243581] sp : ffff800010d63930
[    3.246858] x29: ffff800010d63930 x28: ffff800012a07000
[    3.252119] x27: ffff80001004bcd8 x26: 00000000ffffffed
[    3.257380] x25: ffff00007f725680 x24: ffff0000699b9400
[    3.262642] x23: 0000000000000010 x22: ffff800010d639e8
[    3.267903] x21: ffff00007cd66200 x20: ffff800012ad7150
[    3.273164] x19: ffff00007ccf1500 x18: 000000000000000e
[    3.278425] x17: 0000000000000001 x16: 0000000000000019
[    3.283686] x15: 0000000000000004 x14: 0000000000000242
[    3.288948] x13: 0000000000000000 x12: 0000000000000000
[    3.294209] x11: 0000000000000000 x10: 00000000000009c0
[    3.299470] x9 : ffff800010d637d0 x8 : 0000000000000000
[    3.304732] x7 : ffff00007cd66200 x6 : 0000000000000000
[    3.309993] x5 : 0000000000000001 x4 : 0000000000000000
[    3.315254] x3 : ffff800012ad7520 x2 : ffff00007cd66200
[    3.320515] x1 : 0000000000000000 x0 : 0000000000000001
[    3.325777] Call trace:
[    3.328196]  _regulator_put.part.0+0x154/0x160
[    3.332593]  regulator_put+0x38/0x50
[    3.336130]  devm_regulator_release+0x14/0x20
[    3.340443]  release_nodes+0x1b0/0x228
[    3.344150]  devres_release_group+0x90/0xe8
[    3.348290]  component_bind_all+0x114/0x260
[    3.352431]  meson_drv_bind_master+0x364/0x488
[    3.356828]  meson_drv_bind+0x14/0x28
[    3.360451]  try_to_bring_up_master+0x168/0x1d0
[    3.364936]  component_master_add_with_match+0xb4/0x100
[    3.370111]  meson_drv_probe+0xd4/0x128
[    3.373906]  platform_drv_probe+0x54/0xa8
[    3.377873]  really_probe+0xe4/0x3b0
[    3.381410]  driver_probe_device+0x58/0xb8
[    3.385463]  __device_attach_driver+0x84/0xc8
[    3.389777]  bus_for_each_drv+0x78/0xc8
[    3.393571]  __device_attach+0xf0/0x150
[    3.397366]  device_initial_probe+0x14/0x20
[    3.401507]  bus_probe_device+0x9c/0xa8
[    3.405302]  deferred_probe_work_func+0x74/0xb0
[    3.409790]  process_one_work+0x1a0/0x328
[    3.413753]  worker_thread+0x1f8/0x420
[    3.417464]  kthread+0x140/0x160
[    3.420655]  ret_from_fork+0x10/0x34
[    3.424190] ---[ end trace 09b00f179a29eb57 ]---
[    3.429139] meson-drm d0100000.vpu: failed to bind c883a000.hdmi-tx (ops meson_dw_hdmi_ops): -19
[    3.437666] meson-drm d0100000.vpu: Couldn't bind all components
[    3.443890] meson-drm d0100000.vpu: master bind failed: -19
[    3.451744] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[    3.455725] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[    3.461934] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[    3.467953] meson8b-dwmac c9410000.ethernet: no reset control found
[    3.474539] mmc1: new HS200 MMC card at address 0001
[    3.479023] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    3.486169] mmcblk1: mmc1:0001 Biwin  6.96 GiB
[    3.490578] mmcblk1boot0: mmc1:0001 Biwin  partition 1 4.00 MiB
[    3.496452] mmcblk1boot1: mmc1:0001 Biwin  partition 2 4.00 MiB
[    3.502018] meson8b-dwmac c9410000.ethernet:         DWMAC1000
[    3.507174] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[    3.514688] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[    3.522040] mmcblk1rpmb: mmc1:0001 Biwin  partition 3 4.00 MiB, chardev (241:0)
[    3.529276] meson8b-dwmac c9410000.ethernet: COE Type 2
[    3.534425] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[    3.541410] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[    3.547852] meson8b-dwmac c9410000.ethernet: Normal descriptors
[    3.553659] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[    3.559437] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.567747] libphy: stmmac: probed
[    3.572087] dwc3-meson-g12a d0078080.usb: USB2 ports: 2
[    3.575948] dwc3-meson-g12a d0078080.usb: USB3 ports: 0
[    4.099966] dwc2 c9100000.usb: supply vusb_d not found, using dummy regulator
[    4.101613] dwc2 c9100000.usb: supply vusb_a not found, using dummy regulator
[    4.108831] dwc2 c9100000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM
[    4.117218] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.121034] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    4.128696] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010
[    4.137923] xhci-hcd xhci-hcd.0.auto: irq 42, io mem 0xc9000000
[    4.144018] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[    4.151937] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.159091] usb usb1: Product: xHCI Host Controller
[    4.163920] usb usb1: Manufacturer: Linux 5.9.0-arm-64 xhci-hcd
[    4.169785] usb usb1: SerialNumber: xhci-hcd.0.auto
[    4.175154] hub 1-0:1.0: USB hub found
[    4.178341] hub 1-0:1.0: 2 ports detected
[    4.182608] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    4.187747] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    4.195328] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    4.201859] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.209900] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.09
[    4.218002] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.225158] usb usb2: Product: xHCI Host Controller
[    4.229987] usb usb2: Manufacturer: Linux 5.9.0-arm-64 xhci-hcd
[    4.235852] usb usb2: SerialNumber: xhci-hcd.0.auto
[    4.241142] hub 2-0:1.0: USB hub found
[    4.244421] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    4.254107] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq
[    4.285193] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
get_dvfs_info 0007
[    4.305350] mmc2: new high speed SDIO card at address 8800
[    4.306455] libphy: mdio_mux: probed
[    4.312784] libphy: mdio_mux: probed
[    4.314954] printk: console [netcon0] enabled
[    4.316591] netconsole: network logging started
[    4.321488] ALSA device list:
[    4.324025]   No soundcards found.
[    4.328952] Freeing unused kernel memory: 3392K
[    4.338953] Run /init as init process
[    4.514950] usb 1-2: new high-speed USB device number 2 using xhci-hcd
[    4.664260] usb 1-2: New USB device found, idVendor=14cd, idProduct=2536, bcdDevice= 3.00
[    4.666803] usb 1-2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    4.686917] usb 1-2: Product: Mass Storage Device
[    4.686962] usb 1-2: Manufacturer: Generic USB Device
[    4.691703] usb 1-2: SerialNumber: 2536201609180000
[    4.697470] usb-storage 1-2:1.0: USB Mass Storage device detected
[    4.703555] scsi host0: usb-storage 1-2:1.0
[    4.773028] usbcore: registered new interface driver uas
[    4.849896] random: fast init done
[    5.734380] scsi 0:0:0:0: Direct-Access     Mass     Storage Device   1.00 PQ: 0 ANSI: 0 CCS
[    5.743018] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.743337] sd 0:0:0:0: [sda] 15376384 512-byte logical blocks: (7.87 GB/7.33 GiB)
[    5.752501] sd 0:0:0:0: [sda] Write Protect is off
[    5.756104] sd 0:0:0:0: [sda] No Caching mode page found
[    5.760240] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.799122]  sda: sda1 sda2
[    5.801459] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.212875] EXT4-fs (sda2): mounted filesystem with writeback data mode. Opts: data=writeback
[    6.938210] systemd[1]: System time before build time, advancing clock.
[    7.036231] NET: Registered protocol family 10
[    7.050423] Segment Routing with IPv6
[    7.090756] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    7.106992] systemd[1]: Detected architecture arm64.
[    7.134284] systemd[1]: Set hostname to <arm-64>.
[    7.504698] systemd[1]: /etc/systemd/system/serial-getty@.service.d/override.conf:5: Unknown lvalue 'After' in section 'Service'
[    7.514355] systemd[1]: /etc/systemd/system/serial-getty@.service.d/override.conf:5: Unknown lvalue 'After' in section 'Service'
[    7.527793] systemd[1]: /etc/systemd/system/getty@.service.d/override.conf:5: Unknown lvalue 'After' in section 'Service'
[    7.613820] random: systemd: uninitialized urandom read (16 bytes read)
[    7.615900] systemd[1]: Created slice System Slice.
[    7.620291] random: systemd: uninitialized urandom read (16 bytes read)
[    7.626293] systemd[1]: Reached target Swap.
[    7.630891] random: systemd: uninitialized urandom read (16 bytes read)
[    7.637661] systemd[1]: Listening on Journal Socket.
[    7.645721] systemd[1]: Mounting Huge Pages File System...
[    7.751895] EXT4-fs (sda2): re-mounted. Opts: commit=600,errors=remount-ro
[    8.659467] SError Interrupt on CPU3, code 0xbf000002 -- SError
[    8.659471] CPU: 3 PID: 358 Comm: systemd-udevd Tainted: G        W         5.9.0-arm-64 #20.10
[    8.659473] Hardware name: Amlogic Meson GXL (S905X) P212 Development Board (DT)
[    8.659475] pstate: 00000005 (nzcv daif -PAN -UAO BTYPE=--)
[    8.659477] pc : el1_sync_handler+0xf8/0x130
[    8.659478] lr : el1_sync+0x7c/0x100
[    8.659479] sp : ffff80001037b750
[    8.659480] x29: ffff80001037b750 x28: ffff00007cd67000
[    8.659484] x27: 0000000000000100 x26: 0000000000000000
[    8.659488] x25: 0000000000000001 x24: ffff80000a2b6270
[    8.659491] x23: 0000000080000005 x22: ffff80000a2abf08
[    8.659494] x21: ffff80001037b8a0 x20: 0000ffffffffffff
[    8.659497] x19: ffff000069954148 x18: 0000000000000001
[    8.659500] x17: 0000000000000000 x16: 0000000000000000
[    8.659503] x15: ffff00007cd67468 x14: ffffffffffffffff
[    8.659506] x13: 0000000000000020 x12: 0101010101010101
[    8.659510] x11: 0000000000000040 x10: ffff800012a37ef8
[    8.659513] x9 : ffff800012a37ef0 x8 : ffff00007f0026f0
[    8.659516] x7 : 0000000000000000 x6 : 0000000000000000
[    8.659519] x5 : ffff00007f0026c8 x4 : ffff800010c46000
[    8.659522] x3 : 0000000096000210 x2 : 0000002200000000
[    8.659526] x1 : 0000000000000000 x0 : ffff80001037b760
[    8.659529] Kernel panic - not syncing: Asynchronous SError Interrupt
[    8.659532] CPU: 3 PID: 358 Comm: systemd-udevd Tainted: G        W         5.9.0-arm-64 #20.10
[    8.659534] Hardware name: Amlogic Meson GXL (S905X) P212 Development Board (DT)
[    8.659535] Call trace:
[    8.659537]  dump_backtrace+0x0/0x1a0
[    8.659538]  show_stack+0x18/0x28
[    8.659539]  dump_stack+0xc0/0x11c
[    8.659540]  panic+0x15c/0x31c
[    8.659541]  nmi_panic+0x8c/0x90
[    8.659543]  arm64_serror_panic+0x78/0x84
[    8.659544]  do_serror+0x78/0x180
[    8.659545]  el1_error+0x8c/0x108
[    8.659547]  el1_sync_handler+0xf8/0x130
[    8.659548]  el1_sync+0x7c/0x100
[    8.659549]  lima_mmu_init+0x40/0x118 [lima]
[    8.659551]  lima_device_init+0x1b8/0x5f0 [lima]
[    8.659552]  lima_pdev_probe+0xa0/0x190 [lima]
[    8.659553]  platform_drv_probe+0x54/0xa8
[    8.659555]  really_probe+0xe4/0x3b0
[    8.659556]  driver_probe_device+0x58/0xb8
[    8.659557]  device_driver_attach+0x74/0x80
[    8.659559]  __driver_attach+0x58/0xe0
[    8.659560]  bus_for_each_dev+0x70/0xc0
[    8.659561]  driver_attach+0x24/0x30
[    8.659563]  bus_add_driver+0x14c/0x1f0
[    8.659564]  driver_register+0x64/0x120
[    8.659565]  __platform_driver_register+0x48/0x58
[    8.659567]  lima_platform_driver_init+0x24/0x1000 [lima]
[    8.659568]  do_one_initcall+0x54/0x1bc
[    8.659570]  do_init_module+0x54/0x200
[    8.659571]  load_module+0x1de8/0x23f0
[    8.659573]  __do_sys_finit_module+0xd8/0xf0
[    8.659574]  __arm64_sys_finit_module+0x20/0x30
[    8.659575]  el0_svc_common.constprop.0+0x74/0x1f0
[    8.659577]  do_el0_svc+0x24/0x90
[    8.659578]  el0_sync_handler+0x180/0x2f8
[    8.659579]  el0_sync+0x158/0x180
[    8.659600] SMP: stopping secondary CPUs
[    8.659602] Kernel Offset: disabled
[    8.659603] CPU features: 0x0040002,20002004
[    8.659605] Memory Limit: none

Google不到解决方法所以向您求助一下,感谢回复!

ophub commented 2 years ago

你试过5.4的s905x是什么结果? 在usb上可以正常启动和使用吧?先别试写入emmc的事情,如果usb都不能用,写入也不可能正常。

网卡是什么,对应的需要什么驱动?

392377870 commented 2 years ago

我的b860av 2.1刷bable150最新的能正常启动的

ophub commented 2 years ago

方便的话试试5.4的s905x能不能用

Windrunner20 commented 2 years ago

您好,我刚才试了,也是跟上面的log一样卡在memory limit。很多包都是卡在这个地方,除了那个5.3的能用,其他刷成功的就只有bable150的20.20,5.9内核的bionic,并且就只成功过一次,写入emmc失败之后就再也没能刷进去了。我每次刷机都用aml那个工具先刷了个底包,然后再刷的armbian。都不行,我也试了u200和sei510,也基本都是卡memory。另外我把网卡读出来了。 用armbian的iconfig读的:

eth0      Link encap:Ethernet  HWaddr 7A:04:28:A9:1B:15  

          inet addr:192.168.50.26  Bcast:192.168.50.255  Mask:255.255.255.0

          inet6 addr: fe80::7804:28ff:fea9:1b15/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:16258 errors:0 dropped:30 overruns:0 frame:0

          TX packets:13126 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:11054902 (10.5 MiB)  TX bytes:5226997 (4.9 MiB)

          Interrupt:40 

用开心助手查的网卡信息:

<6>[    0.087418@0] Meson chip version = RevE (2A:E - C5:0)

<6>[    0.584294@0] chip type:0x2a

<6>[    2.299184@3] amlogic-thermal : this chip is trimmed, use thermal

<6>[   48.878136@3] WCN: marlin chip en pull up

<6>[   48.966490@1] WCN: marlin_get_wcn_chipid: chipid: 0x56630001

<3>[   49.573320@0] chipid_show: 3<6>[   50.484192@1] woble_set_store, len 1 op: 5

不知道对不对,谢谢。

Windrunner20 commented 2 years ago

我的b860av 2.1刷bable150最新的能正常启动的

请问这款是什么型号的处理器?用的是哪个dtb,我试一试。

ophub commented 2 years ago

网卡信息都能读出来,不能联网? 在USB上可以正常使用不? 这信息看不出来,有产品介绍没,去搜搜你的盒子型号。 如果5.9的内核可以使用,说明有可以支持这个网卡的驱动。如果f大的内核里没有默认编译上,这个网卡的驱动在kernel里可选,就自定义编译一个即可。 用5.4的固件测试,只要dtb正确即可。5.10及以上的内核还需要u-boot支持。

[ 8.659534] Hardware name: Amlogic Meson GXL (S905X) P212 Development Board (DT) 从你的启动信息看,s905x的meson-gxl-s905x-p212.dt是可以使用的。

Windrunner20 commented 2 years ago

好的,我用的能正常用的5.3内核那个镜像文件就是用的s905x-p212.dtb 但是不知道为什么除了那个5.3的包能正常刷进去,现在其他包用s905x-p212的就不行 我再去多试几个dtb,另外卡memory可以看出来是什么原因吗?

Windrunner20 commented 2 years ago

另外,我如果改换着dtb试的话需不需要改动u-boot.ext文件。

ophub commented 2 years ago

dtb文件是编译内核的时候由kernel源码生成的,不同的kernel版本可能对这个dtb的配置进行了修改。 原则上dtb是和内核版本是需要一致的,你把5.3的dtb文件放在5.4里可能没问题,但是放到5.16里可能就不可以了。具体你测试下,把你之前5.3的复制出来,直接拉到现在固件的/boot/dtb/amlogic目录里,覆盖了现在的,重启试试。

Windrunner20 commented 2 years ago

好的,十分感谢您的解答,我再试试,但是我估计不行,我找到您之前发布的20.02 5.4的dtb还是不能用,现在就还是继续5.3的插usbWiFi使用吧,有问题再向您请教!

Calmact commented 2 years ago

最近新上市的一批移动盒子S905L 3A-B、S905L 3A主控的,比如E900V22C/D,性能强悍,是原来S905X2的马甲,性能大概是X3的4/5,能够从u盘启动armbian,ee,ce这些系统,使用u200的dtb。e900v22c的Q群:320724049,诚邀@ophub大神来指导工作。

Misaka13514 commented 2 years ago

同设备同问题,如果您的进展有更新,请告诉我,谢谢!

allonmymind commented 2 years ago

我也用不了有线网卡

Javebean commented 2 years ago

我也有一个差不多的盒子 创维E900V21E 1g+8g CPU: S905L3 也是全网搜索能用的dtb,最后无果,只能作罢 cpu1

whitcloudfly commented 2 years ago

CM311-1 YST(M) 2+16G 100mbps/s SOC:s905l3 使用meson-gxl-s905l2-x7-5g.dtb,u-boot-p212.bin,无显示,可以正常启动网卡,识别USB3.0设备,刷入EMMC。 刷入EMMC需要自定义设置,参考如下。 root@armbian:~#armbian-install [ STEPS ] Start install armbian to emmc... [ STEPS ] Start initializing the environment... [ INFO ] DEV_EMMC: [ /dev/mmcblk2 ] [ STEPS ] Start selecting device...

ID SOC MODEL DTB

101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb
102 s905d Phicomm-N1-(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb 103 s905x HG680P-&-TBee meson-gxl-s905x-p212.dtb
. . . 518 s905x3 X96-Air-Q1000 meson-sm1-x96-max-plus-q2.dtb
519 s905x3 A95XF3-Air-1Gb meson-sm1-a95xf3-air-gbit.dtb
520 s905x3 A95XF3-Air-100Mb meson-sm1-a95xf3-air.dtb
0 Other Customize Enter-custom-dtb-name

[ OPTIONS ] Please Input ID: 0 Please Input SoC Name: s905l3 Please Input DTB Name: meson-gxl-s905l2-x7-5g.dtb Please Input UBOOT_OVERLOAD Name: u-boot-p212.bin Please Input MAINLINE_UBOOT Name: u-boot.emmc Please Input ANDROID_UBOOT Name: uInitrd

allonmymind commented 1 year ago

修改的目的是找到合适的dtb让盒子从USB启动。如果你已经从USB启动了,就不要修改,改成其他的就可能错了,每次修改了要先从USB再次重新启动测试下这个方案是否可行。

写入EMMC原则上都是使用的和USB一样的配置方案,不需要你从USB启动后修改什么方案才能写入EMMC,从来没有这样的操作。有些教程里提到的修改 /boot/uEnv.txt 也是在USB未插入盒子之前,在电脑上打开你USB里的boot分区进行修改,而不是从USB启动后再修改。

能否写入EMMC的基础是这个盒子的bootloader有没有锁定,是否支持写入第三方固件,有的盒子是不可以写入的,只能在USB/TF/SD等外接卡上使用,它们的内置的EMMC不让写入,操作无效。目前已知可以使用Armbian的s905 soc盒子还没有一个支持写入EMMC的,比如Beelink-Mini-MX-2G, MXQ-Pro+4K等设备,都只支持在USB/TF/SD上使用。

理论上内核是 5.4 内核的 s905x 固件在 s905l 盒子中可以使用,无须修改任何东西。但是 5.10+ 内核需要你测试下u-boot是否支持。

有次我在某论坛看到有个帖子说以下这些运营商免费赠送的电视盒子经测试可以支持SD/TF/USB使用,但不支持写入EMMC,基本上都是百兆网卡,具体情况未知,有设备的可以从USB测试下,没有这些设备的也不建议买,虽然都是二三十块钱就能买一个,但是现在基本上普及了千兆光纤入户,这些百兆网卡的设备有点鸡肋了。

魔百盒CM201-1(S905L-b 四核 2GHz,1G+8G) 魔百盒CMC-01-E G2 40F(S905m 四核 1.5GHz,1G+4G) 魔百盒HM201(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-D(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-S(S905L 四核 2GHz,1G+8G) 百视通R3300-M(S905m 四核 1.5GHz,1G+4G) 百视通R3300-L(S905L 四核 2GHz,1G+8G) 创维E951(S905L 四核 2GHz,1G+8G) 创维900V21C(S905L 四核 2GHz,1G+8G) 数码视讯Q5/Q7(S905M 四核 1.5/2GHz,1G+8G) UT斯达康MC8638S(S905L 四核 2GHz,1G+4G) 天邑TY1208-Z(晶晨S905MB非高安版) 海信ip108h(S905L 四核 2GHz,1G+8G,53U1M,联通版) 杰赛s65(S905L 四核 2GHz,1G+8G)

国外论坛有个关于无法写入emmc的原因分析是dtb设置的emmc频率太高识别不到,我在cm201测试可行。有需要,我可以贴上修改方法

allonmymind commented 1 year ago

修改的目的是找到合适的dtb让盒子从USB启动。如果你已经从USB启动了,就不要修改,改成其他的就可能错了,每次修改了要先从USB再次重新启动测试下这个方案是否可行。 写入EMMC原则上都是使用的和USB一样的配置方案,不需要你从USB启动后修改什么方案才能写入EMMC,从来没有这样的操作。有些教程里提到的修改 /boot/uEnv.txt 也是在USB未插入盒子之前,在电脑上打开你USB里的boot分区进行修改,而不是从USB启动后再修改。 能否写入EMMC的基础是这个盒子的bootloader有没有锁定,是否支持写入第三方固件,有的盒子是不可以写入的,只能在USB/TF/SD等外接卡上使用,它们的内置的EMMC不让写入,操作无效。目前已知可以使用Armbian的s905 soc盒子还没有一个支持写入EMMC的,比如Beelink-Mini-MX-2G, MXQ-Pro+4K等设备,都只支持在USB/TF/SD上使用。 理论上内核是 5.4 内核的 s905x 固件在 s905l 盒子中可以使用,无须修改任何东西。但是 5.10+ 内核需要你测试下u-boot是否支持。 有次我在某论坛看到有个帖子说以下这些运营商免费赠送的电视盒子经测试可以支持SD/TF/USB使用,但不支持写入EMMC,基本上都是百兆网卡,具体情况未知,有设备的可以从USB测试下,没有这些设备的也不建议买,虽然都是二三十块钱就能买一个,但是现在基本上普及了千兆光纤入户,这些百兆网卡的设备有点鸡肋了。 魔百盒CM201-1(S905L-b 四核 2GHz,1G+8G) 魔百盒CMC-01-E G2 40F(S905m 四核 1.5GHz,1G+4G) 魔百盒HM201(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-D(S905L 四核 2GHz,1G+8G) 新魔百盒 M201-S(S905L 四核 2GHz,1G+8G) 百视通R3300-M(S905m 四核 1.5GHz,1G+4G) 百视通R3300-L(S905L 四核 2GHz,1G+8G) 创维E951(S905L 四核 2GHz,1G+8G) 创维900V21C(S905L 四核 2GHz,1G+8G) 数码视讯Q5/Q7(S905M 四核 1.5/2GHz,1G+8G) UT斯达康MC8638S(S905L 四核 2GHz,1G+4G) 天邑TY1208-Z(晶晨S905MB非高安版) 海信ip108h(S905L 四核 2GHz,1G+8G,53U1M,联通版) 杰赛s65(S905L 四核 2GHz,1G+8G)

You need to unpack your dtb file into dts via device-tree-compile tool. Install it in linux ubuntu using

sudo apt-get install device-tree-compiler decompile the dtb file:

dtc -I dtb -O dts -o meson-gxl-s905w-p281.dts meson-gxl-s905w-p281.dtb edit this file searching for "mmc@74000" block

max-frequency = <0x5f5e100>;

5f5e100 in hex = 100000000 in dec

edit it to 0x2faf080, 50000000 in dec

compile with

dtc -I dts -O dtb -o meson-gxl-s905w-p281.dtb meson-gxl-s905w-p281.dts

for Armbian_20.10_Arm-64_focal_current_5.9.0.img I prepared the file for you (see attachment)

meson-gxl-s905w-p281.dtb

392377870 commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

allonmymind commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

会不会t95的dtb配置的emmc频率更低所以才能刷进去的呢?我的cm201-1 ys版之前无法识别到emmc,改完dtb的频率重启就识别并刷入成功了。手头没有s905的设备,有设备的可以试试看

392377870 commented 1 year ago

s905

只知道刷入的时候要等很久,其他搞不懂了

Javebean commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

你好 我刚刚搜了下t95 这是某种电视盒子吗? 如果方便 能否提供下dtb呢?

392377870 commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

你好我刚刚搜下t95这是什么电视剧吗? 如果可以方便提供下dtb吗?

我是用s905x-p212.dtb

Javebean commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

你好我刚刚搜下t95这是什么电视剧吗? 如果可以方便提供下dtb吗?

我是用s905x-p212.dtb

奇怪,我的B860AV2.1也是用的这个dtb,但是df -h 或者lsblk没有emmc分区。无法刷入emmc.

392377870 commented 1 year ago

实践证明b860av2.1能刷入emmc选t95

你好我刚刚搜下t95这是什么电视剧吗? 如果可以方便提供下dtb吗?

我是用s905x-p212.dtb

奇怪,我的B860AV2.1也是用的这个dtb,但是df -h 或者lsblk没有emmc分区。无法刷入emmc.

我是直接用armbian-install命令然后选择t95的代码刷入emmc

ours1505 commented 1 year ago

CM311-1 YST(M) 2+16G 100mbps/s

SOC:s905l3 使用meson-gxl-s905l2-x7-5g.dtb,u-boot-p212.bin,无显示,可以正常启动网卡,识别USB3.0设备,刷入EMMC。 刷入EMMC需要自定义设置,参考如下。 root@armbian:~#armbian-install [ STEPS ] Start install armbian to emmc... [ STEPS ] Start initializing the environment... [ INFO ] DEV_EMMC: [ /dev/mmcblk2 ] [ STEPS ] Start selecting device...

ID SOC MODEL DTB

101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb

102 s905d Phicomm-N1-(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb 103 s905x HG680P-&-TBee meson-gxl-s905x-p212.dtb . . . 518 s905x3 X96-Air-Q1000 meson-sm1-x96-max-plus-q2.dtb 519 s905x3 A95XF3-Air-1Gb meson-sm1-a95xf3-air-gbit.dtb 520 s905x3 A95XF3-Air-100Mb meson-sm1-a95xf3-air.dtb 0 Other Customize Enter-custom-dtb-name [ OPTIONS ] Please Input ID: 0 Please Input SoC Name: s905l3 Please Input DTB Name: meson-gxl-s905l2-x7-5g.dtb Please Input UBOOT_OVERLOAD Name: u-boot-p212.bin Please Input MAINLINE_UBOOT Name: u-boot.emmc Please Input ANDROID_UBOOT Name: uInitrd

老哥细讲,,,

whitcloudfly commented 1 year ago

 控制台输入安装命令,输入0进行自定义安装。按我以下参数输入就行了。 Please Input ID: 0  输入soc名称s905l3 Please Input SoC Name: s905l3 Please Input DTB Name: meson-gxl-s905l2-x7-5g.dtb  Please Input UBOOT_OVERLOAD Name: u-boot-p212.bin  Please Input MAINLINE_UBOOT Name: u-boot.emmc 

Please Input ANDROID_UBOOT Name: uInitrd

---原始邮件--- 发件人: @.> 发送时间: 2022年11月27日(周日) 下午2:11 收件人: @.>; 抄送: @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-armbian] cm211-1 S905l-3无法刷入 (Issue #118)

CM311-1 YST(M) 2+16G 100mbps/s

SOC:s905l3 使用meson-gxl-s905l2-x7-5g.dtb,u-boot-p212.bin,无显示,可以正常启动网卡,识别USB3.0设备,刷入EMMC。 刷入EMMC需要自定义设置,参考如下。 @.***:~#armbian-install [ STEPS ] Start install armbian to emmc... [ STEPS ] Start initializing the environment... [ INFO ] DEV_EMMC: [ /dev/mmcblk2 ] [ STEPS ] Start selecting device...

ID SOC MODEL DTB

101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb

102 s905d Phicomm-N1-(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb 103 s905x HG680P-&-TBee meson-gxl-s905x-p212.dtb . . . 518 s905x3 X96-Air-Q1000 meson-sm1-x96-max-plus-q2.dtb 519 s905x3 A95XF3-Air-1Gb meson-sm1-a95xf3-air-gbit.dtb 520 s905x3 A95XF3-Air-100Mb meson-sm1-a95xf3-air.dtb 0 Other Customize Enter-custom-dtb-name [ OPTIONS ] Please Input ID: 0 Please Input SoC Name: s905l3 Please Input DTB Name: meson-gxl-s905l2-x7-5g.dtb Please Input UBOOT_OVERLOAD Name: u-boot-p212.bin Please Input MAINLINE_UBOOT Name: u-boot.emmc Please Input ANDROID_UBOOT Name: uInitrd

老哥细讲,,,

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

qiurigao commented 1 year ago

有没有原帖,或者你汉化一下