Page 10 of 18

Re: Kernel 4.7

Posted: Sun Jun 26, 2016 10:35 pm
by xeno74
Hi,

I have great news from Darren. :-)
Darren wrote: Hello All,

commit d6a9996e84ac4beb7713e9485f4563e100a9b03e
powerpc/mm: vmalloc abstraction in preparation for radix

This commit introduced variables for some linux kernel addresses that had before been constants, unfortunately this stopped PaSemi PA6T systems(*) from booting as they call ioremap to map SoC registers before the mmu is initialised. The attached patch adds a hard-coded init of pci_io_base to the pas_init_early() function which which allows the kernel to boot normally.

The value will be harmlessly set again once pci starts up.

(*) At the moment this has only been tested on an AmigaOneX1000, but I expect PaSemi reference systems to have been affected in the same way.

Kind regards
Darren
pa6t-bootfix.patch:

Code: Select all

diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index d71b2c7..6b8d2ab 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -61,6 +61,7 @@ static struct mce_regs mce_regs[MAX_MCE_REGS];
 static int num_mce_regs;
 static int nmi_virq = NO_IRQ;
 
+extern unsigned long pci_io_base;
 
 static void pas_restart(char *cmd)
 {
@@ -341,6 +342,10 @@ out:
 
 static void __init pas_init_early(void)
 {
+	/* Initialise the IO pointer so we don't crash on boot */
+
+	pci_io_base = (H_KERN_VIRT_START + (H_KERN_VIRT_SIZE >> 1));
+
 	iommu_init_early_pasemi();
 }

Re: Kernel 4.7

Posted: Mon Jun 27, 2016 11:36 am
by xeno74
Hi Kilaueabart & Mechanic,

I cross compiled the RC5 with Darren's bootfix on my x86_64 Ubuntu server 14.04 today.

Download: vmlinux-4.7-rc5-AmigaONE_X1000.tar.gz

Could you please test the RC5? I don't know if it boots because I have only my x86 Server for compiling here. -PLEASE-

Thanks in advance,

Christian

Re: Kernel 4.7

Posted: Mon Jun 27, 2016 12:33 pm
by daz
xeno74 wrote:Hi Kilaueabart & Mechanic,

I cross compiled the RC5 with Darren's bootfix on my x86_64 Ubuntu server 14.04 today.

Download: vmlinux-4.7-rc5-AmigaONE_X1000.tar.gz

Could you please test the RC5? I don't know if it boots because I have only my x86 Server for compiling here. -PLEASE-

Thanks in advance,

Christian
It boots fine, I am writing this from my MintPPC install that I have booted with your kernel.

I'll carry on trying to narrow down which part of the init code is at fault.

Regards
Darren

Re: Kernel 4.7

Posted: Mon Jun 27, 2016 6:20 pm
by xeno74
daz wrote: It boots fine, I am writing this from my MintPPC install that I have booted with your kernel.

I'll carry on trying to narrow down which part of the init code is at fault.

Regards
Darren
Darren,

Thanks a million for testing! :-)

Cheers,

Christian

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 3:14 am
by kilaueabart
xeno74 wrote:Hi Kilaueabart & Mechanic,
...
Could you please test the RC5? I don't know if it boots because I have only my x86 Server for compiling here. -PLEASE-
It failed on my X1000 twice. First I downloaded while booted into MATE with the previous 4.7 and de-archived directly into CF CARD, replacing that 4.7 RC4, and rebooted.
"Failed ... not ELF ..."

I just let OS4 come up and recopied the archive into RAM:, dearchived it there, and copied vmlinux-4.7 to the CF CARD, but trying to boot MATE with it brought the same "not ELF" error message.

So right now, I'm back to 4.1.27.

Here's what I have on the CF CARD:

4.1.25_A-EON_AmigaONE_X1000_Nemo 1 item
4.6.3_A-EON_AmigaONE_X1000_Nemo 12 items
vmlinux-4.7-rc3-AmigaONE_X1000 5 items
vmlinux-4.7-rc5-AmigaONE_X1000 4 items
initrd.img-4.1.25_A-EON_AmigaONE_X1000_Nemo 3.1 MB
rc3.7 30.7 MB executable
vmlinux-4.1 24.8 MB executable
vmlinux-4.6 30.5 MB executable
vmlinux-4.7 30.7 MB executable
vmlinux-4.7r 30/7 MB executable

