I use this link(http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/) to complete the system installation, but I can not use apt, yum, etc. I would like to install apt.
I have try to compiled dpkg source to install dpkg, then I download apt dependencies of debian,I use dpkg to install apt, I added the source of debian jessie in ‘/etc/apt/sources.list’ file, and then update apt, so after the system restart appear:
[FAILED] Failed to start Create Static Device Nodes in /dev.
See ‘systemctl status systemd-tmpfiles-setup-dev.service’ for details.
[FAILED] Failed to start Create Volatile Files and Directories.
See ‘systemctl status systemd-tmpfiles-setup.service’ for details.
[FAILED] Failed to start WPA supplicant.
See ‘systemctl status wpa_supplicant.service’ for details.
How can I install apt or yum on this system?
You can’t really use apt or yum with these image, AFAIK we do not offer a package stream compatible with this images. These images are mostly provided for testing, if you want to customize them you are much better off building them from source.
What are you trying to achieve?
I want to use opencv, I want to use apt to install opencv dependencies, thank you
Is there a linux version can use apt or yum?
If you don’t mind to use the debian, then it’s good to try debian image releasing for Hikey: http://builds.96boards.org/releases/hikey/linaro/debian/latest/hikey-jessie_developer_20151130-387-4g.emmc.img.gz
I can confirm this image can boot up at my side, but please note you need use one specific ramdisk.img for booting debian image: http://people.linaro.org/~guodong.xu/myupload/hikey960/build.debian.0509/ramdisk.img.
I use this link(https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF-UEFI-build-from-source.md) to install the system.I want to know if I only need to repalce boot.img, rpb.img with these two .imgs?
Can you give me a little more details? Thank you
Yes.
For building boot image, you could refer below script:
#!/bin/sh
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
DIR=/home/leoy/work3/hikey960/hikey960-boot/l-loader
BOOT=arch/arm64/boot
DTB=hi3660-hikey960.dtb
make defconfig
make Image dtbs -j8
RAMDISK=/home/leoy/Downloads/hikey960_debian/ramdisk.img
cat $BOOT/Image $BOOT/dts/hisilicon/$DTB > $BOOT/Image-dtb
abootimg --create $BOOT/boot.img -k $BOOT/Image-dtb -r $RAMDISK -f bootimg-960.cfg
Below are bootimg-960.cfg which I am using:
bootsize = 0x2000000
pagesize = 0x800
kerneladdr = 0x80000
ramdiskaddr = 0x7c00000
secondaddr = 0xf00000
tagsaddr = 0x7a00000
name =
cmdline = loglevel=15 androidboot.hardware=hikey960 androidboot.selinux=permissive firmware_class.path=/system/etc/firmware root=/dev/sdd10 rootwait rw video=vfb
Hello, when I run the above script, I encountered some problems:
drivers/built-in.o:在函数‘armada_3700_add_composite_clk’中:
/home/why/下载/ubuntu/linux-hikey960-v4.9/drivers/clk/mvebu/armada-37xx-periph.c:352:对‘____ilog2_NaN’未定义的引用
/home/why/下载/ubuntu/linux-hikey960-v4.9/drivers/clk/mvebu/armada-37xx-periph.c:352:(.text+0xc9b00): 截断重寻址至相符: R_AARCH64_CALL26 针对未定义的符号 ____ilog2_NaN
Makefile:969: recipe for target ‘vmlinux’ failed
make: *** [vmlinux] Error 1
cat: arch/arm64/boot/Image: 没有那个文件或目录
./shell.sh: 15: ./shell.sh: abootimg: not found
can you help me?
Could you tell which kernel branch you are using? You might need to use “make hikey960_defconfig” but not “make defconfig” for kernel building.
If you are using ubuntu, you can install abootimg with command “sudo apt-get install abootimg”; if you are using other distros, you might can find corresponding installation package for abootimg.
I use the files in this link:
So please change to use “make hikey960_defconfig” for kernel building.
I got it,thank you.I will try it tomorrow.
I used the above script generated boot.img file, it is only 33.6MB in size. I used the files which I used to burn rpb files before, only replace the original rpb.img and boot.img with the debian.img(http://builds.96boards.org/releases/hikey/linaro/debian/latest/hikey-jessie_developer_20151130-387-4g.emmc.img.gz) and boot.img I just generated.
I burn the system command is as follows:
#! /bin/bash
sudo fastboot flash ptable ptable-linux-8g.img
sudo fastboot flash xloader sec_xloader.img
sudo fastboot flash fastboot l-loader.bin
sudo fastboot flash fip fip.bin
sudo fastboot flash boot boot.img
sudo fastboot flash system debian9.img
After I boot the system the output is as follows:
…
Begin: Running /scripts/local-block … done.
Begin: Running /scripts/local-block … done.
Begin: Running /scripts/local-block … done.
done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
chvt: can’t open console
ALERT! /dev/sdd10 does not exist. Dropping to a shell!
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
modprobe: can’t change directory to ‘4.9.0’: No such file or directory
BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/bin/sh: can’t access tty; job control turned off
(initramfs) [ 44.381607] random: crng init done
Is there any problem? Thank you
ALERT! /dev/sdd10 does not exist. Dropping to a shell!
The issue should be related with rootfs mounting. Please check two things:
-
Have you used the ramdisk.img [1] for building boot.img?
-
After run into ramfs, you could check /dev/ and find what’s the device node for the ‘system’ partition. E.g., it’s not /dev/sdd but another /dev/sdX.
[1] http://people.linaro.org/~guodong.xu/myupload/hikey960/build.debian.0509/ramdisk.img
1 I uesd the ramdisk.img
2 /bin/sh: can’t access tty; job control turned off
(initramfs) [ 54.094422] random: crng init done
ls /dev
char console fd null pts stderr stdin stdout
(initramfs) ls /
bin dev init proc run scripts tmp var
conf etc lib root sbin sys usr
there are no /dev/sdX
I want show you the whore boot message,but word limit:
Press ESCAPE for boot options …EFI stub: Booting Linux Kernel…
EFI stub: Using DTB from configuration table
Failed to handle fs_proto
EFI stub: ERROR: Failed initrd from command line!
EFI stub: Exiting boot services and installing virtual address map…
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0 (why@why-HP-Pavilion-14-Notebook-PC) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11) ) #3 SMP PREEMPT Wed Jan 17 22:01:36 CST 2018
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options ‘115200’)
[ 0.000000] bootconsole [pl11] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: EFI v2.60 by EDK II
[ 0.000000] efi: MEMATTR=0xbd5aba98
[ 0.000000] Ion: base 0xbb700000, size is 0x1e00000, node name graphic, heap-name carveout_gralloc namesize 17,[99][97][114][118]
[ 0.000000] Ion: insert heap-name carveout_gralloc
[ 0.000000] OF: reserved mem: initialized node graphic, compatible id hisi_ion
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000016c00000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node fastboot-cma-mem, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 64 MiB at 0x00000000b6400000
[ 0.000000] On node 0 totalpages: 776759
[ 0.000000] DMA zone: 12288 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 776759 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] percpu: Embedded 20 pages/cpu @ffffffc0bff0f000 s53016 r0 d28904 u81920
[ 0.000000] pcpu-alloc: s53016 r0 d28904 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[ 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: 764471
[ 0.000000] Kernel command line: loglevel=15 androidboot.hardware=hikey960 androidboot.selinux=permissive firmware_class.path=/system/etc/firmware root=/dev/sdd10 rootwait rw video=vfb initrd=0xBE865800,0x37EF81 earlycon=pl011,0xfff32000,115200 console=ttyAMA6 androidboot.serialno=707AC21802584293
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Memory: 2862100K/3107036K available (12796K kernel code, 1400K rwdata, 3744K rodata, 1152K init, 1042K bss, 113864K reserved, 131072K 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 - 0xffffff8008d00000 ( 12800 KB)
[ 0.000000] .rodata : 0xffffff8008d00000 - 0xffffff80090b0000 ( 3776 KB)
[ 0.000000] .init : 0xffffff80090b0000 - 0xffffff80091d0000 ( 1152 KB)
[ 0.000000] .data : 0xffffff80091d0000 - 0xffffff800932e200 ( 1401 KB)
[ 0.000000] .bss : 0xffffff800932e200 - 0xffffff8009432d5c ( 1043 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 - 0xffffffbf03000000 ( 48 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc0c0000000 ( 3072 MB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=8.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=8
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 1.92MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1c570327e, max_idle_ns: 1763180809505 ns
[ 0.000006] sched_clock: 56 bits at 1920kHz, resolution 520ns, wraps every 4398046510977ns
[ 0.008490] clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58334160866034 ns
[ 0.019048] Console: colour dummy device 80x25
[ 0.023594] Calibrating delay loop (skipped), value calculated using timer frequency… 3.84 BogoMIPS (lpj=7680)
[ 0.033853] pid_max: default: 32768 minimum: 301
[ 0.038713] Security Framework initialized
[ 0.042882] SELinux: Initializing.
[ 0.046485] SELinux: Starting in permissive mode
[ 0.051359] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.058168] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.066194] ftrace: allocating 43031 entries in 169 pages
[ 0.145235] ASID allocator initialised with 65536 entries
[ 0.183492] Remapping and enabling EFI services.
[ 0.188237] EFI remap 0x00000000ba480000 => 0000000020000000
[ 0.194172] EFI remap 0x00000000ba4f0000 => 0000000020070000
[ 0.200099] EFI remap 0x00000000ba640000 => 00000000201c0000
[ 0.206031] EFI remap 0x00000000ba690000 => 0000000020210000
[ 0.211961] EFI remap 0x00000000bf6b0000 => 0000000020260000
[ 0.217890] EFI remap 0x00000000bf700000 => 00000000202a0000
[ 0.223819] EFI remap 0x00000000fff05000 => 00000000202f5000
[ 0.278346] Detected VIPT I-cache on CPU1
[ 0.278437] CPU1: Booted secondary processor [410fd034]
[ 0.310269] Detected VIPT I-cache on CPU2
[ 0.310299] CPU2: Booted secondary processor [410fd034]
[ 0.342284] Detected VIPT I-cache on CPU3
[ 0.342306] CPU3: Booted secondary processor [410fd034]
[ 0.375865] Detected VIPT I-cache on CPU4
[ 0.375874] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU4: 0x00000000101122
[ 0.375882] CPU features: Unsupported CPU feature variation detected.
[ 0.375905] CPU4: Booted secondary processor [410fd091]
[ 0.406319] Detected VIPT I-cache on CPU5
[ 0.406324] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU5: 0x00000000101122
[ 0.406339] CPU5: Booted secondary processor [410fd091]
[ 0.438356] Detected VIPT I-cache on CPU6
[ 0.438361] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU6: 0x00000000101122
[ 0.438376] CPU6: Booted secondary processor [410fd091]
[ 0.470398] Detected VIPT I-cache on CPU7
[ 0.470404] CPU features: SANITY CHECK: Unexpected variation in SYS_ID_AA64MMFR0_EL1. Boot CPU: 0x00000000001122, CPU7: 0x00000000101122
[ 0.470418] CPU7: Booted secondary processor [410fd091]
[ 0.470471] Brought up 8 CPUs
[ 0.594787] SMP: Total of 8 processors activated.
[ 0.599544] CPU features: detected feature: 32-bit EL0 Support
[ 0.605501] CPU: All CPU(s) started at EL2
[ 0.609673] alternatives: patching kernel code
[ 0.623003] DMI not present or invalid.
[ 0.627116] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.639744] xor: measuring software checksum speed
[ 0.684654] 8regs : 3519.000 MB/sec
[ 0.728909] 8regs_prefetch: 3136.000 MB/sec
[ 0.773516] 32regs : 4316.000 MB/sec
[ 0.817769] 32regs_prefetch: 3640.000 MB/sec
[ 0.822435] xor: using function: 32regs (4316.000 MB/sec)
[ 0.827899] pinctrl core: initialized pinctrl subsystem
[ 0.834498] NET: Registered protocol family 16
[ 0.858346] cpuidle: using governor ladder
[ 0.874501] cpuidle: using governor menu
[ 0.878619] vdso: 2 pages (1 code @ ffffff8008d07000, 1 data @ ffffff80091d4000)
[ 0.886103] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.893857] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.900073] Serial: AMBA PL011 UART driver
[ 0.904472] pstore: using zlib compression
[ 0.908996] console [pstore-1] enabled
[ 0.912798] pstore: Registered ramoops as persistent store backend
[ 0.919046] ramoops: attached 0x100000@0x32000000, ecc: 0/0
[ 0.940375] hi3660-mbox e896b000.mailbox: Mailbox enabled
[ 0.955620] uart-pl011 ffd74000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart3_pmx_func, deferring probe
[ 0.967172] uart-pl011 fdf01000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart4_pmx_func, deferring probe
[ 0.978717] uart-pl011 fff32000.serial: could not find pctldev for node /soc/pinmux@e896c000/uart6_pmx_func, deferring probe
[ 1.035477] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 1.107349] raid6: int64x1 gen() 1386 MB/s
[ 1.179383] raid6: int64x1 xor() 728 MB/s
[ 1.251452] raid6: int64x2 gen() 1709 MB/s
[ 1.323498] raid6: int64x2 xor() 937 MB/s
[ 1.395544] raid6: int64x4 gen() 1895 MB/s
[ 1.467579] raid6: int64x4 xor() 1076 MB/s
[ 1.539638] raid6: int64x8 gen() 1625 MB/s
[ 1.611669] raid6: int64x8 xor() 1027 MB/s
[ 1.683721] raid6: neonx1 gen() 2098 MB/s
[ 1.755775] raid6: neonx1 xor() 1160 MB/s
[ 1.827814] raid6: neonx2 gen() 3124 MB/s
[ 1.899860] raid6: neonx2 xor() 1914 MB/s
[ 1.971911] raid6: neonx4 gen() 4555 MB/s
[ 2.043951] raid6: neonx4 xor() 2618 MB/s
[ 2.116000] raid6: neonx8 gen() 3973 MB/s
[ 2.188053] raid6: neonx8 xor() 2530 MB/s
[ 2.192367] raid6: using algorithm neonx4 gen() 4555 MB/s
[ 2.197821] raid6: … xor() 2618 MB/s, rmw enabled
[ 2.202838] raid6: using intx1 recovery algorithm
[ 2.207807] ACPI: Interpreter disabled.
[ 2.212254] hisi_smmu_probe_lpae, smmu_phy_pgtable_addr is = b56d87a0
[ 2.218857] vgaarb: loaded
[ 2.221742] SCSI subsystem initialized
[ 2.225638] libata version 3.00 loaded.
[ 2.229597] ssp-pl022 ffd68000.spi: could not find pctldev for node /soc/pinmux@fff11000/spi2_pmx_func, deferring probe
[ 2.240520] ssp-pl022 ff3b3000.spi: could not find pctldev for node /soc/pinmux@ff3b6000/spi3_pmx_func, deferring probe
[ 2.251559] usbcore: registered new interface driver usbfs
[ 2.257130] usbcore: registered new interface driver hub
[ 2.262553] usbcore: registered new device driver usb
[ 2.267672] tcpc_class_init_1.1.1_G
[ 2.271203] TCPC class init OK
[ 2.274296] Init Richtek RegMap
[ 2.277568] i2c_designware ffd71000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c0_pmx_func, deferring probe
[ 2.288929] i2c_designware ffd72000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c1_pmx_func, deferring probe
[ 2.300290] i2c_designware fdf0b000.i2c: could not find pctldev for node /soc/pinmux@fff11000/i2c7_pmx_func, deferring probe
[ 2.311685] Linux video capture interface: v2.00
[ 2.316448] dmi: Firmware registration failed.
[ 2.320947] Registered efivars operations
[ 2.325433] Ion: invalid heap-name in node iommu_info, please check the name
[ 2.332651] Ion: invalid heap-name in node linear, please check the name
[ 2.339543] Ion: node name [heap_sys_user], heap-name [sys_heap]
[ 2.345619] Ion: heap index 0 : name sys_heap base 0x0 size 0x0 id 0 type 0
[ 2.352659] Ion: heap sys_heap base =0, try to find dynamic area
[ 2.358817] Ion: name = sys_heap, table name carveout_gralloc
[ 2.364714] Ion: name = sys_heap, table name
[ 2.369204] Ion: name = sys_heap, table name
[ 2.373695] Ion: name = sys_heap, table name
[ 2.378184] Ion: name = sys_heap, table name
[ 2.382685] Ion: node name [heap_sys_contig], heap-name [sys_contig]
[ 2.389111] Ion: heap index 1 : name sys_contig base 0x0 size 0x0 id 1 type 1
[ 2.396323] Ion: heap sys_contig base =0, try to find dynamic area
[ 2.402657] Ion: name = sys_contig, table name carveout_gralloc
[ 2.408726] Ion: name = sys_contig, table name
[ 2.413390] Ion: name = sys_contig, table name
[ 2.418053] Ion: name = sys_contig, table name
[ 2.422717] Ion: name = sys_contig, table name
[ 2.427393] Ion: node name [heap_carveout_gralloc], heap-name [carveout_gralloc]
[ 2.434870] Ion: heap index 2 : name carveout_gralloc base 0x0 size 0x0 id 2 type 2
[ 2.442609] Ion: heap carveout_gralloc base =0, try to find dynamic area
[ 2.449468] Ion: name = carveout_gralloc, table name carveout_gralloc
[ 2.456065] Ion: have found heap name carveout_gralloc base = 0xbb700000, size 31457280
[ 2.464163] Ion: node name [heap_camera], heap-name [camera_heap]
[ 2.470322] Ion: type name error ion_dma_pool!
[ 2.474823] in hisi_ion_enable_iommu start
[ 2.478967] get_domain_data_lpae:start_addr 0x40000, size 0xbffc0000 align 0x8000
[ 2.486534] Ion: id 0 name sys_heap base 0 size 0
[ 2.491442] Ion: adding heap sys_heap of type 0 with 0@0
[ 2.496812] Ion: id 1 name sys_contig base 0 size 0
[ 2.501835] Ion: adding heap sys_contig of type 1 with 0@0
[ 2.507379] Ion: id 2 name carveout_gralloc base 3144679424 size 31457280
[ 2.518990] Ion: adding heap carveout_gralloc of type 2 with bb700000@1e00000
[ 2.526356] Advanced Linux Sound Architecture Driver Initialized.
[ 2.532818] Bluetooth: Core ver 2.22
[ 2.536449] NET: Registered protocol family 31
[ 2.540945] Bluetooth: HCI device and connection manager initialized
[ 2.547376] Bluetooth: HCI socket layer initialized
[ 2.552312] Bluetooth: L2CAP socket layer initialized
[ 2.557440] Bluetooth: SCO socket layer initialized
[ 2.562610] NetLabel: Initializing
[ 2.566052] NetLabel: domain hash size = 128
[ 2.570454] NetLabel: protocols = UNLABELED CIPSOv4
[ 2.575505] NetLabel: unlabeled traffic allowed by default
[ 2.581394] clocksource: Switched to clocksource arch_sys_counter
[ 2.650864] VFS: Disk quotas dquot_6.6.0
[ 2.654903] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 2.662160] pnp: PnP ACPI: disabled
[ 2.668903] NET: Registered protocol family 2
[ 2.673707] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 2.681136] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[ 2.688020] TCP: Hash tables configured (established 32768 bind 32768)
[ 2.694654] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[ 2.700751] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[ 2.707414] NET: Registered protocol family 1
[ 2.712106] RPC: Registered named UNIX socket transport module.
[ 2.718127] RPC: Registered udp transport module.
[ 2.722883] RPC: Registered tcp transport module.
[ 2.727636] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.734150] PCI: CLS 0 bytes, default 128
[ 2.738361] Trying to unpack rootfs image as initramfs…
[ 2.839944] Freeing initrd memory: 3576K (ffffffc0be866000 - ffffffc0bebe4000)
[ 2.847844] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 2.855976] kvm [1]: 8-bit VMID
[ 2.859155] kvm [1]: IDMAP page: cef000
[ 2.863039] kvm [1]: HYP VA range: 4000000000:7fffffffff
[ 2.868931] kvm [1]: Hyp mode initialized successfully
[ 2.874170] kvm [1]: vgic-v2@e82b4000
[ 2.878039] kvm [1]: vgic interrupt IRQ1
[ 2.882015] kvm [1]: virtual timer IRQ4
[ 2.888125] futex hash table entries: 2048 (order: 6, 262144 bytes)
[ 2.894526] audit: initializing netlink subsys (disabled)
[ 2.900024] audit: type=2000 audit(2.719:1): initialized
[ 2.905815] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 2.912883] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.918958] NFS: Registering the id_resolver key type
[ 2.924089] Key type id_resolver registered
[ 2.928317] Key type id_legacy registered
[ 2.932442] fuse init (API version 7.26)
[ 2.936534] 9p: Installing v9fs 9p2000 file system support
[ 2.942239] SELinux: Registering netfilter hooks
[ 2.949216] io scheduler noop registered
[ 2.953197] io scheduler cfq registered (default)
…
If you use “dmesg | grep sd”, can you get below related info for block devices?
console:/ # dmesg | grep sd
[ 5.106635] sdhci: Secure Digital Host Controller Interface driver
[ 5.106636] sdhci: Copyright(c) Pierre Ossman
[ 5.152576] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.205856] sd 0:0:0:0: [sda] 1024 4096-byte logical blocks: (4.19 MB/4.00 MiB)
[ 5.205858] sd 0:0:0:0: [sda] 16384-byte physical blocks
[ 5.207456] sd 0:0:0:0: [sda] Write Protect is off
[ 5.207459] sd 0:0:0:0: [sda] Mode Sense: 00 32 00 10
[ 5.207556] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 5.212244] sd 0:0:0:0: [sda] Attached SCSI disk
[ 5.253405] sd 0:0:0:1: [sdb] 1024 4096-byte logical blocks: (4.19 MB/4.00 MiB)
[ 5.253407] sd 0:0:0:1: [sdb] 16384-byte physical blocks
[ 5.255060] sd 0:0:0:1: [sdb] Write Protect is off
[ 5.255063] sd 0:0:0:1: [sdb] Mode Sense: 00 32 00 10
[ 5.255545] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 5.257903] sd 0:0:0:1: [sdb] Attached SCSI disk
[ 5.318169] sd 0:0:0:2: [sdc] 2048 4096-byte logical blocks: (8.39 MB/8.00 MiB)
[ 5.318171] sd 0:0:0:2: [sdc] 16384-byte physical blocks
[ 5.319820] sd 0:0:0:2: [sdc] Write Protect is off
[ 5.319823] sd 0:0:0:2: [sdc] Mode Sense: 00 32 00 10
[ 5.320307] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 5.325255] sdc: sdc1
[ 5.326298] sd 0:0:0:2: [sdc] Attached SCSI disk
[ 5.373385] sd 0:0:0:3: [sdd] 7805952 4096-byte logical blocks: (32.0 GB/29.8 GiB)
[ 5.373386] sd 0:0:0:3: [sdd] 16384-byte physical blocks
[ 5.375003] sd 0:0:0:3: [sdd] Write Protect is off
[ 5.375005] sd 0:0:0:3: [sdd] Mode Sense: 00 32 00 10
[ 5.375475] sd 0:0:0:3: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 5.377781] sdd: sdd1 sdd2 sdd3 sdd4 sdd5 sdd6 sdd7 sdd8 sdd9 sdd10 sdd11 sdd12 sdd13
(initramfs) df -h
Filesystem Size Used Available Use% Mounted on
udev 10.0M 0 10.0M 0% /dev
tmpfs 585.5M 96.0K 585.4M 0% /run
(initramfs) mount
rootfs on / type rootfs (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=599580k,mode=755)
(initramfs) dmesg | grep sd
[ 0.000000] Kernel command line: loglevel=15 androidboot.hardware=hikey960 androidboot.selinux=permissive firmware_class.path=/system/etc/firmware root=/dev/sdd10 rootwait rw video=vfb initrd=0xBE865800,0x37EF81 earlycon=pl011,0xfff32000,115200 console=ttyAMA6 androidboot.serialno=707AC21802584293
[ 3.800807] sdhci: Secure Digital Host Controller Interface driver
[ 3.800808] sdhci: Copyright(c) Pierre Ossman
[ 3.849604] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.081845] sd 0:0:0:0: [sda] 1024 4096-byte logical blocks: (4.19 MB/4.00 MiB)
[ 4.081849] sd 0:0:0:0: [sda] 16384-byte physical blocks
[ 4.083528] sd 0:0:0:0: [sda] Write Protect is off
[ 4.083532] sd 0:0:0:0: [sda] Mode Sense: 00 32 00 10
[ 4.083827] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 4.088903] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.130515] sd 0:0:0:1: [sdb] 1024 4096-byte logical blocks: (4.19 MB/4.00 MiB)
[ 4.130521] sd 0:0:0:1: [sdb] 16384-byte physical blocks
[ 4.131146] sd 0:0:0:1: [sdb] Write Protect is off
[ 4.131154] sd 0:0:0:1: [sdb] Mode Sense: 00 32 00 10
[ 4.131279] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 4.134588] sd 0:0:0:1: [sdb] Attached SCSI disk
[ 4.186567] sd 0:0:0:2: [sdc] 2048 4096-byte logical blocks: (8.39 MB/8.00 MiB)
[ 4.186573] sd 0:0:0:2: [sdc] 16384-byte physical blocks
[ 4.187134] sd 0:0:0:2: [sdc] Write Protect is off
[ 4.187142] sd 0:0:0:2: [sdc] Mode Sense: 00 32 00 10
[ 4.187264] sd 0:0:0:2: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 4.189816] sdc: sdc1
[ 4.191508] sd 0:0:0:2: [sdc] Attached SCSI disk
[ 4.274120] sd 0:0:0:3: [sdd] 7805952 4096-byte logical blocks: (32.0 GB/29.8 GiB)
[ 4.274126] sd 0:0:0:3: [sdd] 16384-byte physical blocks
[ 4.274718] sd 0:0:0:3: [sdd] Write Protect is off
[ 4.274726] sd 0:0:0:3: [sdd] Mode Sense: 00 32 00 10
[ 4.274854] sd 0:0:0:3: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 4.278070] sdd: sdd1 sdd2 sdd3 sdd4 sdd5 sdd6 sdd7 sdd8 sdd9 sdd10 sdd11 sdd12 sdd13
[ 4.281851] sd 0:0:0:3: [sdd] Attached SCSI disk
(initramfs)
I tried several times, but failed.The mistake is as follows:
…
Loading, please wait …
mount: mounting udev on / dev failed: No such device
W: devtmpfs not available, falling back to tmpfs for / dev
starting version 228
[8.362615] wlcore: ERROR could not get configuration binary ti-connectivity / wl18xx-conf.bin: -11
[8.371751] wlcore: WARNING falling back to default config
Begin: Loading essential drivers … done.
Begin: Running / scripts / init-premount … done.
Begin: Mounting root file system … Begin: Running / scripts / local-top … done.
Begin: Running / scripts / local-premount … modprobe: can not change directory to ‘4.9.0’: No such file or directory
done.
Begin: Waiting for root file system … [8.627182] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[8.652156] wlcore: loaded
Begin: Running / scripts / local-block … done.
…
done.
Gave up waiting for root device. Common problems:
- Boot args (cat / proc / cmdline)
- Check rootdelay = (did the system wait long enough?)
- Check root = (did the system wait for the right device?)
- Missing modules (cat / proc / modules; ls / dev)
chvt: can not open console
ALERT! / Dev / sdd10 does not exist. Dropping to a shell!
modprobe: can not change directory to ‘4.9.0’: No such file or directory
…
BusyBox v1.22.1 (Debian 1: 1.22.0-9 + deb8u1) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/ bin / sh: can not access tty; job control turned off
(initramfs) [52.511651] random: crng init done
Connection closed by foreign host.
Any suggestions can you give me?Thank you
I have uploaded my mainline booting image [1], for your reference. I checked your log, I can see the device node is same with my side, so if you cannot mount the rootfs, would it be caused by the ptable issue (I remembered you tweaked it by yourself on another ticket)? Or it’s caused the problem when you burn debian rootfs image?
[1] http://people.linaro.org/~leo.yan/binaries/hikey960_mainline_boot.img
With your boot.img, I can enter the debian system. However, there are several errors at startup:
1 Failed to insert module ‘ipv6’
2 [FAILED] Failed to mount /boot/efi.
root@linaro-developer:~# systemctl status boot-efi.mount
● boot-efi.mount - /boot/efi
Loaded: loaded (/etc/fstab)
Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:22 UTC; 44 years 6 months ago
Where: /boot/efi
What: /dev/disk/by-partlabel/boot
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Process: 1795 ExecMount=/bin/mount -n /dev/disk/by-partlabel/boot /boot/efi -t vfat (code=exited, status=32)
Jan 01 00:00:22 linaro-developer mount[1795]: mount: wrong fs type, bad opti…,
Jan 01 00:00:22 linaro-developer mount[1795]: missing codepage or helper pro…r
Jan 01 00:00:22 linaro-developer mount[1795]: In some cases useful info is f…y
Jan 01 00:00:22 linaro-developer mount[1795]: dmesg | tail or so.
Jan 01 00:00:22 linaro-developer systemd[1]: Failed to mount /boot/efi.
Hint: Some lines were ellipsized, use -l to show in full.
I would like to know that will these two issues affect?