Closed frezbo closed 3 years ago
Version (k3OS / kernel) k3os version - 0.11.1
Architecture Raspberry Pi 4B - ARM64
u-boot -> grub2 -> k3os
Describe the bug K3OS fails to boot
To Reproduce
build.sh
Expected behavior K3OS boots successfully
Actual behavior K3os stuck after boot trying to determine boot mode
Additional context Providing logs below, grub menu screen removed from text logs (attaching image below)
U-Boot 2021.01 (Feb 20 2021 - 17:41:55 +0000) DRAM: 7.9 GiB RPI 4 Model B (0xd03114) MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0 Loading Environment from FAT... *** Warning - bad CRC, using default environment In: serial Out: vidconsole Err: vidconsole Net: eth0: ethernet@7d580000 PCIe BRCM: link up, 5.0 Gbps x1 (SSC) starting USB... Bus xhci_pci: Register 5000420 NbrPorts 5 Starting the controller USB XHCI 1.00 scanning bus xhci_pci for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... libfdt fdt_check_header(): FDT_ERR_BADMAGIC Card did not respond to voltage select! : -110 Scanning disk mmcnr@7e300000.blk... Disk mmcnr@7e300000.blk not ready Scanning disk emmc2@7e340000.blk... Found 3 disks No EFI system partition BootOrder not defined EFI boot manager: Cannot load any image Found EFI removable media binary efi/boot/bootaa64.efi 1811840 bytes read in 102 ms (16.9 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Booting /efi\boot\bootaa64.efi Welcome to GRUB! Booting `k3OS Current' EFI stub: Booting Linux Kernel... EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied EFI stub: Using DTB from configuration table EFI stub: Exiting boot services and installing virtual address map... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083] [ 0.000000] Linux version 5.4.0-48-generic (root@f0e580374ff7) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #52 SMP Sat Sep 26 08:26:59 UTC 2020 (Ubuntu 5.4.0-48.52-generic 5.4.60) [ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4 [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: EFI v2.80 by Das U-Boot [ 0.000000] efi: SMBIOS=0x39f34000 MEMRESERVE=0x224f3040 [ 0.000000] secureboot: Secure boot disabled [ 0.000000] Reserved memory: created CMA memory pool at 0x000000002c000000, size 64 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 0x0000000000000000-0x00000001ffffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x1feffff40-0x1ff002fff] [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000000000000-0x00000000ffffffff] [ 0.000000] Normal [mem 0x0000000100000000-0x00000001ffffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000039d6bfff] [ 0.000000] node 0: [mem 0x0000000039d6c000-0x0000000039d6dfff] [ 0.000000] node 0: [mem 0x0000000039d6e000-0x0000000039f2bfff] [ 0.000000] node 0: [mem 0x0000000039f2c000-0x0000000039f32fff] [ 0.000000] node 0: [mem 0x0000000039f33000-0x0000000039f33fff] [ 0.000000] node 0: [mem 0x0000000039f34000-0x0000000039f34fff] [ 0.000000] node 0: [mem 0x0000000039f35000-0x0000000039f36fff] [ 0.000000] node 0: [mem 0x0000000039f37000-0x0000000039f3afff] [ 0.000000] node 0: [mem 0x0000000039f3b000-0x0000000039f3bfff] [ 0.000000] node 0: [mem 0x0000000039f3c000-0x0000000039f40fff] [ 0.000000] node 0: [mem 0x0000000039f41000-0x0000000039f41fff] [ 0.000000] node 0: [mem 0x0000000039f42000-0x0000000039f42fff] [ 0.000000] node 0: [mem 0x0000000039f43000-0x0000000039f44fff] [ 0.000000] node 0: [mem 0x0000000039f45000-0x0000000039f45fff] [ 0.000000] node 0: [mem 0x0000000039f46000-0x000000003b34ffff] [ 0.000000] node 0: [mem 0x000000003b350000-0x000000003b35ffff] [ 0.000000] node 0: [mem 0x000000003b360000-0x000000003b3fffff] [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] node 0: [mem 0x0000000100000000-0x00000001ffffffff] [ 0.000000] Zeroed struct page in unavailable ranges: 37 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff] [ 0.000000] percpu: Embedded 33 pages/cpu s94296 r8192 d32680 u135168 [ 0.000000] Detected PIPT I-cache on CPU0 [ 0.000000] CPU features: detected: EL2 vector hardening [ 0.000000] CPU features: kernel page table isolation forced ON by KASLR [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2028544 [ 0.000000] Policy zone: Normal [ 0.000000] Kernel command line: BOOT_IMAGE=(loop0)/vmlinuz printk.devkmsg=on console=tty0 console=ttyAMA0,115200 [ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] software IO TLB: mapped [mem 0xf8000000-0xfc000000] (64MB) [ 0.000000] Memory: 7834728K/8245248K available (13756K kernel code, 2212K rwdata, 7140K rodata, 6912K init, 1115K bss, 344984K reserved, 65536K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x38/0x488 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 45931 entries in 180 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] 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] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000501] Console: colour dummy device 80x25 [ 0.001060] printk: console [tty0] enabled [ 0.001197] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000) [ 0.001224] pid_max: default: 32768 minimum: 301 [ 0.001389] LSM: Security Framework initializing [ 0.001428] Yama: becoming mindful. [ 0.001604] AppArmor: AppArmor initialized [ 0.001866] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.001978] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.002056] *** VALIDATE tmpfs *** [ 0.002750] *** VALIDATE proc *** [ 0.003073] *** VALIDATE cgroup1 *** [ 0.003090] *** VALIDATE cgroup2 *** [ 0.004301] ASID allocator initialised with 32768 entries [ 0.004466] rcu: Hierarchical SRCU implementation. [ 0.008982] Remapping and enabling EFI services. [ 0.009827] smp: Bringing up secondary CPUs ... [ 0.010563] Detected PIPT I-cache on CPU1 [ 0.010625] CPU1: Booted secondary processor 0x0000000001 [0x410fd083] [ 0.011433] Detected PIPT I-cache on CPU2 [ 0.011472] CPU2: Booted secondary processor 0x0000000002 [0x410fd083] [ 0.012410] Detected PIPT I-cache on CPU3 [ 0.012450] CPU3: Booted secondary processor 0x0000000003 [0x410fd083] [ 0.012558] smp: Brought up 1 node, 4 CPUs [ 0.012625] SMP: Total of 4 processors activated. [ 0.012640] CPU features: detected: 32-bit EL0 Support [ 0.012655] CPU features: detected: CRC32 instructions [ 0.066756] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching [ 0.066790] CPU: All CPU(s) started at EL2 [ 0.066884] alternatives: patching kernel code [ 0.069975] devtmpfs: initialized [ 0.080662] Registered cp15_barrier emulation handler [ 0.080701] Registered setend emulation handler [ 0.081147] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.081243] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.083516] pinctrl core: initialized pinctrl subsystem [ 0.084870] SMBIOS 3.0 present. [ 0.084894] DMI: /, BIOS 2021.01 02/20/2021 [ 0.085557] NET: Registered protocol family 16 [ 0.090823] DMA: preallocated 256 KiB pool for atomic allocations [ 0.090849] audit: initializing netlink subsys (disabled) [ 0.091076] audit: type=2000 audit(0.088:1): state=initialized audit_enabled=0 res=1 [ 0.092856] cpuidle: using governor ladder [ 0.092893] cpuidle: using governor menu [ 0.093096] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.094875] Serial: AMBA PL011 UART driver [ 0.116264] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.116297] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.116312] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.116328] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 0.124382] fbcon: Taking over console [ 0.124472] ACPI: Interpreter disabled. [ 0.125467] iommu: Default domain type: Translated [ 0.126952] SCSI subsystem initialized [ 0.127443] vgaarb: loaded [ 0.127646] usbcore: registered new interface driver usbfs [ 0.127708] usbcore: registered new interface driver hub [ 0.127805] usbcore: registered new device driver usb [ 0.128194] pps_core: LinuxPPS API ver. 1 registered [ 0.128208] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.128238] PTP clock support registered [ 0.128507] EDAC MC: Ver: 3.0.0 [ 0.129159] Registered efivars operations [ 0.130627] NetLabel: Initializing [ 0.130644] NetLabel: domain hash size = 128 [ 0.130655] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.130734] NetLabel: unlabeled traffic allowed by default [ 0.131438] clocksource: Switched to clocksource arch_sys_counter [ 0.209620] *** VALIDATE bpf *** [ 0.210047] VFS: Disk quotas dquot_6.6.0 [ 0.210156] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.210295] *** VALIDATE ramfs *** [ 0.210323] *** VALIDATE hugetlbfs *** [ 0.210982] AppArmor: AppArmor Filesystem Enabled [ 0.211238] simple-framebuffer 3eaf5000.framebuffer: framebuffer at 0x3eaf5000, 0x103000 bytes, mapped to 0x(____ptrval____) [ 0.211266] simple-framebuffer 3eaf5000.framebuffer: format=a8r8g8b8, mode=592x448x32, linelength=2368 [ 0.211862] Console: switching to colour frame buffer device 74x28 [ 0.214729] simple-framebuffer 3eaf5000.framebuffer: fb0: simplefb registered! [ 0.215041] pnp: PnP ACPI: disabled [ 0.226112] thermal_sys: Registered thermal governor 'fair_share' [ 0.226117] thermal_sys: Registered thermal governor 'bang_bang' [ 0.228092] thermal_sys: Registered thermal governor 'step_wise' [ 0.230000] thermal_sys: Registered thermal governor 'user_space' [ 0.231886] thermal_sys: Registered thermal governor 'power_allocator' [ 0.234277] NET: Registered protocol family 2 [ 0.238738] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear) [ 0.242897] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.248006] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear) [ 0.252830] TCP: Hash tables configured (established 65536 bind 65536) [ 0.255388] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.259762] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear) [ 0.264327] NET: Registered protocol family 1 [ 0.266519] NET: Registered protocol family 44 [ 0.268665] PCI: CLS 0 bytes, default 64 [ 0.271054] Trying to unpack rootfs image as initramfs... [ 4.326815] Freeing initrd memory: 87184K [ 4.329977] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 4.334199] kvm [1]: IPA Size Limit: 44bits [ 4.337411] kvm [1]: vgic interrupt IRQ1 [ 4.339537] kvm [1]: Hyp mode initialized successfully [ 4.343152] Initialise system trusted keyrings [ 4.345167] Key type blacklist registered [ 4.347326] workingset: timestamp_bits=40 max_order=21 bucket_order=0 [ 4.356041] zbud: loaded [ 4.360169] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 4.363349] fuse: init (API version 7.31) [ 4.365599] *** VALIDATE fuse *** [ 4.367680] *** VALIDATE fuse *** [ 4.370223] Platform Keyring initialized [ 4.394387] Key type asymmetric registered [ 4.396297] Asymmetric key parser 'x509' registered [ 4.398200] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243) [ 4.402079] io scheduler mq-deadline registered [ 4.411009] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 4.417607] efifb: probing for efifb [ 4.419461] efifb: No BGRT, not showing boot graphics [ 4.421243] efifb: framebuffer at 0x3eaf5000, using 1036k, total 1036k [ 4.423107] efifb: mode is 592x448x32, linelength=2368, pages=1 [ 4.424990] efifb: scrolling: redraw [ 4.426830] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0 [ 4.428726] fb0: switching to EFI VGA from simple [ 4.430860] Console: switching to colour dummy device 80x25 [ 4.431466] Console: switching to colour frame buffer device 74x28 [ 4.434319] fb0: EFI VGA frame buffer device [ 4.443109] bcm2835-dma fe007000.dma: Unable to set DMA mask [ 4.443235] bcm2835-dma: probe of fe007000.dma failed with error -5 [ 4.448354] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 4.460083] msm_serial: driver initialized [ 4.463755] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 4.476515] loop: module loaded [ 4.479368] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 4.485168] libphy: Fixed MDIO Bus: probed [ 4.487158] tun: Universal TUN/TAP device driver, 1.6 [ 4.490229] PPP generic driver version 2.4.2 [ 4.492689] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.494767] ehci-pci: EHCI PCI platform driver [ 4.496861] ehci-orion: EHCI orion driver [ 4.498930] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.500961] ohci-pci: OHCI PCI platform driver [ 4.502967] uhci_hcd: USB Universal Host Controller Interface driver [ 4.505392] mousedev: PS/2 mouse device common for all mice [ 4.508590] i2c /dev entries driver [ 4.512160] device-mapper: uevent: version 1.0.3 [ 4.514483] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com [ 4.519336] ledtrig-cpu: registered to indicate activity on CPUs [ 4.521922] EFI Variables Facility v0.08 2004-May-17 [ 4.525233] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 4.528829] drop_monitor: Initializing network drop monitor service [ 4.531851] NET: Registered protocol family 10 [ 4.536685] Segment Routing with IPv6 [ 4.541161] bpfilter: Loaded bpfilter_umh pid 115 [ 4.543522] NET: Registered protocol family 17 [ 4.545755] Key type dns_resolver registered [ 4.548277] registered taskstats version 1 [ 4.550295] Loading compiled-in X.509 certificates [ 4.555661] Loaded X.509 cert 'Build time autogenerated kernel key: 8dd8d0f07449ea9420f8e618e2bfd432a44da2c4' [ 4.559770] zswap: loaded using pool lzo/zbud [ 4.562013] Key type ._fscrypt registered [ 4.563970] Key type .fscrypt registered [ 4.567503] Key type big_key registered [ 4.570037] Key type encrypted registered [ 4.571911] AppArmor: AppArmor sha1 policy hashing enabled [ 4.573910] ima: No TPM chip found, activating TPM-bypass! [ 4.575828] ima: Allocated hash algorithm: sha1 [ 4.577689] ima: No architecture policies found [ 4.579567] evm: Initialising EVM extended attributes: [ 4.581365] evm: security.selinux [ 4.583136] evm: security.SMACK64 [ 4.584881] evm: security.SMACK64EXEC [ 4.586570] evm: security.SMACK64TRANSMUTE [ 4.588200] evm: security.SMACK64MMAP [ 4.589750] evm: security.apparmor [ 4.591239] evm: security.ima [ 4.592684] evm: security.capability [ 4.594075] evm: HMAC attrs: 0x1 [ 4.600771] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 13, base_baud = 0) is a PL011 rev2 [ 5.924741] printk: console [ttyAMA0] enabled [ 5.932644] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-02-25 12:10 [ 5.946666] hctosys: unable to open rtc device (rtc0) [ 5.954205] uart-pl011 fe201000.serial: no DMA platform data [ 5.975075] Freeing unused kernel memory: 6912K [ 6.046106] Checked W+X mappings: passed, no W+X pages found [ 6.053309] Run /init as init process * Welcome to k3OS v0.11.1 chpasswd: password for 'rancher' changed [ 9.315746] sdhci: Secure Digital Host Controller Interface driver [ 9.323562] sdhci: Copyright(c) Pierre Ossman [ 9.334149] sdhci-pltfm: SDHCI platform and OF driver helper [ 9.375623] mmc0: SDHCI controller on fe300000.mmcnr [fe300000.mmcnr] using PIO [ 9.402358] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 9.411321] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.420297] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.430459] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 9.439315] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.504763] random: fast init done [ 9.513273] mmc0: new high speed SDIO card at address 0001 [ 9.651633] usb_phy_generic phy: phy supply vcc not found, using dummy regulator [ 9.674748] raspberrypi-clk raspberrypi-clk: CPU frequency range: min 600000000, max 1500000000 [ 9.907237] mmc1: Failed to set 32-bit DMA mask. [ 9.913894] mmc1: No suitable DMA available - falling back to PIO [ 9.959564] mmc1: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using PIO 1970/01/01 00:00:10 Failed to run hwclock: exit status 1 * Bootstrapped Couldn't determine boot mode, waiting 30 seconds... Couldn't determine boot mode, waiting 29 seconds... Couldn't determine boot mode, waiting 28 seconds... Couldn't determine boot mode, waiting 27 seconds... Couldn't determine boot mode, waiting 26 seconds... Couldn't determine boot mode, waiting 25 seconds... Couldn't determine boot mode, waiting 24 seconds... Couldn't determine boot mode, waiting 23 seconds... Couldn't determine boot mode, waiting 22 seconds... Couldn't determine boot mode, waiting 21 seconds... [ 20.191441] mmc1: Timeout waiting for hardware cmd interrupt. [ 20.199179] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 20.207571] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002 [ 20.215953] mmc1: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 20.224302] mmc1: sdhci: Argument: 0x00000c00 | Trn mode: 0x00000000 [ 20.232613] mmc1: sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001 [ 20.240896] mmc1: sdhci: Power: 0x00000000 | Blk gap: 0x00000080 [ 20.249152] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00007d07 [ 20.257363] mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 [ 20.265542] mmc1: sdhci: Int enab: 0x00ff1003 | Sig enab: 0x00ff1003 [ 20.273701] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 [ 20.281822] mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525 [ 20.289903] mmc1: sdhci: Cmd: 0x0000341a | Max curr: 0x00080008 [ 20.297950] mmc1: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 20.306032] mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 20.314137] mmc1: sdhci: Host ctl2: 0x00000000 Couldn't determine boot mode, waiting 20 [ 20.320234] mmc1: sdhci: ============================================ seconds... Couldn't determine boot mode, waiting 19 seconds... Couldn't determine boot mode, waiting 18 seconds... Couldn't determine boot mode, waiting 17 seconds... Couldn't determine boot mode, waiting 16 seconds... Couldn't determine boot mode, waiting 15 seconds... Couldn't determine boot mode, waiting 14 seconds... Couldn't determine boot mode, waiting 13 seconds... Couldn't determine boot mode, waiting 12 seconds... Couldn't determine boot mode, waiting 11 seconds... [ 30.431442] mmc1: Timeout waiting for hardware cmd interrupt. [ 30.438968] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 30.447171] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002 [ 30.455354] mmc1: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 30.463476] mmc1: sdhci: Argument: 0x80000c08 | Trn mode: 0x00000000 [ 30.471543] mmc1: sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001 [ 30.479559] mmc1: sdhci: Power: 0x00000000 | Blk gap: 0x00000080 [ 30.487554] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00007d07 [ 30.495524] mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 Couldn't determine boot mode, wai[ 30.503448] mmc1: sdhci: Int enab: 0x00ff1003 | Sig enab: 0x00ff1003 ting 10 seconds... [ 30.513451] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 [ 30.521577] mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525 [ 30.529385] mmc1: sdhci: Cmd: 0x0000341a | Max curr: 0x00080008 [ 30.537170] mmc1: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 30.544965] mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 30.552738] mmc1: sdhci: Host ctl2: 0x00000000 [ 30.558488] mmc1: sdhci: ============================================ Couldn't determine boot mode, waiting 9 seconds... Couldn't determine boot mode, waiting 8 seconds... Couldn't determine boot mode, waiting 7 seconds... Couldn't determine boot mode, waiting 6 seconds... Couldn't determine boot mode, waiting 5 seconds... Couldn't determine boot mode, waiting 4 seconds... Couldn't determine boot mode, waiting 3 seconds... Couldn't determine boot mode, waiting 2 seconds... Couldn't determine boot mode, waiting 1 seconds... [ 40.671440] mmc1: Timeout waiting for hardware cmd interrupt. [ 40.678616] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 40.686503] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00001002 [ 40.694406] mmc1: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 40.702294] mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000000 [ 40.710162] mmc1: sdhci: Present: 0x1fff0001 | Host ctl: 0x00000001 [ 40.718031] mmc1: sdhci: Power: 0x00000000 | Blk gap: 0x00000080 [ 40.725897] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00007d07 [ 40.733785] mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 [ 40.741660] mmc1: sdhci: Int enab: 0x00ff1003 | Sig enab: 0x00ff1003 [ 40.749514] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000 [ 40.757335] mmc1: sdhci: Caps: 0x45ee6432 | Caps_1: 0x0000a525 [ 40.765135] mmc1: sdhci: Cmd: 0x00000000 | Max curr: 0x00080008 [ 40.772913] mmc1: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 40.780692] mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 40.788448] mmc1: sdhci: Host ctl2: 0x00000000 [ 40.794178] mmc1: sdhci: ============================================ [FATAL] Failed to determine boot mode (did you forget to set k3os.mode?) ERROR Something went wrong, run with cmdline k3os.debug for more logging Dropping to shell bash: cannot set terminal process group (-1): Not a tty bash: no job control in this shell
Try using picl-k3os-image-generator 🎉🥳
@carlocorradini Thanks :heart: , i believe I based my scripts of that repo. Anyways this is no longer an issue for me as I have moved onto other solutions
Version (k3OS / kernel) k3os version - 0.11.1
Architecture Raspberry Pi 4B - ARM64
u-boot -> grub2 -> k3os
Describe the bug K3OS fails to boot
To Reproduce
build.sh
script at k3os-arm64Expected behavior K3OS boots successfully
Actual behavior K3os stuck after boot trying to determine boot mode
Additional context Providing logs below, grub menu screen removed from text logs (attaching image below)