No hint that there is anything wrong with 4.7 here.

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 9:47 am
by xeno74
kilaueabart wrote:
xeno74 wrote:Hi Kilaueabart & Mechanic,
...
Could you please test the RC5? I don't know if it boots because I have only my x86 Server for compiling here. -PLEASE-
It failed on my X1000 twice. First I downloaded while booted into MATE with the previous 4.7 and de-archived directly into CF CARD, replacing that 4.7 RC4, and rebooted.
"Failed ... not ELF ..."

I just let OS4 come up and recopied the archive into RAM:, dearchived it there, and copied vmlinux-4.7 to the CF CARD, but trying to boot MATE with it brought the same "not ELF" error message.

So right now, I'm back to 4.1.27.

Here's what I have on the CF CARD:

4.1.25_A-EON_AmigaONE_X1000_Nemo 1 item
4.6.3_A-EON_AmigaONE_X1000_Nemo 12 items
vmlinux-4.7-rc3-AmigaONE_X1000 5 items
vmlinux-4.7-rc5-AmigaONE_X1000 4 items
initrd.img-4.1.25_A-EON_AmigaONE_X1000_Nemo 3.1 MB
rc3.7 30.7 MB executable
vmlinux-4.1 24.8 MB executable
vmlinux-4.6 30.5 MB executable
vmlinux-4.7 30.7 MB executable
vmlinux-4.7r 30/7 MB executable

No hint that there is anything wrong with 4.7 here.
Thank you for testing. Maybe you need to reformat the CF card.

@All

PLEASE test the RC5. Darren was able to boot it. Kilaueabart has bad luck with the RC5. PLEASE PLEASE test it.
Mechanic, could you please test it too?

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 12:36 pm
by xeno74
Hi all,

I released a new Nemo patch for the RC5 today.

New:

I replaced

Code: Select all

__ioremap_at(range.cpu_addr, (void *)ISA_IO_BASE,
                               range.size, _PAGE_NO_CACHE|_PAGE_GUARDED);
with

Code: Select all

__ioremap_at(range.cpu_addr, (void *)ISA_IO_BASE,
                               range.size, pgprot_val(pgprot_noncached(__pgprot(0))));
Additionally I added Darren's bootfix to the patch.

Download: nemo_4.7-3.patch

With this patch, it is possible to compile the RC5 for the Nemo board. You don't need to remove the PowerPC updates from the source code.

PLEASE test the RC5.

Thanks in advance,

Christian

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 7:33 pm
by mechanic
Kernel 4.7rc5 boots Deb8.

I don't use Deb8 due to the many software glitches in it, and even if I rebuild any of the later 4 series kernels with the supplied gcc 4.9 of Deb the situation is no better, just different.

Though I have tried multiple times to install one of the Ubuntu's' and opensuse they have all failed.

Deb7 works, Mintppc works. It is very probable that a good portion of my problem is the slow (1.5Mbit) speed of my net connection. Downloading DVDs of even 2GBytes almost always fail. So until some distro comes up with a minimal install CD I'm kind of stuck with the earlier distros that do everything I need and more. (Even Deb7 is too large for my needs.)

Since I'm also not able to rebuild any of the later kernels satisfactorily with gcc 4.6/7 they are of little use to me. I certainly cannot assist in any problems they may have.

Well..........all of that is just me.

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 8:49 pm
by xeno74
Hi Mechanic,

Thanks a million for testing the RC5! :-)

We try to build the new kernels as well as we can. If you have any hints because of optimizations, please don't hesitate to write us the correct kernel config options to get a faster kernel.

Cheers,

Christian

Re: Kernel 4.7

Posted: Tue Jun 28, 2016 10:14 pm
by xeno74
Hi all,

Stanglnator tested the RC5 with his Radeon R7 250X. Unfortunately it doesn't work with his Xorg system.
Maybe a GCC issue?

Link: A1K.org

Could you please test the RC5 with a Radeon HD 7xxx or higher?

Thanks,

Christian