Ubuntu 12.04.05 LTS and Kernel 4.6

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
jdupuis
Posts: 223
Joined: Sat May 09, 2015 7:19 am
Location: Baton Rouge, Louisiana USA

Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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
C= A500 2 megs RAM with A590 w/40 MB SCSI HD and Workbench 1.3
C= A3000 25 MHz with Workbench 3.1
AmigaOne X1000 4 GB RAM, XFX Radeon HD 6670 1GB GDDR5 GPU and AmigaOS 4.1 FE/Ubuntu 12.04.5 LTS/Ubuntu Mate 16.04 LTS
Sam460ex 2GB DDR2 800 MHz RAM, XFX Radeon HD 5450 2GB GDDR3 GPU, 3114 SATA Raid, ENVY24HT sound card and AmigaOS 4.1 FE
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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.
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
xeno74
Posts: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
jdupuis
Posts: 223
Joined: Sat May 09, 2015 7:19 am
Location: Baton Rouge, Louisiana USA

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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
C= A500 2 megs RAM with A590 w/40 MB SCSI HD and Workbench 1.3
C= A3000 25 MHz with Workbench 3.1
AmigaOne X1000 4 GB RAM, XFX Radeon HD 6670 1GB GDDR5 GPU and AmigaOS 4.1 FE/Ubuntu 12.04.5 LTS/Ubuntu Mate 16.04 LTS
Sam460ex 2GB DDR2 800 MHz RAM, XFX Radeon HD 5450 2GB GDDR3 GPU, 3114 SATA Raid, ENVY24HT sound card and AmigaOS 4.1 FE
User avatar
xeno74
Posts: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
jdupuis
Posts: 223
Joined: Sat May 09, 2015 7:19 am
Location: Baton Rouge, Louisiana USA

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post by jdupuis »

Understood!

Thank you much.

Cheers!!
C= A500 2 megs RAM with A590 w/40 MB SCSI HD and Workbench 1.3
C= A3000 25 MHz with Workbench 3.1
AmigaOne X1000 4 GB RAM, XFX Radeon HD 6670 1GB GDDR5 GPU and AmigaOS 4.1 FE/Ubuntu 12.04.5 LTS/Ubuntu Mate 16.04 LTS
Sam460ex 2GB DDR2 800 MHz RAM, XFX Radeon HD 5450 2GB GDDR3 GPU, 3114 SATA Raid, ENVY24HT sound card and AmigaOS 4.1 FE
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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 ?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
jdupuis
Posts: 223
Joined: Sat May 09, 2015 7:19 am
Location: Baton Rouge, Louisiana USA

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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!!
C= A500 2 megs RAM with A590 w/40 MB SCSI HD and Workbench 1.3
C= A3000 25 MHz with Workbench 3.1
AmigaOne X1000 4 GB RAM, XFX Radeon HD 6670 1GB GDDR5 GPU and AmigaOS 4.1 FE/Ubuntu 12.04.5 LTS/Ubuntu Mate 16.04 LTS
Sam460ex 2GB DDR2 800 MHz RAM, XFX Radeon HD 5450 2GB GDDR3 GPU, 3114 SATA Raid, ENVY24HT sound card and AmigaOS 4.1 FE
User avatar
xeno74
Posts: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
jdupuis
Posts: 223
Joined: Sat May 09, 2015 7:19 am
Location: Baton Rouge, Louisiana USA

Re: Ubuntu 12.04.05 LTS and Kernel 4.6

Post 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
C= A500 2 megs RAM with A590 w/40 MB SCSI HD and Workbench 1.3
C= A3000 25 MHz with Workbench 3.1
AmigaOne X1000 4 GB RAM, XFX Radeon HD 6670 1GB GDDR5 GPU and AmigaOS 4.1 FE/Ubuntu 12.04.5 LTS/Ubuntu Mate 16.04 LTS
Sam460ex 2GB DDR2 800 MHz RAM, XFX Radeon HD 5450 2GB GDDR3 GPU, 3114 SATA Raid, ENVY24HT sound card and AmigaOS 4.1 FE
Post Reply