ubuntu MATE 16.04.1 LTS Live USB

AmigaOne X5000 platform specific issues related to Linux only.
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by daz »

caseycullen wrote:
xeno74 wrote:Please try it with mem=3500M.
Also, does this correspond to the physical memory in the system? Can it be edited to reflect the actual physical memory present?
This is due to the way the P5020 (and possibly the P5040 I don't know) map memory.

They map all the ram in a single block starting a 0x00000000 and anding at <RAM-SIZE> If you have more than 3568 M of Ram you will have RAM with physical addresses of 0xdf000000 - 0xffffffff

These addresses are reserved for registers and inbound windows in the PCI-e controllers, and therefore cannot be DMA'd to. The kernel will incorrectly allocate ring-buffers in this range if you don't limit the amount of RAM reported. There is a possible fix in the pipeline, but it looks like it either doesn't work or hasn't made it to mainline yet.

We are aware of the problem, and so are NXP, it is being worked on.

For now stick with MEM=3500M

Regards
Darren
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by caseycullen »

daz wrote: This is due to the way the P5020 (and possibly the P5040 I don't know) map memory.

They map all the ram in a single block starting a 0x00000000 and anding at <RAM-SIZE> If you have more than 3568 M of Ram you will have RAM with physical addresses of 0xdf000000 - 0xffffffff
Interesting, thanks for sharing the information. Hopefully a work-around can be determined.
User avatar
daveyw
Posts: 252
Joined: Mon Sep 12, 2011 7:44 pm

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by daveyw »

xeno74 wrote:
JohnFante wrote: I get an error after line 2 "fatload usb 0:1 1000000 uImage-cyrus" saying "** Bad device usb 0 **"
Hi JohnFante,

First, please run the command usb reset. After that try it again.

With usb info and usb tree you can see all USB devices including your flash drive. The best command is usb storage. It shows only USB storage devices. With ls usb 0:1 you can see the files in the partition. On usb 0:1 you should see the kernels, dtb files, and initrds. On usb 0:2 you should see the root file system of Linux.

Another questions: Which storage capacity does your USB flash drive have? Did you test it on all USB ports?

Cheers,
Christian
I am having the same problem. Neither usb reset or usb init make a difference. Sometimes I get a "timeout" error instead.
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by caseycullen »

daveyw wrote:I am having the same problem. Neither usb reset or usb init make a difference. Sometimes I get a "timeout" error instead.
Have you tried using a different USB drive? I have one SanDisk drive that I can successfully boot from, and SanDisk Cruiser drive that I cannot, even though it works fine for everything else.
User avatar
daveyw
Posts: 252
Joined: Mon Sep 12, 2011 7:44 pm

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by daveyw »

caseycullen wrote:Have you tried using a different USB drive? I have one SanDisk drive that I can successfully boot from, and SanDisk Cruiser drive that I cannot, even though it works fine for everything else.
Yep, tried three different drives.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by xeno74 »

daveyw wrote:
caseycullen wrote:Have you tried using a different USB drive? I have one SanDisk drive that I can successfully boot from, and SanDisk Cruiser drive that I cannot, even though it works fine for everything else.
Yep, tried three different drives.
Have you seen any error messages? Does the Linux kernel load from the USB flash drive?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
daveyw
Posts: 252
Joined: Mon Sep 12, 2011 7:44 pm

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by daveyw »

xeno74 wrote:Have you seen any error messages? Does the Linux kernel load from the USB flash drive?
Got it working! Bought an 8GB Sandisk Cruzer Switch drive, and it worked great.

Currently writing this in Firebox on ubuntu.

Very trepidatious about installing it alongside OS4.1...
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by xeno74 »

daveyw wrote:
xeno74 wrote:Have you seen any error messages? Does the Linux kernel load from the USB flash drive?
Got it working! Bought an 8GB Sandisk Cruzer Switch drive, and it worked great.

Currently writing this in Firebox on ubuntu.

Very trepidatious about installing it alongside OS4.1...
Well done! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by xeno74 »

Hi All,

I successfully installed ubuntu MATE 16.04.2 LTS from the MATE PowerPC Remix 2017 on my AmigaOne X5000 today.

OK, here are the installation instructions:
  1. Download the image from the following link: Amigaone_Ubuntu_16.04-Base-1.img.7z
  2. Decompress the downloaded image with 7-Zip
  3. Copy it with dd to a USB flash drive.

    Code: Select all

    sudo dd if=Amigaone_Ubuntu_16.04-Base-1.img of=disk drive ID
    In my case /dev/sdb:

    Code: Select all

    sudo dd if=Amigaone_Ubuntu_16.04-Base-1.img of=/dev/sdb
  4. After that unplug the USB flash drive and reinsert it again.
  5. Copy the system partition from the USB flash drive with dd to another partition on your X5000.

    Code: Select all

    sudo dd if=system partition on the USB flash drive of=partition on your X5000
    In my case /dev/sdb2 to /dev/sda2:

    Code: Select all

    sudo dd if=/dev/sdb2 of=/dev/sda2
  6. The ROOT partition is very small (1.8GB). You have to increase it with GParted.
  7. Then reboot your X5000
    Ubuntu Xenial Xerus (development branch) Amigaone tty1

    Amigaone login:
  8. The login details are as follows:

    Username of amigaone has the password amigaone
  9. I installed the ubuntu MATE desktop with the following commands:

    Code: Select all

    sudo apt-get update

    Code: Select all

    sudo apt-get install ubuntu-mate-desktop
    - [this will take some time to complete depending on the speed of your internet connection]

    Code: Select all

    sudo apt-get upgrade
  10. After that reboot your X5000 with:

    Code: Select all

    sudo reboot
  11. The ubuntu MATE login screen appears. Please login.

    Username of amigaone has the password amigaone
Here you are. :-)

Image

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

Running Linux on AmigaONEs can require some tinkering.
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: ubuntu MATE 16.04.1 LTS Live USB

Post by Spectre660 »

@Xeno74

Christian ,

There is also my debian based installer ramdisk for installing Ubuntu Mate 16.04 .
https://drive.google.com/open?id=0BxoZd ... 3RvbWpfeWc

usb init
setenv bootargs root=/dev/ramdisk mem=3500M radeon.pcie_gen2=1
fatload usb 0:1 1000000 uImage-cyrus
fatload usb 0:1 1c00000 cyrus_5020.dtb
fatload usb 0:1 2000000 uRamdisk_Ubuntu-Mate_16.04_net
bootm 1000000 2000000 1c00000

Regards
Julian
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
Post Reply