Booting from USB device or tftp server

Linux only discussion for the AmigaOne 500 and Sam series
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Booting from USB device or tftp server

Post by Spectre660 »

I am working on a Ubuntu 16.04 base install image that can be booted from a USB flash drive .
The image will be a downloadable .img file that once decompressed can be written to a USB flash drive.
The flasj drive has to be booted in Uboot.
In order to boot the flash drive some Uboot variables have to be set.
These can be set from AmigaOS 4.1 with the nvsetvar command .
The variables for the Sam460ex are :

Code: Select all

nvsetvar bootargs="console ttys0,115200 console=tty1 root=/dev/sdb2 rootdelay=10"
nvsetvar lboot="ext2load usb 0:3 1000000 uImage-460;ext2load usb 0:3 2000000 sam460.dtb;bootm 1000000 - 2000000"
The variables for the Sam440ep and Sam440ep-flex should be :

Code: Select all

nvsetvar bootargs="console ttys0,115200 console=tty1 root=/dev/sdb2 rootdelay=10"
nvsetvar lboot="ext2load usb 0:3 500000 cuImage-440;bootm"
to boot from the Uboot shell the command would be

Code: Select all

run lboot
Last edited by Spectre660 on Tue Apr 12, 2016 11:59 am, edited 1 time in total.
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

Bootable Ubuntu 16.04 base install image . Should work on X1000,X5000,Tabor,Sam460ex and Sam440ep.
Tested so far on X1000 (Xeno74),Tabor and Sam460ex (Spectre660)
Decompress and copy .img to USB thumb drive as a diskimage and boot with the instructions above for Sams .
https://www.dropbox.com/s/c6l1h41hgsdyq ... mg.7z?dl=0
Windows program USBimage tool can be used to write the .img file to the USB thumb drive .
http://www.alexpage.de/download/usbit/usbit.zip
Need thumb drive minimum size of 8GB.
To sign in to Linux once booted use
Username = amigaone
Password= amigaone

Once signed in you can install the Desktop .

http://amigaworld.net/modules/newbb/vie ... r=0#779624
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

The next step.
Ubuntu-Mate 16.04 running from a USB thumb drive.
Just copy the .img file to a USB thumb drive and boot into a complete Linux Graphical environment.
.img file to be uploaded soon .
Attachments
Sam460ex-USB_Thumbdrive.png
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Booting from USB device

Post by javierdlr »

Just for courosity: then would it be possible to put such linux image inside an SD memory card (SAM460ex has SD slot) and boot from there too?
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

Yes it is.
javierdlr wrote:Just for courosity: then would it be possible to put such linux image inside an SD memory card (SAM460ex has SD slot) and boot from there too?
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Booting from USB device

Post by javierdlr »

Can I "burn" the usb image using AmigaOS4 on a USB pendrive (using RawDisk or another tool)?
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

Not sure if Rawdisk can handle a file system that AmigaOS4.1 cant read.
probably from cli use .
http://www.titan.co.nz/amigaak/AA020844eEF.htm
Problem might be extracting the .img file from the .7z archive.
Not enough memory on a Sam460ex with 2GB.

javierdlr wrote:Can I "burn" the usb image using AmigaOS4 on a USB pendrive (using RawDisk or another tool)?
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

Rawdisk works.
Now need to see if i can actually extract the .7z archive .

rawdisk from Data:Downloads/Amigaone_Ubuntu_16.04-Base-1.img to usb0:
Default start block = 0
File size = 1956642816, writing 3821568 blocks
Progress:100%
***Command 'rawdisk' returned with hanging Forbid!
-----------------------------------------------------------------------------------------------------------
May have to change the compression to gzip instead. 7zdec program fails.


7zdec e Data:Downloads/Amigaone_Ubuntu_16.04-Base-1.img.7z

7z ANSI-C Decoder 4.48b Copyright (c) 1999-2007 Igor Pavlov 2007-06-21

Extracting Amigaone_Ubuntu_16.04-Base-1.img
ERROR: can not allocate memory
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
User avatar
javierdlr
Beta Tester
Beta Tester
Posts: 389
Joined: Sun Jun 19, 2011 10:13 pm
Location: Donostia (GUIPUZCOA) - Spain
Contact:

Re: Booting from USB device

Post by javierdlr »

I used 7za tool/command (don't kno where I got it) and it decompressed fine. Will try to find where to that 7za for AmigaOS.

...

maybe from http://amiga.sourceforge.net/?showpackage=p7zip
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device

Post by Spectre660 »

2GB Ubuntu 16.04 Base Install Image
https://www.dropbox.com/s/3ay5ynhv3tgro ... mg.7z?dl=0

8GB Ubuntu 16.04 Base Install Image
https://www.dropbox.com/s/s85zlum71g5f2 ... mg.7z?dl=0

8GB Ubuntu-Mate Desktop 16.04 Image
https://www.dropbox.com/s/h749ny0nkxnuj ... mg.7z?dl=0
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
Post Reply