kernel upgrade

AmigaOne X5000 platform specific issues related to Linux only.

kernel upgrade

Postby kilaueabart » Tue Feb 13, 2018 4:47 am

I keep getting warnings that my Firefox needs upgrading, but apt-get tells me I have the latest. Obviously (?) I need a newer kernel than the one I got with my installation.

When I was using an X1000, I tested new kernel versions fairly often; I knew how. But I'm not sure how to do it with the X5000. There is a post here last April that tells how to anyone who can understand it. One reformats something or other with GParted, and to prove it's available for putting a kernel in, you enter "ext4ls mmc 0:1" as a U-Boot command. OK, I did all that. U-Boot lists out:
4096 .
4096 ..
16384 lost+found
136347 cyrus-4.13.11-jm.config
29244 cyrus_5020.dtb
460 installer.scr
6042625 System.map
388 Ubuntu-Mate_Installer_Uboot_Script.txt
11206933 uImage-cyrus
30457534 uRamdisk
628 X5000_U-Boot_Commands.txt

But I already have a folder labeled "boot" on my desktop that has all of those files except ., .., and lost+found, and there is a disk icon labeled UBUNTU that has everything that "boot" has except the 628 ..._Commands.txt. I still don't understand what any of this has to do with upgrading a kernel.
Last edited by kilaueabart on Fri Feb 23, 2018 5:12 am, edited 1 time in total.
User avatar
kilaueabart
 
Posts: 529
Joined: Mon Mar 05, 2012 3:36 am

Re: kernel upgrade

Postby xeno74 » Tue Feb 13, 2018 7:37 am

Do you boot your kernel from the microSD card or from a partition of your hard disk?

-- Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3997
Joined: Fri Mar 23, 2012 8:58 am

Re: kernel upgrade

Postby kilaueabart » Tue Feb 13, 2018 9:19 am

xeno74 wrote:Do you boot your kernel from the microSD card or from a partition of your hard disk?

-- Christian

I don't know how to tell for sure, unless maybe by looking at whatever "ubuntu" is in UBoot. I just enter "run ubuntu" in the UBoot command line.

[edit]Well, looking at the "ubuntu" file in UBoot was one way to find out that it gets booted from usb 0:1. Is that the microSD? Anyway, it can't be the hard disk, because I only have the one amiga formatted one, and I've read that you can't put a kernel on an Amiga disk. (I do run Ubuntu from /dev/sda5 on that disk, but I guess I can't use any of the 766.33 unallocated space for a kernel?) I originally wanted to back up the micro SD card, but I can't figure out a safe way to remove it from the mother board.

UBUNTU, that looks just about like "SD" is /dev/sdb1 on a permanently inserted flash drive. I wonder if I could boot the kernel from that?[end edit]

I just noticed that I have another related icon on my desktop. This one is red with "SD" in white letters, and its name if "2.9 GB Volume." Its content seems to be identical to the content of "boot." Is the same thing appearing twice, with different icon and name? /media/bart contains UBUNTU and something with a long numerical name but I'm sure it is the 2.9 GB "SD."

I'm tempted to copy things out of the vmlinux-4.14.15-AmigaOne_X1000_X5000 I unarchived tonight into one of those and see what happens, but I'm afraid what happens might be just that I can no longer run ubuntu.
User avatar
kilaueabart
 
Posts: 529
Joined: Mon Mar 05, 2012 3:36 am

Re: kernel upgrade

Postby xeno74 » Wed Feb 14, 2018 7:35 am

Kilaueabart,

Could you please post the output of cat /proc/cmdline under Linux?

On U-Boot please post a screenshot of the output of printenv ubuntu.

kilaueabart wrote:Well, looking at the "ubuntu" file in UBoot was one way to find out that it gets booted from usb 0:1. Is that the microSD?


No, it isn't the microSD card. It's your USB flash drive.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3997
Joined: Fri Mar 23, 2012 8:58 am

Re: kernel upgrade

Postby kilaueabart » Sat Feb 24, 2018 12:10 am

xeno74 wrote:Kilaueabart,

Could you please post the output of cat /proc/cmdline under Linux?


Delayed by a necessary trip to the mainland, but here it is:

