|
Re: Is uBoot OS specific? July 22, 2017 05:14AM |
Registered: 6 years ago Posts: 337 |
|
Re: Is uBoot OS specific? July 22, 2017 07:34AM |
Registered: 11 years ago Posts: 1,303 |
|
Re: Is uBoot OS specific? July 22, 2017 09:02AM |
Registered: 6 years ago Posts: 337 |
|
Re: Is uBoot OS specific? July 22, 2017 04:58PM |
Registered: 7 years ago Posts: 310 |
|
Re: Is uBoot OS specific? July 22, 2017 06:09PM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 24, 2017 01:56PM |
Admin Registered: 13 years ago Posts: 18,583 |
/src/FreeBSD/obj/arm.armv6/src/FreeBSD/wip/sys/boot/arm/uboot/ubldr
|
Re: Is uBoot OS specific? July 24, 2017 04:22PM |
Registered: 6 years ago Posts: 337 |
console=ttyS0,115200
uimage=/boot/uImage
initrd=/boot/uInitrd
fdt_file=/boot/dts/kirkwood-pogo_e02.dtb
fdt_addr=0x1c00000
uimage_addr=0x800000
initrd_addr=0x1100000
loadfdt=ext2load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=ext2load ${type} ${disk}:1 ${uimage_addr} ${uimage}
loaduinitrd=ext2load ${type} ${disk}:1 ${initrd_addr} ${initrd}
set_bootargs=setenv bootargs console=$console root=LABEL=rootfs rootdelay=10 $mtdparts
load_debian=setenv type usb; setenv disk 0; run set_bootargs; echo Running loadfdt ...;run loadfdt; echo Running loaduinitrd ...;run loaduinitrd; echo Running loaduimage ...; run loaduimage
bootm=run load_debian; echo Booting from ${type} ${disk}:1 ...; bootm ${uimage_addr} ${initrd_addr} ${fdt_addr}
|
Re: Is uBoot OS specific? July 24, 2017 11:30PM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 25, 2017 01:35AM |
Registered: 6 years ago Posts: 337 |
> /src/FreeBSD/obj/arm.armv6/src/FreeBSD/wip/sys/boo > t/arm/uboot/ubldr >>
dhcp; bootelf
|
Re: Is uBoot OS specific? July 25, 2017 02:31AM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 25, 2017 07:06AM |
Registered: 6 years ago Posts: 337 |
Connected
U-Boot 2015.04 (Oct 14 2016 - 16:33:57)
DRAM: 944 MiB
WARNING: Caches not enabled
RPI 2 Model B
MMC: bcm2835_sdhci: 0
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
In: serial
Out: lcd
Err: lcd
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 2 1 0
Booting from: mmc 0 ubldr
reading ubldr
283886 bytes read in 217 ms (1.2 MiB/s)
## Starting application at 0x02000098 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0x3ab4a4c8
FreeBSD/armv6 U-Boot loader, Revision 1.2
(Fri Dec 23 08:20:58 MST 2016 brd@hive.raspbsd.org)
DRAM: 944MB
Number of U-Boot devices: 1
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2a:
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\/boot/kernel/kernel text=0x5e7558 |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\data=0x5a3e4+0x1d969c |/-\syms=[0x4+0x893b0|/-\+0x4+0x9d69b|/-\|]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 9 seconds...
Booting [/boot/kernel/kernel] in 8 seconds...
Booting [/boot/kernel/kernel] in 7 seconds...
Booting [/boot/kernel/kernel] in 6 seconds...
Booting [/boot/kernel/kernel] in 5 seconds...
Booting [/boot/kernel/kernel] in 4 seconds...
Booting [/boot/kernel/kernel] in 3 seconds...
Booting [/boot/kernel/kernel] in 2 seconds...
Booting [/boot/kernel/kernel] in 1 second...
Booting [/boot/kernel/kernel]...
Using DTB provided by U-Boot at address 0x100.
/-\|Kernel entry at 0x2200180...
Kernel args: (null)
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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 12.0-CURRENT #0 r310476: Fri Dec 23 08:20:46 MST 2016
brd@hive.raspbsd.org:/usr/local/raspbsd/obj/RPI2/obj/arm.armv6/usr/local/raspbsd/src/common/sys/RPI2 arm
FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000)
CPU Features:
Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
PXN, LPAE, Coherent Walk
|
Re: Is uBoot OS specific? July 25, 2017 07:13AM |
Registered: 6 years ago Posts: 337 |
total 7592 drwxr-xr-x 1 root wheel 16384 Dec 31 1979 . drwxr-xr-x 12 root wheel 512 Jul 20 07:01 .. -rwxr-xr-x 1 root wheel 1447 Dec 23 2016 LICENCE.broadcom -rwxr-xr-x 1 root wheel 607 Dec 23 2016 README -rwxr-xr-x 1 root wheel 17900 Dec 23 2016 bootcode.bin -rwxr-xr-x 1 root wheel 103 Dec 23 2016 config.txt -rwxr-xr-x 1 root wheel 6161 Dec 23 2016 fixup.dat -rwxr-xr-x 1 root wheel 2366 Dec 23 2016 fixup_cd.dat -rwxr-xr-x 1 root wheel 9214 Dec 23 2016 fixup_x.dat -rwxr-xr-x 1 root wheel 0 Jul 25 12:56 rpi.lst -rwxr-xr-x 1 root wheel 9590 Dec 23 2016 rpi2.dtb -rwxr-xr-x 1 root wheel 2664088 Dec 23 2016 start.elf -rwxr-xr-x 1 root wheel 567672 Dec 23 2016 start_cd.elf -rwxr-xr-x 1 root wheel 3621768 Dec 23 2016 start_x.elf -rwxr-xr-x 1 root wheel 301088 Dec 23 2016 u-boot.bin -rwxr-xr-x 1 root wheel 283886 Dec 23 2016 ubldr -rwxr-xr-x 1 root wheel 231800 Dec 23 2016 ubldr.bin
disable_commandline_tags=0 device_tree_address=0x100 device_tree=rpi2.dtb kernel=u-boot.bin gpu_mem=64
|
Re: Is uBoot OS specific? July 25, 2017 04:01PM |
Admin Registered: 13 years ago Posts: 18,583 |
Booting from: mmc 0 ubldr reading ubldr 283886 bytes read in 217 ms (1.2 MiB/s) ## Starting application at 0x02000098 ...
kernel=u-boot.bin
printenv
|
Re: Is uBoot OS specific? July 25, 2017 05:12PM |
Registered: 6 years ago Posts: 337 |
|
Re: Is uBoot OS specific? July 25, 2017 05:40PM |
Registered: 7 years ago Posts: 310 |
> Connected > > U-Boot 2015.04 (Oct 14 2016 - 16:33:57) > > DRAM: 944 MiB > WARNING: Caches not enabled > RPI 2 Model B > MMC: bcm2835_sdhci: 0 > reading uboot.env > > ** Unable to read "uboot.env" from mmc0:1 ** > Using default environment > > In: serial > Out: lcd > Err: lcd > Net: Net Initialization Skipped > No ethernet found. > Hit any key to stop autoboot: 2 1 0 >
|
Re: Is uBoot OS specific? July 25, 2017 05:58PM |
Registered: 6 years ago Posts: 337 |
> > Hit any key to stop autoboot: 2 1 0[ > /b] > >Thanks for that...
Connected
U-Boot 2015.04 (Oct 14 2016 - 16:33:57)
DRAM: 944 MiB
WARNING: Caches not enabled
RPI 2 Model B
MMC: bcm2835_sdhci: 0
reading uboot.env
*** Warning - bad CRC, using default environment
In: serial
Out: lcd
Err: lcd
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 2 1 0
U-Boot> printenv
Fatboot=env exists loaderdev || env set loaderdev ${fatdev}; env exists UserFatboot && run UserFatboot; echo Booting from: ${fatdev} ${bootfile}; fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr};
Netboot=env exists ethact || usb start; env exists loaderdev || env set loaderdev net; env exists UserNetboot && run UserNetboot; dhcp ${loadaddr} ${bootfile} && bootelf ${loadaddr};
SetupFatdev=env exists fatdev || env set fatdev 'mmc 0';
arch=arm
baudrate=115200
board=rpi_2
board_name=rpi_2
bootcmd=run Fatboot
bootdelay=2
bootfile=ubldr
cpu=armv7
fatdev=mmc 0
fdtaddr=0x100
fdtfile=bcm2836-rpi-2-b.dtb
kernel_addr_r=0x01000000
loadaddr=0x02000000
preboot=fdt addr 0x100; env exists bootfile || env set bootfile ubldr; env exists SetupFatdev && run SetupFatdev; env exists UserPreboot && run UserPreboot;
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x02100000
scriptaddr=0x00000000
soc=bcm283x
stderr=serial,lcd
stdin=serial,lcd
stdout=serial,lcd
usbethaddr=b8:27:eb:2c:a6:39
vendor=raspberrypi
Environment size: 1064/16380 bytes
U-Boot> ~
[EOT]
|
Re: Is uBoot OS specific? July 25, 2017 09:20PM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 26, 2017 01:19AM |
Registered: 6 years ago Posts: 337 |
Install the kernel mount -t msdosfs /dev/da0s1 /root/usb cp /usr/obj/arm/usr/src/sys/DOCKSTAR-COOLTRAINER/kernel.bin /root/usb umount /root/usb Install world mount /dev/da0s2a /root/usb export DESTDIR=/root/usb make installworld distrib-dirs distribution TARGET_ARCH=arm
|
Re: Is uBoot OS specific? July 26, 2017 04:06AM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 26, 2017 04:30AM |
Registered: 6 years ago Posts: 337 |
|
U-Boot uboot.2017.05-tld-2 Goflex Home July 26, 2017 05:02AM |
Admin Registered: 13 years ago Posts: 18,583 |
Quote
A FreeBSD bootable image for Raspberry Pi has both FAT and UFS partitions containing the following files:
FAT Partition
bootcode.bin - First stage boot
start.elf - Second stage boot
config.txt - configuration for start.elf
rpi.dtb - FDT file loaded via config.txt
uboot.bin - Third stage: U-Boot loader
uEnv.txt - configuration file for U-Boot
ubldr - Fourth stage: FreeBSD bootloader
UFS Partition
/boot/kernel - dynamic kernel
... rest of FreeBSD ...
Quote
To download ARM kwboot binary for UART booting at Dropbox
kwboot-2016.05.tar
md5:
76977c5a61544a5707dfa17ae832a3ad
sha256:
25ee4fa8a94372d2d398cac4704e9ee3ca87585c29e72e18323209b7f163209d
kwboot (this is an older version)
md5:
0efd011bdb244436e432a8de33e639a1
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p
help help bootelf printenv
|
Re: Is uBoot OS specific? July 27, 2017 12:56AM |
Registered: 6 years ago Posts: 337 |
>Quote
To download ARM kwboot binary for UART boot
> ing at Dropbox
>
> kwboot-2016.05.tar
> md5:
> 76977c5a61544a5707dfa17ae832a3ad
> sha256:
> 25ee4fa8a94372d2d398cac4704e9ee3ca87585c29e72e1832
> 3209b7f163209d
>
> kwboot (this is an older version)
> md5:
> 0efd011bdb244436e432a8de33e639a1
> ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.0 > 5-tld-2.goflexhome.mtd0.kwb -p >
> help > help bootelf > printenv >>
|
Re: Is uBoot OS specific? July 27, 2017 01:24AM |
Admin Registered: 13 years ago Posts: 18,583 |
Connected U-Boot 2015.04 (Oct 14 2016 - 16:33:57) DRAM: 944 MiB WARNING: Caches not enabled RPI 2 Model B MMC: bcm2835_sdhci: 0 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** Using default environment
|
Re: Is uBoot OS specific? July 27, 2017 01:55AM |
Registered: 6 years ago Posts: 337 |
> Connected > > U-Boot 2015.04 (Oct 14 2016 - 16:33:57) > > DRAM: 944 MiB > WARNING: Caches not enabled > RPI 2 Model B > MMC: bcm2835_sdhci: 0 > reading uboot.env > > ** Unable to read "uboot.env" from mmc0:1 ** > Using default environment >>
|
Re: Is uBoot OS specific? July 27, 2017 02:58AM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 27, 2017 04:45AM |
Registered: 6 years ago Posts: 337 |
|
Re: Is uBoot OS specific? July 27, 2017 03:52PM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 28, 2017 03:53AM |
Registered: 6 years ago Posts: 337 |
> ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.0 > 5-tld-2.goflexhome.mtd0.kwb -p >>
> help > help bootelf > printenv >>
GoFlexHome> help bootelf Unknown command 'bootelf' - try 'help' ...
|
Re: Is uBoot OS specific? July 28, 2017 04:21AM |
Admin Registered: 13 years ago Posts: 18,583 |
|
Re: Is uBoot OS specific? July 28, 2017 08:15AM |
Registered: 6 years ago Posts: 337 |
./kwboot -t -B 115200 /dev/cuaU0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p | tee /var/log/kwboot.log
U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM
Seagate GoFlex Home
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 3 2 0
GoFlexHome> printenv
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:10:75:2E:AE:0F
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
Environment size: 1433/131068 bytes
GoFlexHome> help elfboot
Unknown command 'elfboot' - try 'help' without arguments for list of all known commands
GoFlexHome> help bootelf
Unknown command 'bootelf' - try 'help' without arguments for list of all known commands
GoFlexHome> he; lp
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
bootz - boot Linux zImage image from memory
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
date - get/set/reset date & time
dhcp - boot image via network using DHCP/TFTP protocol
diskboot- boot from IDE device
dns - lookup the IP of a hostname
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
exit - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls - list files in a directory (default /)
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fdt - flattened device tree utility commands
go - start application at address 'addr'
help - print command description/usage
ide - IDE sub-system
iminfo - print header information for application image
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
load - load binary file from a filesystem
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loadx - load binary file over serial line (xmodem mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mtdparts- define flash/nand partitions
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval expression
showvar - print local hushshell variables
sleep - delay execution for some time
sntp - synchronize RTC via network
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
ubi - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
GoFlexHome> help help bootelf help elfboot printenv
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:10:75:2E:AE:0F
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
Environment size: 1433/131068 bytes
GoFlexHome> ~.
Unknown command '~.' - try 'help'
GoFlexHome> |.
syntax error
GoFlexHome> <INTERRUPT>
GoFlexHome> exit
exit not allowed from main input shell.
GoFlexHome>
exit not allowed from main input shell.
GoFlexHome>
exit not allowed from main input shell.
GoFlexHome>
exit not allowed from main input shell.
GoFlexHome>