Need help troubleshoot this error

U-Boot 2017.11-dirty (Jan 22 2018 - 21:06:10 +0800)

DRAM: 948 MiB
RPI 3 Model B (0xa02082)
MMC: sdhci@7e300000: 0
reading uboot.env
In: serial
Out: vidconsole
Err: vidconsole
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
starting USB…
USB0: Core Release: 2.80a
scanning bus 0 for devices… 4 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found

Device 0: unknown device
Waiting for Ethernet connection… done.
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
DHCP client bound to address 192.168.2.100 (2015 ms)
*** Warning: no boot file name; using ‘C0A80264.img’
Using smsc95xx_eth device
TFTP from server 0.0.0.0; our IP address is 192.168.2.100; sending through gateway 192.168.2.1
Filename ‘C0A80264.img’.
Load address: 0x200000
Loading: T T
Abort
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-b8-27-eb-34-97-64
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/C0A80264 Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/C0A8026
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/C0A802 Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/C0A80
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/C0A8 Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/C0A
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/C0 Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/C
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-bcm283x Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
Waiting for Ethernet connection… done.
*** ERROR: serverip' not set missing environment variable: bootfile Retrieving file: pxelinux.cfg/default Waiting for Ethernet connection... done. *** ERROR: serverip’ not set
Config file not found
U-Boot>
U-Boot>
Unknown command 'ry ‘help’
U-Boot> run uenvcmd
ENVCMD
Saving Environment to FAT…
writing uboot.env
FAT: Misaligned buffer address (000000003af0c620)
done
reading rpi3-64-kernel_x1.snap/kernel.img
13160960 bytes read in 807 ms (15.6 MiB/s)
reading rpi3-64-kernel_x1.snap/initrd.img
4895761 bytes read in 318 ms (14.7 MiB/s)
reading rpi3-64-kernel_x1.snap/dtbs/bcm2710-rpi-3-b.dtb
18550 bytes read in 34 ms (532.2 KiB/s)
Unknown command ‘testing’ - try ‘help’

Flattened Device Tree blob at 00000100

