bodhi, if you can let me have a script, i can experiment by copying various files to my boot partition until I find some combination that gets me to the login prompt As I see it you've already created a U-Boot which will load FreeBSD's uldr so can this be wriiten to nand? Presumably this can be updated if there are any modifications.by balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga Wrote: > -------------------------------------------------- > ----- > > Many thanks! > > > > The FreeBSD build calls the DTB db88f6201,dtb. D > oe > > s its name matter? > > Yes it does. > > Please get the lisiting of all files in the top 2 > level of dby balanga - uBoot
Many thanks! The FreeBSD build calls the DTB db88f6201,dtb. Does its name matter?by balanga - uBoot
> balanga, > > There are 2 files that needed to be where they are > in the rootfs: > > /boot/kernel/kernel > /kirkwood-goflexhome.dtb I presume this is what I have as db88f6281.dtb.... No more progress to relate at the moment. It seems like a FreeBSD problem now, since it is actually getting loaded. On the FreeBSD forum, someone pointed this out which mayby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga, > > There are 2 files that needed to be where they are > in the rootfs: > > /boot/kernel/kernel > /kirkwood-goflexhome.dtb I presume this is what I have as db88f6281.dtb.... No more progress to relate at the moment. It seems like a FreeBSD problem now, since it is actually gettingby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga, > > Good progress! Now we know that there are a few de > fault envs that the ubldr expects, such as loaderd > ev. > > > > Booting from disk0s1: > > > > |#/#-# > > > > \#|#/#-#\#|#/#-#\#can't load 'kernel' > > > > The kernby balanga - uBoot
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} GoFlexHoby balanga - uBoot
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# password for me: Sending boot message. Please reboot the target...#-#\#|#/#-#\#|#/#-#\#|#/#- Sending boot image... 0 % [....+xmodem: Protocol error #]0;me@ThinkPad-X61: ~/projects/kwboot-tool#by balanga - uBoot
Can I use this method to update the U-Boot on my GoFlexHome once it has booted?by balanga - uBoot
]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 % [.......by balanga - uBoot
The problem was probably with my kwboot.... I've now booted up an Ubuntu system and am working from that. 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.by balanga - uBoot
Can someone tell me what I should be seeing as I'm confused at this point. Presumably I should have my FreeBSD USB stick inserted when I power on my GFH dock, having previously started kwboot on my laptop. Should I see the new U-boot immediately? There is also the possibility that my kwboot, which I built myself does not work properly... Is there any debugging facility to see if it is actby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga, > > You did not run it the way I posted above > > QuoteAnd 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 beeby balanga - uBoot
I had deleted everything from the FAT partition on the USB stick before running this command. ./kwboot -t -B 115200 /dev/cuaU0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p | tee /var/log/kwboot.log I'm not sure what I should have seen but this what I saw:- U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM Seagate GoFlex Home SoC: Kirkwood 88F6281_A1by balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > And then at serial console, instead of running pic > ocom/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, > > > helpby balanga - uBoot
I've written my 'hello world' program on my Raspberry Pi now, and I can access it on my USB stick through my serial connection. All that is left is to run it. I assume I nead to 'load' and then 'go', but at what address?by balanga - uBoot
Thanks.The mist is beginning to clear now :) I need usb start ls usb 0 load usb 0 00000000 $filename go 00000000 to see what files I have and then load and run $filename at 00000000 Just need to work out which location I should load and run $filename. Now I need a simple program compiled for ARM to see if it works. Anyone know where I can download a 'hello, world' prby balanga - uBoot
feas Wrote: ------------------------------------------------------- > The u-boot website has all the info you might want > . > > http://www.denx.de/wiki/U-Bootdoc/BasicComman > dSet Thanks, I've already looked at that but there isn't much in the way of examples. For instance ls ls -list files in a directory (default /) Usage: ls <interface> [&lby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga, > > > I have this file but not sure what to do with it > .. > > . Do I copy it with this name to the FAT partiti > on > > of my FreeBSD USB stick or do I use my Debian st > ic > > k? > > When you connect with serial console, like here: > > > Connby balanga - uBoot
I'm trying to get a better idea about the way uBoot works and have yet to figure out how the filesystem works. Hopefully some can give me some guidance.... For instance, how can I see what devices or files are available and how to view them. Are there uBoot versions of Unix commands like ls,cat, vi, lsblk?by balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > > So if your armV5 BSD rootfs for the GoFlexHome has > the same file structure then we know how to boot i > t. > > Attached in this post is the new GFHome u-boot: u > boot.2017.05-tld-2.goflexhome.mtd0.kwb I have this file but not sure what to do with it... Do I copy it with this name to theby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > > OK, we'll use the rPi example. This might help https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Piby balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > balanga, > > Everything looks quite simple. > > Btw, this rPi uboot looks a bit primitive (barebon > e). Well if you can suggest how to improve it, I will pass on the info.. > - Now you will need to find out why your GFHome's > Arch uboot does not support bootelf. Perhaps just >by balanga - uBoot
feas Wrote: ------------------------------------------------------- > balanga Wrote: > -------------------------------------------------- > ----- > >How do I interrupt the serial console? > > > > > > Here's the first part of it:- > > > > > > Hit any key to stop autoboot: 2 1 0[ > /b] > > Thanks for that...by balanga - uBoot
bodhi Wrote: ------------------------------------------------------- > 3. Interrupt rPi serial console, get the current u > -boot envs, so we can see how the envs were execut > ed How do I interrupt the serial console? I'm using 'cu' on FreeBSD to view the terminal session. https://www.freebsd.org/cgi/man.cgi?cu(1) No idea what is used on Linux, so Iby balanga - uBoot
feas Wrote: ------------------------------------------------------- > That is a module that was probably not selected to > save space. Did you compile the u-boot and have it > turned on to compile it or use an existing one whi > ch was more than likely turned off to save space f > rom unneeded modules? I didn't compile it, I'm just trying to familiarise myselfby balanga - uBoot
According to https://www.denx.de/wiki/view/DULG/UBootStandalone there is a "Hello World" Demo which can be run like this:- => loads ## Ready for S-Record download ... ~>examples/hello_world.srec 1 2 3 4 5 6 7 8 9 10 11 ... ## Start Addr = 0x00040000 I'm trying to work through some of the examples at https://www.denx.de/wiki/view/DULG/UBootCommandLineInterfacby balanga - uBoot
The microSDHC cards contains the following files on a FAT partition:- 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 rootby balanga - uBoot
bodhi Wrote: > > I think it is best to look at what's in your rPi a > nd do a similar boot procedure. If you have seria > l console connected to rPi then you could reboot a > nd post the serial log here. Here's the first part of it:- Connected U-Boot 2015.04 (Oct 14 2016 - 16:33:57) DRAM: 944 MiB WARNING: Caches not enabled RPI 2 Model B MMC: bcby balanga - uBoot