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
6.04k stars 1.93k forks source link

请求适配emb-3531 #1444

Closed bbggoo closed 1 year ago

bbggoo commented 1 year ago

经过测试http://files.kos.org.cn/rockchip/am40/ 路径下

[Armbian_21.08.9_am40_focal_current_5.10.63.img.7z]的固件

(http://files.kos.org.cn/rockchip/am40/Armbian_21.08.9_am40_focal_current_5.10.63.img.7z) 可以正常启动,wifi认不出来。下面的jammy固件不可以启动。 卡在 [ 3.464090] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with vcc3v3-sys [ 3.467634] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected

然后发现应该是用nanopc t4固件改的。emb-3531测试了nanopc t4 的ARMbian固件,也同样卡在这个地方。 所以猜测emb-3531、AM40这俩应该基本一样,除了wifi/蓝牙。

链接里面有dtb,日期比较旧的和可以启动的固件日期接近,所以应该可以用。

wifi/蓝牙通过以下方式解决,运行apt install armbian-firmware-full并重启。型号:RTL8188ETV。 官方wiki http://android1.norco.com.cn:7070/index.php/EMB-3531

可以启动的固件提取了extlinux extlinux.zip

bbggoo commented 1 year ago

用上述可以启动的固件,串口里出错告警汇总。串口可以输出,不能输入。 “UART TX正常,但RX异常(应用层不能接收到数据)” 和这个帖子描述一样https://dev.t-firefly.com/thread-118452-1-1.html

GPT 0x3335db8 signature is wrong recovery gpt... GPT 0x3335db8 signature is wrong recovery gpt fail! Trust Addr:0x4000, 0x58334c42 No find bl30.bin No find bl32.bin

WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast

Bus dwc3: usb maximum-speed not found [ 0.000000] efi: UEFI not found. [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.010416] EFI services will not be available. [ 0.066837] DMI not present or invalid. [ 1.247783] reg-fixed-voltage vcc1v2-phy: Failed to register regulator: -517 [ 1.247945] reg-fixed-voltage vcc3v3-sys: Failed to register regulator: -517 [ 1.248301] reg-fixed-voltage vcc5v0-host-regulator: Failed to register regulator: -517

[ 2.618717] rockchip-usb2phy ff770000.syscon:usb2-phy@e460: failed to create phy [ 2.629877] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 2.629938] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 2.629972] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 2.630662] rockchip-pcie f8000000.pcie: no vpcie12v regulator found [ 2.630700] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found [ 2.630734] rockchip-pcie f8000000.pcie: supply vpcie1v8 not found, using dummy regulator [ 2.630959] rockchip-pcie f8000000.pcie: supply vpcie0v9 not found, using dummy regulator [ 3.186882] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout! [ 3.187653] rockchip-pcie: probe of f8000000.pcie failed with error -110 [ 3.194680] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 3.194708] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12 [ 3.196247] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 3.196273] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16 [ 3.201591] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled

[ 3.461927] spi-nor: probe of spi0.0 failed with error -2

[ 3.476932] rockchip-usb2phy ff770000.syscon:usb2-phy@e450: Requested PHY is disabled [ 3.480212] OF: graph: no port node found in /syscon@ff770000/usb2-phy@e450/otg-port

[ 3.584794] rockchip-usb2phy ff770000.syscon:usb2-phy@e450: Requested PHY is disabled

444.940992] watchdog: watchdog0: watchdog did not stop! [ 445.281240] xhci-hcd xhci-hcd.0.auto: Host halt failed, -110 [ 445.322726] xhci-hcd xhci-hcd.0.auto: Host halt failed, -110 [ 445.323566] xhci-hcd xhci-hcd.0.auto: Host controller not halted, aborting reset.

[ 3.634737] rk808 0-001b: failed to register 12 regulator

[ 3.735804] fan53555-regulator 0-0060: Failed to get chip ID! [ 3.738683] fan53555-regulator 8-0060: Failed to get chip ID!

