Page 1 of 4

Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 3:34 am
by jdupuis
Hi!

I am wondering, will the Kernel 4.6 work with Ubuntu 12.04.05 LTS? I am currently using long-term stable 4.1.20. Will I note any major change using the new 4.6 Kernel?

Cheers!!

John

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 3:35 pm
by mechanic
Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 9:30 pm
by xeno74
mechanic wrote:Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.
I compile the kernels with the version 4.9.2 (Debian 4.9.2-21) of GCC.

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 10:03 pm
by jdupuis
xeno74 wrote:
mechanic wrote:Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.
I compile the kernels with the version 4.9.2 (Debian 4.9.2-21) of GCC.
Hi mechanic and xeno74!

Since I'm not the Command-Line experienced guy. How do I get the version string of GCC from my install 12.04 LTS so I can judge whether or not to use 4.6?
<or>
Just do it! If it works, great! If not, go back to 4.1. Just load Kernel from CF Card and copy nothing to Ubuntu Directories, right? ;)

Thanks,

John

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 10:12 pm
by xeno74
jdupuis wrote:
xeno74 wrote:
mechanic wrote:Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.
I compile the kernels with the version 4.9.2 (Debian 4.9.2-21) of GCC.
Hi mechanic and xeno74!

Since I'm not the Command-Line experienced guy. How do I get the version string of GCC from my install 12.04 LTS so I can judge whether or not to use 4.6?
<or>
Just do it! If it works, great! If not, go back to 4.1. Just load Kernel from CF Card and copy nothing to Ubuntu Directories, right? ;)

Thanks,

John
You can get the version string with gcc --version. It's not necessary to copy the kernel modules directory to /lib/modules.

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Thu Apr 07, 2016 11:39 pm
by jdupuis
Understood!

Thank you much.

Cheers!!

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Sat Apr 09, 2016 2:08 am
by mechanic
xeno74 wrote:
mechanic wrote:Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.
I compile the kernels with the version 4.9.2 (Debian 4.9.2-21) of GCC.
When I do apt-get install gcc, with Lubuntu it wants to install gcc-5.

So was Lubuntu 16.04 built with gcc 4.x or 5.x ?

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Sat Apr 09, 2016 2:56 am
by jdupuis
mechanic wrote:
xeno74 wrote:
mechanic wrote:Some of this will depend on which version of gcc was used to build the kernel as some system calls have different names especially for C++ stuff, unless gcc was built from source using the older names for the calls that would match you distribution. More FUN.
I compile the kernels with the version 4.9.2 (Debian 4.9.2-21) of GCC.
When I do apt-get install gcc, with Lubuntu it wants to install gcc-5.

So was Lubuntu 16.04 built with gcc 4.x or 5.x ?
Hi mechanic and xeno74,

Well, I guess this is as good of a time as any to ask:
Is it difficult to install 16.04?
I have the empty 1 TB SATA in my X1000 I took out of my Sam460ex. I think it's wanting (begging) for Ubuntu 16.04. I presume by some of the reads here that you have to have an installed working Linux to install 16.04 via Terminal. Is that right?
Thanks!

Cheers!!

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Sat Apr 09, 2016 7:52 am
by xeno74
jdupuis wrote: Is it difficult to install 16.04?
No, it isn't. :-)
jdupuis wrote: I have the empty 1 TB SATA in my X1000 I took out of my Sam460ex.
Fantastic! You could copy Julian's NI image to the whole empty 1TB SATA HD if you like. ;-)
jdupuis wrote: I presume by some of the reads here that you have to have an installed working Linux to install 16.04 via Terminal. Is that right?
Yes, that's right. You could copy Julian's NI image to the whole empty 1TB SATA HD from your Ubuntu 12.04.5 LTS.

NI = Northern Islands Graphics cards (HD5000 and HD6000)

OK, here are the installation instructions:
  1. Download Julian's NI image with Ubuntu 12.04.5 from the following link: Ubuntu-Mate_16.04-X1000-NI-2.img.7z
  2. Decompress the downloaded image with 7-Zip
  3. Copy it with dd to the whole empty 1TB SATA HD on Ubuntu 12.04.5.

    Code: Select all

    dd if=Ubuntu-Mate_16.04-X1000-NI-2.img of=disk drive ID
    In my case /dev/sdb:

    Code: Select all

    dd if=Ubuntu-Mate_16.04-X1000-NI-2.img of=/dev/sdb
  4. The ROOT partition is very small. You can delete the Sam partition and increase the root partition with GParted if you like.
  5. Reboot your AmigaONE X1000 and press F to enter the CFE prompt.
  6. Next enter the following at the CFE> prompt (pressing enter after each line):

    Code: Select all

    setenv bootargs "root=the_ROOT_partition_on_your_1TB_SATA_HD quiet ro splash"
    In my case:

    Code: Select all

    setenv bootargs "root=/dev/sdb2 quiet ro splash"
    I use the stable longterm kernel 4.1.21 on my CF card to boot Ubuntu 16.04.

    Code: Select all

    boot -elf -noints -fatfs cf0:vmlinux-4.1
  7. The login details are as follows:

    Username of amigaone has the password amigaone
  8. You can create a boot menu entry if you like. Reboot your AmigaONE X1000 and press F to enter the CFE prompt.
  9. Next enter the following at the CFE> prompt (pressing enter after each line):

    Code: Select all

    CFE> setenv -p MENU_3_LABEL "ubuntu MATE 16.04 with kernel 4.1"

    Code: Select all

    CFE> setenv -p MENU_3_COMMAND 'set pmu -astate=A4 ; setenv bootargs "root=/dev/sdb2 quiet ro splash" ; boot -elf -noints -fatfs cf0:vmlinux-4.1'
  10. To activate the new Boot Menu type menu and use the arrow keys to select and highlight 3: ubuntu MATE 16.04 with kernel 4.1 before the timer bar runs down.

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Posted: Sat Apr 09, 2016 12:31 pm
by jdupuis
Hi xeno74,

sdb is my Unallocated SATA. Perfect! On my off-days Tomorrow and Monday, I'll take it for spin! Let you know how it works out. :)
Haven't had the courage to modify my CFE Menu yet. Still have the original unmodified SATA with AmigaKit's AOS4.1FE install used for initial setup unplugged and always on stand-by. That's my security blanket in case I have to pull myself out of a jam. It works! ;)

Cheers!!

John