Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expipiplus1/c7cf891ed27e69e15f4d6d9d87c50f69 to your computer and use it in GitHub Desktop.
Save expipiplus1/c7cf891ed27e69e15f4d6d9d87c50f69 to your computer and use it in GitHub Desktop.
$ qemu-system-aarch64 -machine virt,highmem=off -bios /nix/store/il3mvs5j09rp7bja9j26ra746ll121qp-uboot-qemu_arm64_defconfig-2018.05/u-boot.bin -drive if=none,file=rpi.qcow2,id=mydisk -device ich9-ahci,id=ahci -device ide-drive,drive=mydisk,bus=ahci.0 -netdev user,id=net0 -device virtio-net-pci,netdev=net0 -nographic -smp 4 -m 2G -cpu cortex-a57
U-Boot 2018.05 (May 07 2018 - 15:32:36 +0000)
DRAM: 2 GiB
In: pl011@9000000
Out: pl011@9000000
Err: pl011@9000000
Net: No ethernet found.
Hit any key to stop autoboot: 0
scanning bus for devices...
Target spinup took 0 ms.
SATA link 1 timeout.
SATA link 2 timeout.
SATA link 3 timeout.
SATA link 4 timeout.
SATA link 5 timeout.
AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
flags: 64bit ncq only
Device 0: (0:0) Vendor: ATA Prod.: QEMU HARDDISK Rev: 2.5+
Type: Hard Disk
Capacity: 30895.0 MB = 30.1 GB (63272960 x 512)
Device 0: (0:0) Vendor: ATA Prod.: QEMU HARDDISK Rev: 2.5+
Type: Hard Disk
Capacity: 30895.0 MB = 30.1 GB (63272960 x 512)
... is now current device
Scanning scsi 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1868 bytes read in 7 ms (259.8 KiB/s)
------------------------------------------------------------
1: NixOS - Default
2: NixOS - Configuration 6 (2018-06-04 14:23 - 18.09.git.4ae5f8a)
3: NixOS - Configuration 1 (1970-01-01 00:00 - 18.09pre-git)
Enter choice: 1
1: NixOS - Default
Retrieving file: /extlinux/../nixos/pfgx2sf5yvq9wyilhijl3c10q77wggh6-initrd-initrd
7524279 bytes read in 131 ms (54.8 MiB/s)
Retrieving file: /extlinux/../nixos/l4s69vmm8kg6k9rx7x595xhgj9gsq1xq-linux-4.17-rc7-Image
29989376 bytes read in 487 ms (58.7 MiB/s)
append: systemConfig=/nix/store/8ap1ljz2hqkqqgx5d6xmnz0mg107j6g6-nixos-system-nebula-18.09.git.4ae5f8a init=/nix/store/8ap1ljz2hqkqqgx5d6xmnz0mg107j6g6-nixos-system-nebula-18.09.git.4ae5f8a/init loglevel=7 cma=32M console=ttyAMA0,115200n8
## Flattened Device Tree blob at 40000000
Booting using the fdt blob at 0x40000000
Loading Ramdisk to be822000, end bef4efb7 ... OK
Loading Device Tree to 00000000be80f000, end 00000000be821fff ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd070]
[ 0.000000] Linux version 4.17.0-next-20180604 (nixbld@localhost) (gcc version 7.3.0 (GCC)) #1-NixOS SMP PREEMPT Thu Jan 1 00:00:01 UTC 1970
[ 0.000000] Machine model: linux,dummy-virt
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x00000000bc800000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xbffe8200-0xbffe99bf]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] random: get_random_bytes called from start_kernel+0xb0/0x494 with crng_init=0
[ 0.000000] percpu: Embedded 25 pages/cpu @(____ptrval____) s63512 r8192 d30696 u102400
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] CPU features: enabling workaround for ARM erratum 832075
[ 0.000000] CPU features: enabling workaround for ARM erratum 834220
[ 0.000000] CPU features: enabling workaround for EL2 vector hardening
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516096
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: systemConfig=/nix/store/8ap1ljz2hqkqqgx5d6xmnz0mg107j6g6-nixos-system-nebula-18.09.git.4ae5f8a init=/nix/store/8ap1ljz2hqkqqgx5d6xmnz0mg107j6g6-nixos-system-nebula-18.09.git.4ae5f8a/init loglevel=7 cma=32M console=ttyAMA0,115200n8
[ 0.000000] Memory: 1993924K/2097152K available (13052K kernel code, 2470K rwdata, 6196K rodata, 7552K init, 502K bss, 70460K reserved, 32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 46165 entries in 181 pages
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=384 to nr_cpu_ids=4.
[ 0.000000] Tasks RCU enabled.
[ 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] GICv2m: range[mem 0x08020000-0x08020fff], SPI[80:143]
[ 0.000000] arch_timer: cp15 timer(s) running at 62.50MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1cd42e208c, max_idle_ns: 881590405314 ns
[ 0.000311] sched_clock: 56 bits at 62MHz, resolution 16ns, wraps every 4398046511096ns
[ 0.009058] Console: colour dummy device 80x25
[ 0.010664] Calibrating delay loop (skipped), value calculated using timer frequency.. 125.00 BogoMIPS (lpj=250000)
[ 0.010925] pid_max: default: 32768 minimum: 301
[ 0.011951] Security Framework initialized
[ 0.012078] Yama: becoming mindful.
[ 0.014728] AppArmor: AppArmor initialized
[ 0.017410] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.018583] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.018898] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.018961] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.074333] ASID allocator initialised with 32768 entries
[ 0.076992] rcu: Hierarchical SRCU implementation.
[ 0.094820] EFI services will not be available.
[ 0.100845] smp: Bringing up secondary CPUs ...
[ 0.125906] Detected PIPT I-cache on CPU1
[ 0.127693] CPU1: Booted secondary processor 0x0000000001 [0x411fd070]
[ 0.156708] Detected PIPT I-cache on CPU2
[ 0.156960] CPU2: Booted secondary processor 0x0000000002 [0x411fd070]
[ 0.177678] Detected PIPT I-cache on CPU3
[ 0.177909] CPU3: Booted secondary processor 0x0000000003 [0x411fd070]
[ 0.178458] smp: Brought up 1 node, 4 CPUs
[ 0.178537] SMP: Total of 4 processors activated.
[ 0.178604] CPU features: detected: 32-bit EL0 Support
[ 0.256508] CPU: All CPU(s) started at EL1
[ 0.256957] alternatives: patching kernel code
[ 0.277158] devtmpfs: initialized
[ 0.290868] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.291107] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.297709] pinctrl core: initialized pinctrl subsystem
[ 0.307997] DMI not present or invalid.
[ 0.313187] NET: Registered protocol family 16
[ 0.316047] audit: initializing netlink subsys (disabled)
[ 0.318715] audit: type=2000 audit(0.296:1): state=initialized audit_enabled=0 res=1
[ 0.330568] cpuidle: using governor menu
[ 0.331944] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[ 0.332158] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.341964] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.344847] Serial: AMBA PL011 UART driver
[ 0.382141] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1
[ 0.396441] console [ttyAMA0] enabled
[ 0.457208] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.461605] cryptd: max_cpu_qlen set to 1000
[ 0.465676] ACPI: Interpreter disabled.
[ 0.469865] vgaarb: loaded
[ 0.472378] SCSI subsystem initialized
[ 0.475016] usbcore: registered new interface driver usbfs
[ 0.475532] usbcore: registered new interface driver hub
[ 0.476339] usbcore: registered new device driver usb
[ 0.479012] pps_core: LinuxPPS API ver. 1 registered
[ 0.479155] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.479460] PTP clock support registered
[ 0.480288] EDAC MC: Ver: 3.0.0
[ 0.489706] Advanced Linux Sound Architecture Driver Initialized.
[ 0.501493] clocksource: Switched to clocksource arch_sys_counter
[ 0.735010] VFS: Disk quotas dquot_6.6.0
[ 0.735451] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.739640] AppArmor: AppArmor Filesystem Enabled
[ 0.740259] pnp: PnP ACPI: disabled
[ 0.792125] NET: Registered protocol family 2
[ 0.802942] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)
[ 0.803634] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.804274] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.804760] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.806467] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.806872] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.808453] NET: Registered protocol family 1
[ 0.812963] RPC: Registered named UNIX socket transport module.
[ 0.813168] RPC: Registered udp transport module.
[ 0.813465] RPC: Registered tcp transport module.
[ 0.813593] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.817886] Trying to unpack rootfs image as initramfs...
[ 1.272387] Freeing initrd memory: 7344K
[ 1.277550] hw perfevents: enabled with armv8_pmuv3 PMU driver, 1 counters available
[ 1.278360] kvm [1]: HYP mode not available
[ 1.303632] Initialise system trusted keyrings
[ 1.307106] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[ 1.326925] zbud: loaded
[ 1.333233] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 1.341468] NFS: Registering the id_resolver key type
[ 1.341879] Key type id_resolver registered
[ 1.342087] Key type id_legacy registered
[ 1.342361] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.342924] 9p: Installing v9fs 9p2000 file system support
[ 1.343496] pstore: using deflate compression
[ 1.366298] Key type asymmetric registered
[ 1.367090] Asymmetric key parser 'x509' registered
[ 1.368293] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 1.371380] io scheduler noop registered
[ 1.371816] io scheduler deadline registered
[ 1.374756] io scheduler cfq registered (default)
[ 1.375094] io scheduler mq-deadline registered
[ 1.375279] io scheduler kyber registered
[ 1.402067] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered
[ 1.410567] pci-host-generic 3f000000.pcie: host bridge /pcie@10000000 ranges:
[ 1.411235] pci-host-generic 3f000000.pcie: IO 0x3eff0000..0x3effffff -> 0x00000000
[ 1.411824] pci-host-generic 3f000000.pcie: MEM 0x10000000..0x3efeffff -> 0x10000000
[ 1.412684] pci-host-generic 3f000000.pcie: ECAM at [mem 0x3f000000-0x3fffffff] for [bus 00-0f]
[ 1.414108] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
[ 1.414451] pci_bus 0000:00: root bus resource [bus 00-0f]
[ 1.414670] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.414828] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[ 1.432296] pci 0000:00:02.0: BAR 6: assigned [mem 0x10000000-0x1003ffff pref]
[ 1.432944] pci 0000:00:02.0: BAR 4: assigned [mem 0x10040000-0x10043fff 64bit pref]
[ 1.434679] pci 0000:00:01.0: BAR 5: assigned [mem 0x10044000-0x10044fff]
[ 1.435647] pci 0000:00:02.0: BAR 1: assigned [mem 0x10045000-0x10045fff]
[ 1.436649] pci 0000:00:01.0: BAR 4: assigned [io 0x1000-0x101f]
[ 1.437198] pci 0000:00:02.0: BAR 0: assigned [io 0x1020-0x103f]
[ 1.444854] EINJ: ACPI disabled.
[ 1.494346] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.513158] SuperH (H)SCI(F) driver initialized
[ 1.514879] msm_serial: driver initialized
[ 1.517992] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.567972] brd: module loaded
[ 1.605160] loop: module loaded
[ 1.614855] ahci 0000:00:01.0: AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
[ 1.615194] ahci 0000:00:01.0: flags: 64bit ncq only
[ 1.628595] scsi host0: ahci
[ 1.635160] scsi host1: ahci
[ 1.638019] scsi host2: ahci
[ 1.639786] scsi host3: ahci
[ 1.641635] scsi host4: ahci
[ 1.643277] scsi host5: ahci
[ 1.644242] ata1: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044100 irq 43
[ 1.644619] ata2: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044180 irq 43
[ 1.644824] ata3: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044200 irq 43
[ 1.645021] ata4: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044280 irq 43
[ 1.645224] ata5: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044300 irq 43
[ 1.645577] ata6: SATA max UDMA/133 abar m4096@0x10044000 port 0x10044380 irq 43
[ 1.664179] libphy: Fixed MDIO Bus: probed
[ 1.665618] tun: Universal TUN/TAP device driver, 1.6
[ 1.679544] thunder_xcv, ver 1.0
[ 1.679961] thunder_bgx, ver 1.0
[ 1.680268] nicpf, ver 1.0
[ 1.683736] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.684148] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.685167] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.685924] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.686582] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.686841] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.688171] sky2: driver version 1.30
[ 1.690894] VFIO - User Level meta-driver version: 0.3
[ 1.696886] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.697508] ehci-pci: EHCI PCI platform driver
[ 1.698908] ehci-platform: EHCI generic platform driver
[ 1.700150] ehci-orion: EHCI orion driver
[ 1.701845] ehci-exynos: EHCI EXYNOS driver
[ 1.703118] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.703441] ohci-pci: OHCI PCI platform driver
[ 1.703845] ohci-platform: OHCI generic platform driver
[ 1.704467] ohci-exynos: OHCI EXYNOS driver
[ 1.706202] usbcore: registered new interface driver usb-storage
[ 1.716619] rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0
[ 1.719017] i2c /dev entries driver
[ 1.738300] sdhci: Secure Digital Host Controller Interface driver
[ 1.738537] sdhci: Copyright(c) Pierre Ossman
[ 1.739531] Synopsys Designware Multimedia Card Interface Driver
[ 1.742518] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.747076] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.750798] usbcore: registered new interface driver usbhid
[ 1.751037] usbhid: USB HID core driver
[ 1.763416] NET: Registered protocol family 17
[ 1.764900] 9pnet: Installing 9P2000 support
[ 1.766306] Key type dns_resolver registered
[ 1.769648] registered taskstats version 1
[ 1.769878] Loading compiled-in X.509 certificates
[ 1.771563] zswap: loaded using pool lzo/zbud
[ 1.775074] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.785138] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 1.789973] rtc-pl031 9010000.pl031: setting system clock to 2018-06-04 15:32:01 UTC (1528126321)
[ 1.791061] ALSA device list:
[ 1.791206] No soundcards found.
[ 1.793790] uart-pl011 9000000.pl011: no DMA platform data
[ 1.968058] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.980326] ata5: SATA link down (SStatus 0 SControl 300)
[ 1.986113] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[ 1.986502] ata1.00: 63272960 sectors, multi 16: LBA48 NCQ (depth 32)
[ 1.987035] ata1.00: applying bridge limits
[ 1.988778] ata2: SATA link down (SStatus 0 SControl 300)
[ 1.989860] ata3: SATA link down (SStatus 0 SControl 300)
[ 1.990746] ata1.00: configured for UDMA/100
[ 1.991387] ata6: SATA link down (SStatus 0 SControl 300)
[ 1.992117] ata4: SATA link down (SStatus 0 SControl 300)
[ 2.007201] scsi 0:0:0:0: Direct-Access ATA QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 2.018329] sd 0:0:0:0: [sda] 63272960 512-byte logical blocks: (32.4 GB/30.2 GiB)
[ 2.020101] sd 0:0:0:0: [sda] Write Protect is off
[ 2.023032] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.032107] sda: sda1 sda2
[ 2.042668] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.164258] Freeing unused kernel memory: 7552K
<<< NixOS Stage 1 >>>
loading module vc4...
loading module dm_mod...
[ 3.981462] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
running udev...
[ 4.191423] systemd-udevd[169]: starting version 238
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
starting device mapper and LVM...
[ 7.534717] random: lvm: uninitialized urandom read (4 bytes read)
BusyBox v1.28.3 () multi-call binary.
Usage: switch_root [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch
[ 11.215714] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 11.215714]
[ 11.216202] CPU: 0 PID: 1 Comm: switch_root Not tainted 4.17.0-next-20180604 #1-NixOS
[ 11.216415] Hardware name: linux,dummy-virt (DT)
[ 11.216653] Call trace:
[ 11.216798] dump_backtrace+0x0/0x1c0
[ 11.216924] show_stack+0x24/0x30
[ 11.217030] dump_stack+0x90/0xb4
[ 11.217138] panic+0x128/0x29c
[ 11.217241] do_exit+0x9f4/0x9f8
[ 11.217352] do_group_exit+0x40/0xa8
[ 11.217471] __wake_up_parent+0x0/0x40
[ 11.217602] el0_svc_naked+0x30/0x34
[ 11.217937] SMP: stopping secondary CPUs
[ 11.218364] Kernel Offset: disabled
[ 11.218574] CPU features: 0x21806082
[ 11.218714] Memory Limit: none
[ 11.219089] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 11.219089] ]---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment