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.92k stars 1.9k forks source link

求浪潮ipbs9506,可以正常使用的dtb配置 #2405

Closed VMCoud closed 2 months ago

VMCoud commented 3 months ago

Device Information | 设备信息



**Armbian Version | 系统版本**
 - Kernel Version: [e.g. 5.15.100]6.6.36
 - Release: [e.g. jammy/bullseye]Armbian_24.8.0_amlogic_s905l3_noble_6.6.36_server_2024.07.01.img.gz

**Describe the bug | 问题描述**
All issues will only remain open for one week to prioritize resolving them.
After that period, they will be closed but can still continue to be discussed in the thread.
所有的问题都只保留一周的开启状态供重点关注解决,超时将关闭,但仍然可以长期继续跟帖讨论。

Please provide a detailed description of the issue and, if necessary, attach a screenshot.
详细描述问题,并在必要时附上屏幕截图。
![微信图片_20240703213935](https://github.com/ophub/amlogic-s9xxx-armbian/assets/59264435/b28dc757-32e3-4f8b-a68a-a9f02bc8d1f2)
![image](https://github.com/ophub/amlogic-s9xxx-armbian/assets/59264435/3f2e5149-e524-47e4-a695-0eb57b9efbe1)
VMCoud commented 3 months ago

meson-gxl-s905l3b-m302a.dtb 用这个会重复重启花屏

VMCoud commented 2 months ago

[ 215.690493] systemd-journald[683]: Failed to rotate /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Read-only file system
[ 215.729169] systemd-journald[683]: Data hash table of /var/log/journal/38e590dce46841e699294335c89c8022/system.journal has a fill level at 79.4 (3614 of 4551 items, 2621440 file size, 725 bytes per hash table item), suggesting rotation.
[ 215.790551] systemd-journald[683]: /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 215.834248] systemd-journald[683]: Failed to rotate /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Read-only file system
[ 215.873054] systemd-journald[683]: Data hash table of /var/log/journal/38e590dce46841e699294335c89c8022/system.journal has a fill level at 79.4 (3615 of 4551 items, 2621440 file size, 725 bytes per hash table item), suggesting rotation.
[ 215.934333] systemd-journald[683]: /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 215.978020] systemd-journald[683]: Failed to rotate /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Read-only file system
[ 216.016758] systemd-journald[683]: Data hash table of /var/log/journal/38e590dce46841e699294335c89c8022/system.journal has a fill level at 79.5 (3616 of 4551 items, 2621440 file size, 724 bytes per hash table item), suggesting rotation.
[ 216.078104] systemd-journald[683]: /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 216.121874] systemd-journald[683]: Failed to rotate /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Read-only file system
[ 216.160462] systemd-journald[683]: Data hash table of /var/log/journal/38e590dce46841e699294335c89c8022/system.journal has a fill level at 79.5 (3617 of 4551 items, 2621440 file size, 724 bytes per hash table item), suggesting rotation.
[ 216.221811] systemd-journald[683]: /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Journal header limits reached or header out-of-date, rotating.
[ 216.265581] systemd-journald[683]: Failed to rotate /var/log/journal/38e590dce46841e699294335c89c8022/system.journal: Read-only file system
VMCoud commented 2 months ago

@ophub 使用 meson-gxl-s905l2-x7-5g.dtb 和 u-boot-s905x-s912.bin 可以启动armbian 但会报以上错误

VMCoud commented 2 months ago

session2.log 启动日志

VMCoud commented 2 months ago


1;-1fdone.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -y -C0 /dev/sda2 
e2fsck 1.47.0 (5-Feb-2023)
ROOTFS: recovering journal
GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 43047

BL2 Built : 13:36:55, Jun 22 2020. 
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 0, adc=7
set vcck to 1070 mv
set vddee to 1070 mv
CARD_3 high, old board
CPU clk: 1200MHz

DDR3 chl: Rank0+1 @ 792MHz - FAIL
DDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 25 00 4b 3a 19 5b 21 00 43 3f 1e 60 22 00 45 40 22 5e 20 00 41 3d 1c 5f 612   - PASS

