armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
3.99k stars 2.24k forks source link

khadas-vim2 (s912) wont boot after current kernel updated to 6.1.66, hangs at mounting /boot #6029

Closed rossbcan closed 9 months ago

rossbcan commented 9 months ago

What happened?

Successful boot, like previous 6.1.{64,65} kernels

last thing I see on console (during first and subsequent boots) is: "systemd-fsck@dev-disk-by\x2duuid-aA58\x2dD037.service (UUID is correct) sometimes this is followed by "mounting /boot" and perpetual hang

NOTE: I modified the khadas-vim2 config for FAT bootfs and size.

None of my build settinges or config changed between functioning with previous and latest kernels.

How to reproduce?

./compile.sh build BOARD=khadas-vim2 BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=no RELEASE=jammy KERNEL_GIT=shallow

Build log: https://paste.next.armbian.com/ibulawabon

Branch

main (main development branch)

On which host OS are you observing this problem?

Jammy

Relevant log URL

https://paste.next.armbian.com/ibulawabon

Code of Conduct

github-actions[bot] commented 9 months ago

Jira ticket: AR-1992

viraniac commented 9 months ago

From the logs, it looks like you have made a lot of changes. Without looking at them, its hard to tell what could have caused the issue. I would suggest you to add verbosity=7 and extraargs=debug to your boot/armbianEnv.txt file to get more detailed output of where it hangs.

PS: I don't have the board so I can't do any testing on my end

igorpecovnik commented 9 months ago

Thankfully we have automated test system which proves there is nothing wrong at our side: https://github.com/armbian/os?tab=readme-ov-file#khadas-vim2

igorpecovnik commented 9 months ago

If this is Khadas hardware and you have been changing to FAT boot and change other things, verify if boot scripts are compatible with the change. They should be, but who knows. Are you sure you are using boot loader from SD card and not the one for internal media? But problems could also be hidden deep in the boot loader code (especially if this is some random act) which automatically means several hours of debugging. That is something you can't even ask for. From Armbian perspective, building and running of this hardware works perfectly. IMO best way is to stick to defaults. Closing.

You can try to find people that knows more on forums, but its a long shot.

rossbcan commented 9 months ago

after verbosity=7 and extraargs=debug to boot/armbianEnv.txt ...

[ TIME ] Timed out waiting for device /dev/disk/by-uuid/1A58-D037 [DEPEND] Dependency failed for /boot [DEPEND] Dependency failed for Local File Systems [DEPEND] Dependency failed for File System Check on /dev/disk/by-uuid/1A58-D037

boot (with verb, debug changes) proceeded to emergency mode, "journalctl -xb" hangs, ^C, back to shell prompt

fdisk -l /dev/sda - partitions, UUIDS OK, rootfs mounted "mount /dev/sda1 /boot" hangs

dmesg contains: FAT-fs (sda1) IO charset iso-8859-1 not found Fails too early in boot process for syslog existence.

added: iso_8859-1 to /etc/modules, rebooted, failed same symptoms oddity (after fresh reboot to emergency mode): "mount /dev/sda1 /boot" hangs (nothing in dmesg) "mount -a" mounts /dev/sda1 to /boot properly

I am confused why iso_8859-1.ko is not loaded on demand and must be specified in /etc/modules

I am considering (kconfig) making iso-8859-1 builtin, to eliminate parsing /etc/modules boot timing issues. Good idea? It may solve issue, but, I believe this should work with standard build.

As to my customizations, Unrelated to this issue: patches to add openvfd and a few dtb's for the hardware I am using (Tanix TX9 Pro, TX92, both S912). Unrelated, working on Rockchip H96 Max V56 (working) and V58 (not started yet, just received hardware)

Any other debug suggestions? Thanks; Bill

igorpecovnik commented 9 months ago

Any other debug suggestions?

https://forum.armbian.com/ not here. This is build framework ticketing system and this issue is unrelated. Please understand and respect our attention.