[ 4.652012] rk808-regulator rk808-regulator: there is no dvs0 gpio [ 4.652593] rk808-regulator rk808-regulator: there is no dvs1 gpio

[ 5.562980] usb 7-1.3: device descriptor read/64, error -32 [ 5.850933] usb 7-1.3: device descriptor read/64, error -32 [ 6.138924] usb 7-1.3: new full-speed USB device number 4 using ehci-platform [ 6.318922] usb 7-1.3: device descriptor read/64, error -32 [ 6.431012] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes [ 6.606924] usb 7-1.3: device descriptor read/64, error -32 [ 6.715023] usb 7-1-port3: attempt power cycle [ 7.418922] usb 7-1.3: new full-speed USB device number 5 using ehci-platform [ 7.834921] usb 7-1.3: device not accepting address 5, error -32 [ 8.014919] usb 7-1.3: new full-speed USB device number 6 using ehci-platform [ 8.430919] usb 7-1.3: device not accepting address 6, error -32

[ 10.149546] EXT4-fs (mmcblk2p1): re-mounted. Opts: commit=600,errors=remount-ro

bbggoo commented 1 year ago

尝试用您编译的am40固件Armbian_23.05.0_rockchip_smart-am40_bullseye_6.1.27_server_2023.05.13.img,无法启动,串口启动信息如下: DDR Version 1.25 20210517 In Channel 0: DDR3, 933MHz Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB Channel 1: DDR3, 933MHz Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x20 ch 1 ddrconfig = 0x101, ddrsize = 0x20 pmugrf_os_reg[2] = 0x32817281, stride = 0x9 OUT DDR Version 1.25 20210517 In Channel 0: DDR3, 933MHz Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB Channel 1: DDR3, 933MHz Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB 256B stride ch 0 ddrconfig = 0x101, ddrsize = 0x20 ch 1 ddrconfig = 0x101, ddrsize = 0x20 pmugrf_os_reg[2] = 0x32817281, stride = 0x9 OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 329 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=15028MB FwPartOffset=2000 , 100000 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 SdmmcInit=0 1 StorageInit ok = 73495 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT part: 0, name: primary, start:0x8000, size:0x7f800 GPT part: 1, name: primary, start:0x88000, size:0x4ff800 no find partition:uboot. Trust Addr:0x4000, 0x58334c42 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x200000, size=0xd87a8 RunBL31 0x40000 @ 105275 us NOTICE: BL31: v1.3(release):845ee93 NOTICE: BL31: Built : 15:51:11, Jul 22 2020 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1196): pd status 3e INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9

U-Boot 2022.04-armbian (Feb 17 2023 - 23:32:52 +0000)

SoC: Rockchip rk3399 Reset cause: POR Model: FriendlyElec NanoPC-T4 DRAM: 2 GiB PMIC: RK808 Core: 280 devices, 26 uclasses, devicetree: separate MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial Model: FriendlyElec NanoPC-T4 Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 starting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus usb@fe900000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus usb@fe900000 for devices... 3 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device Card did not respond to voltage select! : -110 switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 3252 bytes read in 12 ms (264.6 KiB/s)

Executing script at 00500000

Boot script loaded from mmc 0 271 bytes read in 8 ms (32.2 KiB/s) 17992385 bytes read in 1716 ms (10 MiB/s) 33321472 bytes read in 3168 ms (10 MiB/s) 78697 bytes read in 25 ms (3 MiB/s) Failed to load '/dtb/rockchip/overlay/rk3399-fixup.scr' Unknown command 'kaslrseed' - try 'help' Moving Image from 0x2080000 to 0x2200000, end=42b0000

Loading init Ramdisk from Legacy Image at 06000000 ...

Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 17992321 Bytes = 17.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 Loading Ramdisk to 78de4000, end 79f0ca81 ... OK Loading Device Tree to 0000000078d68000, end 0000000078de3fff ... OK

Starting kernel ...

rongchuan17 commented 1 year ago

请问一下问题解决了吗?

bbggoo commented 1 year ago

请问一下问题解决了吗?

没有啊,你的那个dtb是第三方的吗