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

Re: Booting from USB device or tftp server

Post by Spectre660 »

Revision for normal booting .

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 fb=false"

;#2 ( Not active unless we remove the ";: infront of the nvsetvar line
; in thisexample 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 fb=false"

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

; 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}"
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 or tftp server

Post by Spectre660 »

AmigaDos script files for setting Sam460ex U-boot variables for Linux booting and installation.

Lha archive
http://dl.dropboxusercontent.com/s/m9yc ... s.lha?dl=0
Zip archive
http://dl.dropboxusercontent.com/s/1a88 ... s.zip?dl=0
Last edited by Spectre660 on Tue Nov 06, 2018 11:30 am, edited 1 time in total.
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 »

Spectre660 wrote: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

Hi is there any site/place I can download such files to (re)(re)test linux sam460 installation??

TiA
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Booting from USB device or tftp server

Post by Spectre660 »

Script links update in original post above .
See following post for installer
http://forum.hyperion-entertainment.biz ... 997#p40114
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 or tftp server

Post by javierdlr »

Spectre660 wrote:Script links update in original post above .
See following post for installer
http://forum.hyperion-entertainment.biz ... 997#p40114
THX
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 or tftp server

Post by javierdlr »

Installation went fine, no problems, having again linux LXDE installed on my SAM460ex.

THX A LOT!!!
Post Reply