Rank0: 1024MB(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: 0x00002400
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x0007b000
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 c b4 58 a0 0 c5 not ES chip
[0.578023 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

U-Boot 2015.01 (Mar 29 2021 - 17:09:00)

DRAM:  1 GiB
Relocation Offset is: 36e8c000
this uboot is for hw_1_8, set GPIODV_24gpio: pin GPIODV_24 (gpio 43) value is 1
gpio: pin GPIOZ_14 (gpio 73) value is 1
register usb cfg[0][1] = 0000000037f5bc10
[CANVAS]canvas init
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
vpp: vpp_init
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC:   aml_priv->desc_buf = 0x0000000033e7cc00
aml_priv->desc_buf = 0x0000000033e7ef20
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_init] mmc init success
dtb magic 08088b1f
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 0
      Multi dtb tool version: v2 .
      Support 10 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p211   vari: 1g
        dtb 1 soc: gxl   plat: p211   vari: 2g
        dtb 2 soc: gxlx   plat: p261   vari: 1g
        dtb 3 soc: gxlx   plat: p261   vari: 2g
        dtb 4 soc: gxlx   plat: p265   vari: 1g
        dtb 5 soc: gxlx   plat: p265   vari: 2g
        dtb 6 soc: gxlx2   plat: p291   vari: 1g
        dtb 7 soc: gxlx2   plat: p291   vari: 2g
        dtb 8 soc: gxlx2   plat: p295   vari: 1g
        dtb 9 soc: gxlx2   plat: p295   vari: 2g
      Find match dtb: 6
start dts,buffer=0000000033e81750,dt_addr=0000000033e81750
      Amlogic multi-dtb tool
      Single dtb detected
parts: 13
00:      logo   0000000002000000 1
01:  recovery   0000000002000000 1
02:       rsv   0000000000800000 1
03:       tee   0000000000800000 1
04:     crypt   0000000002000000 1
05:      misc   0000000002000000 1
06: instaboot   0000000020000000 1
07:      boot   0000000002000000 1
08:    system   0000000040000000 1
09:     cache   000000002d000000 2
10:    params   0000000004000000 2
11: bootfiles   000000002d000000 2
12:      data   ffffffffffffffff 4
eMMC/TSD partition table have been checked OK!
check pattern success
mmc env offset: 0x34400000 
In:    serial
Out:   serial
Err:   serial
board id is : 0
hpd_state=1
[1080p60hz] is invalid for cvbs.
set hdmitx VIC = 16
config HPLL = 2970
HPLL: 0xc000027b
config HPLL done
j = 4  vid_clk_div = 1
hdmitx: set enc for VIC: 16
HDMITX-DWC addr=0x10004006 rd_data=0x40
Error: HDMITX-DWC exp_data=0xff mask=0x9f
hdmitx phy setting done
div40 = 0
hdmtix: set audio
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-924: calc 9f88d8d1, store 9f88d8d1
_verify_dtb_checksum()-924: calc 9f88d8d1, store 9f88d8d1
dtb_read()-1046: total valid 2
dtb_read()-1113: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 0
      Multi dtb tool version: v2 .
      Support 10 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p211   vari: 1g
        dtb 1 soc: gxl   plat: p211   vari: 2g
        dtb 2 soc: gxlx   plat: p261   vari: 1g
        dtb 3 soc: gxlx   plat: p261   vari: 2g
        dtb 4 soc: gxlx   plat: p265   vari: 1g
        dtb 5 soc: gxlx   plat: p265   vari: 2g
        dtb 6 soc: gxlx2   plat: p291   vari: 1g
        dtb 7 soc: gxlx2   plat: p291   vari: 2g
        dtb 8 soc: gxlx2   plat: p295   vari: 1g
        dtb 9 soc: gxlx2   plat: p295   vari: 2g
      Find match dtb: 6
wipe_data=successfulSecd
wipe_cache=successful
Err imgread(L340):Logo header err.
There is no valid bmp file at the given address
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[ch_code] not programed yet
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 740
key1 = 7d82dd22
key2 = 7e81dd22
key3 = 728ddd22
time_out = 7a120
ir init
irkey - irkey key_value1 key_value2 key_value3 time_value

Usage:
irkey 
Hit any key to stop autoboot:  0 
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... init_part() 278: PART_TYPE_DOS
1 Storage Device(s) found
reading s905_autoscript
1351 bytes read in 23 ms (56.6 KiB/s)
## Executing script at 01020000
start amlogic old u-boot
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
** Bad device mmc 0 **
reading boot_android
** Unable to read file boot_android **
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
** Bad device mmc 0 **
reading u-boot.ext
646455 bytes read in 373 ms (1.7 MiB/s)
## Starting application at 0x01000000 ...
[BL31]: tee size: 0
[BL31]: tee size: 0
ophub commented 2 months ago

文件系统成了只读模式了,导致无法写入新的日志数据。

可以尝试以下几种方法:

  1. 检查文件系统的可用空间,确保没有空间不足的问题。

  2. 尝试重新挂载文件系统为读写模式,可以使用以下命令进行尝试: mount -o remount,rw /

  3. 确保文件系统没有损坏,可以运行文件系统检查命令,如: fsck /dev/sda1