-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TQC-A01 无法启动问题 #1128
Comments
在freeBSD得wiki上看到了一个保留GPT的方法: |
我刚才在Allwinner H6 Vplus上测试,用extlinux/extlinux.conf可以启动。但是用armbianEnv.txt无法启动(不过这个文件存在也不影响启动) 9e27074 dtb路径我也是中午发现的,1小时前已经更正了,这个路径错误坑了一周。 |
这个是目前的状况,进内核了,但是mmc炸了。还要调一调dts。 我用的u-boot版本有些老,bootz命令会提示未知命令,所以暂时先用extlinux.conf的启动方案,等能够进系统了再考虑更新u-boot。 |
armbian在apt 时,是什么会改/boot/boot.cmd呢?生成一个新的 。还会改了banner的文字,成了之前固件底包的名字,他新生成的这个boot.cmd必须使用extlinux.conf启动 amlogic-s9xxx-armbian/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix Lines 47 to 49 in e2d3f7e
这个armbian-fix好像没有在初始化中执行,这几个包没有被删了 |
在database.conf里面怎么填可以让内核停留在5.10?貌似 TQC这个emmc在5.15往后的内核上有初始化问题。 |
你使用5.10.y可以正常工作? |
5.15和6.1测试都不能初始化mmc,5.10暂时因为加载问题测试不了,应该多半没问题。 |
加好了, https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_jammy_03.03.0929 顺便添加了extlinux.conf, 我给你打包个,你试试 |
测试启动流程无误。 |
给其他为H6适配的人: |
这个deb会在apt更新时重新生成/boot/boot.cmd导致无法启动,需要移除了。 amlogic-s9xxx-armbian/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix Lines 51 to 68 in 479a06c
我先在armbian-fix里移除这个包,以后有更好的办法,在打包时就移除了,省的导致无法重启。 |
apt hold一下?应该就可以了 |
我怕用户第一次启动后,直接apt-update upgrade,这个就马上更新boot.cmd。必须在用户第一次正常启动系统时就确保移除或者锁定了这个包。 我得给armbian-fix加个日志,看看是不是在初始化时全部执行完成了,我感觉部分失败后打断执行了? 锁定的包,不会老在欢迎界面显示有1个可以更新的包吧,提示用户更新,提示包锁定了怎么解锁,然后用户按提示给升级了,启动不了了。。。 |
30 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded. https://paste.armbian.com/aloxuvokol.yaml 这个包涵盖的内容挺多,不知道会不会炸了 |
锁定不能解决问题,依然会更新。这只是禁止了他更新,但是他依然工作。 |
试一试在/etc/apt/preferences.d/目录下新建一个.pref后缀的文件,里面写
原理参见APT手册 这个方法会直接阻止这个包的安装。 或者自己重新打包这个deb,把版本号改的很高,在镜像编译的时候就装进去,后续更新就不会更新它了。 |
更新U-Boot和生成boot.cmd的操作都是写在deb包的安装脚本里面的,只要装这两个包就会更新。 |
https://paste.armbian.com/aloxuvokol.yaml 你看看这个,一个包安装了几十项内容。 |
都是一些对已有项的更新,最要命的还是那个boot.cmd,干脆舍弃算了? |
现在锁定了它的更新,在打包时改了操作的脚本,如果把他的u-boot和boot.cmd的更新脚本注释了,是不是就不会被更改了? 之前注释了一些这个包里的每周广告提示、自动调整分区等操作。这个包是个恶梦。 |
是这样的。 Ubuntu的广告都打到APT里面去了,属实难受。 |
Lines 706 to 719 in e7205da
amlogic-s9xxx-armbian/build-armbian/armbian-files/common-files/usr/sbin/armbian-fix Lines 65 to 78 in e7205da
今天移走了一些与安装/更新 u-boot,boot.cmd, initrd.img 相关的脚本,目前测试启动设置文件不会被修改了。以后根据 armbian-bsp-cli-* 包的变化再及时更新这些限制吧。 |
最新release的固件又不能加载内核了。使用armbianenv或者extlinux.conf均无法正常加载。 U-Boot SPL 2021.04-armbian (Jun 19 2021 - 13:59:15 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.2(debug):a04808c-dirty
NOTICE: BL31: Built : 13:58:55, Jun 19 2021
NOTICE: BL31: Detected Allwinner H6 SoC (1728)
NOTICE: BL31: Found U-Boot DTB at 0xc085eb8, model: OrangePi 3
INFO: ARM GICv2 driver initialized
NOTICE: PMIC: Probing AXP805
NOTICE: PMIC: AXP805 detected
INFO: BL31: Platform setup done
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: CPU workaround for 855873 was applied
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x4a000000
INFO: SPSR = 0x3c9
U-Boot 2021.04-armbian (Jun 19 2021 - 13:59:15 +0000) Allwinner Technology
CPU: Allwinner H6 (SUN50I)
Model: OrangePi 3
DRAM: 1 GiB
MMC: mmc@4020000: 0, mmc@4021000: 2, mmc@4022000: 1
Loading Environment from FAT... Unable to use mmc 1:0... In: serial@5000000
Out: serial@5000000
Err: serial@5000000
Net: No ethernet found.
starting USB...
Bus usb@5101000: USB EHCI 1.00
Bus usb@5101400: USB OHCI 1.0
Bus usb@5311000: USB EHCI 1.00
Bus usb@5311400: USB OHCI 1.0
scanning bus usb@5101000 for devices... 1 USB Device(s) found
scanning bus usb@5101400 for devices... 1 USB Device(s) found
scanning bus usb@5311000 for devices... 1 USB Device(s) found
scanning bus usb@5311400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
3259 bytes read in 4 ms (794.9 KiB/s)
## Executing script at 4fc00000
U-boot loaded from SD
Boot script loaded from mmc
263 bytes read in 2 ms (127.9 KiB/s)
35402 bytes read in 14 ms (2.4 MiB/s)
4191 bytes read in 18 ms (226.6 KiB/s)
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)
## Executing script at 45000000
19223509 bytes read in 1967 ms (9.3 MiB/s)
31046144 bytes read in 3174 ms (9.3 MiB/s)
Moving Image from 0x40080000 to 0x40200000, end=42080000
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 19223445 Bytes = 18.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
Loading Ramdisk to 48daa000, end 49fff395 ... OK
Loading Device Tree to 0000000048d39000, end 0000000048da9fff ... OK
Starting kernel ... 然后就停在这里了。 |
我测试了下手里的设备vplus,用6.1.21正常。 昨晚我突然想到这个潜在的问题,更新内核会导致没有dts的那几个盒子无法启动。昨天buglloc添加的r5s也没有dts,我把更新内核时删除dtb去掉了,只删除ln创建的软链接,这样dtb/*/目录下的文件不删除,避免内核里没有dtb。 |
检查过了,dtb正常的。 我是直接烧录到tf卡启动的,不是update上来的 |
你用之前的旧版内核测试可以启动吗? |
还没测试。 平常课很多,只能等周末再试了。 |
Device Information | 设备信息
Armbian Version | 系统版本
U-Boot 日志
不是很明白为什么dtb加载会错误。这个U-boot借的orange pi 3的,用orange pi 3 的dtb必然不能启动,要让他加载自定义的dtb才行。
好像加载dtb的路径不太对啊
这两个报错可以通过修改dtb目录进行修复。
目前应该是启动内核了(指示灯亮了),但是没有任何日志输出。
The text was updated successfully, but these errors were encountered: