Ubuntu Mate 16.04.1 Live DVD or USB

Linux only discussion for the AmigaOne 500 and Sam series

Ubuntu Mate 16.04.1 Live DVD or USB

Postby Spectre660 » Mon Sep 05, 2016 3:01 pm

Files for booting Ubuntu 16.04 Live DVD on Sam460ex via TFTP
https://www.dropbox.com/s/xnzfmaz5g5d31 ... ar.gz?dl=0
Seems to work best with a 4.4.x kernel so updated files.

Use the original DVD
http://cdimage.ubuntu.com/ubuntu-mate/r ... owerpc.iso
Last edited by Spectre660 on Thu Nov 10, 2016 11:17 pm, edited 1 time in total.
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live DVD

Postby xeno74 » Mon Sep 05, 2016 8:43 pm

Spectre660 wrote:Files for booting Ubuntu 16.04 Live DVD on Sam460ex via TFTP
https://www.dropbox.com/s/xnzfmaz5g5d31 ... ar.gz?dl=0
Seems to work best with a 4.4.x kernel so updated files.

Use the original DVD
http://cdimage.ubuntu.com/ubuntu-mate/r ... owerpc.iso


Thank you! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Ubuntu Mate 16.04.1 Live DVD

Postby Spectre660 » Mon Sep 05, 2016 9:26 pm

@Xeno74

Thank you for pointing out the way to do it.
I always thought that you needed aufs support in a kernel to boot a live dvd.
But you don't .
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live DVD

Postby Spectre660 » Mon Sep 05, 2016 9:28 pm

Image file for creating a usb thumb drive to boot the kernel and ramdisk for the live dvd from if you don't have a tftp server set up.

https://www.dropbox.com/s/uej7sbn99pk8t ... e.img?dl=0
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live USB

Postby Spectre660 » Mon Sep 26, 2016 1:40 am

USB Live Version. No DVD required.
https://dl.dropboxusercontent.com/u/542 ... ve_USB.img

See AmigaOS script to set u-boot variables in Documents directory .

Sam460_Uboot_USB_Linux_Live_USB.txt
-------------------------------------------------------------------------------------------------------------------
Code: Select all
;Sam460ex  Uboot settings for Linux booting via uboot shell

;Script by Julian Margetson (Spectre660)

; This file can be executed from AmigaOS 4.x to get the Uboot variables correct using the excute command.

;To enter  the U-Boot  shell press the Escape key while the Sam460ex boots

; To boot the Linux Kernel and Ramdisk Installer and ubuntu Live image from a Linux partition on a USB thumb drive from the U-Boot shell use
;run live

; remove the variables used for regular Linux booting as there is a limit to the number of variables that can be defined at a given time

nvsetvar usb=""
nvsetvar lan=""

;set the  variables needed

;kernel name
nvsetvar ui="uImage-460"

;dtb file  name
nvsetvar dt="sam460.dtb"

;ramdisk name
nvsetvar ur="uRamdisk"

;kernel load address
nvsetvar kl="1000000"

;dtb load address
nvsetvar dl="2000000"

;ramdisk load address
nvsetvar rl="3000000"

;USB partition with kernel,dtb and ramdisk . in this case the third partition of the first USB drive. Partition must be in ext2 format
nvsetvar pt="usb 0:3"

;Boot args option for Live DVD
;nvsetvar bootargs="root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper quiet ro splash --"

;Boot args  option for Live USB. /dev/sdb for first USB drive or if you have another card in the SD card slot then  /dev/sdc
nvsetvar bootargs="root=/dev/ramdisk file=/dev/sdb/preseed/ubuntu-mate.seed boot=casper quiet ro splash -- rootdelay=10"

;Variable to load kernel and dtb file
nvsetvar ub1="ext2load ${pt} ${kl} ${ui};ext2load ${pt} ${dl} ${dt}"

;Variable to load URamdisk and boot everything
nvsetvar ub2="ext2load ${pt} ${rl} ${ur};bootm ${kl} ${rl} ${dl}"

;execute the two previous lines
nvsetvar live="run  ub1;run ub2"
Last edited by Spectre660 on Thu Nov 10, 2016 11:16 pm, edited 1 time in total.
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live USB

Postby Spectre660 » Thu Nov 10, 2016 11:06 pm

Updated Ubuntu Mate 16.04.1 Live USB drive image . No DVD required.

https://dl.dropboxusercontent.com/u/542 ... _USB-3.img
https://www.dropbox.com/s/mp1ub2uvpakq2 ... 3.img?dl=0

Updated AmigaOS 4.1 U-boot script for booting Live USB Drive .

Code: Select all
;Sam460ex  Uboot settings for Linux booting via uboot shell

;Script by Julian Margetson (Spectre660)

; This file can be executed from AmigaOS 4.x to get the Uboot variables correct using the excute command.

;To enter  the U-Boot  shell press the Escape key while the Sam460ex boots

; To boot the Linux Kernel and Ramdisk Installer and ubuntu Live image from a Linux partition on a USB thumb drive from the U-Boot shell use
;run live

; remove the variables used for regular Linux booting as there is a limit to the number of variables that can be defined at a given time

nvsetvar usb=""
nvsetvar lan=""

;set the  variables needed

;kernel name
nvsetvar ui="uImage-460"

;dtb file  name
nvsetvar dt="sam460.dtb"

;ramdisk name
nvsetvar ur="uRamdisk"

;kernel load address
nvsetvar kl="1000000"

;dtb load address
nvsetvar dl="2000000"

;ramdisk load address
nvsetvar rl="3000000"

;USB partition with kernel,dtb and ramdisk . in this case the third partition of the first USB drive. Partition must be in ext2 format
nvsetvar pt="usb 0:3"

;Boot args option for Live DVD or Live USB Drive
nvsetvar bootargs="root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper rootdelay=10"

;Variable to load kernel and dtb file
nvsetvar ub1="ext2load ${pt} ${kl} ${ui};ext2load ${pt} ${dl} ${dt}"

;Variable to load URamdisk and boot everything
nvsetvar ub2="ext2load ${pt} ${rl} ${ur};bootm ${kl} ${rl} ${dl}"

;execute the two previous lines
nvsetvar live="run  ub1;run ub2"
 


Updated AmigaOS 4.1 U-boot script for booting Linux from hard drive .
Allows for booting kernel and dtb from USB drive or via TFTP then booting Linux installation from hard drive

Code: Select all
;Sam460ex  Uboot settings for Linux booting via uboot shell

;Script by Julian Margetson (Spectre660)

; This file can be executed from AmigaOS 4.x using the execute command to set the correct Uboot variables.

;To enter  the U-Boot  shell press the Escape key while the Sam460ex boots

; The first hard drive attached to a sii pci SATA card is /dev/sda with the first USB device being /dev/sdb.
; change devices for the SATA drive and the USB thumb drive to match your configuration in the Boot args nvgetvar lines below then execute this script.
;The examples  below uses /dev/sda6 which is the 6th partition on the first hard drive drive connected.
 ;The USB thumb drive partion is normally going to be the second partition of the first attached usb storage device. in this case /dev/sdb2 .

;============================================================================================================

;To boot the Linux kernel and dtb from a USB Drive partition from the U-boot shell use
;run usb

;To boot the Linux kernel and dtb from a tftp server (Fastest boot option) use
; run lan

;============================================================================================================

; Here we remove the Uboot variables previously used for installing Linux as there is a limit to the number of variables that
;can be defined at a given time

nvsetvar ub1=""
nvsetvar ub2=""
nvsetvar live=""

;============================================================================================================
;set the variables needed
;============================================================================================================

;Boot args to be passed to the linux kernel

;#1 
; in this example the root partition is the sixth partition on the first hard drive /dev/sda6
nvsetvar bootargs="root=/dev/sda6 console=ttyS0,115200 console=tty0"

;#2 ( Not active unless we remove the ";: infront of the nvsetvar line
; in this example the root partition is the second partition on the first USB drive /dev/sdb2
;nvsetvar bootargs "root=/dev/sdb2 rootdelay=10 console=ttyS0,115200 console=tty0"

;============================================================================================================

; the  following ip addresses need to be set for tftp with the correct addresses for your server and your Sam460

