Amiga.org

Operating System Specific Discussions => Linux PPC discussion => Topic started by: xeno74 on October 21, 2014, 06:45:45 PM

Title: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on October 21, 2014, 06:45:45 PM
Hi All,

First, the bad news. The patch for pata_of_platform.c doesn't work anymore. The kernel devolopers have rewritten this file completely. io_res.start isn't available in the whole source code. compatible = "electra-ide" isn't available either. It's not possible to patch with the following lines:

Code: [Select]

@@ -42,6 +42,17 @@ static int pata_of_platform_probe(struct
                ctl_res = io_res;
                ctl_res.start = ctl_res.start+0x3f6;
                io_res.end = ctl_res.start-1;
+
+#ifdef CONFIG_PPC_PASEMI_SB600
+       } else if (of_device_is_compatible(dn, "electra-cf")) {
+               /* Task regs are at 0x800, with alt status @ 0x80e in the primary window
+                * on electra-cf. Adjust ctl_res and io_res accordingly.
+                */
+               ctl_res = io_res;
+               io_res.start += 0x800;
+               ctl_res.start = ctl_res.start + 0x80e;
+               io_res.end = ctl_res.start-1;
+#endif
        } else {
                ret = of_address_to_resource(dn, 1, &ctl_res);
                if (ret) {

@@ -80,6 +96,9 @@ static int pata_of_platform_probe(struct
 static struct of_device_id pata_of_platform_match[] = {
        { .compatible = "ata-generic", },
        { .compatible = "electra-ide", },
+#ifdef CONFIG_PPC_PASEMI_SB600
+       { .compatible = "electra-cf",},
+#endif
        {},
 };


Therefore the kernel 3.18 doesn't recognize the CF device. Here is the commit: git.kernel.org (https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/drivers/ata/pata_of_platform.c?id=d9428f09763d307a6d2220c4bbb01d8fc5c55b52)

Log msg:

Quote

pata_of_platform: Remove "electra-ide" quirk


But ..................................................... the good news is: I have reverted the changes and now, the kernel can recognize the CF card again. :)

Download: vmlinux-3.18.0-rc1-KVM-PR-FTRACE-AmigaOneX1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc1-KVM-PR-FTRACE-AmigaOneX1000.tar.bz2)

Nemo patch: nemo_3.18-1.patch.zip (http://forum.hyperion-entertainment.biz/download/file.php?id=1403)
Kernel config: nemo_3.18.0-rc1_KVM-PR_FTRACE.config.zip (http://forum.hyperion-entertainment.biz/download/file.php?id=1404)

(http://s28.postimg.org/fk2kr6eh5/Kernel_3_18_RC1_A1_X1000.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1405&mode=view)

Please test the RC1.

By the way, I have released a SuperTuxKart 0.8.1 package with all addons.

Download: supertuxkart-0.8.1-3-altivec-linux-glibc2.13-ppc.tar.gz (http://www.xenosoft.de/supertuxkart-0.8.1-3-altivec-linux-glibc2.13-ppc.tar.gz)

(http://s28.postimg.org/wckk515u1/supertuxkart_ng_amiga_cover.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1341&mode=view)

Cheers,

Christian
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on October 27, 2014, 10:31:40 AM
I have compiled the RC2 for testing: vmlinux-3.18.0-rc2-KVM-PR-FTRACE-AmigaOneX1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc2-KVM-PR-FTRACE-AmigaOneX1000.tar.bz2). :)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on November 03, 2014, 09:22:03 PM
I have released the RC3 of kernel 3.18.

Download: vmlinux-3.18.0-rc3-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc3-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2)

(http://s27.postimg.org/qygmv6jyn/Kernel_3_18_rc3_Debian_Sid_AMIGA_one_X1000.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1415&mode=view)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on November 10, 2014, 04:57:21 AM
Hi All,

I have released the RC4 of kernel 3.18.

New:

- Support for mobile networks with USB UMTS 3G sticks

It also includes:

- KVM_BOOK3S_64_PR

Support running guest kernels in virtual machines on processors
without using hypervisor mode in the host, by running the
guest in user mode (problem state) and emulating all
privileged instructions and registers.

This is not as fast as using hypervisor mode, but works on
machines where hypervisor mode is not available or not usable,
and can emulate processors that are different from the host
processor, including emulating 32-bit processors on a 64-bit
host.

- Mac-on-Linux support
- Network support for AROS hosted
- Support for 4 serial ports
- Bluetooth USB dongle support
- Kernel tracing with ftrace
- Linux kernel icon for OS4.1 by Tommysammy

Download: vmlinux-3.18.0-rc4-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc4-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2)

Please test the RC4.

Thanks in advance,

Christian
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on November 17, 2014, 07:13:37 AM
And here is the RC5: vmlinux-3.18.0-rc5-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc5-KVM-PR-OVERLAYFS-AmigaOneX1000.tar.bz2)

New: http://lkml.iu.edu/hypermail/linux/kernel/1411.2/00265.html

(http://s30.postimg.org/ne84yelkd/Kernel_3_18_rc5_Ubuntu_10_04_4_UMTS_new_Netsurf.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1433&mode=view)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on November 24, 2014, 10:05:04 AM
I have released the RC6 recently.

New: http://lkml.iu.edu/hypermail/linux/kernel/1411.2/05503.html

Download: vmlinux-3.18.0-rc6-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc6-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2)

(http://s9.postimg.org/ketgztdhn/kernel_3_18_rc6_AMIGA_one_X1000.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1439&mode=view)

The AMIGA one X1000 is in stock and available! Customers wanting to configure their system please click here (http://amigakit.leamancomputing.com/x1000/?webpage=buy).
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on November 26, 2014, 11:46:23 PM
Zzd10h reported a problem with the PASEMI (Vitesse VSC8221) network chip yesterday. At boot, there was a message "eth0: Could not attach to phy" and a notification "Wire network is unplugged" on the desktop. But the network with the PASEMI network chip worked without any problems. The earlier RCs don't have this issue.
I have figured out, that the new address configuration for the device-tree is responsible for the behavior of the PASEMI network chip. The kernel developers changed the source code for the address configuration last week because it was a historical hack that treated missing ranges properties as the equivalent of an empty one. But our A1-X1000 needs this hack. I have reverted the changes today and now, the PASEMI network chip works without this strange behavior.

Code: [Select]

    diff -rupN linux-3.18/drivers/of/address.c linux-3.18-nemo/drivers/of/address.c
    --- linux-3.18/drivers/of/address.c   2014-11-24 00:25:20.000000000 +0100
    +++ linux-3.18-nemo/drivers/of/address.c   2014-11-17 01:36:20.000000000 +0100
    @@ -450,21 +450,6 @@ static struct of_bus *of_match_bus(struc
        return NULL;
     }
     
    -static int of_empty_ranges_quirk(void)
    -{
    -   if (IS_ENABLED(CONFIG_PPC)) {
    -      /* To save cycles, we cache the result */
    -      static int quirk_state = -1;
    -
    -      if (quirk_state < 0)
    -         quirk_state =
    -            of_machine_is_compatible(&quot;Power Macintosh&quot;) ||
    -            of_machine_is_compatible(&quot;MacRISC&quot;);
    -      return quirk_state;
    -   }
    -   return false;
    -}
    -
     static int of_translate_one(struct device_node *parent, struct of_bus *bus,
                  struct of_bus *pbus, __be32 *addr,
                  int na, int ns, int pna, const char *rprop)
    @@ -490,10 +475,12 @@ static int of_translate_one(struct devic
         * This code is only enabled on powerpc. --gcl
         */
        ranges = of_get_property(parent, rprop, &rlen);
    -   if (ranges == NULL && !of_empty_ranges_quirk()) {
    +#if !defined(CONFIG_PPC)
    +   if (ranges == NULL) {
           pr_err(&quot;OF: no ranges; cannot translate\n&quot;);
           return 1;
        }
    +#endif /* !defined(CONFIG_PPC) */
        if (ranges == NULL || rlen == 0) {
           offset = of_read_number(addr, na);
           memset(addr, 0, pna * 4);


New Nemo patch: nemo_3.18-3.patch.zip (http://forum.hyperion-entertainment.biz/download/file.php?id=1440)

Download RC6-2: vmlinux-3.18.0-rc6-2-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc6-2-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on December 02, 2014, 07:00:36 PM
I have released the RC7 of kernel 3.18 recently. This kernel was cross compiled for the AMIGA one X1000 PowerPC on my Ubuntu Server 14.04.1 x86-64 this afternoon.

Download: vmlinux-3.18.0-rc7-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-rc7-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2)

Cross compiling instructions: http://amigaworld.net (http://amigaworld.net/modules/newbb/viewtopic.php?mode=viewtopic&topic_id=39455&forum=34&start=40&viewmode=flat&order=0)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on December 13, 2014, 04:20:09 PM
Hi All,

I compiled the kernel 3.18 final nativ on my AMIGA one X1000 this morning.

New:





It also includes:


Quote

Support running guest kernels in virtual machines on processors without using hypervisor mode in the host, by running the guest in user mode (problem state) and emulating all privileged instructions and registers.
This is not as fast as using hypervisor mode, but works on machines where hypervisor mode is not available or not usable, and can emulate processors that are different from the host processor, including emulating 32-bit processors on a 64-bit host.




Other changes: http://lkml.iu.edu/hypermail/linux/kernel/1412.0/05308.html

Download: vmlinux-3.18.0-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2 (http://www.xenosoft.de/vmlinux-3.18.0-KVM-PR-OVERLAYFS-AMIGA_one_X1000.tar.bz2)

Thanks to everyone for testing many release candidates.

Enjoy the new kernel.

Cheers,

Christian

(http://s28.postimg.org/c2we5huzt/Kernel_3_18_AMIGA_one_X1000.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1452&mode=view)
Title: Re: A1-X1000: Linux Kernel 3.18
Post by: xeno74 on December 18, 2014, 01:57:13 PM
Ubuntu MATE is available for our AMIGA one X1000.

Ubuntu MATE with kernel 3.18:

(http://s10.postimg.org/u9vwzvs91/ubuntu_MATE_AMIGA_one_X1000.jpg) (http://forum.hyperion-entertainment.biz/download/file.php?id=1460&mode=view)