Rock64 fedora core 29 boot issue: Help please? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Rock64 fedora core 29 boot issue: Help please? (/showthread.php?tid=6962) |
Rock64 fedora core 29 boot issue: Help please? - forwardbackwards - 12-15-2018 Hello all! I'm looking to run fedora core 29 on my Rock64 board and am running into the following issue... The grub.efi app fails to start after its loaded into ram... Code: ## Starting EFI application at 02080000 ... I'm using fedoras u-boot for the evb-rk3288 and wrapping the ayufan bits around it. I've tried different versions of the DDR binary because I've read the issue may be due to DDR timing issues. So far I'm at a loss as to why it isn't working. The ayufan git log doesn't seem to contain a lot of info as to what the differences between the versions are between rk33/rk3328_ddr_786MHz_v1.06.bin and rk33/rk3328_ddr_786MHz_v1.13.bin. any suggestions? cheers Code: ~/Desktop/repos/rock64/rkbin-ayufan [master|…9] here's basically how I build the following boot bits: Code: -rw-rw-r-- 1 86020 Dec 15 21:28 idbloader.bin This is where I am stuck... The bootlog Code: DDR version 1.08 20170628 RE: Rock64 fedora core 29 boot issue: Help please? - forwardbackwards - 12-16-2018 Quick update.... I've tried the grub.efi app from the Opensuse tumbleweed repo and grub now loads although I can't seem to get the kernel to boot. It's a 4.20 version of the fedora kernel. Looks like Fedoras grub may require a few patches or need a slightly different configuration. I'll be looking into how Opensuse does things for the for the time being. I am going to get the 4.20 version of the kernel to boot after I've resolved that issue. If boots are unsuccessful I'll move on to ayufans mainline kernel and then see if I can bring over what he's done to his kernels to get Fedora to make this board boot. If anyone has any wise words I'll love to here them? Around: * the grub.efi app not wanting to boot a kernel (where to look what tools could help me debug something like this?) And thanks to everyone who's done work to get me up to this point (ayufans stuff and friends) It's time to make a wee bit more progress and move forward I hope. Regards, RE: Rock64 fedora core 29 boot issue: Help please? - mark1250 - 12-16-2018 I've been trying to get opensuse Tumbleweed to boot on my 2Gb rock64. The image I used was downloaded from: https://download.opensuse.org/repositories/devel:/ARM:/Factory:/Contrib:/Rockchip/images/ After dd'ing the image to the emmc, I installed the Arch u-boot using this install guide: https://archlinuxarm.org/platforms/armv8/rockchip/rock64 Using these kernel arguments in grub2/grub.cfg . I'm able to see where the boot process stops: $linux ($root)//Image-4.19.5-1-default ${extra_cmdline} loglevel=7 earlycon=uart8250,mmio32,0xff130000 console=ttyS0,1500000n8 splash=silent plymouth.enable=0 root=UUID=d90c3637-cea7-412c-8aa7-e3a5a47dad39 rw So after unpacking the initramfs, it stops after saying it can't open the rtc. [ 29.068003] Freeing initrd memory: 30036K [ 29.071144] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 29.072396] kvm [1]: 8-bit VMID [ 29.074816] kvm [1]: vgic interrupt IRQ1 [ 29.075557] kvm [1]: Hyp mode initialized successfully [ 29.081276] Initialise system trusted keyrings [ 29.082177] workingset: timestamp_bits=44 max_order=19 bucket_order=0 [ 29.083355] zbud: loaded [ 29.086027] pstore: using deflate compression [ 29.101879] Key type asymmetric registered [ 29.102309] Asymmetric key parser 'x509' registered [ 29.102901] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 29.103982] io scheduler noop registered [ 29.104388] io sched[ 29.104995] io scheduler cfq registered (default) [ 29.105[ 29.105954] io scheduler bfq registered [ 29.115404] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 29.136242] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 29.163163] Serial: AMBA driver [ 29.164563] msm_serial: driver initialized [ 29.167928] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 29.170729] libphy: Fixed MDIO Bus: probed [ 29.172295] mousedev: PS/2 mouse device common for all mice [ 29.181473] ledtrig-cpu: registered to indicate activity on CPUs [ 29.182859] EFI Variables Facility v0.08 2004-May-17 [ 29.183463] efivars: get_next_variable: status=8000000000000007 [ 29.184227] hidraw: raw HID events driver © Jiri Kosina [ 29.189808] NET: Registered protocol family 10 [ 29.227610] Segment Routing with IPv6 [ 29.230255] registered taskstats version 1 [ 29.230691] Loading compiled-in X.509 certificates [ 29.231347] zswap: loaded using pool lzo/zbud [ 29.261624] cryptd: max_cpu_qlen set to 1000 [ 29.290314] Key type big_key registered [ 29.318665] Key type encrypted registered [ 29.319101] AppArmor: AppArmor sha1 policy hashing enabled [ 29.319728] ima:p found, activating TPM-bypass! [ 29.320325] ima: Allocated h[ 29.320986] evm: Initialising EVM extended attributes: [ 229.321845] evm: security.apparmor [ 29.322192] evm: security.61] evm: HMAC attrs: 0x1 [ 29.370627] hctosys: unable to open rtc device (rtc0) checking for rtc in the device tree blob show no entry: fdtdump rk3328-rock64.dtb |grep rtc Checking the kernel config does show 2 entries: cat config-4.19.5-1-default |grep rtc CONFIG_RTC_HCTOSYS_DEVICE="rtc0" CONFIG_RTC_SYSTOHC_DEVICE="rtc0" When I boot ayuran's bionic image I see that the rtc is provided by: dmesg rk808-rtc rk808-rtc: rtc core: registered rk808-rtc as rtc0 I posted this same info on opensuse's arm mailing list, but I haven't gotten any response yet. https://lists.opensuse.org/opensuse-arm/2018-12/msg00016.html I don't know how to fix this, but maybe this information will help you. Thanks. Mark RE: Rock64 fedora core 29 boot issue: Help please? - forwardbackwards - 12-17-2018 (12-16-2018, 08:21 PM)mark1250 Wrote: I've been trying to get opensuse Tumbleweed to boot on my 2Gb rock64. Awesome .... This looks like it could be helpful with what looks like an early console thanks! As for your issue... Did you check to see if the rtc is actually provided in your opensuse initramfs? Did you check ayufans dtb for the rtc entry? Possibly add his rtc entry to your dtb. I'm currently sorting through the opensuse and fedora grub2 patches to look at the differences between the two. Going to take a wee bit. I found a few differences and started creating patches. Cheers! RE: Rock64 fedora core 29 kernel issue: 4.20.0-0.rc5.git3.1.fc30.aarch64 - forwardbackwards - 12-18-2018 (12-17-2018, 07:46 AM)forwardbackwards Wrote: Awesome .... This looks like it could be helpful with what looks like an early console thanks! Made some further progress... Picked through the opensuses grub2 patches in (grub2-2.02-36.1.src.rpm) and created 16 patches for (grub2-2.02-65.fc30.src.rpm). The 4.20.0-0.rc5.git3.1.fc30.aarch64 kernel attempts to boot although "Internal error: Oops: 86000006 [#1] SMP" when starting up. Any ideas on what this is trying to tell me? DDR version 1.13 20180428 ID:0x805 N In LPDDR3 786MHz Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB ddrconfig:7 OUT Boot1 Release Time: Feb 2 2018 15:41:39, version: 2.46 ChipType = 0x11, 144 SdmmcInit=2 0 BootCapSize=0 UserCapSize=0MB FwPartOffset=2000 , 0 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 35814 Raw SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit ret = 0, SecureMode = 0 LoadTrustBL No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x200000, size=0x92e3c RunBL31 0x10000 NOTICE: BL31: v1.3(debug):9d3f591 NOTICE: BL31: Built : 14:39:02, Jan 17 2018 NOTICE: BL31:Rockchip release version: v1.3 INFO: ARM GICv2 driver initialized INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 1 INFO: plat_rockchip_pmu_init: pd status 0xe INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2019.01-rc1-00169-ge11ef3d26e-dirty (Dec 16 2018 - 07:20:57 +0000) Model: Rockchip RK3328 EVB DRAM: 4 GiB MMC: rksdmmc@ff500000: 1, rksdmmc@ff520000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Rockchip RK3328 EVB Net: Warning: ethernet@ff540000 (eth0) using random MAC address - 6a:f5:13:11:b3:40 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 --- grub menu presented here--- EFI stub: Booting Linux Kernel... EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied EFI stub: Using DTB from configuration table EFI stub: Exiting boot services and installing virtual address map... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 4.20.0-0.rc5.git3.1.fc30.aarch64 (mockbuild@buildvm-aarch64-02.arm.fedoraproject.org) (gcc version 8.2.1 28 [ 0.000000] Machine model: Rockchip RK3328 EVB [ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '') [ 0.000000] printk: bootconsole [uart8250] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: EFI v2.70 by [ 0.000000] efi: SMBIOS=0xfbf1f000 MEMRESERVE=0xfbd4d040 [ 0.000000] cma: Reserved 64 MiB at 0x00000000f7000000 [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000feffffff] [ 0.000000] NUMA: NODE_DATA [mem 0xfef71600-0xfef7efff] [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000000200000-0x00000000feffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000200000-0x00000000080f4fff] [ 0.000000] node 0: [mem 0x00000000080f5000-0x000000000810afff] [ 0.000000] node 0: [mem 0x000000000810b000-0x00000000fbf1efff] [ 0.000000] node 0: [mem 0x00000000fbf1f000-0x00000000fbf27fff] [ 0.000000] node 0: [mem 0x00000000fbf28000-0x00000000fef2ffff] [ 0.000000] node 0: [mem 0x00000000fef30000-0x00000000fef3ffff] [ 0.000000] node 0: [mem 0x00000000fef40000-0x00000000feffffff] [ 0.000000] Zeroed struct page in unavailable ranges: 47 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000feffffff] [ 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] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 24 pages/cpu @(____ptrval____) s58888 r8192 d31224 u98304 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: Kernel page table isolation (KPTI) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1027656 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-4.20.0-0.rc5.git3.1.fc30.aarch64 root=UUID=e7b92db8-702c-44a4-b1eb-e8febb1d96178 [ 0.000000] Memory: 3957872K/4175872K available (11452K kernel code, 2078K rwdata, 7244K rodata, 6080K init, 14484K bss, 152464K res) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x3c/0x500 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 38819 entries in 152 pages [ 0.000000] Running RCU self tests [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU lockdep checking is enabled. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] rcu: RCU callback double-/use-after-free debug enabled. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.002100] Console: colour dummy device 80x25 [ 0.002718] Lock dependency validator: Copyright © 2006 Red Hat, Inc., Ingo Molnar [ 0.003469] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 0.003877] ... MAX_LOCK_DEPTH: 48 [ 0.004293] ... MAX_LOCKDEP_KEYS: 8191 [ 0.004725] ... CLASSHASH_SIZE: 4096 [ 0.005156] ... MAX_LOCKDEP_ENTRIES: 32768 [ 0.005596] ... MAX_LOCKDEP_CHAINS: 65536 [ 0.006036] ... CHAINHASH_SIZE: 32768 [ 0.006477] memory used by lock dependency info: 7263 kB [ 0.007006] per task-struct memory footprint: 1920 bytes [ 0.007537] kmemleak: Kernel memory leak detector disabled [ 0.010179] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.011200] pid_max: default: 32768 minimum: 301 [ 0.012218] LSM: Security Framework initializing [ 0.012683] Yama: becoming mindful. [ 0.013094] SELinux: Initializing. [ 0.019126] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.022265] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.023156] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.023927] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.032870] ASID allocator initialised with 32768 entries [ 0.034111] rcu: Hierarchical SRCU implementation. [ 0.041517] Remapping and enabling EFI services. [ 0.044540] smp: Bringing up secondary CPUs ... [ 0.048387] Detected VIPT I-cache on CPU1 [ 0.048499] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.052548] Detected VIPT I-cache on CPU2 [ 0.052640] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.056051] Detected VIPT I-cache on CPU3 [ 0.056144] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.056794] smp: Brought up 1 node, 4 CPUs [ 0.060412] SMP: Total of 4 processors activated. [ 0.060884] CPU features: detected: 32-bit EL0 Support [ 0.061394] CPU features: detected: CRC32 instructions [ 0.073186] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching [ 0.074004] CPU: All CPU(s) started at EL2 [ 0.074521] alternatives: patching kernel code [ 0.084023] devtmpfs: initialized [ 0.371808] DMA-API: preallocated 65536 debug entries [ 0.372316] DMA-API: debugging enabled by kernel config [ 0.372840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.374023] futex hash table entries: 1024 (order: 5, 131072 bytes) [ 0.430934] pinctrl core: initialized pinctrl subsystem [ 0.435204] [ 0.435378] ************************************************************* [ 0.436039] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.436698] ** ** [ 0.437357] ** IOMMU DebugFS SUPPORT HAS BEEN ENABLED IN THIS KERNEL ** [ 0.438017] ** ** [ 0.438677] ** This means that this kernel is built to expose internal ** [ 0.439336] ** IOMMU data structures, which may compromise security on ** [ 0.439996] ** your system. ** [ 0.440733] ** ** [ 0.441395] ** If you see this message and you are not debugging the ** [ 0.442054] ** kernel, report this immediately to your vendor! ** [ 0.442713] ** ** [ 0.443373] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.444032] ************************************************************* [ 0.445834] SMBIOS 3.0 present. [ 0.446189] DMI: rockchip evb_rk3328/evb_rk3328, BIOS 2019.01-rc1-00169-ge11ef3d26e-dirty 12/16/2018 [ 0.449915] NET: Registered protocol family 16 [ 0.452372] audit: initializing netlink subsys (disabled) [ 0.453716] audit: type=2000 audit(0.450:1): state=initialized audit_enabled=0 res=1 [ 0.458063] cpuidle: using governor menu [ 0.459237] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____)) [ 0.459969] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.513999] DMA: preallocated 256 KiB pool for atomic allocations [ 0.516223] Serial: AMBA PL011 UART driver [ 0.667354] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.670144] cryptd: max_cpu_qlen set to 1000 [ 0.675945] ACPI: Interpreter disabled. [ 0.679328] sdmmc-regulator GPIO handle specifies active low - ignored [ 0.681706] vcc_sys: supplied by dc_12v [ 0.687207] vgaarb: loaded [ 0.689954] SCSI subsystem initialized [ 0.692405] usbcore: registered new interface driver usbfs [ 0.693200] usbcore: registered new interface driver hub [ 0.694192] usbcore: registered new device driver usb [ 0.695635] pps_core: LinuxPPS API ver. 1 registered [ 0.696128] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.697070] PTP clock support registered [ 0.698686] EDAC MC: Ver: 3.0.0 [ 0.701821] Registered efivars operations [ 0.704190] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 0.705077] Mem abort info: [ 0.705366] ESR = 0x86000006 [ 0.705680] Exception class = IABT (current EL), IL = 32 bits [ 0.706261] SET = 0, FnV = 0 [ 0.706571] EA = 0, S1PTW = 0 [ 0.706893] [0000000000000000] user address but active_mm is swapper [ 0.707563] Internal error: Oops: 86000006 [#1] SMP [ 0.708036] Modules linked in: [ 0.708346] CPU: 1 PID: 7 Comm: kworker/u8:0 Not tainted 4.20.0-0.rc5.git3.1.fc30.aarch64 #1 [ 0.709150] Hardware name: rockchip evb_rk3328/evb_rk3328, BIOS 2019.01-rc1-00169-ge11ef3d26e-dirty 12/16/2018 [ 0.710117] Workqueue: efi_rts_wq efi_call_rts [ 0.710554] pstate: 60000005 (nZCv daif -PAN -UAO) [ 0.711016] pc : (null) [ 0.711346] lr : __efi_rt_asm_wrapper+0x28/0x44 [ 0.711784] sp : ffff00000807bd30 [ 0.712107] x29: ffff00000807bd30 x28: ffff000009a73b6f [ 0.712623] x27: ffff0000098d1000 x26: 0000000000000000 [ 0.713139] x25: ffff0000098d1098 x24: 0000000000000000 [ 0.713655] x23: ffff000008fbb700 x22: ffff00000804bcb0 [ 0.714171] x21: ffff8000f2d47c00 x20: ffff00000804bca8 [ 0.714687] x19: ffff00000a8e22c0 x18: 00000000fffffffe [ 0.715203] x17: 0000000000000028 x16: 0000000000000000 [ 0.715719] x15: 0000000000000001 x14: 0000000000000b92 [ 0.716235] x13: 0000000000000b95 x12: 0000000000000b92 [ 0.716750] x11: 0000000000000b94 x10: ffff000009ae0d28 [ 0.717266] x9 : 0000000000000028 x8 : 0000000000000000 [ 0.717781] x7 : 0000000000000030 x6 : 0000000000000003 [ 0.718297] x5 : 00000000ffffffff x4 : 0000000000000003 [ 0.718814] x3 : 00000000ffffffff x2 : ffff00000804bcb0 [ 0.719331] x1 : ffff8000f2d47c00 x0 : ffff00000804bca8 [ 0.719849] Process kworker/u8:0 (pid: 7, stack limit = 0x(____ptrval____)) [ 0.720514] Call trace: [ 0.720757] (null) [ 0.721053] efi_call_rts+0x3d0/0x458 [ 0.721415] process_one_work+0x278/0x670 [ 0.721809] worker_thread+0x48/0x3f8 [ 0.722168] kthread+0x134/0x138 [ 0.722488] ret_from_fork+0x10/0x18 [ 0.722843] Code: bad PC value [ 0.723158] ---[ end trace 891d2fcdde871f42 ]--- [ 0.723690] note: kworker/u8:0[7] exited with preempt_count 2 [ 0.724385] kworker/u8:0 (7) used greatest stack depth: 13184 bytes left RE: Rock64 fedora core 29 boot issue: Help please? - toons - 12-31-2018 Any progress on this? Would love to install Fedora 29 |