> Quick update.... Issue seems to be the grub efi app (grubaa64.efi)
> 
> I've created a bootloader that works and the grub efi app loads although I 
> get a
> kernel hang (using fedora 4.20.x kernel).
> 
> I couldn't get the Fedora 29 grub efi app to work so I borrowed opensuses and 
> grub
> loaded although with no config. I head to 'configfile 'disk location of
> config'' to get fedoras grub.cfg to load.  The kernel and initramfs were 
> pulled
> from the disk although it hung when attempting boot without any obvious 
> visual debug logs
> of what might be wrong.
> 
> I've used the DRAM config binaries, fist stage loader configs and arm trust 
> stuff from
> from ayufan repos with the fedora u-boot binary for evb-rk3288 
> 
> It's a 4.20 version of the fedora kernel.  Possibly Fedoras grub may require 
> a few
> patches or need a slightly different configuration.  I'll be looking into how 
> Suse
> does things for the for the time being so I can add that support to Fedoras 
> grub.  I am
> going to try 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 to 
> 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 possible differences between opensuses grub and fedoras grub 
> (grubaa64.efi); where
> to focus? just point and I'll look.
> * the opensuse grubaa64.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.
> 
> Regards,


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 grubaa64.efi app loads now and presents me 
with the grub.cfg cfg file options. Yay!!

The  kernel attempts to boot now although "Internal error: Oops: 86000006 [#1] 
SMP" when starting up. Any ideas on what this is trying to tell me?

I've added the following to the kernel command line to get more verbose info:
loglevel=7 earlycon=uart8250,mmio32,0xff130000 console=ttyS0,1500000n8
and removed quiet and rhgb

Next step I'll just try and boot fc29s kernel... This was with rawhides 
4.20.0-0.rc5.git3.1.fc30.aarch64 kernel.

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 
(mockbu...@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 (c) 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 <giome...@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
_______________________________________________
arm mailing list -- arm@lists.fedoraproject.org
To unsubscribe send an email to arm-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/arm@lists.fedoraproject.org

Reply via email to