Page 1 of 3

Booting from USB device or tftp server

Posted: Sun Mar 06, 2016 7:14 pm
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

Re: Booting from USB device

Posted: Mon Mar 07, 2016 2:48 pm
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

Re: Booting from USB device

Posted: Tue Mar 08, 2016 2:13 am
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 .

Re: Booting from USB device

Posted: Wed Mar 09, 2016 1:52 pm
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?

Re: Booting from USB device

Posted: Wed Mar 09, 2016 2:45 pm
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?

Re: Booting from USB device

Posted: Fri Mar 11, 2016 8:34 pm
by javierdlr
Can I "burn" the usb image using AmigaOS4 on a USB pendrive (using RawDisk or another tool)?

Re: Booting from USB device

Posted: Fri Mar 11, 2016 8:37 pm
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)?

Re: Booting from USB device

Posted: Fri Mar 11, 2016 9:53 pm
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

Re: Booting from USB device

Posted: Fri Mar 11, 2016 10:23 pm
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

Re: Booting from USB device

Posted: Sat Mar 12, 2016 1:58 am
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