Skip to content

Instantly share code, notes, and snippets.

@DieterReuter
Created October 7, 2017 19:58
Show Gist options
  • Save DieterReuter/15b00a4293e829644c52c86b2b5bcd06 to your computer and use it in GitHub Desktop.
Save DieterReuter/15b00a4293e829644c52c86b2b5bcd06 to your computer and use it in GitHub Desktop.
LinuxKit, first boot ever on a Raspberry Pi 3 (on SD image from HypriotOS/arm64)
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.13-bee42-v8 (root@b90b7cd7fee9) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT Fri Mar 3 16:42:37 UTC 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 8 MiB at 0x000000003dc00000
[ 0.000000] percpu: Embedded 22 pages/cpu @ffffffdafe583000 s52632 r8192 d29288 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 251496
[ 0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 +dwc_otg.lpm_enable=0 console=tty1 xxxroot=/dev/mmcblk0p2 initrd=-1 xxxrootfstype=ext4 cgroup_enable=cpuset cgroup_enable=memory swapaccount=1 elevator=deadline fsck.repair=yes rootwait console=ttyS0,115200 kgdboc=ttyS0,115200 net.ifnames=0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Memory: 937808K/1021952K available (6588K kernel code, 758K rwdata, 2384K rodata, 2624K init, 830K bss, 75952K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff9824880000 - 0xffffff9824ef0000 ( 6592 KB)
[ 0.000000] .rodata : 0xffffff9824ef0000 - 0xffffff9825150000 ( 2432 KB)
[ 0.000000] .init : 0xffffff9825150000 - 0xffffff98253e0000 ( 2624 KB)
[ 0.000000] .data : 0xffffff98253e0000 - 0xffffff982549da00 ( 759 KB)
[ 0.000000] .bss : 0xffffff982549da00 - 0xffffff982556d214 ( 831 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf6b000000 - 0xffffffbf6bf98000 ( 15 MB actual)
[ 0.000000] memory : 0xffffffdac0000000 - 0xffffffdafe600000 ( 998 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] Failed to get local register map. FIQ is disabled for cpus > 1
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000005] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000233] Console: colour dummy device 80x25
[ 0.001475] console [tty1] enabled
[ 0.001520] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[ 0.001582] pid_max: default: 32768 minimum: 301
[ 0.001929] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.001971] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.003136] ftrace: allocating 22747 entries in 89 pages
[ 0.061837] ASID allocator initialised with 65536 entries
[ 0.069761] EFI services will not be available.
[ 0.078755] Detected VIPT I-cache on CPU1
[ 0.078817] CPU1: Booted secondary processor [410fd034]
[ 0.085863] Detected VIPT I-cache on CPU2
[ 0.085907] CPU2: Booted secondary processor [410fd034]
[ 0.092981] Detected VIPT I-cache on CPU3
[ 0.093022] CPU3: Booted secondary processor [410fd034]
[ 0.093125] Brought up 4 CPUs
[ 0.093315] SMP: Total of 4 processors activated.
[ 0.093353] CPU features: detected feature: 32-bit EL0 Support
[ 0.093455] CPU: All CPU(s) started at EL2
[ 0.093516] alternatives: patching kernel code
[ 0.094766] devtmpfs: initialized
[ 0.111599] DMI not present or invalid.
[ 0.111977] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.112050] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.112732] pinctrl core: initialized pinctrl subsystem
[ 0.113505] NET: Registered protocol family 16
[ 0.125405] cpuidle: using governor menu
[ 0.125914] vdso: 2 pages (1 code @ ffffff9824ef7000, 1 data @ ffffff98253e4000)
[ 0.125981] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.128118] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.128256] Serial: AMBA PL011 UART driver
[ 0.133071] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.133944] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.186892] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.187901] bcm2835-dma 3f007000.dma: DMA legacy API manager at ffffff800804b000, dmachans=0x1
[ 0.190406] SCSI subsystem initialized
[ 0.190642] usbcore: registered new interface driver usbfs
[ 0.190767] usbcore: registered new interface driver hub
[ 0.190935] usbcore: registered new device driver usb
[ 0.191223] dmi: Firmware registration failed.
[ 0.192357] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-09-22 19:51
[ 0.194162] clocksource: Switched to clocksource arch_sys_counter
[ 0.269345] VFS: Disk quotas dquot_6.6.0
[ 0.269474] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.269762] FS-Cache: Loaded
[ 0.270195] CacheFiles: Loaded
[ 0.285035] NET: Registered protocol family 2
[ 0.286086] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.286263] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.286514] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.286711] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.286789] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.287142] NET: Registered protocol family 1
[ 0.287770] RPC: Registered named UNIX socket transport module.
[ 0.287806] RPC: Registered udp transport module.
[ 0.287837] RPC: Registered tcp transport module.
[ 0.287867] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.288252] Trying to unpack rootfs image as initramfs...
[ 4.485372] Freeing initrd memory: 44224K (ffffffdaec4cf000 - ffffffdaeefff000)
[ 4.490210] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 4.493261] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 4.515604] FS-Cache: Netfs 'nfs' registered for caching
[ 4.516816] NFS: Registering the id_resolver key type
[ 4.516893] Key type id_resolver registered
[ 4.516928] Key type id_legacy registered
[ 4.519953] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 4.520197] io scheduler noop registered
[ 4.520235] io scheduler deadline registered (default)
[ 4.520321] io scheduler cfq registered
[ 4.527238] BCM2708FB: allocated DMA memory fdc50000
[ 4.527311] BCM2708FB: allocated DMA channel 0 @ ffffff800804b000
[ 4.532712] Console: switching to colour frame buffer device 80x30
[ 4.538522] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 4.541079] console [ttyS0] disabled
[ 4.542529] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 61, base_baud = 31250000) is a 16550
[ 5.250757] console [ttyS0] enabled
[ 5.256448] KGDB: Registered I/O driver kgdboc
[ 5.268970] bcm2835-rng 3f104000.rng: hwrng registered
[ 5.276009] Unable to detect cache hierarchy from DT for CPU 0
[ 5.302465] brd: module loaded
[ 5.317726] loop: module loaded
[ 5.322338] Loading iSCSI transport class v2.0-870.
[ 5.329411] usbcore: registered new interface driver smsc95xx
[ 5.336621] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 5.571883] Core Release: 2.80a
[ 5.576406] Setting default values for core params
[ 5.582619] Finished setting default values for core params
[ 5.790041] Using Buffer DMA mode
[ 5.794730] Periodic Transfer Interrupt Enhancement - disabled
[ 5.801977] Multiprocessor Interrupt Enhancement - disabled
[ 5.808970] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 5.814734] Dedicated Tx FIFOs mode
[ 5.820143] WARN::dwc_otg_hcd_init:1053: FIQ DMA bounce buffers: virt = 0x08197000 dma = 0xfdc44000 len=9024
[ 5.832934] FIQ FSM acceleration enabled for :
[ 5.832934] Non-periodic Split Transactions
[ 5.832934] Periodic Split Transactions
[ 5.832934] High-Speed Isochronous Endpoints
[ 5.832934] Interrupt/Control Split Transaction hack enabled
[ 5.862297] WARN::hcd_init_fiq:486: MPHI regs_base at 0x080fa000
[ 5.869809] dwc_otg 3f980000.usb: DWC OTG Controller
[ 5.876219] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 5.886299] dwc_otg 3f980000.usb: irq 15, io mem 0x00000000
[ 5.893359] Init: Port Power? op_state=1
[ 5.898706] Init: Power Port (0)
[ 5.903575] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.911870] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.921891] usb usb1: Product: DWC OTG Controller
[ 5.928058] usb usb1: Manufacturer: Linux 4.9.13-bee42-v8 dwc_otg_hcd
[ 5.936006] usb usb1: SerialNumber: 3f980000.usb
[ 5.943001] hub 1-0:1.0: USB hub found
[ 5.948222] hub 1-0:1.0: 1 port detected
[ 5.954923] usbcore: registered new interface driver usb-storage
[ 5.962711] mousedev: PS/2 mouse device common for all mice
[ 5.971018] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 5.979753] bcm2835-cpufreq: min=600000 max=1200000
[ 5.986653] sdhci: Secure Digital Host Controller Interface driver
[ 5.994304] sdhci: Copyright(c) Pierre Ossman
[ 6.000666] sdhost: log_buf @ ffffff80081b3000 (fdc47000)
[ 6.051206] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 6.080618] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 6.088143] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 6.119347] sdhci-pltfm: SDHCI platform and OF driver helper
[ 6.129000] ledtrig-cpu: registered to indicate activity on CPUs
[ 6.136629] hidraw: raw HID events driver (C) Jiri Kosina
[ 6.143737] usbcore: registered new interface driver usbhid
[ 6.150788] usbhid: USB HID core driver
[ 6.156368] Initializing XFRM netlink socket
[ 6.162131] NET: Registered protocol family 17
[ 6.168182] Key type dns_resolver registered
[ 6.173884] mmc0: host does not support reading read-only switch, assuming write-enable
[ 6.184627] Registered cp15_barrier emulation handler
[ 6.184645] Registered setend emulation handler
[ 6.185734] registered taskstats version 1
[ 6.193778] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 72, base_baud = 0) is a PL011 rev2
[ 6.194954] of_cfs_init
[ 6.195193] of_cfs_init: OK
[ 6.197213] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 6.203017] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 6.215100] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 6.223389] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 6.250040] Indeed it is in host mode hprt0 = 00021501
[ 6.253779] Freeing unused kernel memory: 2624K (ffffffdac0950000 - ffffffdac0be0000)
[ 6.267302] mmc0: new high speed SDHC card at address aaaa
[ 6.275057] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[ 6.329676] random: fast init done
[ 6.342925] mmcblk0: p1
[ 6.373456] mmc1: new high speed SDIO card at address 0001
[ 6.445886] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 6.454014] Indeed it is in host mode hprt0 = 00001101
[ 6.636698] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 6.644938] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 6.654723] hub 1-1:1.0: USB hub found
[ 6.660084] hub 1-1:1.0: 5 ports detected
[ 6.952219] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 7.048704] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 7.057088] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 7.070045] smsc95xx v1.0.5
[ 7.120932] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:1d:12:a7
[ 7.568926] random: crng init done
1970/01/01 00:00:08 Failed to run hwclock: exit status 1
Welcome to LinuxKit
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
{ / ===-
\______ O __/
\ \ __/
\____\_______/
1970/01/01 00:00:09 Cannot open /proc/sys/net/ipv6/conf/all/accept_redirects: open /proc/sys/net/ipv6/conf/all/accept_redirects: no such file or directory
1970/01/01 00:00:09 Error preparing 001-dhcpcd: Failed to mount overlay: no such device
INFO[0000] starting containerd module=containerd revision=20c621178a5f45938e71afad24df281002aac329 version=v1.0.0-beta.1
INFO[0000] loading plugin "io.containerd.content.v1.content"... module=containerd type=io.containerd.content.v1
INFO[0000] loading plugin "io.containerd.metadata.v1.bolt"... module=containerd type=io.containerd.metadata.v1
INFO[0000] loading plugin "io.containerd.differ.v1.walking"... module=containerd type=io.containerd.differ.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.containers"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.content"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.diff"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.events"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.healthcheck"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.images"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.namespaces"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.snapshotter.v1.btrfs"... module=containerd type=io.containerd.snapshotter.v1
WARN[0000] failed to load plugin io.containerd.snapshotter.v1.btrfs error="path /var/lib/containerd/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
INFO[0000] loading plugin "io.containerd.snapshotter.v1.overlayfs"... module=containerd type=io.containerd.snapshotter.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.snapshots"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.monitor.v1.cgroups"... module=containerd type=io.containerd.monitor.v1
INFO[0000] loading plugin "io.containerd.runtime.v1.linux"... module=containerd type=io.containerd.runtime.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.tasks"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.version"... module=containerd type=io.containerd.grpc.v1
INFO[0000] serving... address="/run/containerd/debug.sock" module="containerd/debug"
INFO[0000] serving... address="/run/containerd/containerd.sock" module="containerd/grpc"
INFO[0000] containerd successfully booted in 0.020306s module=containerd
ERRO[0000] preparing filesystem error="Failed to mount overlay: no such device"
INFO[0000] shim containerd-shim started address="/containerd-shim/default/rngd/shim.sock" debug=false module="containerd/tasks" pid=218
@DieterReuter
Copy link
Author

DieterReuter commented Oct 8, 2017

Here are some more details:

  1. we used a base SD card image, which already had a 64bit RPi3 kernel and all the boot modules installed
  1. here is the Repo and Release of the 4.9.13 Linux Kernel we used
  1. LinuxKit initrd.img built by @eyz

More details on the Docker Community #linuxkit Slack channel https://dockercommunity.slack.com/archives/C51K0GDU7/p1507408755000083 and here linuxkit/linuxkit#2574.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment