Welcome! Log In Create A New Profile

Advanced

tftpboot & loadderdev

Posted by balanga 
tftpboot & loadderdev
March 16, 2019 04:15PM
Here is my latest attempt to boot a recently built version of FreeBSD/ARM for the GoFlex Home using tftpboot:-

Hit any key to stop autoboot:  0 
GoFlexHome> setenv serverip 192.168.1.1
GoFlexHome> tftpboot 900000 gfh2/ubldr.bin
Using egiga0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.23
Filename 'gfh2/ubldr.bin'.
Load address: 0x900000
Loading: #################
	 4.7 MiB/s
done
Bytes transferred = 244612 (3bb84 hex)
GoFlexHome> go 900000
## Starting application at 0x00900000 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7b12860

FreeBSD/arm U-Boot loader, Revision 1.2
(Fri Mar 15 10:33:29 UTC 2019 root@Pristine)

DRAM: 128MB
Number of U-Boot devices: 1

U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: net
Booting from net0:
/
can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
loader>

This manages to run the FreeBSD boot loader, but I'm missing a couple of steps.

It seems that it is expecting a variable called loaderdev, so maybe I should have setenv loaderdev net0 or somesuch.
Still can't work out how to point ubldr.bin to kernel... would that be via DHCP using the filename and root-path options ?
Re: tftpboot & loadderdev
March 16, 2019 05:45PM
balanga,

This is very important: I need to see the content of the FreeBSD rootfs built for armv5tel. For example, the rPi BSD rootfs is armv7.

Without seeing the information about the rootfs, I cannot advise you about how to load ubldr or how to set envs to boot this rootfs.

Now if you have not created that rootfs, then please go do that first.

If for what ever reason, you cannot find the information how to create this rootfs, then let me know. I might be able to help you look for it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: tftpboot & loadderdev
March 19, 2019 04:18PM
Hi, have you tried tftp booting the kernel directly? On the FreeBSD marvel page their example doesn't use the loader;

Booting FreeBSD on Marvell

Marvell>> tftpboot 900000 mv5281/kernel.bin
Using egiga0 device
TFTP from server 10.0.0.204; our IP address is 10.0.2.2
Filename 'mv5281/kernel.bin'.
Load address: 0x900000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###
done
Bytes transferred = 2675700 (28d3f4 hex)
Marvell>>

Marvell>> go 900000
## Starting application at 0x00900000 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-CURRENT #2: Fri Dec 5 16:20:16 CET 2008
Preloaded elf kernel "elf kernel" at 0xc0d00074.
CPU: ARM926EJ-S rev 0 (ARM9EJ-S core)
DC enabled IC enabled WB enabled EABT branch prediction enabled
32KB/32B 1-way Instruction cache
32KB/32B 4-way write-back-locking-C Data ca
Re: tftpboot & loadderdev
March 19, 2019 04:45PM
J,

That’s the old style of booting FreeBSD.

Note: we have beaten this subject to death before :) this is the continuation of hundred of posts on this subject.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/19/2019 05:00PM by bodhi.
Re: tftpboot & loadderdev
March 20, 2019 12:01AM
Ha! Sorry, I should have checked the age of their wiki guide.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: