edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 38 forks source link

sumo cannot boot from emmc #41

Closed lybtongji closed 6 years ago

lybtongji commented 6 years ago

After building master branch and flash the image, it stuck in a bootloop.

Here is the boot information:

Boot Info
******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.05 (Aug 10 2018 - 03:32:08 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
** Unable to read file vmlinuz **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage

Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.

Unknown boot mode: boot
Saving Environment to MMC... Writing to MMC(0)... OK
Resetting to default boot mode and reboot...
resetting ...

******************************
PSH KERNEL VERSION: b0182b2b
                WR: 20104000
******************************

SCU IPC: 0x800000d0  0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb  5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000

*** Ready to receive application ***

U-Boot 2018.05 (Aug 10 2018 - 03:32:08 +0000)

CPU: x86_64, vendor Intel, device 406a8h
DRAM:  980.6 MiB
MMC:   mmc@ff3fc000: 0, mmc@ff3fa000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
** Unable to read file vmlinuz **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage

Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.

Unknown boot mode: boot
Saving Environment to MMC... Writing to redundant MMC(0)... OK
Resetting to default boot mode and reboot...
resetting ...

...
printenv output
=> printenv
audio_codec_name=audio_codec="dummy"
audio_support=platform_mrfld_audio.audio_codec=dummy
boot_edsboot=zboot 0x100000
boot_target_cmd=run do_flash_os;run do_probe_dfu;run do_compute_target;run mmc-bootargs;run load_kernel;zboot ${loadaddr}
bootargs=root=/dev/mmcblk0p8 rootfstype=ext4 console=ttyS2 earlyprintk=ttyS2,keep loglevel=4 acpi=off g_multi.ethernet_config=rndis systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=4aa08c597b139dd507f4946de1312c8a g_multi.dev_addr=02:00:86:31:2c:8a platform_mrfld_audio.audio_codec=dummy
bootargs_console=console=ttyS2 earlyprintk=ttyS2,keep
bootargs_debug=loglevel=4 acpi=off
bootargs_edsboot=tty1 console=ttyS2,115200n8 root=/dev/mmcblk1 rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00
bootargs_ethconfig=rndis
bootargs_rootfs=root=/dev/mmcblk0p8 rootfstype=ext4
bootargs_target=multi-user
bootargs_usbboot=debugshell=10 tty1 console=ttyS2,115200n8 root=/dev/sda rootfstype=ext4 systemd.unit=multi-user.target hardware_id=00
bootcmd=echo "Target:${target_name}"; run do_partition; run do_handle_bootargs_mode;
bootdelay=1
dfu_alt_info=ifwi00 raw 0 8192 mmcpart 1;ifwib00 raw 0 8192 mmcpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7
dfu_alt_info_ram=kernel ram ${loadaddr} 0x800000
dfu_alt_info_reset=reset ram 0x0 0x0
dfu_to_sec=3
do_audio_support=setenv audio_support platform_mrfld_audio.${audio_codec_name}
do_boot=run boot_target_cmd;
do_bootargs_rootfs=setenv bootargs_rootfs root=/dev/mmcblk0p8 rootfstype=ext4
do_compute_target=if itest.b ${first_install_retry} -gt ${first_install_max_retries} || itest.b ${ota_update_retry} -gt ${ota_update_max_retries}; then echo "Switch to Rescue target"; setenv bootargs_target rescue; saveenv; fi
do_dfu_alt_info_ifwi=setenv dfu_alt_info "ifwi${hardware_id} raw 0 8192 mmcpart 1;ifwib${hardware_id} raw 0 8192 mmcpart 2"
do_dfu_alt_info_mmc=setenv dfu_alt_info "ifwi${hardware_id} raw 0 8192 mmcpart 1;ifwib${hardware_id} raw 0 8192 mmcpart 2;u-boot0 part 0 1;u-boot-env0 part 0 2;u-boot1 part 0 3;u-boot-env1 part 0 4;boot part 0 7;rootfs part 0 8;update part 0 9;home part 0 10;vmlinuz fat 0 7;initrd fat 0 7"
do_dnx=setenv dfu_alt_info ${dfu_alt_info_ram};dfu 0 ram 0 ram;run bootcmd
do_fallback=echo "Unknown boot mode: $bootargs_mode"; env delete -f bootargs_mode; saveenv; echo "Resetting to default boot mode and reboot..."; reset;
do_flash=run do_force_flash_os;
do_flash_ifwi=run do_dfu_alt_info_ifwi ; dfu 0 mmc 0
do_flash_os=if itest.b ${do_flash_os_done} -eq 1 ; then echo "Flashing already done..." ; else run do_force_flash_os; fi
do_flash_os_done=1
do_flashall=run do_partition;run do_flash_ifwi;run do_flash_os
do_force_flash_os=run do_dfu_alt_info_mmc ; sleep 1 ; setenv do_flash_os_done 1 ; saveenv ; dfu 0 mmc 0
do_force_partition=echo "Partitioning using GPT"; gpt write mmc 0 ${partitions} ; mmc rescan; setenv do_partition_done 1 ; saveenv
do_handle_bootargs_mode=run do_preprocess_bootargs_mode; if itest.s $bootargs_mode == "ota" ; then run do_ota; fi; if itest.s $bootargs_mode == "boot" ; then run do_boot; fi; if itest.s $bootargs_mode == "flash"; then run do_flash; fi; run do_fallback; exit;
do_load_ota_scr=if fatload mmc 0:9 $ota_script_addr ota_update.scr ; then setenv ota_status 0 ; else setenv ota_status 1 ; fi
do_ota=run do_ota_init ; run do_load_ota_scr ; run do_source_ota_scr ; run do_ota_clean
do_ota_clean=saveenv ; reset
do_ota_init=setenv ota_status 1 ; env delete -f bootargs_mode
do_partition=if itest.b ${do_partition_done} -eq 1; then echo "Partitioning already done..."; else run do_force_partition ; fi
do_partition_done=1
do_preprocess_bootargs_mode=if env exists bootargs_mode ; then ; else setenv bootargs_mode "boot" ;fi;
do_probe_dfu=run do_dfu_alt_info_mmc ; dfu 0 mmc 0 ${dfu_to_sec}
do_source_ota_scr=if test $ota_status -eq 0 ; then if source $ota_script_addr ; then setenv ota_status 0 ; else setenv ota_status 2 ; fi ; fi
edsboot=setenv bootargs ${acpi} ${bootargs_edsboot}; run load_edsboot; run boot_edsboot
fdtcontroladdr=3d4541b0
first_install_max_retries=3
first_install_retry=0
hardware_id=00
init_dfu=run do_dfu_alt_info_mmc ; saveenv
load_edsboot=load mmc 0:9 0x100000 bzImage-initramfs
load_kernel=fatload mmc 0:7 ${loadaddr} vmlinuz
load_usbboot=load mmc 0:9 0x100000 bzImage-initramfs-usb
loadaddr=0x100000
mmc-bootargs=run do_bootargs_rootfs; run do_audio_support; setenv bootargs ${bootargs_rootfs} ${bootargs_console} ${bootargs_debug} g_multi.ethernet_config=${bootargs_ethconfig} systemd.unit=${bootargs_target}.target hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr} ${audio_support}
ota_done=0
ota_script_addr=0x100000
ota_update_max_retries=3
ota_update_retry=0
partitions=uuid_disk=${uuid_disk};name=u-boot0,start=1MiB,size=2MiB,uuid=${uuid_uboot0};name=u-boot-env0,size=1MiB,uuid=${uuid_uboot_env0};name=u-boot1,size=2MiB,uuid=${uuid_uboot1};name=u-boot-env1,size=1MiB,uuid=${uuid_uboot_env1};name=factory,size=1MiB,uuid=${uuid_factory};name=panic,size=24MiB,uuid=${uuid_panic};name=boot,size=32MiB,uuid=${uuid_boot};name=rootfs,size=1536MiB,uuid=${uuid_rootfs};name=update,size=768MiB,uuid=${uuid_update};name=home,size=-,uuid=${uuid_home};
serial#=4aa08c597b139dd507f4946de1312c8a
target_name=blank
usb0addr=02:00:86:31:2c:8a
usbboot=setenv bootargs ${acpi} ${bootargs_usbboot}; run load_usbboot; run boot_edsboot
uuid_boot=db88503d-34a5-3e41-836d-c757cb682814
uuid_disk=21200400-0804-0146-9dcc-a8c51255994f
uuid_factory=333a128e-d3e3-b94d-92f4-d3ebd9b3224f
uuid_home=f13a0978-b1b5-1a4e-8821-39438e24b627
uuid_panic=f20aa902-1c5d-294a-9177-97a513e3cae4
uuid_rootfs=012b3303-34ac-284d-99b4-34e03a2335f4
uuid_uboot0=d117f98e-6f2c-d04b-a5b2-331a19f91cb2
uuid_uboot1=8a4bb8b4-e304-ae48-8536-aff5c9c495b1
uuid_uboot_env0=25718777-d0ad-7443-9e60-02cb591c9737
uuid_uboot_env1=08992135-13c6-084b-9322-3391ff571e19
uuid_update=faec2ecf-8544-e241-b19d-757e796da607

Environment size: 6178/65531 bytes

I compared the images of rocko32 and sumo32 (master). And found the difference in boot partition.

rocko32:

=> ls mmc 0:7
    69632   ldlinux.sys
   186500   libcom32.c32
    24148   libutil.c32
      592   syslinux.cfg
    27104   vesamenu.c32
 10666112   vmlinuz
   122308   ldlinux.c32

7 file(s), 0 dir(s)

sumo32:

=> ls mmc 0:7
  7414592   bzImage
    69632   ldlinux.sys
   186500   libcom32.c32
    24148   libutil.c32
      592   syslinux.cfg
    27104   vesamenu.c32
   122308   ldlinux.c32

7 file(s), 0 dir(s)

There is bzImage not vmlinuz in the boot partition of sumo32.

addition edison-image-edison.hddimg of sumo32:

recover@ilab:~/os/out/current/build/toFlash$ sudo losetup --partscan --find --show edison-image-edison.hddimg
[sudo] password for recover:
/dev/loop0
recover@ilab:~/os/out/current/build/toFlash$ sudo mount /dev/loop0 /mnt/
recover@ilab:~/os/out/current/build/toFlash$ ll /mnt/
total 7690
drwxr-xr-x  2 root root   16384 1月   1  1970 ./
drwxr-xr-x 27 root root    4096 8月   8 06:47 ../
-rwxr-xr-x  1 root root 7417024 8月  10 11:53 bzImage*
-r-xr-xr-x  1 root root  122308 8月  10 11:53 ldlinux.c32*
-r-xr-xr-x  1 root root   69632 8月  10 11:53 ldlinux.sys*
-rwxr-xr-x  1 root root  186500 8月  10 11:53 libcom32.c32*
-rwxr-xr-x  1 root root   24148 8月  10 11:53 libutil.c32*
-rwxr-xr-x  1 root root     592 8月  10 11:53 syslinux.cfg*
-rwxr-xr-x  1 root root   27104 8月  10 11:53 vesamenu.c32*

Then I boot the image manually.

=> setenv load_kernel "fatload mmc 0:7 ${loadaddr} bzImage"
=> setenv bootargs_console "console=ttyS2,115200n8 earlyprintk=ttyS2,keep"
=> setenv bootargs_debug "loglevel=8 acpi=off"
=> boot
Target:blank
Partitioning already done...
Flashing already done...
7417024 bytes read in 322 ms (22 MiB/s)
Valid Boot Flag
Setup Size = 0x00003e00
Magic signature found
Using boot protocol version 2.0d
Linux kernel version 4.16.0-edison-no-acpi-standard (oe-user@oe-host) #1 SMP Fri Aug 10 03:06:13 UTC 2018
Building boot_params at 0x00090000
Loading bzImage at address 100000 (7401152 bytes)
Magic signature found
Kernel command line: "root=/dev/mmcblk0p8 rootfstype=ext4 console=ttyS2,115200n8 earlyprintk=ttyS2,keep loglevel=8 acpi=off g_multi.ethernet_config=rndis systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=4aa08c597b139dd507f4946de1312c8a g_multi.dev_addr=02:00:86:31:2c:8a platform_mrfld_audio.audio_codec=dummy"
Magic signature found

Starting kernel ...
Boot log
[    0.000000] Linux version 4.16.0-edison-no-acpi-standard (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP Fri Aug 10 03:06:13 UTC 2018
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000097fff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x0000000003ffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000004000000-0x0000000005ffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000006000000-0x000000003f4fffff] usable
[    0.000000] BIOS-e820: [mem 0x000000003f500000-0x000000003fffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec04000-0x00000000fec07fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[    0.000000] console [earlyser0] enabled
[    0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
[    0.000000] random: fast init done
[    0.000000] SMBIOS 2.6 present.
[    0.000000] DMI: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0x3f500 max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-FFFFF write-back
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000 mask FC0000000 write-back
[    0.000000]   1 base 03F600000 mask FFFE00000 uncachable
[    0.000000]   2 base 03F800000 mask FFF800000 uncachable
[    0.000000]   3 base 004000000 mask FFE000000 uncachable
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT
[    0.000000] e820: update [mem 0x04000000-0x05ffffff] usable ==> reserved
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] initial memory mapped: [mem 0x00000000-0x12ffffff]
[    0.000000] Base memory trampoline at [(ptrval)] 94000 size 16384
[    0.000000] BRK [0x12ac8000, 0x12ac8fff] PGTABLE
[    0.000000] 129MB HIGHMEM available.
[    0.000000] 883MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 373fe000
[    0.000000]   low ram: 0 - 373fe000
[    0.000000] BRK [0x12ac9000, 0x12ac9fff] PGTABLE
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   Normal   [mem 0x0000000001000000-0x00000000373fdfff]
[    0.000000]   HighMem  [mem 0x00000000373fe000-0x000000003f4fffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x0000000000097fff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x0000000003ffffff]
[    0.000000]   node   0: [mem 0x0000000006000000-0x000000003f4fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003f4fffff]
[    0.000000] On node 0 totalpages: 251031
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3991 pages, LIFO batch:0
[    0.000000]   Normal zone: 1736 pages used for memmap
[    0.000000]   Normal zone: 214014 pages, LIFO batch:31
[    0.000000]   HighMem zone: 33026 pages, LIFO batch:7
[    0.000000] Reserved but unavailable: 1 pages
[    0.000000] Using APIC driver default
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] SFI: SYST E31F0, 0060 (v1  INTEL INTELFDK)
[    0.000000] SFI: CPUS E3296, 0020 (v1  INTEL INTELFDK)
[    0.000000] SFI: FREQ E32C2, 0030 (v1  INTEL INTELFDK)
[    0.000000] SFI: MMAP E32FE, 01A4 (v1  INTEL INTELFDK)
[    0.000000] SFI: XSDT E34B0, 002C (v1  INTEL INTELFDK)
[    0.000000] SFI: APIC E353E, 0020 (v1  INTEL INTELFDK)
[    0.000000] SFI: WAKE E356A, 0020 (v2  INTEL INTELFDK)
[    0.000000] SFI: DEVS E359E, 047D (v1  INTEL INTELFDK)
[    0.000000] SFI: GPIO E3A27, 0964 (v1  INTEL INTELFDK)
[    0.000000] SFI: OEMB E4397, 0060 (v5 UMGFDK CFGINFO!)
[    0.000000] SFI: registering lapic[0]
[    0.000000] SFI: registering lapic[2]
[    0.000000] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-54
[    0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.000000] PM: Registered nosave memory: [mem 0x00098000-0x000fffff]
[    0.000000] PM: Registered nosave memory: [mem 0x04000000-0x05ffffff]
[    0.000000] e820: [mem 0x40000000-0xfebfffff] available for PCI devices
[    0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1
[    0.000000] percpu: Embedded 29 pages/cpu @(ptrval) s87756 r0 d31028 u118784
[    0.000000] pcpu-alloc: s87756 r0 d31028 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 249263
[    0.000000] Kernel command line: root=/dev/mmcblk0p8 rootfstype=ext4 console=ttyS2,115200n8 earlyprintk=ttyS2,keep loglevel=8 acpi=off g_multi.ethernet_config=rndis systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=4aa08c597b139dd507f4946de1312c8a g_multi.dev_addr=02:00:86:31:2c:8a platform_mrfld_audio.audio_codec=dummy
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] BRK [0x12aca000, 0x12acafff] PGTABLE
[    0.000000] Initializing CPU#0
[    0.000000] Initializing HighMem for node 0 (000373fe:0003f500)
[    0.000000] Initializing Movable for node 0 (00000000:00000000)
[    0.000000] Memory: 979752K/1004124K available (9565K kernel code, 985K rwdata, 2764K rodata, 736K init, 620K bss, 24372K reserved, 0K cma-reserved, 132104K highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfff16000 - 0xfffff000   ( 932 kB)
[    0.000000]   cpu_entry : 0xff800000 - 0xff939000   (1252 kB)
[    0.000000]     pkmap   : 0xff400000 - 0xff800000   (4096 kB)
[    0.000000]     vmalloc : 0xf7bfe000 - 0xff3fe000   ( 120 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf73fe000   ( 883 MB)
[    0.000000]       .init : 0xd291e000 - 0xd29d6000   ( 736 kB)
[    0.000000]       .data : 0xd2557630 - 0xd2908600   (3779 kB)
[    0.000000]       .text : 0xd1c00000 - 0xd2557630   (9565 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 2304, nr_irqs: 512, preallocated irqs: 0
[    0.000000] CPU 0 irqstacks, hard=(ptrval) soft=(ptrval)
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [ttyS2] enabled
[    0.000000] APIC: Switch to symmetric I/O mode setup
[    0.000000] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.000000] tsc: Detected 500.000 MHz processor
[    0.000046] tsc: Detected 499.200 MHz TSC
[    0.000048] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0xe642f98297, max_idle_ns: 881590439301 ns
[    0.000731] Calibrating delay loop (skipped), value calculated using timer frequency.. 998.40 BogoMIPS (lpj=499200)
[    0.001000] pid_max: default: 32768 minimum: 301
[    0.001000] Security Framework initialized
[    0.001000] SELinux:  Initializing.
[    0.001000] SELinux:  Starting in permissive mode
[    0.001000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001000] CPU: Physical Processor ID: 0
[    0.001000] CPU: Processor Core ID: 0
[    0.001000] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[    0.001000] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
[    0.001000] mce: CPU supports 6 MCE banks
[    0.001000] CPU0: Thermal monitoring enabled (TM1)
[    0.001000] process: using mwait in idle threads
[    0.001000] Last level iTLB entries: 4KB 48, 2MB 0, 4MB 0
[    0.001000] Last level dTLB entries: 4KB 128, 2MB 16, 4MB 16, 1GB 0
[    0.001000] Spectre V2 : Mitigation: Full generic retpoline
[    0.001000] Freeing SMP alternatives memory: 40K
[    0.001000] SFI: MCFG E34F6, 003C (v1  INTEL INTELFDK)
[    0.001000] TSC deadline timer enabled
[    0.001000] smpboot: CPU0: Genuine Intel(R) CPU   4000  @  500MHz (family: 0x6, model: 0x4a, stepping: 0x8)
[    0.001000] Performance Events: PEBS fmt2+, generic architected perfmon, full-width counters, Intel PMU driver.
[    0.001539] ... version:                3
[    0.001745] ... bit width:              40
[    0.001954] ... generic registers:      2
[    0.002023] ... value mask:             000000ffffffffff
[    0.002292] ... max period:             0000007fffffffff
[    0.002558] ... fixed-purpose events:   3
[    0.002763] ... event mask:             0000000700000003
[    0.003255] Hierarchical SRCU implementation.
[    0.009852] smp: Bringing up secondary CPUs ...
[    0.010767] CPU 1 irqstacks, hard=8422ad83 soft=0c508764
[    0.011020] x86: Booting SMP configuration:
[    0.011240] .... node  #0, CPUs:      #1
[    0.001000] Initializing CPU#1
[    0.011827] smp: Brought up 1 node, 2 CPUs
[    0.012047] smpboot: Max logical packages: 1
[    0.012271] smpboot: Total of 2 processors activated (1996.80 BogoMIPS)
[    0.013428] devtmpfs: initialized
[    0.017535] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.017449] kworker/u4:0 (20) used greatest stack depth: 7084 bytes left
[    0.018035] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.018239] pinctrl core: initialized pinctrl subsystem
[    0.019089] SFI: SFI sysfs interfaces init success
[    0.019210] regulator-dummy: no parameters
[    0.020130] RTC time:  0:24:03, date: 01/01/00
[    0.020130] NET: Registered protocol family 16
[    0.022155] audit: initializing netlink subsys (disabled)
[    0.023628] audit: type=2000 audit(946686243.023:1): state=initialized audit_enabled=0 res=1
[    0.024275] cpuidle: using governor menu
[    0.026471] Using generic wifi platform data
[    0.027536] PCI: MMCONFIG for domain 0000 [bus 00-00] at [mem 0x3f500000-0x3f5fffff] (base 0x3f500000)
[    0.027918] PCI: MMCONFIG at [mem 0x3f500000-0x3f5fffff] reserved in E820
[    0.028237] PCI: Using MMCONFIG for extended config space
[    0.028298] Intel MID platform detected, using MID PCI ops
[    0.028574] PCI: Using configuration type 1 for base access
[    0.036336] kworker/u4:0 (107) used greatest stack depth: 6828 bytes left
[    0.070026] HugeTLB registered 4.00 MiB page size, pre-allocated 0 pages
[    0.071754] ACPI: Interpreter disabled.
[    0.072451] bcm43xx-vmmc-regulator: Failed to request enable GPIO96: -517
[    0.072451] reg-fixed-voltage reg-fixed-voltage.0.auto: Failed to register regulator: -517
[    0.073551] vgaarb: loaded
[    0.074029] SCSI subsystem initialized
[    0.074396] libata version 3.00 loaded.
[    0.075329] usbcore: registered new interface driver usbfs
[    0.075866] usbcore: registered new interface driver hub
[    0.076053] usbcore: registered new device driver usb
[    0.076203] pps_core: LinuxPPS API ver. 1 registered
[    0.076459] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti 
[    0.077532] PTP clock support registered
[    0.078216] EDAC MC: Ver: 3.0.0
[    0.079025] Advanced Linux Sound Architecture Driver Initialized.
[    0.079382] PCI: Probing PCI hardware
[    0.079382] PCI: root bus 00: using default resources
[    0.079382] PCI: Probing PCI hardware (bus 00)
[    0.080010] PCI host bridge to bus 0000:00
[    0.080010] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.080010] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffff]
[    0.081029] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.081466] pci 0000:00:00.0: [8086:1170] type 00 class 0x060000
[    0.082102] pci 0000:00:01.0: [8086:1190] type 00 class 0x080501
[    0.082456] pci 0000:00:01.0: reg 0x10: [mem 0xff3fc000-0xff3fc0ff]
[    0.083020] pci 0000:00:01.0: PME# supported from D0 D3hot
[    0.083270] pci 0000:00:01.2: [8086:1190] type 00 class 0x080501
[    0.083621] pci 0000:00:01.2: reg 0x10: [mem 0xff3fa000-0xff3fa0ff]
[    0.084060] pci 0000:00:01.2: PME# supported from D0 D3hot
[    0.084584] pci 0000:00:01.3: [8086:1190] type 00 class 0x080501
[    0.084934] pci 0000:00:01.3: reg 0x10: [mem 0xff3fb000-0xff3fb0ff]
[    0.085137] pci 0000:00:01.3: PME# supported from D0 D3hot
[    0.086053] pci 0000:00:02.0: [8086:1182] type 00 class 0x038000
[    0.086053] pci 0000:00:02.0: reg 0x10: [mem 0xc0000000-0xc1ffffff]
[    0.086381] pci 0000:00:02.0: reg 0x18: [mem 0x80000000-0x8fffffff]
[    0.086730] pci 0000:00:02.0: reg 0x20: [io  0x7ff8-0x7fff]
[    0.087310] pci 0000:00:04.0: [8086:1191] type 00 class 0x070002
[    0.087660] pci 0000:00:04.0: reg 0x10: [mem 0xff010000-0xff01007f]
[    0.088099] pci 0000:00:04.0: PME# supported from D0 D3hot
[    0.089008] pci 0000:00:04.1: [8086:1191] type 00 class 0x070002
[    0.089008] pci 0000:00:04.1: reg 0x10: [mem 0xff010080-0xff0100ff]
[    0.089138] pci 0000:00:04.1: PME# supported from D0 D3hot
[    0.090051] pci 0000:00:04.2: [8086:1191] type 00 class 0x070002
[    0.090051] pci 0000:00:04.2: reg 0x10: [mem 0xff010100-0xff01017f]
[    0.091139] pci 0000:00:04.2: PME# supported from D0 D3hot
[    0.091661] pci 0000:00:04.3: [8086:1191] type 00 class 0x070002
[    0.092000] pci 0000:00:04.3: reg 0x10: [mem 0xff010180-0xff0101ff]
[    0.092447] pci 0000:00:04.3: PME# supported from D0 D3hot
[    0.093005] pci 0000:00:05.0: [8086:1192] type 00 class 0x070002
[    0.093069] pci 0000:00:05.0: reg 0x10: [mem 0xff010400-0xff0107ff]
[    0.093499] pci 0000:00:05.0: PME# supported from D0 D3hot
[    0.094051] pci 0000:00:06.0: [8086:1193] type 00 class 0x088000
[    0.094366] pci 0000:00:06.0: reg 0x10: [mem 0xff2a0000-0xff2a0fff]
[    0.094795] pci 0000:00:06.0: PME# supported from D0 D3hot
[    0.095267] pci 0000:00:06.1: [8086:1193] type 00 class 0x088000
[    0.095617] pci 0000:00:06.1: reg 0x10: [mem 0xff2a1000-0xff2a1fff]
[    0.096052] pci 0000:00:06.1: PME# supported from D0 D3hot
[    0.096587] pci 0000:00:07.0: [8086:1194] type 00 class 0x088000
[    0.096936] pci 0000:00:07.0: reg 0x10: [mem 0xff188000-0xff188fff]
[    0.097138] pci 0000:00:07.0: PME# supported from D0 D3hot
[    0.098051] pci 0000:00:07.1: [8086:1194] type 00 class 0x088000
[    0.098051] pci 0000:00:07.1: reg 0x10: [mem 0xff189000-0xff189fff]
[    0.098139] pci 0000:00:07.1: PME# supported from D0 D3hot
[    0.099009] pci 0000:00:07.2: [8086:1194] type 00 class 0x088000
[    0.099009] pci 0000:00:07.2: reg 0x10: [mem 0xff18a000-0xff18afff]
[    0.100138] pci 0000:00:07.2: PME# supported from D0 D3hot
[    0.100674] pci 0000:00:08.0: [8086:1195] type 00 class 0x078000
[    0.101029] pci 0000:00:08.0: reg 0x10: [mem 0xff18b000-0xff18bfff]
[    0.101461] pci 0000:00:08.0: PME# supported from D0 D3hot
[    0.102050] pci 0000:00:08.1: [8086:1195] type 00 class 0x078000
[    0.102068] pci 0000:00:08.1: reg 0x10: [mem 0xff18c000-0xff18cfff]
[    0.102498] pci 0000:00:08.1: PME# supported from D0 D3hot
[    0.103009] pci 0000:00:08.2: [8086:1195] type 00 class 0x078000
[    0.103366] pci 0000:00:08.2: reg 0x10: [mem 0xff18d000-0xff18dfff]
[    0.103795] pci 0000:00:08.2: PME# supported from D0 D3hot
[    0.104258] pci 0000:00:08.3: [8086:1195] type 00 class 0x078000
[    0.104607] pci 0000:00:08.3: reg 0x10: [mem 0xff18e000-0xff18efff]
[    0.105042] pci 0000:00:08.3: PME# supported from D0 D3hot
[    0.106048] pci 0000:00:09.0: [8086:1196] type 00 class 0x078000
[    0.106048] pci 0000:00:09.0: reg 0x10: [mem 0xff18f000-0xff18ffff]
[    0.106138] pci 0000:00:09.0: PME# supported from D0 D3hot
[    0.107009] pci 0000:00:09.1: [8086:1196] type 00 class 0x078000
[    0.107009] pci 0000:00:09.1: reg 0x10: [mem 0xff190000-0xff190fff]
[    0.108139] pci 0000:00:09.1: PME# supported from D0 D3hot
[    0.108663] pci 0000:00:09.2: [8086:1196] type 00 class 0x078000
[    0.109000] pci 0000:00:09.2: reg 0x10: [mem 0xff191000-0xff191fff]
[    0.109448] pci 0000:00:09.2: PME# supported from D0 D3hot
[    0.110007] pci 0000:00:0a.0: [8086:1197] type 00 class 0x078000
[    0.110068] pci 0000:00:0a.0: reg 0x10: [mem 0xff3f8000-0xff3f8fff]
[    0.110498] pci 0000:00:0a.0: PME# supported from D0 D3hot
[    0.111009] pci 0000:00:0b.0: [8086:1198] type 00 class 0x108000
[    0.111366] pci 0000:00:0b.0: reg 0x10: [mem 0xf9038000-0xf903ffff]
[    0.111794] pci 0000:00:0b.0: PME# supported from D0 D3hot
[    0.112269] pci 0000:00:0c.0: [8086:1199] type 00 class 0x088000
[    0.112618] pci 0000:00:0c.0: reg 0x10: [mem 0xff008000-0xff008fff]
[    0.112952] pci 0000:00:0c.0: reg 0x14: [mem 0x000ddcc0-0x000ddccf]
[    0.113128] pci 0000:00:0c.0: PME# supported from D0 D3hot
[    0.114048] pci 0000:00:0d.0: [8086:119a] type 00 class 0x040100
[    0.114048] pci 0000:00:0d.0: reg 0x10: [mem 0x05e00000-0x05ffffff]
[    0.114048] pci 0000:00:0d.0: reg 0x14: [mem 0xff340000-0xff343fff]
[    0.114381] pci 0000:00:0d.0: reg 0x18: [mem 0xff344000-0xff344fff]
[    0.114713] pci 0000:00:0d.0: reg 0x1c: [mem 0xff2c0000-0xff2dffff]
[    0.115038] pci 0000:00:0d.0: reg 0x20: [mem 0xff300000-0xff33ffff]
[    0.115428] pci 0000:00:0d.0: PME# supported from D0 D3hot
[    0.116005] pci 0000:00:0e.0: [8086:119b] type 00 class 0x088000
[    0.117069] pci 0000:00:0e.0: reg 0x10: [mem 0xff298000-0xff29bfff]
[    0.117404] pci 0000:00:0e.0: reg 0x14: [mem 0xff2a2000-0xff2a2fff]
[    0.117822] pci 0000:00:0e.0: PME# supported from D0 D3hot
[    0.118270] pci 0000:00:11.0: [8086:119e] type 00 class 0x0c0320
[    0.118619] pci 0000:00:11.0: reg 0x10: [mem 0xf9100000-0xf911ffff]
[    0.119066] pci 0000:00:11.0: PME# supported from D0 D3hot
[    0.119590] pci 0000:00:12.0: [8086:119f] type 00 class 0x118000
[    0.119939] pci 0000:00:12.0: reg 0x10: [mem 0xf9009000-0xf9009fff]
[    0.120045] pci 0000:00:12.0: reg 0x14: [mem 0xf90a0000-0xf90affff]
[    0.120379] pci 0000:00:12.0: reg 0x18: [mem 0xfa000000-0xfaffffff]
[    0.120788] pci 0000:00:12.0: PME# supported from D0 D3hot
[    0.121270] pci 0000:00:13.0: [8086:11a0] type 00 class 0x0b4000
[    0.121619] pci 0000:00:13.0: reg 0x10: [mem 0xff009000-0xff009fff]
[    0.122055] pci 0000:00:13.0: PME# supported from D0 D3hot
[    0.123008] pci 0000:00:14.0: [8086:11a1] type 00 class 0x0b4000
[    0.123008] pci 0000:00:14.0: reg 0x10: [mem 0xff00b000-0xff00bfff]
[    0.123137] pci 0000:00:14.0: PME# supported from D0 D3hot
[    0.124009] pci 0000:00:15.0: [8086:11a2] type 00 class 0x088000
[    0.124009] pci 0000:00:15.0: reg 0x10: [mem 0xff192000-0xff192fff]
[    0.124448] pci 0000:00:15.0: PME# supported from D0 D3hot
[    0.125009] pci 0000:00:16.0: [8086:11a3] type 00 class 0x0b4000
[    0.126070] pci 0000:00:16.0: reg 0x10: [mem 0xff0d9000-0xff0d90ff]
[    0.126500] pci 0000:00:16.0: PME# supported from D0 D3hot
[    0.127027] pci 0000:00:16.1: [8086:11a4] type 00 class 0x0b4000
[    0.127379] pci 0000:00:16.1: reg 0x10: [mem 0x04819000-0x04898fff]
[    0.127713] pci 0000:00:16.1: reg 0x14: [mem 0x04919000-0x04920fff]
[    0.128125] pci 0000:00:16.1: PME# supported from D0 D3hot
[    0.128667] pci 0000:00:17.0: [8086:11a5] type 00 class 0x088000
[    0.129000] pci 0000:00:17.0: reg 0x10: [mem 0xff013000-0xff013fff]
[    0.129448] pci 0000:00:17.0: PME# supported from D0 D3hot
[    0.129973] pci 0000:00:18.0: [8086:11a6] type 00 class 0x038000
[    0.130168] pci 0000:00:18.0: PME# supported from D0 D3hot
[    0.130690] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.131172] PCI: pci_cache_line_size set to 64 bytes
[    0.131596] e820: reserve RAM buffer [mem 0x00098000-0x0009ffff]
[    0.131902] e820: reserve RAM buffer [mem 0x3f500000-0x3fffffff]
[    0.133033] Bluetooth: Core ver 2.22
[    0.133401] NET: Registered protocol family 31
[    0.133401] Bluetooth: HCI device and connection manager initialized
[    0.133401] Bluetooth: HCI socket layer initialized
[    0.133601] Bluetooth: L2CAP socket layer initialized
[    0.133894] Bluetooth: SCO socket layer initialized
[    0.134049] NetLabel: Initializing
[    0.134230] NetLabel:  domain hash size = 128
[    0.134450] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.134845] NetLabel:  unlabeled traffic allowed by default
[    0.137126] clocksource: Switched to clocksource tsc-early
[    0.212337] VFS: Disk quotas dquot_6.6.0
[    0.212649] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.213351] pnp: PnP ACPI: disabled
[    0.228940] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.229269] pci_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
[    0.229746] NET: Registered protocol family 2
[    0.230873] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.231331] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.231777] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.232296] TCP: Hash tables configured (established 8192 bind 8192)
[    0.232743] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.233106] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.233660] NET: Registered protocol family 1
[    0.234634] RPC: Registered named UNIX socket transport module.
[    0.234939] RPC: Registered udp transport module.
[    0.235288] RPC: Registered tcp transport module.
[    0.235531] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.562067] PCI: CLS 0 bytes, default 64
[    0.591503] DMA-API: preallocated 65536 debug entries
[    0.591769] DMA-API: debugging enabled by kernel config
[    0.593468] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0xe642f98297, max_idle_ns: 881590439301 ns
[    0.594064] clocksource: Switched to clocksource tsc
[    0.594493] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.596986] Scanning for low memory corruption every 60 seconds
[    0.597925] kworker/u4:3 (597) used greatest stack depth: 6812 bytes left
[    0.598825] pci 0000:00:04.1: Registered Bluetooth device: hci_bcm
[    0.601986] Initialise system trusted keyrings
[    0.602575] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.618969] NFS: Registering the id_resolver key type
[    0.619307] Key type id_resolver registered
[    0.619527] Key type id_legacy registered
[    0.620419] SELinux:  Registering netfilter hooks
[    0.628266] Key type asymmetric registered
[    0.628486] Asymmetric key parser 'x509' registered
[    0.628811] bounce: pool size: 64 pages
[    0.629154] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.629529] io scheduler noop registered
[    0.629732] io scheduler deadline registered
[    0.630336] io scheduler cfq registered (default)
[    0.630583] io scheduler mq-deadline registered
[    0.630815] io scheduler kyber registered
[    0.642206] dw_dmac_pci 0000:00:15.0: DesignWare DMA Controller, 8 channels
[    0.644333] hsu_dma_pci 0000:00:05.0: Found HSU DMA, 12 channels
[    0.645458] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.649575] 8250_mid: probe of 0000:00:04.0 failed with error -16
[    0.650494] 0000:00:04.1: ttyS0 at MMIO 0xff010080 (irq = 28, base_baud = 1843200) is a TI16750
[    0.652119] 0000:00:04.2: ttyS1 at MMIO 0xff010100 (irq = 29, base_baud = 1843200) is a TI16750
[    0.653661] console [ttyS2] disabled
[    0.653890] 0000:00:04.3: ttyS2 at MMIO 0xff010180 (irq = 54, base_baud = 1843200) is a TI16750
[    2.815250] console [ttyS2] enabled
[    2.819803] Non-volatile memory driver v1.3
[    2.824682] Linux agpgart interface v0.103
[    2.840223] loop: module loaded
[    2.845810] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    2.852116] e100: Copyright(c) 1999-2006 Intel Corporation
[    2.857918] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    2.865192] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    2.871246] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    2.877261] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.883513] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    2.890681] igb: Copyright (c) 2007-2014 Intel Corporation.
[    2.896545] sky2: driver version 1.30
[    2.901199] usbcore: registered new interface driver r8152
[    2.906964] usbcore: registered new interface driver asix
[    2.912619] usbcore: registered new interface driver ax88179_178a
[    2.918973] usbcore: registered new interface driver cdc_ether
[    2.925087] usbcore: registered new interface driver net1080
[    2.930996] usbcore: registered new interface driver cdc_subset
[    2.937169] usbcore: registered new interface driver zaurus
[    2.942990] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    2.950697] usbcore: registered new interface driver cdc_ncm
[    2.957397] dwc3 dwc3.1.auto: Configuration mismatch. dr_mode forced to host
[    2.965996] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.972865] ehci-pci: EHCI PCI platform driver
[    2.977570] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.983958] ohci-pci: OHCI PCI platform driver
[    2.988640] uhci_hcd: USB Universal Host Controller Interface driver
[    2.995580] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    3.001545] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
[    3.009674] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f06c hci version 0x100 quirks 0x02010010
[    3.018693] xhci-hcd xhci-hcd.2.auto: irq 34, io mem 0xf9100000
[    3.025227] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.032249] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.039690] usb usb1: Product: xHCI Host Controller
[    3.044727] usb usb1: Manufacturer: Linux 4.16.0-edison-no-acpi-standard xhci-hcd
[    3.052424] usb usb1: SerialNumber: xhci-hcd.2.auto
[    3.058203] hub 1-0:1.0: USB hub found
[    3.062148] hub 1-0:1.0: 1 port detected
[    3.066753] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    3.072681] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
[    3.080690] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.089210] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    3.096228] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.103661] usb usb2: Product: xHCI Host Controller
[    3.108689] usb usb2: Manufacturer: Linux 4.16.0-edison-no-acpi-standard xhci-hcd
[    3.116380] usb usb2: SerialNumber: xhci-hcd.2.auto
[    3.122133] hub 2-0:1.0: USB hub found
[    3.126078] hub 2-0:1.0: 1 port detected
[    3.130841] usbcore: registered new interface driver usblp
[    3.136647] usbcore: registered new interface driver usb-storage
[    3.142991] usbcore: registered new interface driver pl2303
[    3.148804] usbserial: USB Serial support registered for pl2303
[    3.156308] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    3.162975] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[    3.170670] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    3.179492] hidraw: raw HID events driver (C) Jiri Kosina
[    3.186303] usbcore: registered new interface driver usbhid
[    3.192065] usbhid: USB HID core driver
[    3.197414] intel_mid_wdt intel_mid_wdt: Intel MID watchdog device probed
[    3.205460] input: msic_power_btn as /devices/platform/msic_power_btn/input/input0
[    3.215989] Initializing XFRM netlink socket
[    3.221518] NET: Registered protocol family 10
[    3.227338] Segment Routing with IPv6
[    3.231632] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.238821] NET: Registered protocol family 17
[    3.243501] Key type dns_resolver registered
[    3.250202] microcode: sig=0x406a8, pf=0x1, revision=0x81f
[    3.256143] microcode: Microcode Update Driver: v2.2.
[    3.256163] Using IPI No-Shortcut mode
[    3.265481] sched_clock: Marking stable (3265233204, 0)->(3278631570, -13398366)
[    3.274247] registered taskstats version 1
[    3.278503] Loading compiled-in X.509 certificates
[    3.284700] bcm43xx-vmmc-regulator: at 2000 mV
[    3.289587] reg-fixed-voltage reg-fixed-voltage.0.auto: bcm43xx-vmmc-regulator supplying 2000000uV
[    3.298927]   Magic number: 4:418:404
[    3.302886] console [netcon0] enabled
[    3.306675] netconsole: network logging started
[    3.311896] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    3.319528] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.335542] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.342393] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.343089] bcm43xx-vmmc-regulator: disabling
[    3.351276] cfg80211: failed to load regulatory.db
[    3.355725] ALSA device list:
[    3.355737]   No soundcards found.
[    3.367606] md: Waiting for all devices to be available before autodetect
[    3.374592] md: If you don't use raid, use raid=noautodetect
[    3.381225] md: Autodetecting RAID arrays.
[    3.385472] md: autorun ...
[    3.388361] md: ... autorun DONE.
[    3.391957] VFS: Cannot open root device "mmcblk0p8" or unknown-block(0,0): error -6
[    3.399932] Please append a correct "root=" boot option; here are the available partitions:
[    3.408527] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.417000] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.16.0-edison-no-acpi-standard #1
[    3.425192] Hardware name: Intel Corporation Merrifield/BODEGA BAY, BIOS 542 2015.01.21:18.19.48
[    3.434181] Call Trace:
[    3.436708]  dump_stack+0x47/0x66
[    3.440116]  panic+0x8a/0x1cb
[    3.443167]  mount_block_root+0x12b/0x1d0
[    3.447285]  mount_root+0xf6/0x10f
[    3.450778]  prepare_namespace+0x116/0x147
[    3.454977]  kernel_init_freeable+0x18e/0x1a0
[    3.459446]  ? rest_init+0x90/0x90
[    3.462937]  kernel_init+0x8/0xf0
[    3.466336]  ret_from_fork+0x2e/0x38
[    3.470042] Kernel Offset: 0x10c00000 from 0xc1000000 (relocation range: 0xc0000000-0xf7bfdfff)
[    3.478953] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

And get the error:

[    3.391957] VFS: Cannot open root device "mmcblk0p8" or unknown-block(0,0): error -6
[    3.399932] Please append a correct "root=" boot option; here are the available partitions:
[    3.408527] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
htot commented 6 years ago

I can confirm all of the above. There appear to be multiple problems that we did not have with Rocko: 1) With Sumo Yocto changed to incorporating bzImage into edison-image-edison.hddimg instead of vmlinuz. This is not a big issue as we only need to change the file name in meta-intel-edison-bsp/recipes-bsp/u-boot/files/edison.env. 2) It looks like we need to put the baud rate in the console (and earlyprintk) option to see any error messages with linux 4.16. Without this fix, when there are no errors, linux will still boot but very quietly. 3) With bzImage the kernel crashes as mmcblk0p8 does not appear. Adding rootwait to the kernel arg it waits forever. A usb disk does appear if present, sdhc not. As the mmc driver is built as module we need the initramfs to boot from emmc same as for sdhc. However Yocto builds bzImage-edison.bin into edison-image-edison.hddimg instead of bzImage-initramfs-edison.bin. @alext-mkrs do you know how to change which kernel image to build into the hddimage?

I could test the above because my mmcblk0p9 still contains bootable kernels so I can still boot from USB. mmcblk0p7 is a 9MB fs in a 33MB partition, too small to hold the initramfs kernel (12MB). I created a new fat32 partition in p7, copied bzImage-initramfs-edison.bin there and renamed to bzImage. Now it boots normally.

lybtongji commented 6 years ago

I used a temporary solution just now. After built the image. I ran the command bitbake -c cleanall edison-image to cleanup the hddimg files. Then added bzImage-initramfs-edison.bin to hddimg folder manually.

mkdir -p ~/os/out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0-r0/edison-image-1.0/hddimg
cp -v ~/os/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/4.16.0-r0/deploy-linux-yocto/bzImage-initramfs-edison.bin ~/os/out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0-r0/edison-image-1.0/hddimg/vmlinuz

Rebuilt the image:

bitbake edison-image

Got the hddimg file:

~/os/out/linux64/build/tmp/deploy/images/edison/edison-image-edison.hddimg

Then replaced the old hddimg file by the new one and flashed it to the edison. Now, I can boot into the system.

htot commented 6 years ago

Good one.

I hope @alext-mkrs will know how to fix this permanently. In the past he found VM_DEFAULT_KERNEL = "bzImage-initramfs-edison.bin" which I think did the trick.

Edit: Unfortunately that was removed by this commit: https://github.com/openembedded/openembedded-core/commit/5493bb5ba4b4520f944d38b214a3d53a5282e0be

alext-mkrs commented 6 years ago

Not OTMH, but I'll take a look, there should be something.

htot commented 6 years ago

I have the bad feeling they want us to use WIC, but have no clue how that works.

alext-mkrs commented 6 years ago

Well, not sure that's the thing as wic is AFAIU is used for something a bit different like image partitioning - but anyway, generally an easy solution here is just to build to module into the kernel, which we can't due to specific Edison peculiarity. And the image-live/live-vm-common classes simply don't have that functionality, because they support a plain kernel and an initrd setups, and probably no one wanted an initramfs one bad enough.

I think I have a solution, it's a bit hackish, but well within Yocto mechanisms, so unless someone from the Yocto team responds to your commit comment with a better approach, this would work ok. I'll share it in a couple of minutes, preparing a branch to test.

alext-mkrs commented 6 years ago

BTW, @htot, do you remember/know why don't we currently build the mmc drive into the kernel? I sort of assumed that's because of that i2c-6 problem, but re-reading the commit message for that one now, I don't think that's actually related. Built-in module would solve that problem. Initramfs was introduced only for ACPI table loading AFAIU, so I don't see why we couldn't just have the most essential drivers built-in. That will help to avoid the fix I'm about to share.

alext-mkrs commented 6 years ago

@lybtongji, please give it a try with the above two patches. One ensures proper initramfs kernel is added to the hddimg and another one corrects the U-Boot env file. The second one you can actually do manually using setenv, this is just for fix completeness.

lybtongji commented 6 years ago

@alext-mkrs Not working... The boot message still shows:

[    3.386858] VFS: Cannot open root device "mmcblk0p8" or unknown-block(0,0): error -6
[    3.394831] Please append a correct "root=" boot option; here are the available partitions:
[    3.403430] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

bzImage was replaced by bzImage-initramfs-edison.bin:

recover@ilab:~/os$  ll ~/os/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/4.16.0-r0/deploy-linux-yocto/
total 18384
drwxrwxr-x  2 recover recover     4096 8月  13 00:50 ./
drwxrwxr-x 15 recover recover     4096 8月  13 01:08 ../
lrwxrwxrwx  2 recover recover       44 8月  13 00:50 bzImage -> bzImage--4.16.0-r0-edison-20180812160734.bin
-rw-r--r--  2 recover recover  7445984 8月  13 00:50 bzImage--4.16.0-r0-edison-20180812160734.bin
lrwxrwxrwx  2 recover recover       44 8月  13 00:50 bzImage-edison.bin -> bzImage--4.16.0-r0-edison-20180812160734.bin
-rw-r--r--  2 recover recover 10791680 8月  13 00:50 bzImage-initramfs-4.16.0-r0-edison-20180812160734.bin
lrwxrwxrwx  2 recover recover       53 8月  13 00:50 bzImage-initramfs-edison.bin -> bzImage-initramfs-4.16.0-r0-edison-20180812160734.bin
-rw-rw-r--  2 recover recover   575511 8月  13 00:50 modules--4.16.0-r0-edison-20180812160734.tgz
lrwxrwxrwx  2 recover recover       44 8月  13 00:50 modules-edison.tgz -> modules--4.16.0-r0-edison-20180812160734.tgz
recover@ilab:~/os$  ll ~/os/out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0-r0/edison-image-1.0/hddimg/
total 10856
drwxr-xr-x 2 recover recover     4096 8月  13 01:08 ./
drwxr-xr-x 3 recover recover     4096 8月  13 01:08 ../
-rw-r--r-- 1 recover recover 10791680 8月  13 01:08 bzImage
-r--r--r-- 1 recover recover    68599 8月  13 01:08 ldlinux.sys
-r--r--r-- 1 recover recover   186500 8月  13 01:08 libcom32.c32
-r--r--r-- 1 recover recover    24148 8月  13 01:08 libutil.c32
-rw-r--r-- 1 recover recover      592 8月  13 01:08 syslinux.cfg
-rw-r--r-- 1 recover recover    27104 8月  13 01:08 vesamenu.c32

But still not in hddimg file:

recover@ilab:~/os$  sudo mount ~/os/out/linux64/build/tmp/deploy/images/edison/edison-image-edison.hddimg /mnt/
[sudo] password for recover:
recover@ilab:~/os$  ll /mnt/
total 7718
drwxr-xr-x  2 root root   16384 1月   1  1970 ./
drwxr-xr-x 27 root root    4096 8月   8 06:47 ../
-rwxr-xr-x  1 root root 7445984 8月  13 01:08 bzImage*
-r-xr-xr-x  1 root root  122308 8月  13 01:08 ldlinux.c32*
-r-xr-xr-x  1 root root   69632 8月  13 01:08 ldlinux.sys*
-rwxr-xr-x  1 root root  186500 8月  13 01:08 libcom32.c32*
-rwxr-xr-x  1 root root   24148 8月  13 01:08 libutil.c32*
-rwxr-xr-x  1 root root     592 8月  13 01:08 syslinux.cfg*
-rwxr-xr-x  1 root root   27104 8月  13 01:08 vesamenu.c32*
htot commented 6 years ago

No, initramfs is not for acpi-tables.

We needed to build sdhc driver as module due to some power or regulator related issue since fc0f361417514b5307f637addca83c21e5c2adb0. I forgot exactly how, maybe it's similar to how we fix i2c-6. Should be in the very long thread in the edison forum. Like 27-okt-2016: "keeping in mind regulator for eMMC and SD card detection" from @andy-shev. Maybe I understood wrong at the time, or situation changed and it's not needed anymore. But it was a big step for me to understand initramfs and get yocto to build that, so it must have seemed really necessary.

And since we then we have the initramfs, why not put the acpi-tables in there? Although loading the cpio in memory from u-boot works fine too.

alext-mkrs commented 6 years ago

@htot, understood, thanks, will look deeper into that then when I have time.

@lybtongji, thanks for testing. Looks like the approach I took is doing the file substitution too late, at the end of the day. And the variable they now use in live-vm-common looks too generic to mess up with directly. I'll see what else could be done here.

htot commented 6 years ago

@alext-mkrs I found Andy's e-mail 9-Sep-2016 and it seems a little different then I remember:

Looks like you have no driver enumerated for your rootfs. Basically either you need to use special initramfs / initrd where you have all necessary modules and you use pivot_root to switch rootfs, or you compile in all those modules. Since one bug(?) in the regulator framework when you built-in sdhci-pci it will prevent to WiFi be enumerated, you have to workaround it [1] like

echo 0000:00:01.3 > /sys/bus/pci/drivers/sdhci-pci/unbind echo 0000:00:01.3 > /sys/bus/pci/drivers/sdhci-pci/bind

https://communities.intel.com/message/419376#419376

So, building sdhc drivers as modules config was from Andy and I wanted to track his kernel branch with as little changes as possible.

alext-mkrs commented 6 years ago

@htot, thanks, that now makes more sense to me. I wonder though if this has changed since then, I remember there were some kernel patches mentioning SDHC/MMC power or something along these lines...

@lybtongji, here comes the second try - please see the same branch (I've force-pushed the updated two commits). As they have no hooks whatsoever in that new live-vm-common implementation, the only [more or less meaningful] way I see right now is the per-recipe variable override. That means the kernel file name will need to change as well, to the one that's generated. I've checked it in a very limited way (just by building and not from scratch), but at least it now builds the hddimg with initramfs kernel.

lybtongji commented 6 years ago

@alext-mkrs How can I find the commit of yours? I used the command git cherry-pick -n <SHA> to apply your commits. But git log alext-mkrs/master --not origin/master shows nothing. I can not find the commits in https://github.com/alext-mkrs/meta-intel-edison/commits/master either.


UPDATE: These two commits ( 82ebb5d, 2b10370 ) work fine.

htot commented 6 years ago

@lybtongji wrong branch. You need @alext-mkrs fix-hddimg-gen branch.

@alext-mkrs I just built and flashed your fix-hddimg-gen rebased onto top of sumo64-acpi (after make clean, make setup. I used linux version of Flash Tool Lite to flash. It is working just fine, you are a wizard.

2 things could use improvement: 1) bootargs_console could use 115200n8. As is, it all boots but very quiet (nothing) until root: prompt. 2) bootargs_debug turn off acpi, even when we are building acpi U-Boot and kernel.

I propose you test this with no-acpi/32b see if it solves your boot problems.

lybtongji commented 6 years ago

@htot Thanks. I find it now.

alext-mkrs commented 6 years ago

@htot, thanks for checking this out. I haven't modified the rest of the standard U-Boot env pieces for now, just for @lybtongji to check the kernel itself. If that works I think we'll need a separate issue to do an overhaul of those. I'm currently using the "dual-booting" scheme on mine (4.16 kernel on the SD card while the official image is still on eMMC), to have a reference, so I haven't bumped into this just yet.

htot commented 6 years ago

@alext-mkrs I'm not complaining :-) It's more of a note to self that we add 2 more commits to these before pulling.

htot commented 6 years ago

@lybtongji I created PR https://github.com/edison-fw/meta-intel-edison/pull/42 (from here https://github.com/htot/meta-intel-edison/tree/sumo32 ) that is equal to current master + fix-hddimg-gen + fixes the baud rate. If you have already tested, can you let us know the results? I tested the sumo64-acpi version myself and that is working fine.

lybtongji commented 6 years ago

@htot It's fine. I have no problem with booting now. :smile:

htot commented 6 years ago

Thanks