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: 1392
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
https://drive.google.com/open?id=0BxoZd ... 3QtVkl4SFk
Zip archive
https://drive.google.com/open?id=0BxoZd ... DJjOHRZdW8
Spectre660
 
Posts: 1392
Joined: Sat Jun 18, 2011 3:16 pm
Location: Montserrat

Previous

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

Who is online

Users browsing this forum: No registered users and 3 guests