;TFTP Server ip address
nvsetvar serverip=192.168.1.14

;Sam460 ip address
nvsetvar ipaddr=192.168.1.15

;============================================================================================================

;kernel name
nvsetvar ui="uImage-460"

;dtb file name
nvsetvar dt="sam460.dtb"

;ramdisk name
nvsetvar ur="uRamdisk"

;USB partition with kernel,dtb and ramdisk . in this example and the default option ,the third partition of the first USB drive. Partition must be in ext2 format
nvsetvar pt="usb 0:3"

;============================================================================================================

; Please dont change any of these variables

;kernel load address
nvsetvar kl="1000000"

;dtb load address
nvsetvar dl="2000000"

;ramdisk load address
nvsetvar rl="3000000"

;Variable to load kernel and dtb file from USB drive
nvsetvar usb="ext2load ${pt} ${kl} ${ui};ext2load ${pt} ${dl} ${dt};bootm ${kl} - ${dl}"

;Variable to load kernel and dtb file from TFTP server
nvsetvar lan="tftp ${kl} ${ui};tftp ${dl} ${dt};bootm ${kl} - ${dl}"
Last edited by Spectre660 on Tue Dec 20, 2016 12:59 pm, edited 3 times in total.
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live USB

Postby javierdlr » Sat Nov 19, 2016 1:53 pm

Spectre660 wrote:Updated Ubuntu Mate 16.04.1 Live USB drive image . No DVD required.

https://dl.dropboxusercontent.com/u/542 ... _USB-3.img

Updated AmigaOS 4.1 U-boot script for booting Live USB Drive .
...


Tried that version and I get:
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

I used a windows machine to "copy" (dd) .img (IIRC rufus.exe program) to a 2GB USB drive.
What program do you recomend for creating USB drive?

TIA
Attachments
ramdiskInvalid.jpg
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 361
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: Ubuntu Mate 16.04.1 Live USB

Postby Spectre660 » Sat Nov 19, 2016 4:40 pm

It should not matter what you use to write the image.
Something went wrong for you as version 3 has kernel 4.4.30 not 4.4.15.
I just downloaded and tested version 3 to verify that the uploaded image is ok .
wrote the image with USB Image tool under Windows.http://www.alexpage.de/usb-image-tool/
Worked perfectly.
Note that there is also an update AmigaOS script for the Uboot settings .


javierdlr wrote:
Spectre660 wrote:Updated Ubuntu Mate 16.04.1 Live USB drive image . No DVD required.

https://dl.dropboxusercontent.com/u/542 ... _USB-3.img

Updated AmigaOS 4.1 U-boot script for booting Live USB Drive .
...


Tried that version and I get:
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

I used a windows machine to "copy" (dd) .img (IIRC rufus.exe program) to a 2GB USB drive.
What program do you recomend for creating USB drive?

TIA
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Ubuntu Mate 16.04.1 Live USB

Postby javierdlr » Sun Nov 20, 2016 12:25 pm

Spectre660 wrote:It should not matter what you use to write the image.
Something went wrong for you as version 3 has kernel 4.4.30 not 4.4.15.
I just downloaded and tested version 3 to verify that the uploaded image is ok .
wrote the image with USB Image tool under Windows.http://www.alexpage.de/usb-image-tool/
Worked perfectly.
Note that there is also an update AmigaOS script for the Uboot settings .
...


Recheck my uboot settings and I had a typo, corrected and booting fine now from USB drive with img_V3 :-)

ubuntu-mate@ubuntu-mate:~$ uname -a
Linux ubuntu-mate 4.4.30-sam460ex-jm #5 PREEMPT Sat Nov 5 11:17:31 AST 2016 ppc ppc ppc GNU/Linux

Nice job man!!!!!

EDIT: BTW which install (to my HDD) icon should I use the "normal" or alternate one? TIA
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 361
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: Ubuntu Mate 16.04.1 Live DVD or USB

Postby Spectre660 » Sun Nov 20, 2016 2:10 pm

@javierdlr

Use the alternate installer.
Spectre660
 
Posts: 1201
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat


Return to Platform: AmigaOne 500 and Sam series - Linux Only

Who is online

Users browsing this forum: No registered users and 3 guests