Booting using the fdt blob at 0x000100
Loading Ramdisk to 3af26000, end 3af2a876 … OK
reserving fdt memory region: addr=0 size=1000
reserving fdt memory region: addr=0 size=1000
Loading Device Tree to 000000003af1e000, end 000000003af25875 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.14-v8+ (root@Dev-S) (gcc version 7.2.0 (Ubuntu/Linaro 7.2.0-6ubuntu1)) #1 SMP PREEMPT Tue Jan 23 13:42:04 +08 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: Raspberry Pi 3 Model B
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 8 MiB at 0x000000003a400000
[ 0.000000] percpu: Embedded 22 pages/cpu @ffffffc03b37e000 s50456 r8192 d31464 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 238896
[ 0.000000] Kernel command line: 8250.nr_uarts=1
[ 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: 930480K/970752K available (6972K kernel code, 884K rwdata, 2312K rodata, 2624K init, 689K bss, 32080K 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 : 0xffffff8008080000 - 0xffffff8008750000 ( 6976 KB)
[ 0.000000] .rodata : 0xffffff8008750000 - 0xffffff80089a0000 ( 2368 KB)
[ 0.000000] .init : 0xffffff80089a0000 - 0xffffff8008c30000 ( 2624 KB)
[ 0.000000] .data : 0xffffff8008c30000 - 0xffffff8008d0d200 ( 885 KB)
[ 0.000000] .bss : 0xffffff8008d0d200 - 0xffffff8008db9968 ( 690 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] 0xffffffbf00000000 - 0xffffffbf00ed0000 ( 14 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc03b400000 ( 948 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 25019 entries in 98 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Failed to get local register map. FIQ is disabled for cpus > 1
[ 0.000000] arch_timer: 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.000003] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000113] Console: colour dummy device 80x25
[ 0.000486] console [tty0] enabled
[ 0.000506] Calibrating delay loop (skipped), value calculated using timer frequency… 38.40 BogoMIPS (lpj=19200)
[ 0.000529] pid_max: default: 32768 minimum: 301
[ 0.000718] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000743] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.001395] Disabling memory control group subsystem
[ 0.005054] ASID allocator initialised with 65536 entries
[ 0.007047] Hierarchical SRCU implementation.
[ 0.009181] EFI services will not be available.
[ 0.011081] smp: Bringing up secondary CPUs …
[ 0.018187] Detected VIPT I-cache on CPU1
[ 0.018228] CPU1: Booted secondary processor [410fd034]
[ 0.025229] Detected VIPT I-cache on CPU2
[ 0.025252] CPU2: Booted secondary processor [410fd034]
[ 0.032290] Detected VIPT I-cache on CPU3
[ 0.032311] CPU3: Booted secondary processor [410fd034]
[ 0.032380] smp: Brought up 1 node, 4 CPUs
[ 0.032445] SMP: Total of 4 processors activated.
[ 0.032459] CPU features: detected feature: 32-bit EL0 Support
[ 0.032576] CPU: All CPU(s) started at EL2
[ 0.032602] alternatives: patching kernel code
[ 0.033274] devtmpfs: initialized
[ 0.038884] random: get_random_u32 called from bucket_table_alloc+0x10c/0x260 with crng_init=0
[ 0.039134] Enabled cp15_barrier support
[ 0.039155] Enabled setend support
[ 0.039335] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.039363] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.039742] pinctrl core: initialized pinctrl subsystem
[ 0.039886] DMI not present or invalid.
[ 0.040075] NET: Registered protocol family 16
[ 0.042484] cpuidle: using governor menu
[ 0.042556] vdso: 2 pages (1 code @ ffffff8008756000, 1 data @ ffffff8008c34000)
[ 0.042581] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.045146] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.045241] Serial: AMBA PL011 UART driver
[ 0.046493] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.046812] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.063616] bcm2835-dma 3f007000.dma: DMA legacy API manager at ffffff800801d000, dmachans=0x1
[ 0.064548] SCSI subsystem initialized
[ 0.064629] usbcore: registered new interface driver usbfs
[ 0.064672] usbcore: registered new interface driver hub
[ 0.064751] usbcore: registered new device driver usb
[ 0.064869] dmi: Firmware registration failed.
[ 0.065447] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-01-17 17:59
[ 0.066065] clocksource: Switched to clocksource arch_sys_counter
[ 0.115918] VFS: Disk quotas dquot_6.6.0
[ 0.115993] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.116119] FS-Cache: Loaded
[ 0.116278] CacheFiles: Loaded
[ 0.121646] NET: Registered protocol family 2
[ 0.122086] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.122159] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.122276] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.122420] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.122454] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.122626] NET: Registered protocol family 1
[ 0.122992] RPC: Registered named UNIX socket transport module.
[ 0.123007] RPC: Registered udp transport module.
[ 0.123019] RPC: Registered tcp transport module.
[ 0.123030] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.123234] Trying to unpack rootfs image as initramfs…
[ 0.124662] rootfs image is not initramfs (read error); looks like an initrd
[ 0.124730] Freeing initrd memory: 16K
[ 0.125281] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.126359] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 0.131812] FS-Cache: Netfs ‘nfs’ registered for caching
[ 0.132261] NFS: Registering the id_resolver key type
[ 0.132297] Key type id_resolver registered
[ 0.132311] Key type id_legacy registered
[ 0.133404] random: fast init done
[ 0.133672] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.133782] io scheduler noop registered
[ 0.133796] io scheduler deadline registered
[ 0.133963] io scheduler cfq registered (default)
[ 0.133978] io scheduler mq-deadline registered
[ 0.133991] io scheduler kyber registered
[ 0.135848] BCM2708FB: allocated DMA memory fa450000
[ 0.135884] BCM2708FB: allocated DMA channel 0 @ ffffff800801d000
[ 0.141760] Console: switching to colour frame buffer device 100x30
[ 0.145167] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.146328] bcm2835-aux-uart 3f215040.serial: could not get clk: -517
[ 0.950131] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.951089] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[ 0.952378] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 0.953423] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.960804] brd: module loaded
[ 0.967839] loop: module loaded
[ 0.968728] Loading iSCSI transport class v2.0-870.
[ 0.970014] usbcore: registered new interface driver smsc95xx
[ 0.970871] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.172015] Core Release: 2.80a
[ 1.172852] Setting default values for core params
[ 1.173723] Finished setting default values for core params
[ 1.374752] Using Buffer DMA mode
[ 1.375588] Periodic Transfer Interrupt Enhancement - disabled
[ 1.376426] Multiprocessor Interrupt Enhancement - disabled
[ 1.377277] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.378132] Dedicated Tx FIFOs mode
[ 1.379221] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0x08ec1000 dma = 0xfa444000 len=9024
[ 1.381089] FIQ FSM acceleration enabled for :
[ 1.381089] Non-periodic Split Transactions
[ 1.381089] Periodic Split Transactions
[ 1.381089] High-Speed Isochronous Endpoints
[ 1.381089] Interrupt/Control Split Transaction hack enabled
[ 1.385768] WARN::hcd_init_fiq:486: MPHI regs_base at 0x08045000
[ 1.386737] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.387662] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.388596] dwc_otg 3f980000.usb: irq 15, io mem 0x00000000
[ 1.389510] Init: Port Power? op_state=1
[ 1.390381] Init: Power Port (0)
[ 1.391376] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.392272] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.393162] usb usb1: Product: DWC OTG Controller
[ 1.394032] usb usb1: Manufacturer: Linux 4.14.14-v8+ dwc_otg_hcd
[ 1.394916] usb usb1: SerialNumber: 3f980000.usb
[ 1.396190] hub 1-0:1.0: USB hub found
[ 1.397089] hub 1-0:1.0: 1 port detected
[ 1.398607] usbcore: registered new interface driver usb-storage
[ 1.399550] IR NEC protocol handler initialized
[ 1.400407] IR RC5(x/sz) protocol handler initialized
[ 1.401266] IR RC6 protocol handler initialized
[ 1.402119] IR JVC protocol handler initialized
[ 1.402914] IR Sony protocol handler initialized
[ 1.403680] IR SANYO protocol handler initialized
[ 1.404444] IR Sharp protocol handler initialized
[ 1.405193] IR MCE Keyboard/mouse protocol handler initialized
[ 1.405951] IR XMP protocol handler initialized
[ 1.407177] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 1.408156] bcm2835-cpufreq: min=1200000 max=1200000
[ 1.409183] sdhci: Secure Digital Host Controller Interface driver
[ 1.409960] sdhci: Copyright© Pierre Ossman
[ 1.410925] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ 1.411933] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 1.412821] Error: Driver ‘sdhost-bcm2835’ is already registered, aborting…
[ 1.413674] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.416540] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.417511] hidraw: raw HID events driver © Jiri Kosina
[ 1.418442] usbcore: registered new interface driver usbhid
[ 1.419307] usbhid: USB HID core driver
[ 1.420300] Initializing XFRM netlink socket
[ 1.421158] NET: Registered protocol family 17
[ 1.422078] Key type dns_resolver registered
[ 1.423342] registered taskstats version 1
[ 1.428598] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 1.429547] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 72, base_baud = 0) is a PL011 rev2
[ 1.431550] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 151, base_baud = 50000000) is a 16550
[ 1.608127] Indeed it is in host mode hprt0 = 00021501
[ 1.778080] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.778177] Indeed it is in host mode hprt0 = 00001101
[ 1.961784] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 1.961790] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.966203] hub 1-1:1.0: USB hub found
[ 1.966271] hub 1-1:1.0: 5 ports detected
[ 2.334076] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.451880] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.451885] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.456492] smsc95xx v1.0.6
[ 2.551882] console [ttyS0] enabled
[ 2.557175] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 2.564053] mmc-bcm2835 3f300000.mmc: Forcing PIO mode
[ 2.572913] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:34:97:64
[ 2.594604] sdhost: log_buf @ ffffff8008df5000 (fa447000)
[ 2.623729] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.631810] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.639891] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.649122] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.655605] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 2.656550] of_cfs_init
[ 2.656621] of_cfs_init: OK
[ 2.669370] RAMDISK: gzip image found at block 0
[ 2.675963] RAMDISK: EOF while reading compressed data
[ 2.675969] uncompression error
[ 2.686138] VFS: Cannot open root device “(null)” or unknown-block(0,0): error -6
[ 2.695005] Please append a correct “root=” boot option; here are the available partitions:
[ 2.704390] 0100 4096 ram0
[ 2.704395] (driver?)
[ 2.712334] 0101 4096 ram1
[ 2.712338] (driver?)
[ 2.720239] 0102 4096 ram2
[ 2.720243] (driver?)
[ 2.728010] 0103 4096 ram3
[ 2.728014] (driver?)
[ 2.735682] 0104 4096 ram4
[ 2.735686] (driver?)
[ 2.743289] 0105 4096 ram5
[ 2.743293] (driver?)
[ 2.743375] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.747859] mmc0: new high speed SDHC card at address 0001
[ 2.748254] bounce: isa pool size: 16 pages
[ 2.748341] mmcblk0: mmc0:0001 SD32G 29.3 GiB (quirks 0x80000000)
[ 2.759643] mmcblk0: p1 p2
[ 2.781304] 0106 4096 ram6
[ 2.781308] (driver?)
[ 2.788937] 0107 4096 ram7
[ 2.788941] (driver?)
[ 2.796537] 0108 4096 ram8
[ 2.796541] (driver?)
[ 2.804153] 0109 4096 ram9
[ 2.804157] (driver?)
[ 2.811571] 010a 4096 ram10
[ 2.811575] (driver?)
[ 2.819051] 010b 4096 ram11
[ 2.819062] (driver?)
[ 2.826525] 010c 4096 ram12
[ 2.826529] (driver?)
[ 2.834021] 010d 4096 ram13
[ 2.834024] (driver?)
[ 2.841501] 010e 4096 ram14
[ 2.841505] (driver?)
[ 2.848970] 010f 4096 ram15
[ 2.848974] (driver?)
[ 2.856427] b300 30707712 mmcblk0
[ 2.856431] driver: mmcblk
[ 2.864428] b301 131072 mmcblk0p1 22d62783-01
[ 2.864431]
[ 2.872376] b302 297536 mmcblk0p2 22d62783-02
[ 2.872380]
[ 2.880339] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.889314] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.14.14-v8+ #1
[ 2.896360] Hardware name: Raspberry Pi 3 Model B (DT)
[ 2.902186] Call trace:
[ 2.905289] [] dump_backtrace+0x0/0x228
[ 2.911406] [] show_stack+0x24/0x30
[ 2.917187] [] dump_stack+0xac/0xe4
[ 2.922964] [] panic+0x128/0x288
[ 2.928476] [] mount_block_root+0x1a0/0x274
[ 2.934974] [] mount_root+0x124/0x13c
[ 2.940941] [] prepare_namespace+0x174/0x1bc
[ 2.947535] [] kernel_init_freeable+0x228/0x248
[ 2.954410] [] kernel_init+0x18/0x108
[ 2.960389] [] ret_from_fork+0x10/0x1c
[ 2.966474] SMP: stopping secondary CPUs
[ 2.971155] Kernel Offset: disabled
[ 2.975396] CPU features: 0x002004
[ 2.979535] Memory Limit: none
[ 2.983343] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.994094] ------------[ cut here ]------------
[ 2.999571] WARNING: CPU: 2 PID: 1 at kernel/workqueue.c:858 wq_worker_waking_up+0x68/0x78
[ 3.008793] Modules linked in:
[ 3.012709] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.14.14-v8+ #1
[ 3.020022] Hardware name: Raspberry Pi 3 Model B (DT)
[ 3.026081] task: ffffffc039138000 task.stack: ffffff8008020000
[ 3.032921] PC is at wq_worker_waking_up+0x68/0x78
[ 3.038606] LR is at wq_worker_waking_up+0x24/0x78
[ 3.044252] pc : [] lr : [] pstate: 800001c5
[ 3.052584] sp : ffffff8008013c60
[ 3.056768] x29: ffffff8008013c60 x28: 0000000000000005
[ 3.062989] x27: 0000000000000002 x26: 0000000000000002
[ 3.069221] x25: ffffff8008a50000 x24: ffffff8008c39848
[ 3.075453] x23: 00000000000001c0 x22: ffffff8008013d10
[ 3.081686] x21: 0000000000000004 x20: 0000000000000002
[ 3.087910] x19: ffffffc03898d880 x18: 0000000000000001
[ 3.094114] x17: 0000000000000001 x16: 0000000000000001
[ 3.100328] x15: ffffff80087a5000 x14: 00000f423fffe700
[ 3.106542] x13: 00000000000003f3 x12: 0000000000000000
[ 3.112736] x11: 0000000000000001 x10: ffffff8008013ea0
[ 3.118937] x9 : 0000000000000000 x8 : 0000000000000000
[ 3.125143] x7 : ffffffc03922a000 x6 : 000000004d97dd2f
[ 3.131345] x5 : ffffffc03b3b5288 x4 : 0000000000000000
[ 3.137516] x3 : 0000000000000000 x2 : ffffffc03b388a00
[ 3.143645] x1 : 0000000000000000 x0 : ffffffc038114900
[ 3.149763] Call trace:
[ 3.152925] Exception stack(0xffffff8008013b20 to 0xffffff8008013c60)
[ 3.160150] 3b20: ffffffc038114900 0000000000000000 ffffffc03b388a00 0000000000000000
[ 3.168809] 3b40: 0000000000000000 ffffffc03b3b5288 000000004d97dd2f ffffffc03922a000
[ 3.177462] 3b60: 0000000000000000 0000000000000000 ffffff8008013ea0 0000000000000001
[ 3.186124] 3b80: 0000000000000000 00000000000003f3 00000f423fffe700 ffffff80087a5000
[ 3.194771] 3ba0: 0000000000000001 0000000000000001 0000000000000001 ffffffc03898d880
[ 3.203440] 3bc0: 0000000000000002 0000000000000004 ffffff8008013d10 00000000000001c0
[ 3.212090] 3be0: ffffff8008c39848 ffffff8008a50000 0000000000000002 0000000000000002
[ 3.220734] 3c00: 0000000000000005 ffffff8008013c60 ffffff80080ba6ac ffffff8008013c60
[ 3.229388] 3c20: ffffff80080ba6f0 00000000800001c5 ffffffc03898e08c 0000000000000004
[ 3.238070] 3c40: 0000008000000000 ffffff80080ba6ac ffffff8008013c60 ffffff80080ba6f0
[ 3.246767] [] wq_worker_waking_up+0x68/0x78
[ 3.253459] [] ttwu_do_activate+0x74/0x98
[ 3.259889] [] try_to_wake_up+0x1cc/0x460
[ 3.266323] [] default_wake_function+0x34/0x48
[ 3.273206] [] __wake_up_common+0x90/0x158
[ 3.279726] [] __wake_up_locked+0x40/0x50
[ 3.286163] [] complete+0x50/0x70
[ 3.291894] [] mmc_wait_done+0x20/0x30
[ 3.298070] [] mmc_request_done+0xc0/0x220
[ 3.304600] [] bcm2835_mmc_tasklet_finish+0xa4/0xf0
[ 3.311944] [] tasklet_action+0xb4/0x160
[ 3.318316] [] __do_softirq+0x158/0x3d0
[ 3.324608] [] irq_exit+0x9c/0xd0
[ 3.330361] [] __handle_domain_irq+0x90/0xf8
[ 3.337078] [] bcm2836_arm_irqchip_handle_irq+0x68/0xc8
[ 3.344747] Exception stack(0xffffff8008023b20 to 0xffffff8008023c60)
[ 3.352069] 3b20: 0000000000000000 0000000000000000 ffffffffffffffff 0000000000000000
[ 3.360812] 3b40: 0000000000000000 00000000ffaaaaaa 000000000000011a ffffffc039137570
[ 3.369566] 3b60: 0000000000000001 00000000ff000000 ffffffc039137570 0000000000000001
[ 3.378320] 3b80: 00000000ffffffff 0000000000000000 0000000000000020 ffffff80087a5000
[ 3.387086] 3ba0: 0000000000000001 0000000000000001 0000000000000001 ffffff8008d11908
[ 3.395833] 3bc0: 0000000000000000 0000000000000000 0000000000000000 ffffff8008d11908
[ 3.404557] 3be0: 0000000000008001 ffffff80088cd188 ffffff80088cd040 0000000000008001
[ 3.413268] 3c00: ffffff8008a442f0 ffffff8008023c60 ffffff800809ec64 ffffff8008023c60
[ 3.421983] 3c20: ffffff800809ec68 0000000040000045 ffffffffffffffff 0000000000000000
[ 3.430682] 3c40: ffffffffffffffff 000000000000000f ffffff8008023c60 ffffff800809ec68
[ 3.439387] [] el1_irq+0xb4/0x12c
[ 3.445093] [] panic+0x238/0x288
[ 3.450716] [] mount_block_root+0x1a0/0x274
[ 3.457314] [] mount_root+0x124/0x13c
[ 3.463372] [] prepare_namespace+0x174/0x1bc
[ 3.470066] [] kernel_init_freeable+0x228/0x248
[ 3.477028] [] kernel_init+0x18/0x108
[ 3.483104] [] ret_from_fork+0x10/0x1c
[ 3.489259] —[ end trace b4ab7e61d44ce0c9 ]—
[ 3.494739] ------------[ cut here ]------------
[ 3.500196] WARNING: CPU: 2 PID: 58 at kernel/workqueue.c:893 wq_worker_sleeping+0xa8/0xc0
[ 3.509400] Modules linked in:
[ 3.513297] CPU: 2 PID: 58 Comm: kworker/0:2 Tainted: G W 4.14.14-v8+ #1
[ 3.522090] Hardware name: Raspberry Pi 3 Model B (DT)
[ 3.528124] Workqueue: events_freezable mmc_rescan
[ 3.533800] task: ffffffc03898d880 task.stack: ffffff8008f20000
[ 3.540632] PC is at wq_worker_sleeping+0xa8/0xc0
[ 3.546215] LR is at wq_worker_sleeping+0x20/0xc0
[ 3.551782] pc : [] lr : [] pstate: 800001c5
[ 3.560127] sp : ffffff8008f23840
[ 3.564334] x29: ffffff8008f23840 x28: ffffffc038148491
[ 3.570570] x27: ffffffc03b3b5200 x26: ffffff80087400a4
[ 3.576792] x25: ffffffc03898df30 x24: ffffff8008c39000
[ 3.582995] x23: 0000000000000000 x22: ffffffc03898d880
[ 3.589187] x21: ffffffc03898d880 x20: ffffff8008a50000
[ 3.595342] x19: ffffffc03898d880 x18: 0000000000000001
[ 3.601505] x17: 0000000000000001 x16: 0000000000000001
[ 3.607661] x15: ffffff80087a5000 x14: 00000f423fffe700
[ 3.613814] x13: 00000000000003f3 x12: 0000000000000000
[ 3.619972] x11: 0000000000000001 x10: 0000000000001980
[ 3.626116] x9 : ffffff8008f23840 x8 : ffffffc03898f260
[ 3.632265] x7 : 0000000000000000 x6 : 000000004d97dd2f
[ 3.638420] x5 : 00ffffffffffffff x4 : 0000004032965000
[ 3.644552] x3 : 0000004032965000 x2 : 0000000000000000
[ 3.650695] x1 : ffffffc03b388a00 x0 : 0000000000000002
[ 3.656801] Call trace:
[ 3.659957] Exception stack(0xffffff8008f23700 to 0xffffff8008f23840)
[ 3.667191] 3700: 0000000000000002 ffffffc03b388a00 0000000000000000 0000004032965000
[ 3.675856] 3720: 0000004032965000 00ffffffffffffff 000000004d97dd2f 0000000000000000
[ 3.684519] 3740: ffffffc03898f260 ffffff8008f23840 0000000000001980 0000000000000001
[ 3.693174] 3760: 0000000000000000 00000000000003f3 00000f423fffe700 ffffff80087a5000
[ 3.701833] 3780: 0000000000000001 0000000000000001 0000000000000001 ffffffc03898d880
[ 3.710505] 37a0: ffffff8008a50000 ffffffc03898d880 ffffffc03898d880 0000000000000000
[ 3.719181] 37c0: ffffff8008c39000 ffffffc03898df30 ffffff80087400a4 ffffffc03b3b5200
[ 3.727830] 37e0: ffffffc038148491 ffffff8008f23840 ffffff80080ba720 ffffff8008f23840
[ 3.736498] 3800: ffffff80080ba7a8 00000000800001c5 ffffffc03898d880 ffffffc03898d880
[ 3.745171] 3820: ffffffffffffffff ffffff80080ba720 ffffff8008f23840 ffffff80080ba7a8
[ 3.753872] [] wq_worker_sleeping+0xa8/0xc0
[ 3.760471] [] __schedule+0x50c/0x898
[ 3.766547] [] schedule+0x34/0x98
[ 3.772265] [] schedule_timeout+0x1d8/0x418
[ 3.778864] [] wait_for_common+0xa0/0x148
[ 3.785299] [] wait_for_completion+0x28/0x38
[ 3.791991] [] mmc_wait_for_req_done+0x34/0x138
[ 3.798971] [] mmc_wait_for_req+0xac/0xf8
[ 3.805406] [] mmc_wait_for_cmd+0x68/0x88
[ 3.811817] [] mmc_io_rw_direct_host+0x90/0x118
[ 3.818774] [] mmc_io_rw_direct+0x50/0x68
[ 3.825196] [] sdio_read_cis+0xe0/0x2f0
[ 3.831444] [] sdio_read_common_cis+0x24/0x30
[ 3.838211] [] mmc_sdio_init_card+0x180/0xb60
[ 3.844957] [] mmc_attach_sdio+0x90/0x398
[ 3.851331] [] mmc_rescan+0x2f8/0x3b0
[ 3.857345] [] process_one_work+0x1d8/0x490
[ 3.863876] [] worker_thread+0x4c/0x478
[ 3.870047] [] kthread+0x138/0x140
[ 3.875771] [] ret_from_fork+0x10/0x1c
[ 3.881824] —[ end trace b4ab7e61d44ce0ca ]—
[ 9.696088] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -110
[ 9.704137] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
[ 9.720067] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
[ 9.727389] smsc95xx 1-1.1:1.0 eth0: Failed to read MII_BMSR
[ 13.792061] mmc1: Timeout waiting for hardware interrupt.
[ 13.800253] mmc1: error -110 whilst initialising SDIO card
[ 24.032060] mmc1: Timeout waiting for hardware interrupt.
[ 34.272060] mmc1: Timeout waiting for hardware interrupt.
[ 44.512061] mmc1: Timeout waiting for hardware interrupt.
[ 54.752061] mmc1: Timeout waiting for hardware interrupt.
[ 64.992061] mmc1: Timeout waiting for hardware interrupt.

