To boot ubuntu MATE image from the USB flash drive, insert the USB flash drive into the X5000. Next enter the following at the U-Boot prompt (pressing enter after each line):
setenv bootargs root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper rootdelay=10 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
bootm 1000000 2000000 1c00000
If you have successfully booted the ubuntu MATE Live USB flash drive, please test the desktop and the programs. If you like ubuntu MATE, then you can install it with the install script Install Ubuntu MATE with the alternative script. (Icon on the desktop)
Making the "Start Linux" button launch Linux:
-----------------------------------------------------------
There are better instructions on how to do the Ubuntu Mate 16.04 install, but here is a quick overview (from memory) ...
1) Boot Ubuntu from the flash disk and run the installer located on the desktop. Select the first option to run Gparted and create a small fat32 partition for the boot files (uImage-cyrus, cyrus_5020.dtb, and uRamdisk) and a second larger partition for the system files (ext4 format or whatever).
2) Run the installer a second time and this time select the second option. Follow the prompts and the system will be copied to the partition you tell it to (sda2 on my system). I think you may need to copy the boot files manually to the fat32 partition you created (sda1 on my system) -- I forget if this is done automatically.
3) Restart without the X5000 without the flash disk and when the boing ball animation starts hit the 'esc' key and then the 'm' key to get to a command prompt.
4) Type the following:
editenv linuxboot (there might be something already saved -- just overwrite that)
setenv bootargs root=/dev/sda2 mem3500M nosplash radeon.pcie_gen2=1;fatload sata 0:1 1000000 uImage-cyrus;fatload sata 0:1 2000000 cyrus_5020.dtb;bootm 1000000 - 2000000
saveenv
That's it! The button in the early start menu label Linux should now launch Ubuntu from the sda disk. Obviously, you may need to select a different disk depending on your configuration, so modify things as necessary.
To boot ubuntu MATE image from the USB flash drive, insert the USB flash drive into the X5000. Next enter the following at the U-Boot prompt (pressing enter after each line):
setenv bootargs root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper rootdelay=10 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
bootm 1000000 2000000 1c00000
If you have successfully booted the ubuntu MATE Live USB flash drive, please test the desktop and the programs. If you like ubuntu MATE, then you can install it with the install script Install Ubuntu MATE with the alternative script. (Icon on the desktop)
I get an error after line 2 "fatload usb 0:1 1000000 uImage-cyrus" saying "** Bad device usb 0 **"
Do I have to use a speciel USB port? Or is it a case of the image not beeing written proberly? Or a combination?
JohnFante wrote:
I get an error after line 2 "fatload usb 0:1 1000000 uImage-cyrus" saying "** Bad device usb 0 **"
Do I have to use a speciel USB port? Or is it a case of the image not beeing written proberly? Or a combination?
And thank you for bringing Ubuntu to the X5000
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?
First attempt: upon entering "fatload usb 0:1 1000000 uImage-cyrus" received error message: "** Bad device usb 0"
Attempted to use "usb start" and "usb reset", 0 storage devices found. Tried another USB flash drive, had to enter "usb reset" for it to be detected, but it ended up working and I was able to load Ubuntu MATE. You may want to document enter "usb reset" as the first command since it may help avoid issues and it wouldn't hurt.
Interesting, the flash drive that cannot be detected is a PNY 128 GB flash drive, the drive that was detected is also a PNY, but is older and I think 32 GB.
Loaded Ubuntu MATE to desktop, everything looks good. Tried to run "Install Ubuntu MATE with the alternative script" and entered 1 for "Prepare Hard Drive". Received error:
"libparted : 3.2
/dev/mmcblk0: unrecognized disk label
/dev/sda: unrecognized disk label"
Loaded GParted and partitioned out the drive myself. Made a 128 MB fat32 partition for the boot files in /dev/sda1, made /dev/sda2 as ext4 for the primary Linux partition, and the last partition for SWAP.
Then I ran the alternative script again, this time pressed 2 for "Copy the Distribution" and entered "/dev/sda2" as the target, it appears all the files were transferred over. I then manually copied the boot files to the fat32 partition (sda1).
I restarted and entered "editenv linuxboot", rewrote to:
"setenv bootargs root=/dev/sda2 mem3500M nosplash radeon.pcie_gen2=1;fatload sata 0:1 1000000 uImage-cyrus;fatload sata 0:1 2000000 cyrus_5020.dtb;bootm 1000000 - 2000000".
Restarted again, used the Linux boot option on the menu. Here the screen goes blank and system seems unresponsive; cannot even enter terminal using Ctrl+Alt+F1.
Any ideas? Why can I can boot to desktop from USB with no issues, but everything is unresponsive when I try to from SATA disk.
X5000, AMD Radeon HD 6870, Corsair Neutron SSD connected to SATA 2; LG DVD-RW connected to SATA 1