bart@X5000:~$ cat /proc/cmdline
root=/dev/sda5 rootdelay=0

On U-Boot please post a screenshot of the output of printenv ubuntu.


printenv.jpg


I'm afraid I'm not very good at photographing computer screens, but this is something I got from Specter660 at

viewtopic.php?f=58&t=3776&start=130#p42930

Is that what you wanted to see? If you can't read it, I can type it in. (The photo looks upside down, but when I click it, it comes out right.
User avatar
kilaueabart
 
Posts: 529
Joined: Mon Mar 05, 2012 3:36 am

Re: kernel upgrade

Postby xeno74 » Sat Feb 24, 2018 10:43 am

kilaueabart wrote:Delayed by a necessary trip to the mainland, but here it is:

bart@X5000:~$ cat /proc/cmdline
root=/dev/sda5 rootdelay=0



OK, you boot the kernel and the dtb file from an USB flash drive. The root partition is on /dev/sda5.

Do you have plugged in an USB stick?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3997
Joined: Fri Mar 23, 2012 8:58 am

Re: kernel upgrade

Postby kilaueabart » Sun Feb 25, 2018 2:03 am

xeno74 wrote:
OK, you boot the kernel and the dtb file from an USB flash drive. The root partition is on /dev/sda5.

Do you have plugged in an USB stick?

Yes. My Desktop has two USB icons, "119 GB Volume" and "UBUNTU," but I think they are both the same drive, according to GParted, /dev/sdb. GParted shows in addition to these two, /dev/mmcblk0p1 ext4 Mount Point: /media/bart/91dd8491-[etc.] 2.73 GiB 157.74 MiB used. This partition has 512 MiB unallocated space before and after it. I can't find out where it is for sure, but I suspect it is the "2.9 GB Volume" with the Red icon "SD" on my desktop. I put the unallocated spaces on it a while back following instructions I understood were for making the SD card accept a kernel, but there were no instructions for actually adding a kernel. But I believe uImage-cyrus already is a kernel with a funny name, so I am still baffled over what those unallocated spaces are all about.

In any event the content of 2.9 GB Volume and UBUNTU are almost identical, as you might be able to see in the screen dump below. I also have a file called "boot" on my Desktop with again essentially the same content, probably intended as a backup in case I ruined my SD card.

screen.png
User avatar
kilaueabart
 
Posts: 529
Joined: Mon Mar 05, 2012 3:36 am

Re: kernel upgrade

Postby xeno74 » Sun Feb 25, 2018 5:41 pm

kilaueabart wrote:Yes. My Desktop has two USB icons, "119 GB Volume" and "UBUNTU,"


Did you install ubuntu MATE 16.04 LTS PowerPC on this X5000? Please download a new kernel, rename it to uImage-cyrus and replace the old kernel on your USB flash drive (partition UBUNTU). After that restart your X5000 and check if the new kernel is active.

-- Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3997
Joined: Fri Mar 23, 2012 8:58 am

Re: kernel upgrade

Postby kilaueabart » Mon Feb 26, 2018 12:14 am

Thanks, that worked! I did have to fix a name change that somehow failed, but fortunately I was able to do that from the Amiga side!

What I copied over and renamed was not what I recognized by its icon as a kernel, but a file called cyrus-4.15. I assume vmlinux-4.15 wouldn't have worked?

Now to see if I can really upgrade my Firefox.
User avatar
kilaueabart
 
Posts: 529
Joined: Mon Mar 05, 2012 3:36 am

Re: kernel upgrade

Postby xeno74 » Mon Feb 26, 2018 9:18 am

kilaueabart wrote:What I copied over and renamed was not what I recognized by its icon as a kernel, but a file called cyrus-4.15. I assume vmlinux-4.15 wouldn't have worked?


Which kernel package did you download? The correct kernel name is uImage-4.15. You can rename it to uImage-cyrus if you like. vmlinux-4.15 is the X1000 Linux kernel.

-- Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
 
Posts: 3997
Joined: Fri Mar 23, 2012 8:58 am

Next

Return to Platform: AmigaOne X5000 - Linux Only

Who is online

Users browsing this forum: No registered users and 3 guests