Booting from USB device or tftp server

Linux only discussion for the AmigaOne 500 and Sam series

Re: Booting from USB device or tftp server

Postby Spectre660 » Fri Sep 09, 2016 2:10 pm

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

Re: Booting from USB device or tftp server

Postby Spectre660 » Fri Apr 28, 2017 12:24 pm

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

Re: Booting from USB device

Postby javierdlr » Sun Nov 04, 2018 10:15 pm

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

Re: Booting from USB device or tftp server

Postby Spectre660 » Tue Nov 06, 2018 12:47 pm

Script links update in original post above .
See following post for installer
viewtopic.php?f=52&t=3643&p=45997#p40114
Spectre660
 
Posts: 1485
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Re: Booting from USB device or tftp server

Postby javierdlr » Wed Nov 07, 2018 2:25 pm

Spectre660 wrote:Script links update in original post above .
See following post for installer
viewtopic.php?f=52&t=3643&p=45997#p40114


THX
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 373
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Previous

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

Who is online

Users browsing this forum: No registered users and 4 guests