Booting from USB device or tftp server

Linux only discussion for the AmigaOne 500 and Sam series

Booting from USB device or tftp server

Postby Spectre660 » Sun Mar 06, 2016 8:14 pm

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 12:59 pm, edited 1 time in total.
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby Spectre660 » Mon Mar 07, 2016 3:48 pm

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
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby Spectre660 » Tue Mar 08, 2016 3:13 am

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
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby javierdlr » Wed Mar 09, 2016 2:52 pm

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?
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 367
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: Booting from USB device

Postby Spectre660 » Wed Mar 09, 2016 3:45 pm

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?
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby javierdlr » Fri Mar 11, 2016 9:34 pm

Can I "burn" the usb image using AmigaOS4 on a USB pendrive (using RawDisk or another tool)?
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 367
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: Booting from USB device

Postby Spectre660 » Fri Mar 11, 2016 9:37 pm

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)?
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby Spectre660 » Fri Mar 11, 2016 10:53 pm

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
Spectre660
 
Posts: 1344
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device

Postby javierdlr » Fri Mar 11, 2016 11:23 pm

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
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 367
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: Booting from USB device

Postby Spectre660 » Sat Mar 12, 2016 2:58 am

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

Next

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

Who is online

Users browsing this forum: No registered users and 1 guest