Need some enlightenment… thanks

Please append a correct "root=" boot option; here are the available partitions: - should i still use root=/dev/mmcblk0p2 rootfstype=ext4 ?

if u use this: mmcargs=setenv bootargs "console=ttyAMA0,115200 root=${mmcroot}" it boot loops. But if i remove this…i got an output above…

please take a look at the existing pi gadget snaps, specifically at uboot.env.in and the loadfiles and snappy_boot commands in there:

the two articles below might also help …

and

is this right?

bootcmd_mmc0=setenv devnum 0; run dev_boot; run uenvcmd
uenvcmd=echo ENVCMD; run snappy_boot
snap_core=core_3751.snap #injected once built.
snap_kernel=rpi3-64-kernel_x1.snap #injected once built
mmcargs=setenv bootargs “console=ttyAMA0,115200 root=${mmcroot}”
snappy_boot=if test “${snap_mode}” = “try”; then setenv snap_mode “trying”; saveenv; if test “${snap_try_core}” != “”; then setenv snap_core “${snap_try_core}”; fi; if test “${snap_try_kernel}” != “”; then setenv snap_kernel “${snap_try_kernel}”; fi; elif test “${snap_mode}” = “trying”; then setenv snap_mode “”; saveenv; fi; run loadfiles; setenv mmcroot “/dev/disk/by-label/writable ${snappy_cmdline} snap_core=${snap_core} snap_kernel=${snap_kernel}”; run mmcargs; booti ${kernel_addr_r} ${ramdisk_addr_r}:${initrd_size} ${fdt_addr_r}
loadfiles=run loadkernel; run loadinitrd; run loadfdt
loadinitrd=fatload mmc 0:1 ${ramdisk_addr_r} ${snap_kernel}/${initrdfile}; setenv initrd_size ${filesize}
loadkernel=fatload mmc 0:1 ${kernel_addr_r} ${snap_kernel}/${kernelfile}
loadfdt=fatload mmc 0:1 ${fdt_addr_r} ${snap_kernel}/dtbs/${fdtfile}
fdtfile=bcm2710-rpi-3-b.dtb
initrdfile=initrd.img
kernelfile=kernel.img

Yep, that looks roughly right on first glance …

i almost forgot… what’s the purpose of slots on a gadget snapcraft.yaml? i did not include them. https://github.com/snapcore/pi3-gadget/blob/master/snapcraft.yaml

slots in gadget snaps are providing hardware access to application snaps via snap interfaces … if you want to use a certain gpio pin in your application, the gadget snap needs to provide a slot… your app can then define a plug to access that gpio device in its snapcraft.yaml and you can use it if you connect the interface after snap install via:

snap connect <snapname>:<slotname>
1 Like

can ubuntu core be initally set via serial? or has to be thru with a display?

the initial configuration tool (console-conf) gets by default started on all available tty devices, including serial :slight_smile: