Miouyouyou / RockMyy

Build scripts and patches used to cross-compile 5.6-rcX kernels for RK3288 boards
MIT License
32 stars 8 forks source link

meet an error when using the main script #7

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello. I cloned this repository on my device and tried to execute the main script, but I got error like this:

dauker@dauker-asus:~/Miouyouyou/RockMyy$ sh GetPatchAndCompileKernel.sh 
GetPatchAndCompileKernel.sh: 106: GetPatchAndCompileKernel.sh: function: not found

What's wrong whit it?

Miouyouyou commented 6 years ago

Ah, I'm using what some people call "Bashism". Basically, it's a Bash script, not really a standard Unix Standard Shell script that you can use with any shell...

Try invoking it like this : bash GetPatchAndCompileKernel.sh

I'll try update the documentation tonight.

Miouyouyou commented 6 years ago

Yeah, I forgot to add that you need a few libraries and tools. Mostly bison and flex, indeed. ncurses too if you want to use menuconfig.

Miouyouyou commented 6 years ago

The README has been updated.

Were you able to use this script, in the end ?

ghost commented 6 years ago

Yes, it worked. Really appreciate your help.

Miouyouyou commented 6 years ago

Glad to hear that :smiley_cat:

ghost commented 6 years ago

How do I install the kernel I got from running the main script into Firefly-rk3288 ?

Miouyouyou commented 6 years ago

Do you have a /boot partition or not ?

( ls /boot )

ghost commented 6 years ago

I just executed ls /boot on my Firefly-rk3288. The output shows that there is a /boot partition on the device, but there is nothing in this partition. And the firmware installed on the Firefly-rk3288 is Ubuntu 16.04 ( the kernel is 4.4 ) .

Miouyouyou commented 6 years ago

In that case, you might have to play with the Rockchip tools to generate an "image" and flash it...

Just before doing anything, be sure that you can know how to access U-Boot through a serial console. That's extremely important.

Prepare your eMMC for simple /boot sequence

Then, try the following, in the Firefly RK3288 system :

sudo mkdir /boot/extlinux
sudo $EDITOR /boot/extlinux/extlinux.conf

In extlinux.conf, add the following :

label UselessLabel
    kernel /boot/zImage
    fdt /boot/rk3288-firefly.dtb
    append  earlyprintk console=ttyS2,115200n8 rw root=/dev/mmcblk0p1 rootfstype=ext4 init=/sbin/init

Compile one of my kernel on your x86 machine and copy /tmp/RockMyy-Build into your Firefly system /tmp/RockMyy-Build directory. Then do the following :

# From a SSH session, inside your Firefly system
cd /tmp/RockMyy-Build
sudo cp boot/* /boot
sudo cp -r lib/* /lib/
sudo cp -r usr/* /usr/

Then try to flash the kernel, using the Firefly/Rockchip way

There's seems to be a tutorial here, but I haven't tried it :

# For your x86 host, where you compiled the kernel
cd /tmp/RockMyy-Build/boot
cat zImage rk3288-firefly.dtb > zImage-dtb
rkcrc -k zImage-dtb kernel.img

I don't know where to get rkcrc. There seems to be some sources here https://github.com/naobsd/rkutils/blob/master/rkcrc.c but I don't know if they work with RK3288 boards.

Flashing the kernel require "upgrade_tool", a special Rockchip tool that only work in some special "Maskrom" mode, enabled by pushing some special pins on the board, generally. http://en.t-firefly.com/doc/product/info/401.html

sudo upgrade_tool di -k kernel.img

Or maybe, you could find the right mmcblk containing the kernel image and, from a boot system, do something like : dd if=/path/to/kernel.img of=/dev/mmcblk0pX... If that fails, the system will fail to boot and it should put itself into maskrom mode anyway, or MAYBE U-boot will try to search for /boot/extlinux installation on the eMMC main partition, in which case, your system will now boot using your extlinux.conf configuration.

Anyway, if something goes wrong, you'll need a serial console to understand what's going on.

If you seem to be connected and see nothing on the serial console, then it's probable that your system is in "Maskrom" mode.
In any case, if something goes wrong during the boot, power your board from your PC as a temporary measure and use the serial console to know what's going on.

If you see U-boot boot sequence but the boot sequence fails, try to interrupt it by pressing "Space" on your serial console, then try the following command : ums 0 mmc 1 This will mount your eMMC as a USB Mass storage on your PC. From there, if you use a Linux system, you'll be able to access your partitions, modify files, ...

ghost commented 6 years ago

Thank you very much for your detailed answers, and I will do what you said.

ghost commented 6 years ago

Hello, after flashing the kernel.img to the Firefly-RK3288 using upgrade_tool, the startup failed. The serial console printed the following information:

[5.696419] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6) ]---

This was the final output of the serial console. At this time, the serial console could no longer receive typing.

Miouyouyou commented 6 years ago

Could you provide the lines before that ? My guess is that it's due to the command line passed to the kernel, which is trying to mount something like mmcblk1 instead of mmcblk0 or something like this.

ghost commented 6 years ago
U-Boot 2017.02-RK3288-06-g8adeb23-dirty (Jun 02 2017 - 17:57:28)

CPU: rk3288
cpu version = 0
CPU's clock information:
    arm pll = 816000000HZ
    periph pll = 297000000HZ
    ddr pll = 396000000HZ
    codec pll = 384000000HZ
Board:  Rockchip platform Board
DRAM:  Found dram banks: 1
Adding bank:0000000000000000(0000000100000000)
128 MiB
GIC CPU mask = 0x00000001
SdmmcInit = 0 400
SdmmcInit = 2 0
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059bc50c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059bc70c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059cc30c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059cc50c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059bc50c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059bc70c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059cc30c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059cc50c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059bc50c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059bc70c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059cc30c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059cc50c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059bc50c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059bc70c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059cc30c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059cc50c
ERROR: v7_dcache_inval_range - start address is not aligned - 0x059bc50c
ERROR: v7_dcache_inval_range - stop address is not aligned - 0x059cc50c
storage init OK!
Using default environment

GetParam
Load FDT from resource image.
power key: bank-16777215 pin-255
No pmic detect.
can't find dts node for pwm0
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2017-06-02#2.30
empty serial no.
normal boot.
checkKey
vbus = 1
no fuel gauge found
no fuel gauge found
read logo on state from dts [0]
no fuel gauge found
misc partition not found!
Hit any key to stop autoboot:  0 
load fdt from resouce.
Secure Boot state: 0
kernel   @ 0x02000000 (0x0081b280)
ramdisk  @ 0x05bf0000 (0x00000000)
bootrk: do_bootm_linux...
   Loading Device Tree to 05600000, end 0560fd24 ... OK
Add bank:0000000000000000, 00000000fe000000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x500
[    0.000000] Linux version 4.18.0-rc5-RockMyy-181818 (dauker@dauker-asus) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Sun Jul 22 18:15:30 CST 2018
[    0.000000] CPU: ARMv7 Processor [410fc0d1] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Firefly-RK3288 Board (Linux Opensource)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x6c/0x49c with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41752 r8192 d23784 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1038848
[    0.000000] Kernel command line: console=ttyS2,115200 root=/dev/mmcblk2p6 rw rootwait mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(trust),0x00008000@0x00006000(resource),0x0000A000@0x0000E000(kernel),0x00002000@0x00018000(backup),-@0x0001A000(boot) storagemedia=emmc loader.timestamp=2017-06-02_17:57:28 SecureBootCheckOk=0
[    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] Memory: 4104496K/4161536K available (12288K kernel code, 1077K rwdata, 3368K rodata, 1024K init, 4739K bss, 57040K reserved, 0K cma-reserved, 3375104K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (13280 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   (1078 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   (4740 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000016] Switching to timer-based delay loop, resolution 41ns
[    0.001473] Console: colour dummy device 80x30
[    0.001500] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.001514] pid_max: default: 32768 minimum: 301
[    0.001589] Security Framework initialized
[    0.001599] Yama: becoming mindful.
[    0.001649] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001661] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002160] CPU: Testing write buffer coherency: ok
[    0.002188] CPU0: Spectre v2: using BPIALL workaround
[    0.002404] CPU0: thread -1, cpu 0, socket 5, mpidr 80000500
[    0.008561] Setting up static identity map for 0x100000 - 0x100060
[    0.010556] Hierarchical SRCU implementation.
[    0.014604] smp: Bringing up secondary CPUs ...
[    0.023918] CPU1: thread -1, cpu 1, socket 5, mpidr 80000501
[    0.023924] CPU1: Spectre v2: using BPIALL workaround
[    0.033019] CPU2: thread -1, cpu 2, socket 5, mpidr 80000502
[    0.033025] CPU2: Spectre v2: using BPIALL workaround
[    0.042135] CPU3: thread -1, cpu 3, socket 5, mpidr 80000503
[    0.042140] CPU3: Spectre v2: using BPIALL workaround
[    0.042243] smp: Brought up 1 node, 4 CPUs
[    0.042255] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.042263] CPU: All CPU(s) started in SVC mode.
[    0.043434] devtmpfs: initialized
[    0.053045] VFP support v0.3: implementor 41 architecture 3 part 30 variant d rev 0
[    0.053328] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.053346] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.053560] xor: measuring software checksum speed
[    0.063153]    arm4regs  :  1708.000 MB/sec
[    0.073218]    8regs     :  1320.000 MB/sec
[    0.083281]    32regs    :  1316.000 MB/sec
[    0.083290] xor: using function: arm4regs (1708.000 MB/sec)
[    0.083303] pinctrl core: initialized pinctrl subsystem
[    0.084008] NET: Registered protocol family 16
[    0.084605] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.085982] cpuidle: using governor ladder
[    0.086033] cpuidle: using governor menu
[    0.086822] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.086832] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.140465] raid6: int32x1  gen()   179 MB/s
[    0.157369] raid6: int32x1  xor()   195 MB/s
[    0.174554] raid6: int32x2  gen()   238 MB/s
[    0.191664] raid6: int32x2  xor()   228 MB/s
[    0.208759] raid6: int32x4  gen()   203 MB/s
[    0.225942] raid6: int32x4  xor()   171 MB/s
[    0.243220] raid6: int32x8  gen()   230 MB/s
[    0.260227] raid6: int32x8  xor()   179 MB/s
[    0.260235] raid6: using algorithm int32x2 gen() 238 MB/s
[    0.260242] raid6: .... xor() 228 MB/s, rmw enabled
[    0.260249] raid6: using intx1 recovery algorithm
[    0.261606] vcc_5v: supplied by vcc_sys
[    0.261954] vcc_host_5v: supplied by vcc_5v
[    0.262310] vcc_otg_5v: supplied by vcc_5v
[    0.263445] rk_iommu ff914000.iommu: Failed to get clk 'iface': -2
[    0.264037] rk_iommu ff930300.iommu: Failed to get clk 'iface': -2
[    0.264576] rk_iommu ff940300.iommu: Failed to get clk 'iface': -2
[    0.264951] rk_iommu ff9a0800.iommu: Failed to get clk 'iface': -2
[    0.265233] rk_iommu ff9c0440.iommu: Failed to get clk 'iface': -2
[    0.265547] vgaarb: loaded
[    0.265890] SCSI subsystem initialized
[    0.266051] usbcore: registered new interface driver usbfs
[    0.266094] usbcore: registered new interface driver hub
[    0.266164] usbcore: registered new device driver usb
[    0.266249] media: Linux media interface: v0.10
[    0.266303] videodev: Linux video capture interface: v2.00
[    0.266398] pps_core: LinuxPPS API ver. 1 registered
[    0.266408] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.266437] PTP clock support registered
[    0.266753] Advanced Linux Sound Architecture Driver Initialized.
[    0.267169] Bluetooth: Core ver 2.22
[    0.267209] NET: Registered protocol family 31
[    0.267218] Bluetooth: HCI device and connection manager initialized
[    0.267232] Bluetooth: HCI socket layer initialized
[    0.267244] Bluetooth: L2CAP socket layer initialized
[    0.267296] Bluetooth: SCO socket layer initialized
[    0.267857] clocksource: Switched to clocksource arch_sys_counter
[    0.354258] FS-Cache: Loaded
[    0.354424] CacheFiles: Loaded
[    0.362278] NET: Registered protocol family 2
[    0.362799] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 12288 bytes)
[    0.362826] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.362929] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[    0.363054] TCP: Hash tables configured (established 8192 bind 8192)
[    0.363137] UDP hash table entries: 512 (order: 2, 24576 bytes)
[    0.363175] UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
[    0.363344] NET: Registered protocol family 1
[    0.363745] RPC: Registered named UNIX socket transport module.
[    0.363755] RPC: Registered udp transport module.
[    0.363763] RPC: Registered tcp transport module.
[    0.363770] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.365081] hw perfevents: enabled with armv7_cortex_a12 PMU driver, 7 counters available
[    0.366595] Initialise system trusted keyrings
[    0.366714] workingset: timestamp_bits=30 max_order=20 bucket_order=0
[    0.372107] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.372896] FS-Cache: Netfs 'nfs' registered for caching
[    0.373247] NFS: Registering the id_resolver key type
[    0.373268] Key type id_resolver registered
[    0.373276] Key type id_legacy registered
[    0.373293] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.373306] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.374365] Key type cifs.spnego registered
[    0.374384] Key type cifs.idmap registered
[    0.374397] ntfs: driver 2.1.32 [Flags: R/W].
[    0.374779] fuse init (API version 7.27)
[    0.375449] JFS: nTxBlock = 8192, nTxLock = 65536
[    0.380219] SGI XFS with security attributes, no debug enabled
[    0.381593] pstore: using deflate compression
[    0.385987] NET: Registered protocol family 38
[    0.386246] Key type asymmetric registered
[    0.386257] Asymmetric key parser 'x509' registered
[    0.386265] Key type pkcs7_test registered
[    0.386314] bounce: pool size: 64 pages
[    0.386369] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.386379] io scheduler noop registered
[    0.386387] io scheduler deadline registered
[    0.386421] io scheduler cfq registered (default)
[    0.386431] io scheduler mq-deadline registered
[    0.386439] io scheduler kyber registered
[    0.391511] dma-pl330 ff250000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.391526] dma-pl330 ff250000.dma-controller:   DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.392107] dma-pl330 ffb20000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.392121] dma-pl330 ffb20000.dma-controller:   DBUFF-64x8bytes Num_Chans-5 Num_Peri-6 Num_Events-10
[    0.392581] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.393903] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 39, base_baud = 1500000) is a 16550A
[    0.394492] ff690000.serial: ttyS2 at MMIO 0xff690000 (irq = 40, base_baud = 1500000) is a 16550A
[    1.458410] console [ttyS2] enabled
[    1.464055] iommu: Adding device ff930000.vop to group 1
[    1.470193] rockchip-vop ff930000.vop: Linked as a consumer to ff930300.iommu
[    1.478407] iommu: Adding device ff940000.vop to group 2
[    1.484388] rockchip-vop ff940000.vop: Linked as a consumer to ff940300.iommu
[    1.494076] rockchip-drm display-subsystem: Linked as a consumer to ff930000.vop
[    1.502382] rockchip-drm display-subsystem: Linked as a consumer to ff940000.vop
[    1.511201] rockchip-drm display-subsystem: Linked as a consumer to ff980000.hdmi
[    1.520368] rockchip-drm display-subsystem: bound ff930000.vop (ops 0xc0d8984c)
[    1.528881] rockchip-drm display-subsystem: bound ff940000.vop (ops 0xc0d8984c)
[    1.537190] dwhdmi-rockchip ff980000.hdmi: Detected HDMI TX controller v2.00a with HDCP (DWC MHL PHY)
[    1.547874] dwhdmi-rockchip ff980000.hdmi: registered DesignWare HDMI I2C bus driver
[    1.556743] rockchip-drm display-subsystem: bound ff980000.hdmi (ops 0xc0d8b280)
[    1.565032] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.572440] [drm] No driver support for vblank timestamp query.
[    1.579099] [drm] Cannot find any crtc or sizes
[    1.584604] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
[    1.593707] usbcore: registered new interface driver udl
[    1.602714] brd: module loaded
[    1.612949] loop: module loaded
[    1.616883] zram: Added device: zram0
[    1.621046] usbcore: registered new interface driver rtsx_usb
[    1.629024] libphy: Fixed MDIO Bus: probed
[    1.633647] tun: Universal TUN/TAP device driver, 1.6
[    1.640391] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    1.647165] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available yet, deferred probing
[    1.657835] PPP generic driver version 2.4.2
[    1.662959] usbcore: registered new interface driver rt2500usb
[    1.669545] usbcore: registered new interface driver rt73usb
[    1.675923] usbcore: registered new interface driver rt2800usb
[    1.682499] usbcore: registered new interface driver rndis_wlan
[    1.689132] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    1.697452] usbcore: registered new interface driver pegasus
[    1.703824] usbcore: registered new interface driver rtl8150
[    1.710204] usbcore: registered new interface driver r8152
[    1.716377] usbcore: registered new interface driver asix
[    1.722457] usbcore: registered new interface driver ax88179_178a
[    1.729314] usbcore: registered new interface driver cdc_ether
[    1.735889] usbcore: registered new interface driver dm9601
[    1.742171] usbcore: registered new interface driver smsc75xx
[    1.748650] usbcore: registered new interface driver smsc95xx
[    1.755119] usbcore: registered new interface driver net1080
[    1.761491] usbcore: registered new interface driver rndis_host
[    1.768196] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[    1.776527] usbcore: registered new interface driver cdc_ncm
[    1.782893] usbcore: registered new interface driver cdc_mbim
[    1.789661] dwc2 ff540000.usb: ff540000.usb supply vusb_d not found, using dummy regulator
[    1.798983] dwc2 ff540000.usb: ff540000.usb supply vusb_a not found, using dummy regulator
[    1.860075] dwc2 ff540000.usb: DWC OTG Controller
[    1.865373] dwc2 ff540000.usb: new USB bus registered, assigned bus number 1
[    1.873293] dwc2 ff540000.usb: irq 46, io mem 0xff540000
[    1.879461] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    1.888722] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.896811] usb usb1: Product: DWC OTG Controller
[    1.902084] usb usb1: Manufacturer: Linux 4.18.0-rc5-RockMyy-181818 dwc2_hsotg
[    1.910171] usb usb1: SerialNumber: ff540000.usb
[    1.915765] hub 1-0:1.0: USB hub found
[    1.920001] hub 1-0:1.0: 1 port detected
[    1.924937] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    1.934256] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    2.066908] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    2.075173] dwc2 ff580000.usb: DWC OTG Controller
[    2.080460] dwc2 ff580000.usb: new USB bus registered, assigned bus number 2
[    2.088366] dwc2 ff580000.usb: irq 47, io mem 0xff580000
[    2.094447] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.103707] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.111797] usb usb2: Product: DWC OTG Controller
[    2.117068] usb usb2: Manufacturer: Linux 4.18.0-rc5-RockMyy-181818 dwc2_hsotg
[    2.125155] usb usb2: SerialNumber: ff580000.usb
[    2.130724] hub 2-0:1.0: USB hub found
[    2.135013] hub 2-0:1.0: 1 port detected
[    2.140727] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.148052] ehci-pci: EHCI PCI platform driver
[    2.153083] ehci-platform: EHCI generic platform driver
[    2.159095] ehci-platform ff500000.usb: EHCI Host Controller
[    2.165589] ehci-platform ff500000.usb: new USB bus registered, assigned bus number 3
[    2.174465] ehci-platform ff500000.usb: irq 44, io mem 0xff500000
[    2.300885] usb 1-1: new high-speed USB device number 2 using dwc2
[    2.313885] ehci-platform ff500000.usb: USB 2.0 started, EHCI 1.00
[    2.320999] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.330264] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.338353] usb usb3: Product: EHCI Host Controller
[    2.343819] usb usb3: Manufacturer: Linux 4.18.0-rc5-RockMyy-181818 ehci_hcd
[    2.351711] usb usb3: SerialNumber: ff500000.usb
[    2.357279] hub 3-0:1.0: USB hub found
[    2.361518] hub 3-0:1.0: 1 port detected
[    2.366532] usbcore: registered new interface driver cdc_acm
[    2.372884] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.381966] usbcore: registered new interface driver usblp
[    2.388159] usbcore: registered new interface driver cdc_wdm
[    2.394578] usbcore: registered new interface driver usb-storage
[    2.401390] usbcore: registered new interface driver usbserial_generic
[    2.408728] usbserial: USB Serial support registered for generic
[    2.415499] usbcore: registered new interface driver ftdi_sio
[    2.421959] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.430247] usbcore: registered new interface driver keyspan
[    2.436612] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    2.445402] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    2.453606] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    2.461812] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    2.470037] usbcore: registered new interface driver option
[    2.476302] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.484235] usbcore: registered new interface driver oti6858
[    2.490600] usbserial: USB Serial support registered for oti6858
[    2.492227] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.00
[    2.497366] usbcore: registered new interface driver pl2303
[    2.506480] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.506486] usb 1-1: Product: USB 2.0 Hub [MTT]
[    2.512742] usbserial: USB Serial support registered for pl2303
[    2.521120] hub 1-1:1.0: USB hub found
[    2.525823] usbcore: registered new interface driver qcserial
[    2.532474] hub 1-1:1.0: 4 ports detected
[    2.536629] usbserial: USB Serial support registered for Qualcomm USB modem
[    2.555376] usbcore: registered new interface driver sierra
[    2.561643] usbserial: USB Serial support registered for Sierra USB modem
[    2.569931] usbcore: registered new interface driver iforce
[    2.576219] usbcore: registered new interface driver pxrc
[    2.582325] usbcore: registered new interface driver xpad
[    2.588471] usbcore: registered new interface driver usbtouchscreen
[    2.594915] [drm] Cannot find any crtc or sizes
[    2.595952] i2c /dev entries driver
[    2.605558] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
[    2.613274] fan53555-reg: supplied by vcc_sys
[    2.620499] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
[    2.628218] fan53555-reg: supplied by vcc_sys
[    2.635399] rtc-hym8563 0-0051: no valid clock/calendar values available
[    2.643061] rtc-hym8563 0-0051: rtc core: registered hym8563 as rtc0
[    2.651174] REG1: supplied by vcc_sys
[    2.656072] REG2: supplied by vcc_sys
[    2.660987] REG3: supplied by vcc_sys
[    2.666005] REG4: supplied by vcc_sys
[    2.670919] REG5: supplied by vcc_io
[    2.675993] REG6: supplied by vcc_io
[    2.680458] vdd10_lcd: Bringing 1000000uV into 1050000-1050000uV
[    2.688438] REG7: supplied by vcc_io
[    2.692895] random: fast init done
[    2.697252] REG8: supplied by vcc_sys
[    2.702271] REG9: supplied by vcc_sys
[    2.707185] REG10: supplied by vcc_20
[    2.711774] vdd_10: Bringing 1000000uV into 1100000-1100000uV
[    2.719328] REG11: supplied by vcc_20
[    2.724383] REG12: supplied by vcc_20
[    2.728964] vcc18_lcd: Bringing 1800000uV into 1850000-1850000uV
[    2.739383] IR NEC protocol handler initialized
[    2.744467] IR RC5(x/sz) protocol handler initialized
[    2.750124] IR RC6 protocol handler initialized
[    2.755223] IR JVC protocol handler initialized
[    2.760333] IR Sony protocol handler initialized
[    2.765508] IR SANYO protocol handler initialized
[    2.770778] IR Sharp protocol handler initialized
[    2.776047] IR MCE Keyboard/mouse protocol handler initialized
[    2.782568] IR XMP protocol handler initialized
[    2.787642] ir_imon_decoder: IR iMON protocol handler initialized
[    2.794556] usbcore: registered new interface driver uvcvideo
[    2.800995] USB Video Class driver (1.1.1)
[    2.805583] gspca_main: v2.14.0 registered
[    2.810924] vcc28_dvp: supplied by vcc_io
[    2.815682] dovdd_1v8: supplied by vcc28_dvp
[    2.820674] vcc_flash: supplied by vcc_io
[    2.829514] rockchip-thermal ff280000.tsadc: Missing tshut mode property, using default (gpio)
[    2.839201] rockchip-thermal ff280000.tsadc: Missing rockchip,grf property
[    2.876925] usb 1-1.1: new full-speed USB device number 3 using dwc2
[    2.877690] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[    2.881374] sdhci: Secure Digital Host Controller Interface driver
[    2.881375] sdhci: Copyright(c) Pierre Ossman
[    2.881377] Synopsys Designware Multimedia Card Interface Driver
[    2.881769] dwmmc_rockchip ff0c0000.dwmmc: IDMAC supports 32-bit address mode.
[    2.881783] dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
[    2.881790] dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
[    2.881817] dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 30,32 bit host data width,256 deep fifo
[    2.881836] vcc_sd: supplied by vcc_io
[    2.930659] Console: switching to colour frame buffer device 240x67
[    3.026583] rockchip-drm display-subsystem: fb0:  frame buffer device
[    3.046492] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.069714] dwmmc_rockchip ff0d0000.dwmmc: IDMAC supports 32-bit address mode.
[    3.077821] dwmmc_rockchip ff0d0000.dwmmc: Using internal DMA controller.
[    3.085420] dwmmc_rockchip ff0d0000.dwmmc: Version ID is 270a
[    3.091878] dwmmc_rockchip ff0d0000.dwmmc: DW MMC controller at irq 31,32 bit host data width,256 deep fifo
[    3.091903] usb 1-1.1: New USB device found, idVendor=24ae, idProduct=1100, bcdDevice= 1.10
[    3.112127] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.120314] usb 1-1.1: Product: Rapoo 2.4G Wireless Device
[    3.120325] dwmmc_rockchip ff0d0000.dwmmc: Failed getting OCR mask: 0
[    3.126452] usb 1-1.1: Manufacturer: RAPOO
[    3.138277] dwmmc_rockchip ff0d0000.dwmmc: allocated mmc-pwrseq
[    3.144935] mmc_host mmc1: card is non-removable.
[    3.150272] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[    3.158159] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[    3.178894] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.202090] dwmmc_rockchip ff0f0000.dwmmc: IDMAC supports 32-bit address mode.
[    3.210194] dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
[    3.214859] usb 1-1.3: new low-speed USB device number 4 using dwc2
[    3.217803] dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
[    3.231254] dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
[    3.242436] mmc_host mmc2: card is non-removable.
[    3.260455] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    3.281341] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.287729] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.294447] ledtrig-cpu: registered to indicate activity on CPUs
[    3.301218] hidraw: raw HID events driver (C) Jiri Kosina
[    3.307557] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.315222] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.324136] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.324472] input: RAPOO Rapoo 2.4G Wireless Device as /devices/platform/ff540000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:24AE:1100.0001/input/input0
[    3.344827] hid-generic 0003:24AE:1100.0001: input,hidraw0: USB HID v1.10 Mouse [RAPOO Rapoo 2.4G Wireless Device] on usb-ff540000.usb-1.1/input0
[    3.362411] hid-generic 0003:24AE:1100.0002: hiddev96,hidraw1: USB HID v1.10 Device [RAPOO Rapoo 2.4G Wireless Device] on usb-ff540000.usb-1.1/input1
[    3.366743] mmc_host mmc2: Bus speed (slot 0) = 99000000Hz (slot req 100000000Hz, actual 99000000HZ div = 0)
[    3.377442] usbcore: registered new interface driver usbhid
[    3.393126] dwc2 ff540000.usb: dwc2_update_urb_state(): trimming xfer length
[    3.394602] usbhid: USB HID core driver
[    3.402560] usb 1-1.3: New USB device found, idVendor=1c4f, idProduct=0002, bcdDevice= 1.10
[    3.406944] ashmem: initialized
[    3.416131] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.420767] usbcore: registered new interface driver snd-usb-audio
[    3.427835] usb 1-1.3: Product: USB Keykoard
[    3.436484] u32 classifier
[    3.439545] usb 1-1.3: Manufacturer: USB
[    3.442977] Initializing XFRM netlink socket
[    3.451945] NET: Registered protocol family 10
[    3.452106] dwmmc_rockchip ff0f0000.dwmmc: Successfully tuned phase to 167
[    3.457354] Segment Routing with IPv6
[    3.464752] mmc2: new HS200 MMC card at address 0001
[    3.468840] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.474991] mmcblk2: mmc2:0001 BJNB4R 29.1 GiB 
[    3.481232] NET: Registered protocol family 17
[    3.481988] input: USB USB Keykoard as /devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:1C4F:0002.0003/input/input1
[    3.486648] mmcblk2boot0: mmc2:0001 BJNB4R partition 1 4.00 MiB
[    3.490954] NET: Registered protocol family 15
[    3.504526] mmcblk2boot1: mmc2:0001 BJNB4R partition 2 4.00 MiB
[    3.510507] Bluetooth: RFCOMM TTY layer initialized
[    3.515477] mmcblk2rpmb: mmc2:0001 BJNB4R partition 3 4.00 MiB, chardev (241:0)
[    3.521985] Bluetooth: RFCOMM socket layer initialized
[    3.521998] Bluetooth: RFCOMM ver 1.11
[    3.529290] mmc_host mmc1: Bus speed (slot 0) = 192000000Hz (slot req 200000000Hz, actual 192000000HZ div = 0)
[    3.535618] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.535625] Bluetooth: HIDP socket layer initialized
[    3.535655] 8021q: 802.1Q VLAN Support v1.8
[    3.535778] hid-generic 0003:1C4F:0002.0003: input,hidraw2: USB HID v1.10 Keyboard [USB USB Keykoard] on usb-ff540000.usb-1.3/input0
[    3.569867] input: USB USB Keykoard Consumer Control as /devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:1C4F:0002.0004/input/input2
[    3.573611] lib80211: common routines for IEEE802.11 drivers
[    3.607769] Key type dns_resolver registered
[    3.612750] ThumbEE CPU extension supported.
[    3.617530] Registering SWP/SWPB emulation handler
[    3.623160] Loading compiled-in X.509 certificates
[    3.628987] Btrfs loaded, crc32c=crc32c-generic
[    3.643214] input: USB USB Keykoard System Control as /devices/platform/ff540000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:1C4F:0002.0004/input/input3
[    3.643616] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    3.655853] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    3.657775] hid-generic 0003:1C4F:0002.0004: input,hidraw3: USB HID v1.10 Device [USB USB Keykoard] on usb-ff540000.usb-1.3/input1
[    3.683852] dwmmc_rockchip ff0d0000.dwmmc: Unexpected interrupt latency
[    3.692222] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    3.700108] rk_gmac-dwmac ff290000.ethernet: TX delay(0x1d).
[    3.706436] rk_gmac-dwmac ff290000.ethernet: RX delay(0x16).
[    3.712763] rk_gmac-dwmac ff290000.ethernet: integrated PHY? (no).
[    3.719692] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    3.731510] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    3.737890] rk_gmac-dwmac ff290000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    3.745878] rk_gmac-dwmac ff290000.ethernet:     DWMAC1000
[    3.751729] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register supported
[    3.760095] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine supported
[    3.768461] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[    3.774300] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[    3.782179] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[    3.789394] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[    3.796012] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[    3.802534] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.122946] dwmmc_rockchip ff0d0000.dwmmc: Successfully tuned phase to 60
[    4.130620] mmc1: error -110 whilst initialising SDIO card
[    4.138107] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[    4.145992] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[    4.166605] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
[    4.225404] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    4.226159] random: crng init done
[    4.236954] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.245083] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    4.254806] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    4.331766] mmc_host mmc1: Bus speed (slot 0) = 192000000Hz (slot req 200000000Hz, actual 192000000HZ div = 0)
[    4.842075] libphy: stmmac: probed
[    4.845886] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    4.856488] mdio_bus stmmac-0:01: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    4.868191] asoc-simple-card spdif-sound: dit-hifi <-> ff8b0000.sound mapping ok
[    4.877232] rtc-hym8563 0-0051: no valid clock/calendar values available
[    4.884734] rtc-hym8563 0-0051: hctosys: unable to read the hardware clock
[    4.892570] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.902495] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.909866] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.919503] cfg80211: failed to load regulatory.db
[    4.919750] vcc_sd: disabling
[    4.928181] dovdd_1v8: disabling
[    4.931800] ALSA device list:
[    4.935116]   #0: ROCKCHIP,SPDIF
[    4.938838] ttyS2 - failed to request DMA
[    4.943511] VFS: Cannot open root device "mmcblk2p6" or unknown-block(179,6): error -6
[    4.952391] Please append a correct "root=" boot option; here are the available partitions:
[    4.961723] 0100            4096 ram0 
[    4.961725]  (driver?)
[    4.968596] b300        30535680 mmcblk2 
[    4.968613]  driver: mmcblk
[    4.976224] dwmmc_rockchip ff0d0000.dwmmc: Successfully tuned phase to 146
[    4.976870] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6)
[    4.984006] mmc1: error -110 whilst initialising SDIO card
[    4.993330] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.18.0-rc5-RockMyy-181818 #1
[    4.993331] Hardware name: Rockchip (Device Tree)
[    4.993348] [<c01101fc>] (unwind_backtrace) from [<c010c21c>] (show_stack+0x10/0x14)
[    5.000816] dwmmc_rockchip ff0d0000.dwmmc: could not set regulator OCR (-22)
[    5.007917] [<c010c21c>] (show_stack) from [<c0cd46a4>] (dump_stack+0x70/0x8c)
[    5.007926] [<c0cd46a4>] (dump_stack) from [<c01205b8>] (panic+0xc4/0x240)
[    5.013177] dwmmc_rockchip ff0d0000.dwmmc: failed to enable vmmc regulator
[    5.021823] [<c01205b8>] (panic) from [<c1101650>] (mount_block_root+0x258/0x2e4)
[    5.021828] [<c1101650>] (mount_block_root) from [<c11019f4>] (prepare_namespace+0x154/0x1b4)
[    5.042631] mmc_host mmc1: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
[    5.045437] [<c11019f4>] (prepare_namespace) from [<c1101178>] (kernel_init_freeable+0x2fc/0x3cc)
[    5.045444] [<c1101178>] (kernel_init_freeable) from [<c0ce68c4>] (kernel_init+0x8/0x10c)
[    5.045450] [<c0ce68c4>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    5.108790] Exception stack(0xed8c7fb0 to 0xed8c7ff8)
[    5.109971] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    5.114429] 7fa0:                                     00000000 00000000 00000000 00000000
[    5.114433] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.114437] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    5.123540] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    5.129696] CPU1: stopping
[    5.129700] CPU: 1 PID: 42 Comm: kworker/1:1 Not tainted 4.18.0-rc5-RockMyy-181818 #1
[    5.129701] Hardware name: Rockchip (Device Tree)
[    5.129709] Workqueue: events_freezable mmc_rescan
[    5.129716] [<c01101fc>] (unwind_backtrace) from [<c010c21c>] (show_stack+0x10/0x14)
[    5.129721] [<c010c21c>] (show_stack) from [<c0cd46a4>] (dump_stack+0x70/0x8c)
[    5.129726] [<c0cd46a4>] (dump_stack) from [<c010ef30>] (handle_IPI+0x178/0x358)
[    5.129734] [<c010ef30>] (handle_IPI) from [<c06a3448>] (gic_handle_irq+0x84/0x90)
[    5.129741] [<c06a3448>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    5.129742] Exception stack(0xed013cb0 to 0xed013cf8)
[    5.129746] 3ca0:                                     00000001 00000000 2ce3f000 c11a8280
[    5.129750] 3cc0: ed012000 c1204900 00000000 00000082 04208060 ed013d00 ed013d80 0000000a
[    5.129753] 3ce0: 00000000 ed013d00 c0102190 c01021a4 20000113 ffffffff
[    5.129759] [<c0101a0c>] (__irq_svc) from [<c01021a4>] (__do_softirq+0x7c/0x398)
[    5.129763] [<c01021a4>] (__do_softirq) from [<c0125ec4>] (irq_exit+0x68/0xc8)
[    5.129770] [<c0125ec4>] (irq_exit) from [<c0168384>] (__handle_domain_irq+0xa4/0xe0)
[    5.129777] [<c0168384>] (__handle_domain_irq) from [<c06a341c>] (gic_handle_irq+0x58/0x90)
[    5.129781] [<c06a341c>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    5.129783] Exception stack(0xed013d80 to 0xed013dc8)
[    5.129788] 3d80: 60000093 2ce3f000 00000000 c11a33fc 0000002e c1311cb0 00000001 60000013
[    5.129791] 3da0: c13525e6 00000000 00000000 00000000 c131e048 ed013dd0 c0167184 c0167188
[    5.129793] 3dc0: 60000013 ffffffff
[    5.129799] [<c0101a0c>] (__irq_svc) from [<c0167188>] (vprintk_emit+0x2d4/0x340)
[    5.129804] [<c0167188>] (vprintk_emit) from [<c0167374>] (vprintk_default+0x1c/0x24)
[    5.129808] [<c0167374>] (vprintk_default) from [<c0167694>] (printk+0x18/0x28)
[    5.129814] [<c0167694>] (printk) from [<c09bb150>] (sdio_read_cis+0x234/0x288)
[    5.129821] [<c09bb150>] (sdio_read_cis) from [<c09b96ec>] (mmc_sdio_init_card+0x514/0xb38)
[    5.129826] [<c09b96ec>] (mmc_sdio_init_card) from [<c09ba00c>] (mmc_attach_sdio+0x78/0x300)
[    5.129831] [<c09ba00c>] (mmc_attach_sdio) from [<c09b2204>] (mmc_rescan+0x2f0/0x348)
[    5.129839] [<c09b2204>] (mmc_rescan) from [<c01377b4>] (process_one_work+0x258/0x470)
[    5.129844] [<c01377b4>] (process_one_work) from [<c01385e8>] (worker_thread+0x2bc/0x3d8)
[    5.129849] [<c01385e8>] (worker_thread) from [<c013c6c0>] (kthread+0x12c/0x14c)
[    5.129854] [<c013c6c0>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    5.129855] Exception stack(0xed013fb0 to 0xed013ff8)
[    5.129858] 3fa0:                                     00000000 00000000 00000000 00000000
[    5.129862] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.129865] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    5.129868] CPU0: stopping
[    5.129872] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.0-rc5-RockMyy-181818 #1
[    5.129874] Hardware name: Rockchip (Device Tree)
[    5.129881] [<c01101fc>] (unwind_backtrace) from [<c010c21c>] (show_stack+0x10/0x14)
[    5.129886] [<c010c21c>] (show_stack) from [<c0cd46a4>] (dump_stack+0x70/0x8c)
[    5.129891] [<c0cd46a4>] (dump_stack) from [<c010ef30>] (handle_IPI+0x178/0x358)
[    5.129896] [<c010ef30>] (handle_IPI) from [<c06a3448>] (gic_handle_irq+0x84/0x90)
[    5.129901] [<c06a3448>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    5.129903] Exception stack(0xc1201f30 to 0xc1201f78)
[    5.129906] 1f20:                                     00000000 000255c0 edfd050c c011a860
[    5.129910] 1f40: 00000000 00000000 c1200000 c120a4b0 00000001 c1201f88 c120a4f4 00000000
[    5.129913] 1f60: 00000017 c1201f80 c0108728 c010872c 60000013 ffffffff
[    5.129919] [<c0101a0c>] (__irq_svc) from [<c010872c>] (arch_cpu_idle+0x2c/0x38)
[    5.129926] [<c010872c>] (arch_cpu_idle) from [<c014b038>] (do_idle+0xf0/0x228)
[    5.129931] [<c014b038>] (do_idle) from [<c014b3e0>] (cpu_startup_entry+0x18/0x20)
[    5.129936] [<c014b3e0>] (cpu_startup_entry) from [<c1100dec>] (start_kernel+0x40c/0x49c)
[    5.129940] [<c1100dec>] (start_kernel) from [<00000000>] (  (null))
[    5.129943] CPU3: stopping
[    5.129947] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 4.18.0-rc5-RockMyy-181818 #1
[    5.129949] Hardware name: Rockchip (Device Tree)
[    5.129955] [<c01101fc>] (unwind_backtrace) from [<c010c21c>] (show_stack+0x10/0x14)
[    5.129960] [<c010c21c>] (show_stack) from [<c0cd46a4>] (dump_stack+0x70/0x8c)
[    5.129965] [<c0cd46a4>] (dump_stack) from [<c010ef30>] (handle_IPI+0x178/0x358)
[    5.129971] [<c010ef30>] (handle_IPI) from [<c06a3448>] (gic_handle_irq+0x84/0x90)
[    5.129976] [<c06a3448>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    5.129978] Exception stack(0xed8fdf68 to 0xed8fdfb0)
[    5.129982] df60:                   00000000 00001230 ee00650c c011a860 00000000 00000000
[    5.129986] df80: ed8fc000 c120a4b0 00000008 ed8fdfc0 c120a4f4 00000000 00000000 ed8fdfb8
[    5.129989] dfa0: c0108728 c010872c 60000013 ffffffff
[    5.129994] [<c0101a0c>] (__irq_svc) from [<c010872c>] (arch_cpu_idle+0x2c/0x38)
[    5.129999] [<c010872c>] (arch_cpu_idle) from [<c014b038>] (do_idle+0xf0/0x228)
[    5.130004] [<c014b038>] (do_idle) from [<c014b3e0>] (cpu_startup_entry+0x18/0x20)
[    5.130008] [<c014b3e0>] (cpu_startup_entry) from [<0010254c>] (0x10254c)
[    5.696419] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,6) ]---
ghost commented 6 years ago

I used mkkrnlimg to generate the kernel.img instead of rkcrc.

Miouyouyou commented 6 years ago

Hmm, it seems like mmcblk2p6 is never detected. Only two partitions are detected in this MMC... Are you able to mount the MMC during the U-boot phase ?

ums 0 mmc 3

Or maybe

ums 0 mmc 2

You'll need your Firefly to be connected to the computer during this operation, so that you see your MMC mounted as an USB storage.

Also I think I've missed the option that allows the kernel to parse MMC partitions from the command line. I'll see if it's enabled.

Miouyouyou commented 6 years ago

It's not enabled in my configuration. I'll try to upload a new build script, with the right options enabled, see if that makes a different, tomorrow.

ghost commented 6 years ago

You mean ums 0 mmc 3 or ums 0 mmc 2 can't solve the problem?

Miouyouyou commented 6 years ago

One of these commands should allow you to mount the eMMC partition on your host PC.

Basically, with the following configuration :

[ Linux PC or Laptop ] USB    ------> Micro USB [ Firefly RK3288 ] 
[ Linux PC or Laptop ] Serial ------> UART      [ Firefly RK3288 ]

If both fail... This might be a little more difficult.

That said, I think the reason the new kernel is not detecting the eMMC partitions, and throw a kernel panic, is due to some options not enabled in the kernel configuration. I'll add them tonight and update this repository, so that you can test if you can boot the kernel this time.

ghost commented 6 years ago

Hello, sir. In order to enter the shell of U-Boot, the CONFIG_BOOTDELAY in u-boot/include/configs/rk32plat.h gotta be modified to be greater than 0, so I modified the value of it, and re-compiled a U-Boot(2.19). After that, I successfully entered the shell of U-Boot, but there is no umscommand in this shell.

These are the commands I got:

rkboot # help
?       - alias for 'help'
bmp     - manipulate BMP image data
bootm   - boot application image from memory
bootrk  - boot rockchip android bootimg
cls     - clear screen
env     - environment handling commands
exit    - exit script
fastboot- use USB Fastboot protocol
fdt     - flattened device tree utility commands
go      - start application at address 'addr'
help    - print command description/usage
pmic    - PMIC
printenv- print environment variables
reset   - Perform RESET of the CPU
rockusb - Use the UMS [User Mass Storage]
saveenv - save environment variables to persistent storage
setenv  - set environment variables
showvar - print local hushshell variables
version - print monitor, compiler and linker version

Then I tried to compile and burn a newer version of U-Boot(2.30), but the system could not be booted up. The following is the output information:

DDR Version 1.06 20171020

In

SRX

Channel a: DDR3 400MHz

Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB

Channel b: DDR3 400MHz

Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB

OUT

Boot1 Release Time: Apr 11 2018 10:32:58, version: 2.36

ChipType = 0x8, 229

mmc2:cmd19,256

SdmmcInit=2 0

BootCapSize=2000

UserCapSize=29820MB

FwPartOffset=2000 , 2000

mmc0:cmd8,1024

mmc0:cmd8,1024

mmc0:cmd8,1024

SdmmcInit=0 1

StorageInit ok = 29865

tag:LOADER error,addr:0x2000

hdr 032c77e4 + 0x0:0x52444e41,0x2144494f,0x0062f9e0,0x60408000,

tag:LOADER error,addr:0x4000

hdr 032c77e4 + 0x0:0x55,0x8e,0xe5,0xa6,0x8c,0x55,0x21,0xd9,0x25,0xc2,0xb2,0x0b,0 xf1,0x0f,0x0e,0x96,

tag:LOADER error,addr:0x2800

hdr 032c77e4 + 0x0:0x7cc69054,0xd69c4f28,0x8bbb052d,0xcdb23189,

tag:LOADER error,addr:0x4800

hdr 032c77e4 + 0x0:0x71,0x64,0x6d,0xc2,0x25,0x1c,0x0f,0x49,0xec,0x6f,0x7e,0xf6,0 xdf,0x1b,0x84,0x10,

tag:LOADER error,addr:0x3000

hdr 032c77e4 + 0x0:0xefc2d744,0xbe9b86b7,0x7dfe13de,0x7aff6f6e,

tag:LOADER error,addr:0x5000

hdr 032c77e4 + 0x0:0x8f,0x6d,0x3c,0x06,0x66,0xc8,0xc2,0xf0,0x71,0x8a,0x27,0xc1,0 x0c,0x5b,0x98,0x35,

tag:LOADER error,addr:0x3800

hdr 032c77e4 + 0x0:0xd32893df,0x61c6e623,0x5a25127b,0xc4737cc4,

tag:LOADER error,addr:0x5800

hdr 032c77e4 + 0x0:0x86,0x99,0xdb,0x9e,0x83,0xf7,0x78,0xb2,0xbe,0x62,0xba,0x5e,0 x56,0x14,0xc5,0xbc,

tag:LOADER error,addr:0x4000

hdr 032c77e4 + 0x0:0xa6e58e55,0xd921558c,0x0bb2c225,0x960e0ff1,

tag:LOADER error,addr:0x6000

hdr 032c77e4 + 0x0:0x24,0xae,0x28,0x05,0x6d,0x04,0x1b,0x9b,0x6a,0xb8,0xf5,0x72,0 xfe,0xac,0xc1,0x3e,

tag:LOADER error,addr:0x4800

hdr 032c77e4 + 0x0:0xc26d6471,0x490f1c25,0xf67e6fec,0x10841bdf,

tag:LOADER error,addr:0x6800

hdr 032c77e4 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0 x00,0x00,0x00,0x00,

tag:LOADER error,addr:0x5000

hdr 032c77e4 + 0x0:0x063c6d8f,0xf0c2c866,0xc1278a71,0x35985b0c,

tag:LOADER error,addr:0x7000

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:LOADER error,addr:0x5800

hdr 032c77e4 + 0x0:0x9edb9986,0xb278f783,0x5eba62be,0xbcc51456,

tag:LOADER error,addr:0x7800

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x4000

hdr 032c77e4 + 0x0:0xa6e58e55,0xd921558c,0x0bb2c225,0x960e0ff1,

tag:TOS error,addr:0x6000

hdr 032c77e4 + 0x0:0x24,0xae,0x28,0x05,0x6d,0x04,0x1b,0x9b,0x6a,0xb8,0xf5,0x72,0 xfe,0xac,0xc1,0x3e,

tag:TOS error,addr:0x4800

hdr 032c77e4 + 0x0:0xc26d6471,0x490f1c25,0xf67e6fec,0x10841bdf,

tag:TOS error,addr:0x6800

hdr 032c77e4 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0 x00,0x00,0x00,0x00,

tag:TOS error,addr:0x5000

hdr 032c77e4 + 0x0:0x063c6d8f,0xf0c2c866,0xc1278a71,0x35985b0c,

tag:TOS error,addr:0x7000

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x5800

hdr 032c77e4 + 0x0:0x9edb9986,0xb278f783,0x5eba62be,0xbcc51456,

tag:TOS error,addr:0x7800

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x6000

hdr 032c77e4 + 0x0:0x0528ae24,0x9b1b046d,0x72f5b86a,0x3ec1acfe,

tag:TOS error,addr:0x8000

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x6800

hdr 032c77e4 + 0x0:0x00000000,0x00000000,0x00000000,0x00000000,

tag:TOS error,addr:0x8800

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x7000

hdr 032c77e4 + 0x0:0xffffffff,0xffffffff,0xffffffff,0xffffffff,

tag:TOS error,addr:0x9000

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

tag:TOS error,addr:0x7800

hdr 032c77e4 + 0x0:0xffffffff,0xffffffff,0xffffffff,0xffffffff,

tag:TOS error,addr:0x9800

hdr 032c77e4 + 0x0:0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0 xff,0xff,0xff,0xff,

powerOn 849237

Miouyouyou commented 6 years ago

It seems that U-Boot cannot be loaded, and you're getting the Rockchip Bootloader instead. You need to plug your RK3288 board to the PC, type rockusb during the bootloader sequence and, then, on your PC try to do this :

git clone https://github.com/mqmaker/miqi-prebuilt --depth 1
cd u-boot
sudo ./flash.sh

While this script targets MiQi devices, it kind of work on any RK3288 board.

ghost commented 6 years ago

It seems to be unworkable on Firefly devices, and the output was like this:

dauker@dauker-asus:~/chan/miqi-prebuilt/u-boot$ sudo ./flash.sh Waiting for rockchip device... Bus 001 Device 007: ID 2207:320a
Flashing RK3288_uboot.img... The Device did not support this operation! Write LBA from file (100%) Write LBA from file (100%) Reset Device OK.

After rebooting, the U-Boot 2.19 is still on the stage. In addition, if this script you provided is feasible, how to modify CONFIG_BOOTDELAY ?

Miouyouyou commented 6 years ago

In U-Boot ? You'll have to recompile it.

I don't see any CONFIG_BOOTDELAY in the mainline kernel.

Concerning the flashing... Hmm... Does it still boot using rkboot ? Or do you have access to some U-Boot ?

Miouyouyou commented 6 years ago

Did you try reflashing an entire Linux image ? Like this one :

https://drive.google.com/drive/folders/0B7HO8lbGgAqAcFdPRDlITUc3bHM ?

ghost commented 6 years ago

Now I do have access to U-Boot 2.19, but there isn't the "ums" command. All my work is based on a complete Linux image.

Miouyouyou commented 6 years ago

What commands are available to you ?

ghost commented 6 years ago

rkboot # help ? - alias for 'help' bmp - manipulate BMP image data bootm - boot application image from memory bootrk - boot rockchip android bootimg cls - clear screen env - environment handling commands exit - exit script fastboot- use USB Fastboot protocol fdt - flattened device tree utility commands go - start application at address 'addr' help - print command description/usage pmic - PMIC printenv- print environment variables reset - Perform RESET of the CPU rockusb - Use the UMS [User Mass Storage] saveenv - save environment variables to persistent storage setenv - set environment variables showvar - print local hushshell variables version - print monitor, compiler and linker version

Miouyouyou commented 6 years ago

rkboot is a modified version of U-Boot, used by Rockchip. It's not really U-Boot, since they removed a lot of features or replaced them by "Rockchip specific" features which, most of the time, don't work as intended.

If you type :

rockusb

and then try to flash an Armbian image, with update_tool, does it work ?

https://dl.armbian.com/miqi/Ubuntu_xenial_next_desktop.7z