Hello all,
I've been looking for a group like this for a while now to hopefully help with learning how to get get a recent version of u-boot working properly so I can get fedora 29 to boot on my rock64 and odroid c2 boards. I'd also like to contribute this back once I get this working properly.
So far I've gotten the odroid c2 to boot fine using the stock hardkernel 3.16 lts kernel and their older version of u-boot. For this I had used a chrooted instance of a Fedora 29 minimum sitting on the Ubuntu distro they provide. From this I built a new initramfs with dracut against a copy of the hosted ubunutu lib/modules.
This all worked fine although I'd like to get it working with a recent u-boot, UEFI and load the grub.efi binary to boot the standard fedora kernel. I had got to the point where I had loaded the grub binary and was able to select my kernel (stock fedora 4.18.x kernel); Although things would hang after. I suspect the main reason for the hang was I borrowed the opensuse grub.efi UEFI app because I could not get the fedora one to run. Other than the binary blob stuff from hardkernel u-boot was stock and it was booting into u-boot just fine.
I've set that board aside for now to use it as a build host and have moved on to my rock64 board. After putting the stock fedora 29 minimal image on a card and attempting to boot it Im seeing:
... regular u-boot stuff blah blah blah (full u-boot log is below) Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi" ... hangs here
I'm using the u-boot binary from another distro (arch linux) configured for a rock64 device; Not the Fedora one. I'm pretty ignorant on how the shim stuff works although I would like to learn all those details to form a better understanding. My current understanding is that this shim is a signed (by UEFI signing service) initial bootloader that handles chaining to a trusted full bootloader (grub in this case). Does grub need to be signed in some way to work with this shim that loads it?
Are there any good resources out there that would help me better understand what is happening? My next step is going to be to use the fedora u-boot of course and see where that leads me. Although my gut is telling that may not produce the outcome I desire.
I'm very familiar with patching and building so I'm not afraid to dig in and create some patches to bounce back once I have these up and running I'm just hoping to have someone provide some insight as to what I should be focusing on so I can gain some traction.
I've noticed there's a #fedora-meeting-2 IRC channel that meets on Tues at 3pm UTC; I'm planning on dropping by next week.
Well that's all for now I'm exhausted and need some sleep :)
Thanks for reading,
DDR version 1.06 20170424 In SRX 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: 2017-05-18, version: 2.43 ChipType = 0x11, 187 emmc reinit emmc reinit SdmmcInit=2 20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 60041 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=0x8b0ec RunBL31 0x10000 NOTICE: BL31: v1.3(debug):f947c7e NOTICE: BL31: Built : 09:28:45, May 31 2017 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 destiK 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 2018.03-1 (Apr 02 2018 - 19:14:47 -0600) Arch Linux ARM
Model: Rockchip RK3328 EVB DRAM: 4 GiB MMC: rksdmmc@ff500000: 1, rksdmmc@ff520000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment
Failed (-5) In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Rockchip RK3328 EVB Net: Warning: ethernet@ff540000 (eth0) using random MAC address - e6:d0:8e:31:57:c3 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi"
On 12/8/18 3:34 AM, mark co-dyre wrote:
Hello all,
I've been looking for a group like this for a while now to hopefully help with learning how to get get a recent version of u-boot working properly so I can get fedora 29 to boot on my rock64 and odroid c2 boards. I'd also like to contribute this back once I get this working properly.
How does the C2 compare to the HC2? Earlier posts discuss a patch to uboot to support the HC2.
So far I've gotten the odroid c2 to boot fine using the stock hardkernel 3.16 lts kernel and their older version of u-boot. For this I had used a chrooted instance of a Fedora 29 minimum sitting on the Ubuntu distro they provide. From this I built a new initramfs with dracut against a copy of the hosted ubunutu lib/modules.
This all worked fine although I'd like to get it working with a recent u-boot, UEFI and load the grub.efi binary to boot the standard fedora kernel. I had got to the point where I had loaded the grub binary and was able to select my kernel (stock fedora 4.18.x kernel); Although things would hang after. I suspect the main reason for the hang was I borrowed the opensuse grub.efi UEFI app because I could not get the fedora one to run. Other than the binary blob stuff from hardkernel u-boot was stock and it was booting into u-boot just fine.
I've set that board aside for now to use it as a build host and have moved on to my rock64 board. After putting the stock fedora 29 minimal image on a card and attempting to boot it Im seeing:
... regular u-boot stuff blah blah blah (full u-boot log is below) Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi" ... hangs here
I'm using the u-boot binary from another distro (arch linux) configured for a rock64 device; Not the Fedora one. I'm pretty ignorant on how the shim stuff works although I would like to learn all those details to form a better understanding. My current understanding is that this shim is a signed (by UEFI signing service) initial bootloader that handles chaining to a trusted full bootloader (grub in this case). Does grub need to be signed in some way to work with this shim that loads it?
Are there any good resources out there that would help me better understand what is happening? My next step is going to be to use the fedora u-boot of course and see where that leads me. Although my gut is telling that may not produce the outcome I desire.
I'm very familiar with patching and building so I'm not afraid to dig in and create some patches to bounce back once I have these up and running I'm just hoping to have someone provide some insight as to what I should be focusing on so I can gain some traction.
I've noticed there's a #fedora-meeting-2 IRC channel that meets on Tues at 3pm UTC; I'm planning on dropping by next week.
Well that's all for now I'm exhausted and need some sleep :)
Thanks for reading,
DDR version 1.06 20170424 In SRX 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: 2017-05-18, version: 2.43 ChipType = 0x11, 187 emmc reinit emmc reinit SdmmcInit=2 20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 60041 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=0x8b0ec RunBL31 0x10000 NOTICE: BL31: v1.3(debug):f947c7e NOTICE: BL31: Built : 09:28:45, May 31 2017 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 destiK 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 2018.03-1 (Apr 02 2018 - 19:14:47 -0600) Arch Linux ARM
Model: Rockchip RK3328 EVB DRAM: 4 GiB MMC: rksdmmc@ff500000: 1, rksdmmc@ff520000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment
Failed (-5) In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Rockchip RK3328 EVB Net: Warning: ethernet@ff540000 (eth0) using random MAC address - e6:d0:8e:31:57:c3 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi"
arm mailing list -- arm@lists.fedoraproject.org To unsubscribe send an email to arm-leave@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
Interesting ... I'd like to check that patch out.
I believe the HC2 is really just a XU4 thats been turned into a NAS correct? If so the XU4 is a 32 bit 8 core SOC device (4-2GHz cores and 4-1.2GHz cores) where the C2 is a 64 bit 4 core (1.5ghz) device. I think Samsung put these 8 core devices in the galaxy s6 phones.
I have both devices actually. But my focus has been on the 64 bit devices because I found the fan on the XU4 undesirable and believe the 64 bit arm devices will take over the 32 bit ones eventually. Been the XU4 board is quiet awesome as well.
As for performance, the benchmarks that hardkernel has shown the XU4 out performs the the C2. The specs say that as well. Faster processors, more cores, faster vpu, usb 3.0 vs 2.0.
I plan on getting all devices working although I had wanted to start on these devices first.
Which thread talks about that patch?
Regards,
Mark
On 12/9/18 11:41 AM, mark co-dyre wrote:
Interesting ... I'd like to check that patch out.
I believe the HC2 is really just a XU4 thats been turned into a NAS correct? If so the XU4 is a 32 bit 8 core SOC device (4-2GHz cores and 4-1.2GHz cores) where the C2 is a 64 bit 4 core (1.5ghz) device. I think Samsung put these 8 core devices in the galaxy s6 phones.
I have both devices actually. But my focus has been on the 64 bit devices because I found the fan on the XU4 undesirable and believe the 64 bit arm devices will take over the 32 bit ones eventually. Been the XU4 board is quiet awesome as well.
As for performance, the benchmarks that hardkernel has shown the XU4 out performs the the C2. The specs say that as well. Faster processors, more cores, faster vpu, usb 3.0 vs 2.0.
I plan on getting all devices working although I had wanted to start on these devices first.
Which thread talks about that patch?
I think it is subject:
how to make a working f28 sd card for odroid-hc2
Torbjorn Jansson torbjorn.jansson@mbox200.swipnet.se
Has been working on this.
On 2018-12-09 18:07, Robert Moskowitz wrote:
On 12/9/18 11:41 AM, mark co-dyre wrote:
Interesting ... I'd like to check that patch out.
I believe the HC2 is really just a XU4 thats been turned into a NAS correct? If so the XU4 is a 32 bit 8 core SOC device (4-2GHz cores and 4-1.2GHz cores) where the C2 is a 64 bit 4 core (1.5ghz) device. I think Samsung put these 8 core devices in the galaxy s6 phones.
I have both devices actually. But my focus has been on the 64 bit devices because I found the fan on the XU4 undesirable and believe the 64 bit arm devices will take over the 32 bit ones eventually. Been the XU4 board is quiet awesome as well.
As for performance, the benchmarks that hardkernel has shown the XU4 out performs the the C2. The specs say that as well. Faster processors, more cores, faster vpu, usb 3.0 vs 2.0.
I plan on getting all devices working although I had wanted to start on these devices first.
Which thread talks about that patch?
I think it is subject:
how to make a working f28 sd card for odroid-hc2
Torbjorn Jansson torbjorn.jansson@mbox200.swipnet.se
Has been working on this.
i assume you refer to this uboot patch: http://git.denx.de/?p=u-boot.git;a=patch;h=9cd97c5b049a9a282dda0b1782cbb38d8...
all this is doing is to add detection for hc2 and then load the correct dtb file and that's all. without this patch you need to create a symlink or copy to make it load the correct dtb file (the hc1 one since hc1 & 2 is basically the same thing)
an mark, please quote past mails in the thread when you reply so it is clear what you are replying to.
On 12/9/18 3:58 PM, Torbjorn Jansson wrote:
On 2018-12-09 18:07, Robert Moskowitz wrote:
On 12/9/18 11:41 AM, mark co-dyre wrote:
Interesting ... I'd like to check that patch out.
I believe the HC2 is really just a XU4 thats been turned into a NAS correct? If so the XU4 is a 32 bit 8 core SOC device (4-2GHz cores and 4-1.2GHz cores) where the C2 is a 64 bit 4 core (1.5ghz) device. I think Samsung put these 8 core devices in the galaxy s6 phones.
I have both devices actually. But my focus has been on the 64 bit devices because I found the fan on the XU4 undesirable and believe the 64 bit arm devices will take over the 32 bit ones eventually. Been the XU4 board is quiet awesome as well.
As for performance, the benchmarks that hardkernel has shown the XU4 out performs the the C2. The specs say that as well. Faster processors, more cores, faster vpu, usb 3.0 vs 2.0.
I plan on getting all devices working although I had wanted to start on these devices first.
Which thread talks about that patch?
I think it is subject:
how to make a working f28 sd card for odroid-hc2
Torbjorn Jansson torbjorn.jansson@mbox200.swipnet.se
Has been working on this.
i assume you refer to this uboot patch: http://git.denx.de/?p=u-boot.git;a=patch;h=9cd97c5b049a9a282dda0b1782cbb38d8...
all this is doing is to add detection for hc2 and then load the correct dtb file and that's all. without this patch you need to create a symlink or copy to make it load the correct dtb file (the hc1 one since hc1 & 2 is basically the same thing)
an mark, please quote past mails in the thread when you reply so it is clear what you are replying to.
Torbjorn,
That was more me. Mark is coming in 'fresh' asking about C2 support. I pointed him to past conversations, by you, about HC2 support and perhaps they may be common issues.
Sorry for any confusion.
Robert
I am also impatiently waiting for Fedora support on Rock64. I'm willing to test things but I don't have the time to learn the precise magic required to get from the existing U-Boot to booting Fedora. I took a stab at it briefly, but other things have required my time so I've just been waiting on for someone else to make it happen :)
On Sat, Dec 8, 2018 at 2:34 AM mark co-dyre < forwardbackwards@fedoraproject.org> wrote:
Hello all,
I've been looking for a group like this for a while now to hopefully help with learning how to get get a recent version of u-boot working properly so I can get fedora 29 to boot on my rock64 and odroid c2 boards. I'd also like to contribute this back once I get this working properly.
So far I've gotten the odroid c2 to boot fine using the stock hardkernel 3.16 lts kernel and their older version of u-boot. For this I had used a chrooted instance of a Fedora 29 minimum sitting on the Ubuntu distro they provide. From this I built a new initramfs with dracut against a copy of the hosted ubunutu lib/modules.
This all worked fine although I'd like to get it working with a recent u-boot, UEFI and load the grub.efi binary to boot the standard fedora kernel. I had got to the point where I had loaded the grub binary and was able to select my kernel (stock fedora 4.18.x kernel); Although things would hang after. I suspect the main reason for the hang was I borrowed the opensuse grub.efi UEFI app because I could not get the fedora one to run. Other than the binary blob stuff from hardkernel u-boot was stock and it was booting into u-boot just fine.
I've set that board aside for now to use it as a build host and have moved on to my rock64 board. After putting the stock fedora 29 minimal image on a card and attempting to boot it Im seeing:
... regular u-boot stuff blah blah blah (full u-boot log is below) Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi" ... hangs here
I'm using the u-boot binary from another distro (arch linux) configured for a rock64 device; Not the Fedora one. I'm pretty ignorant on how the shim stuff works although I would like to learn all those details to form a better understanding. My current understanding is that this shim is a signed (by UEFI signing service) initial bootloader that handles chaining to a trusted full bootloader (grub in this case). Does grub need to be signed in some way to work with this shim that loads it?
Are there any good resources out there that would help me better understand what is happening? My next step is going to be to use the fedora u-boot of course and see where that leads me. Although my gut is telling that may not produce the outcome I desire.
I'm very familiar with patching and building so I'm not afraid to dig in and create some patches to bounce back once I have these up and running I'm just hoping to have someone provide some insight as to what I should be focusing on so I can gain some traction.
I've noticed there's a #fedora-meeting-2 IRC channel that meets on Tues at 3pm UTC; I'm planning on dropping by next week.
Well that's all for now I'm exhausted and need some sleep :)
Thanks for reading,
DDR version 1.06 20170424 In SRX 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: 2017-05-18, version: 2.43 ChipType = 0x11, 187 emmc reinit emmc reinit SdmmcInit=2 20 SdmmcInit=0 0 BootCapSize=0 UserCapSize=30436MB FwPartOffset=2000 , 0 StorageInit ok = 60041 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=0x8b0ec RunBL31 0x10000 NOTICE: BL31: v1.3(debug):f947c7e NOTICE: BL31: Built : 09:28:45, May 31 2017 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 destiK 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 2018.03-1 (Apr 02 2018 - 19:14:47 -0600) Arch Linux ARM
Model: Rockchip RK3328 EVB DRAM: 4 GiB MMC: rksdmmc@ff500000: 1, rksdmmc@ff520000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment
Failed (-5) In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Rockchip RK3328 EVB Net: Warning: ethernet@ff540000 (eth0) using random MAC address - e6:d0:8e:31:57:c3 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... ** Unable to read file / ** Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 858216 bytes read in 43 ms (19 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "Fedora" for file "\EFI\fedora\shimaa64.efi"
arm mailing list -- arm@lists.fedoraproject.org To unsubscribe send an email to arm-leave@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
I am also impatiently waiting for Fedora support on Rock64. I'm willing to test things but I don't have the time to learn the precise magic required to get from the existing U-Boot to booting Fedora. I took a stab at it briefly, but other things have required my time so I've just been waiting on for someone else to make it happen :)
On Sat, Dec 8, 2018 at 2:34 AM mark co-dyre < forwardbackwards(a)fedoraproject.org> wrote:
As of right now I'm stuck here... if there's anything obvious that I should be focusing on please point it out and possibly recommend a tool to avenue I should start down in searching for a solution.
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 = 35976 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=0x92bd4 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 initiK 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 (Dec 04 2018 - 16:09:21 +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 - 72:af:2b:fe:8b:98 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/fedora/grubaa64.efi Found DTB mmc 1:2 /dtb/rockchip/rk3328-evb.dtb 32498 bytes read in 3 ms (10.3 MiB/s) Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc@ff520000.blk not ready Found 4 disks 1882872 bytes read in 88 ms (20.4 MiB/s) ## Starting EFI application at 02080000 ... Speed: 100, full duplex "Synchronous Abort" handler, esr 0x96000210 elr: fffffffffcf419b0 lr : fffffffffcf419a8 (reloc) elr: 00000000fbc799b0 lr : 00000000fbc799a8 x0 : 0000000000000000 x1 : 00000000fbb6ae56 x2 : 00000000ffffffff x3 : 00000000fbd718cc x4 : 00000000fbb6f080 x5 : 0000000000000020 x6 : 00000000fcf26538 x7 : 00000000fbb6be20 x8 : 0000000000000001 x9 : 0000000000000008 x10: 00000000fcf56070 x11: 00000000fcf56070 x12: 000000000000a3c0 x13: 0000000000000001 x14: 00000000fcf2686c x15: 00000000ffffffff x16: 0000000000001550 x17: 0000000000000000 x18: 00000000fcf2fdf8 x19: 0000000000000000 x20: 00000000fcf56130 x21: 00000000fef385c8 x22: 0000000000000000 x23: 0000000002080000 x24: 0000000000000003 x25: 0000000000000000 x26: 0000000000000000 x27: 0000000000000000 x28: 00000000fcf56010 x29: 00000000fcf26920
Resetting CPU ...
As of right now I'm stuck here... if there's anything obvious that I should be focusing on please point it out and possibly recommend a tool to avenue I should start down in searching for a solution.
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 = 35976 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=0x92bd4 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 initiK 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 (Dec 04 2018 - 16:09:21 +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 - 72:af:2b:fe:8b:98 eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/fedora/grubaa64.efi Found DTB mmc 1:2 /dtb/rockchip/rk3328-evb.dtb 32498 bytes read in 3 ms (10.3 MiB/s) Scanning disk rksdmmc@ff500000.blk... Card did not respond to voltage select! Scanning disk rksdmmc@ff520000.blk... Disk rksdmmc(a)ff520000.blk not ready Found 4 disks 1882872 bytes read in 88 ms (20.4 MiB/s) ## Starting EFI application at 02080000 ... Speed: 100, full duplex "Synchronous Abort" handler, esr 0x96000210 elr: fffffffffcf419b0 lr : fffffffffcf419a8 (reloc) elr: 00000000fbc799b0 lr : 00000000fbc799a8 x0 : 0000000000000000 x1 : 00000000fbb6ae56 x2 : 00000000ffffffff x3 : 00000000fbd718cc x4 : 00000000fbb6f080 x5 : 0000000000000020 x6 : 00000000fcf26538 x7 : 00000000fbb6be20 x8 : 0000000000000001 x9 : 0000000000000008 x10: 00000000fcf56070 x11: 00000000fcf56070 x12: 000000000000a3c0 x13: 0000000000000001 x14: 00000000fcf2686c x15: 00000000ffffffff x16: 0000000000001550 x17: 0000000000000000 x18: 00000000fcf2fdf8 x19: 0000000000000000 x20: 00000000fcf56130 x21: 00000000fef385c8 x22: 0000000000000000 x23: 0000000002080000 x24: 0000000000000003 x25: 0000000000000000 x26: 0000000000000000 x27: 0000000000000000 x28: 00000000fcf56010 x29: 00000000fcf26920
Resetting CPU ...
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,
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 (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 (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 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
Next step I'll just try and boot fc29s kernel... This was with rawhides 4.20.0-0.rc5.git3.1.fc30.aarch64 kernel.
tried 4.18.6... still fails at __efi_rt_asm_wrapper
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.18.16-300.fc29.aarch64 (mockbuild@buildvm-aarch64-02.arm.fedoraproject.org) (gcc version 8.2.1 20180801 8 [ 0.000000] Machine model: Rockchip RK3328 EVB [ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '') [ 0.000000] bootconsole [uart8250] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: EFI v2.70 by [ 0.000000] efi: SMBIOS=0xfbf1f000 [ 0.000000] cma: Reserved 64 MiB at 0x00000000f7000000 [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000feffffff] [ 0.000000] NUMA: NODE_DATA [mem 0xfef77780-0xfef84fff] [ 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] 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 23 pages/cpu @(____ptrval____) s53528 r8192 d32488 u94208 [ 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.18.16-300.fc29.aarch64 root=UUID=de1dc35e-0dc9-430c-a43a-a0cd5089c836 ro logl8 [ 0.000000] Memory: 3974004K/4175872K available (9980K kernel code, 1926K rwdata, 6664K rodata, 5760K init, 913K bss, 136332K reserv) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x40/0x4d0 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 37453 entries in 147 pages [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4. [ 0.000000] Tasks RCU enabled. [ 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.001707] Console: colour dummy device 80x25 [ 0.002225] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.003211] pid_max: default: 32768 minimum: 301 [ 0.003833] Security Framework initialized [ 0.004227] Yama: becoming mindful. [ 0.004578] SELinux: Initializing. [ 0.007898] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) [ 0.010019] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) [ 0.010780] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.011455] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes) [ 0.014163] ASID allocator initialised with 32768 entries [ 0.014809] Hierarchical SRCU implementation. [ 0.019059] Remapping and enabling EFI services. [ 0.020111] smp: Bringing up secondary CPUs ... [ 0.021321] Detected VIPT I-cache on CPU1 [ 0.021390] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.022277] Detected VIPT I-cache on CPU2 [ 0.022340] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.023234] Detected VIPT I-cache on CPU3 [ 0.023296] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.023431] smp: Brought up 1 node, 4 CPUs [ 0.026801] SMP: Total of 4 processors activated. [ 0.027252] CPU features: detected: 32-bit EL0 Support [ 0.039841] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching [ 0.040637] CPU: All CPU(s) started at EL2 [ 0.041050] alternatives: patching kernel code [ 0.044785] devtmpfs: initialized [ 0.055043] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.056017] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.060551] pinctrl core: initialized pinctrl subsystem [ 0.062352] SMBIOS 3.0 present. [ 0.062688] DMI: rockchip evb_rk3328/evb_rk3328, BIOS 2019.01-rc1-00169-ge11ef3d26e-dirty 12/16/2018 [ 0.064445] NET: Registered protocol family 16 [ 0.065474] audit: initializing netlink subsys (disabled) [ 0.066193] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1 [ 0.067663] cpuidle: using governor menu [ 0.068369] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____)) [ 0.069075] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.077773] DMA: preallocated 256 KiB pool for atomic allocations [ 0.078754] Serial: AMBA PL011 UART driver [ 0.108570] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.109658] cryptd: max_cpu_qlen set to 1000 [ 0.111114] ACPI: Interpreter disabled. [ 0.112586] vcc_sys: supplied by dc_12v [ 0.113802] vgaarb: loaded [ 0.114603] SCSI subsystem initialized [ 0.115534] usbcore: registered new interface driver usbfs [ 0.116105] usbcore: registered new interface driver hub [ 0.116727] usbcore: registered new device driver usb [ 0.117412] pps_core: LinuxPPS API ver. 1 registered [ 0.117885] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.118761] PTP clock support registered [ 0.119428] EDAC MC: Ver: 3.0.0 [ 0.120381] Registered efivars operations [ 0.120782] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 0.121611] Mem abort info: [ 0.121880] ESR = 0x86000006 [ 0.122173] Exception class = IABT (current EL), IL = 32 bits [ 0.122757] SET = 0, FnV = 0 [ 0.123051] EA = 0, S1PTW = 0 [ 0.123352] [0000000000000000] user address but active_mm is swapper [ 0.123956] Internal error: Oops: 86000006 [#1] SMP [ 0.124421] Modules linked in: [ 0.124723] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.18.16-300.fc29.aarch64 #1 [ 0.125431] Hardware name: rockchip evb_rk3328/evb_rk3328, BIOS 2019.01-rc1-00169-ge11ef3d26e-dirty 12/16/2018 [ 0.126378] pstate: 40000005 (nZcv daif -PAN -UAO) [ 0.126833] pc : (null) [ 0.127160] lr : __efi_rt_asm_wrapper+0x28/0x44 [ 0.127589] sp : ffff00000804bc00 [ 0.127905] x29: ffff00000804bc00 x28: 0000000000000000 [ 0.128415] x27: 0000000000000000 x26: ffff0000097bf000 [ 0.128925] x25: ffff00000992dad0 x24: 0000000000000001 [ 0.129434] x23: 0000000000000000 x22: ffff00000804bcf0 [ 0.129943] x21: ffff8000f5bd2c00 x20: ffff000008dedaa8 [ 0.130454] x19: ffff0000097c0240 x18: 0000000000000000 [ 0.130960] x17: 0000000000000000 x16: 0000000000000000 [ 0.131470] x15: 0000000000000010 x14: ffffffffffffffff [ 0.131980] x13: ffff00008986afd7 x12: ffff00000986afdf [ 0.132489] x11: ffff0000096a3000 x10: ffff00000804b9e0 [ 0.132998] x9 : 0000000000000000 x8 : 0000000000000000 [ 0.133506] x7 : 0000000000000000 x6 : ffff8000f5039000 [ 0.134015] x5 : 0000000000000000 x4 : ffff8000f5039000 [ 0.134524] x3 : 0000000000000000 x2 : ffff00000804bcf0 [ 0.135033] x1 : ffff8000f5bd2c00 x0 : ffff00000804bce8 [ 0.135545] Process swapper/0 (pid: 1, stack limit = 0x(____ptrval____)) [ 0.136179] Call trace: [ 0.136415] (null) [ 0.136706] virt_efi_get_next_variable+0x78/0xd0 [ 0.137157] efivar_init+0x98/0x300 [ 0.137498] efisubsys_init+0xd4/0x26c [ 0.137859] do_one_initcall+0x3c/0x1ac [ 0.138230] kernel_init_freeable+0x298/0x33c [ 0.138647] kernel_init+0x18/0x114 [ 0.138985] ret_from_fork+0x10/0x18 [ 0.139332] Code: bad PC value [ 0.139638] ---[ end trace 61176baca05f898f ]--- [ 0.140130] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 0.140130] [ 0.140998] SMP: stopping secondary CPUs [ 0.141380] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 0.141380] ]---
Have you seen this issue on github [1]: It looks like they have solved some of the issues that you are running into. [1] https://github.com/ayufan-rock64/linux-build/issues/222