Re: Is uBoot OS specific? July 28, 2017 03:52PM |
Admin Registered: 13 years ago Posts: 18,554 |
Quote
And then at serial console, instead of running picocom/putty/screen, run kwboot:
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p
After u-boot has been loaded, interrupt serial console at the countdown and,
help help bootelf printenv
Hopefully we will see the bootlef command in the help listing.
Re: Is uBoot OS specific? July 29, 2017 04:59AM |
Registered: 6 years ago Posts: 337 |
>Quote
And then at serial console, instead of runn
> ing picocom/putty/screen, run kwboot:
>
>> ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.0 > 5-tld-2.goflexhome.mtd0.kwb -p >>
>
> After u-boot has been loaded, interrupt serial con
> sole at the countdown and,
>
>> help > help bootelf > printenv >>
>
> Hopefully we will see the bootlef command in the h
> elp listing.
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 1 0 GoFlexHome> help ? - 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 bootelf Unknown command 'bootelf' - try 'help' without arguments for list of all known commands 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> usb start (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found GoFlexHome> ls usb 0 0 file(s), 0 dir(s)
Re: Is uBoot OS specific? July 29, 2017 06:28AM |
Registered: 7 years ago Posts: 310 |
> U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch > Linux ARM > Seagate GoFlex Home >>
Re: Is uBoot OS specific? July 29, 2017 07:11AM |
Registered: 6 years ago Posts: 337 |
Re: Is uBoot OS specific? July 29, 2017 07:18AM |
Registered: 7 years ago Posts: 310 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-4-rc6.dreamplug.mtd0.kwb -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2016.05-tld-4-rc6 (Jun 19 2017 - 22:43:45 -0700) Marvell-DreamPlug SoC: Kirkwood 88F6281_A1 SPI: ready DRAM: 512 MiB WARNING: Caches not enabled SF: Detected MX25L1605D with page size 256 Bytes, erase size 64 KiB, total 2 MiB In: serial Out: serial Err: serial Net: egiga0, egiga1 88E1116 Initialized on egiga0 88E1116 Initialized on egiga1 Hit any key to stop autoboot: 0 Dreamplug>
Re: Is uBoot OS specific? July 29, 2017 09:14AM |
Registered: 6 years ago Posts: 337 |
Sending boot image... 0 % [+++++++++++++++xmodem: Bad message....] Trying again... It worked this time.... I need to workout how to log the messages from Ubuntu, and will send that from a different machine shortly.
Re: Is uBoot OS specific? July 29, 2017 09:23AM |
Registered: 7 years ago Posts: 310 |
> Sending boot image... > 0 % [+++++++++++++++xmodem: Bad message....] > > Trying again... > > It worked this time.... > > I need to workout how to log the messages from Ubu > ntu, and will send that from a different machine s > hortly.That looks like just a bad connection. Trust me I have had plenty of them.
Re: Is uBoot OS specific? July 29, 2017 09:42AM |
Registered: 6 years ago Posts: 337 |
]0;root@ThinkPad-X61: ~/projects/kwboot-tool##[01;32mroot@ThinkPad-X61#[00m:#[01;34m~/projects/kwboot-tool#[00m# sh bodhi Sending boot message. Please reboot the target...#-#\#|#/#-#\#|#/#-#\#|#/#- Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] # U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700) 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 ### 1 ### 0 Reset IDE: ide_preinit failed starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found ## Unknown partition table type 0 Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 63 65536 00000000-01 a5 2 65599 131006401 00000000-02 a5 Attempting to boot from usb 0:1... reading /boot/uEnv.txt ** Unable to read file /boot/uEnv.txt ** Checking if uenvcmd is set ... Running default loadzimage ... reading /boot/zImage ** Unable to read file /boot/zImage ** Running default loaduimage ... reading /boot/uImage ** Unable to read file /boot/uImage ** GoFlexHome> help ? - 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' bootefi - Boots an EFI payload from memory bootelf - Boot from an ELF image in memory bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol bootvx - Boot vxWorks from an ELF image 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 /) ext4size- determine a file's size false - do nothing, unsuccessfully fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fatsize - determine a file's size fdt - flattened device tree utility commands fsinfo - print information about jffs filesystems fsload - load binary file from a jffs filesystem image fsls - list jffs files in a directory (default /) fstype - Look up a filesystem type go - start application at address 'addr' gpio - query and control gpio pins gpt - GUID Partition Table 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 save - save file to a filesystem 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 size - determine a file's size 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 bootelf bootelf - Boot from an ELF image in memory Usage: bootelf [-p|-s] [address] - load ELF image at [address] via program headers (-p) or via section headers (-s) GoFlexHome> printenv api_address=7b12860 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 letter=a 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: 1466/131068 bytes GoFlexHome>
Re: Is uBoot OS specific? July 29, 2017 02:29PM |
Registered: 6 years ago Posts: 337 |
Re: Is uBoot OS specific? July 29, 2017 02:50PM |
Registered: 7 years ago Posts: 310 |
Re: Is uBoot OS specific? July 29, 2017 03:56PM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 29, 2017 05:15PM |
Admin Registered: 13 years ago Posts: 18,554 |
setenv bootfile ubldr setenv fdtfile kirkwood-goflexhome.dtb setenv kernel_addr_r 0x01000000 setenv loadaddr 0x02000000 setenv pxefile_addr_r 0x00100000 setenv ramdisk_addr_r 0x02100000 setenv scriptaddr 0x00000000 fdt addr 0x100 setenv bootcmd 'usb start; fatload usb 0:1 ${loadaddr} ${bootfile} && bootelf ${loadaddr}' printenv boot
Re: Is uBoot OS specific? July 29, 2017 07:07PM |
Registered: 6 years ago Posts: 337 |
Script started on Sun 30 Jul 2017 00:30:27 BST #]0;me@ThinkPad-X61: ~/projects/kwboot-tool##[01;32mme@ThinkPad-X61#[00m:#[01;34m~/projects/kwboot-tool#[00m$ exit####sudo sh bodhi#############exit#[K####sudo sh bodhi [sudo] password for me: Sending boot message. Please reboot the target...#-#\#|#/#-#\#|#/#-#\#|#/#- Sending boot image... 0 % [....+xmodem: Protocol error #]0;me@ThinkPad-X61: ~/projects/kwboot-tool##[01;32mme@ThinkPad-X61#[00m:#[01;34m~/projects/kwboot-tool#[00m$ sudo sh bodhi Sending boot message. Please reboot the target...#-#\#| Sending boot image... 0 % [+++++++++++++++++xmodem: Bad message #]0;me@ThinkPad-X61: ~/projects/kwboot-tool##[01;32mme@ThinkPad-X61#[00m:#[01;34m~/projects/kwboot-tool#[00m$ sudo sh bodhi Sending boot message. Please reboot the target...#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#- Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] # U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700) 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 ### 0
GoFlexHome> printenv api_address=7b12860 baudrate=115200 bootcmd=usb start; fatload usb 0:1 ${loadaddr} ${bootfile} && bootelf ${loadaddr} bootdelay=3 bootfile=ubldr 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 fdtfile=krkwood-goflexhome.dtb importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize kernel_at=0x02000000 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) pxefile_aetenv=ramdisk_addr_r 0x02100000 scriptaddddr=0x100 setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts} uimage=/boot/uImage zimage=/boot/zImage Environment size: 1507/131068 bytes GoFlexHome> boot starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found reading ubldr 280361 bytes read in 88 ms (3 MiB/s) CACHE: Misaligned operation at range [01000098, 0102acc8] CACHE: Misaligned operation at range [0102acd0, 0102b873] CACHE: Misaligned operation at range [0102b874, 0102d25c] CACHE: Misaligned operation at range [0102d25c, 0102d2b8] CACHE: Misaligned operation at range [0102d2b8, 01031da6] CACHE: Misaligned operation at range [01031db0, 010334ac] CACHE: Misaligned operation at range [010334b0, 01036548] ## Starting application at 0x01000098 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x7b12860
FreeBSD/arm U-Boot loader, Revision 1.2
!!!!!!!!!
(root@Multiboot, Thu Jul 20 09:36:42 BST 2017)
DRAM: 128MB
Number of U-Boot devices: 2
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
Probing all disk devices...
Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s1:
|#/#-#
\#|#/#-#\#|#/#-#\#can't load 'kernel'
Type '?' for a list of commands, 'help' for more detailed help.
loader> ?
Available commands:
boot boot a file or loaded kernel
autoboot boot automatically after a delay
help detailed help
? list commands
show show variable(s)
set set a variable
unset unset a variable
echo echo arguments
read read input from the terminal
more show contents of a file
lsdev list all devices
include read commands from a file
ls list files
load load a kernel or module
load_geli load a geli key
unload unload all modules
lsmod list loaded modules
heap show heap usage
reboot reboot the system
devinfo show U-Boot devices
sysinfo show U-Boot system info
ubenv show or import U-Boot env vars
--more-- <space> page down <enter> line down <q> quit
fdt flattened device tree handling
loader> sysinfo
U-Boot system info:
sys info:
clkbus = 0 MHz
clkcpu = 0 MHz
bar = 0x00000000
---
start = 0x00000000
size = 0x08000000
type = DRAM
---
loader> devinfo
U-Boot devices:
device info (0):
cookie = 0x0x7b12928
type = 0x00000001
hwaddr = 00 10 75 2e ae 0f
device info (1):
cookie = 0x0x7fb2a00
type = 0x00000042
type = USB
blk size = 512
blk count = 15148032
loader> #
# not found
loader> #
# not found
loader> #
# not found
loader>
Re: Is uBoot OS specific? July 29, 2017 10:03PM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 29, 2017 10:10PM |
Admin Registered: 13 years ago Posts: 18,554 |
setenv fatdev 'usb 0:1' setenv loaderdev ${fatdev} setenv bootfile ubldr setenv fdtfile kirkwood-goflexhome.dtb setenv kernel_addr_r 0x01000000 setenv loadaddr 0x02000000 setenv pxefile_addr_r 0x00100000 setenv ramdisk_addr_r 0x02100000 setenv scriptaddr 0x00000000 fdt addr 0x100 setenv bootcmd 'usb start; fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}' printenv boot
Re: Is uBoot OS specific? July 30, 2017 01:24AM |
Registered: 6 years ago Posts: 337 |
U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700)
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 ### 0
GoFlexHome> setenv fatdev 'usb 0:1'
GoFlexHome> setenv loaderdev ${fatdev}
GoFlexHome>
GoFlexHome> setenv bootfile ubldr
GoFlexHome> setenv fdtfile kirkwood-goflexhome.dtb
GoFlexHome> setenv kernel_addr_r 0x01000000
GoFlexHome> setenv loadaddr 0x02000000
GoFlexHome> setenv pxefile_addr_r 0x00100000
GoFlexHome> setenv ramdisk_addr_r 0x02100000
GoFlexHome> setenv scriptaddr 0x00000000
GoFlexHome> fdt addr 0x100
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
GoFlexHome> setenv bootcmd 'usb start; fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}'
GoFlexHome> printenv
api_address=7b12860
baudrate=115200
bootcmd=usb start; fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}
bootdelay=3
bootfile=ubldr
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
fatdev=usb 0:1
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
fdtfile=kirkwood-goflexhome.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
kernel_addr_r=0x01000000
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=0x02000000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loaderdev=usb 0:1
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)
pxefile_addr_r=0x00100000
ramdisk_addr_r=0x02100000
scriptaddr=0x00000000
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
Environment size: 1569/131068 bytes
GoFlexHome> boot
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
reading ubldr
280361 bytes read in 88 ms (3 MiB/s)
CACHE: Misaligned operation at range [01000098, 0102acc8]
CACHE: Misaligned operation at range [0102acd0, 0102b873]
CACHE: Misaligned operation at range [0102b874, 0102d25c]
CACHE: Misaligned operation at range [0102d25c, 0102d2b8]
CACHE: Misaligned operation at range [0102d2b8, 01031da6]
CACHE: Misaligned operation at range [01031db0, 010334ac]
CACHE: Misaligned operation at range [010334b0, 01036548]
## Starting application at 0x01000098 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0x7b12860
FreeBSD/arm U-Boot loader, Revision 1.2
(root@Multiboot, Thu Jul 20 09:36:42 BST 2017)
DRAM: 128MB
Number of U-Boot devices: 2
U-Boot env: loaderdev='usb 0:1'
Found U-Boot device: disk
Checking unit=0 slice=1 partition=<auto>... good.
Booting from disk0s1:
|#/#-#
\#|#/#-#\#|#/#-#\#can't load 'kernel'
Type '?' for a list of commands, 'help' for more detailed help.
loader> boot
|#/#-#\#|#/#-#\#|#can't load 'kernel'
no bootable kernel
Re: Is uBoot OS specific? July 30, 2017 04:32AM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 30, 2017 04:43AM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 30, 2017 04:55AM |
Admin Registered: 13 years ago Posts: 18,554 |
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 ...
/boot/kernel
Re: Is uBoot OS specific? July 30, 2017 06:33AM |
Registered: 6 years ago Posts: 337 |
23/12/2016 08:21 17,900 bootcode.bin 23/12/2016 08:21 2,664,088 start.elf 23/12/2016 08:21 3,621,768 start_x.elf 23/12/2016 08:21 567,672 start_cd.elf 23/12/2016 08:21 103 config.txt 23/12/2016 08:21 9,590 rpi2.dtb 23/12/2016 08:21 301,088 u-boot.bin 23/12/2016 08:21 231,800 ubldr.bin 23/12/2016 08:21 283,886 ubldr 23/12/2016 08:21 6,161 fixup.dat 23/12/2016 08:21 9,214 fixup_x.dat 23/12/2016 08:21 2,366 fixup_cd.dat 23/12/2016 08:21 607 README 23/12/2016 08:21 1,447 LICENCE.broadcom
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 30, 2017 07:58AM |
Registered: 6 years ago Posts: 337 |
setenv fatdev 'usb 0:1' setenv loaderdev ${fatdev} setenv bootfile ubldr setenv fdtfile kirkwood-goflexhome.dtb setenv kernel_addr_r 0x01000000 setenv loadaddr 0x02000000 setenv pxefile_addr_r 0x00100000 setenv ramdisk_addr_r 0x02100000 setenv scriptaddr 0x00000000 fdt addr 0x100 setenv bootcmd 'usb start; fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf ${loadaddr}' printenv boot
Re: Is uBoot OS specific? July 30, 2017 09:42AM |
Registered: 6 years ago Posts: 337 |
Re: Is uBoot OS specific? July 30, 2017 04:30PM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 30, 2017 04:54PM |
Registered: 6 years ago Posts: 337 |
Re: Is uBoot OS specific? July 30, 2017 06:14PM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 31, 2017 01:21AM |
Registered: 6 years ago Posts: 337 |
mount -t msdosfs /dev/da0s1 /root/usb cp /usr/obj/arm/usr/src/sys/DOCKSTAR-COOLTRAINER/kernel.bin /root/usb umount /root/usbInstall world
mount /dev/da0s2a /root/usb export DESTDIR=/root/usb make installworld distrib-dirs distribution TARGET_ARCH=arm
Re: Is uBoot OS specific? July 31, 2017 02:20AM |
Admin Registered: 13 years ago Posts: 18,554 |
mount /dev/sdb1 /media/sdb1 cd /media/sdb1 ls -l
Re: Is uBoot OS specific? July 31, 2017 02:42AM |
Registered: 6 years ago Posts: 337 |
Re: Is uBoot OS specific? July 31, 2017 02:51AM |
Admin Registered: 13 years ago Posts: 18,554 |
Re: Is uBoot OS specific? July 31, 2017 03:06AM |
Admin Registered: 13 years ago Posts: 18,554 |
setenv load_bsdenv 'usb start; load usb 0:1 0x810000 /boot/uEnv.txt; env import -t 0x810000 $filesize' setenv boot_bsd 'run load_bsdenv; boot'
printenv run boot_bsd