I found when "TEXT_BASE" of mtd0 uboot was 0x600000, uboot was only relocated to 0x600000, when "TEXT_BASE" of mtd0 uboot was 0xc00000, uboot was relocated to 0x600000 and 0xc00000. I believe mtd0 uboot can't be loaded to SDRAM and run from SDRAM by another mtd0 uboot because they are relocated to the same SDRAM address 0x600000. To test mtd0 uboot in SDRAM, it shoulby DockstarPBX - uBoot
ecc Wrote: ------------------------------------------------------- > DockstarPBX Wrote: > -------------------------------------------------- > ----- > > I did a search of "TEXT_BASE", it didn't seem > "TEXT_BASE" was used for "Marvell" or > "sheevaplug" > > in uboot source code. > > See arch/arm/cpu/arm926ejsby DockstarPBX - uBoot
nevtag Wrote: ------------------------------------------------------- > If you flash it too mtd0, check out if 0x00600000 > for TEXT_BASE works. > I have the feedback that the u-boot works on mtd0. Either 0x00600000 or 0x00c00000 for TEXT_BASE worked. I did a search of "TEXT_BASE", it didn't seem "TEXT_BASE" was used for "Marvell" or "shby DockstarPBX - uBoot
nevtag Wrote: ------------------------------------------------------- > > tar -xzf u-boot-2010.09.tar.gz > cd u-boot > patch -p1 < 2010.09-LED-SDIO.patch > chmod +x build > codesourcery-arm-2009q3.sh > ./build > I was able to apply you patch to 2010.09 source with a single error on "/tools/env/Makefile": I added "-static" manually. I waby DockstarPBX - uBoot
nevtag Wrote: ------------------------------------------------------- > @ygator > > You need to add this to > include/configs/sheevaplug.h > > > /* additions for new ARM relocation support */ > #define CONFIG_SYS_SDRAM_BASE > 0x00000000 > /* Kirkwood has 2k of Security SRAM, use it for SP > */ > #define CONFIG_SYS_INIT_SP_ADDRby DockstarPBX - uBoot
After changing "mkDockstar.mtd0" from "sed -i 's/^TEXT_BASE = 0x00.00000/TEXT_BASE = 0x00600000/' board/Marvell/sheevaplug/config.mk" to "sed -i 's/^TEXT_BASE = 0x00.00000/TEXT_BASE = 0x00c00000/' board/Marvell/sheevaplug/config.mk" I was able to build mtd0 uboot, tested it on SDRAM and flashed it to NAND. I'm not sure why Jeff set TEby DockstarPBX - uBoot
nevtag Wrote: ------------------------------------------------------- > @ygator > I downloaded latest u-boot, patched it with my > patch and take your build steps. When I set > TEXT_BASE to 0x00c00000 it's running on dockstar > at 0x800200. > They made changes to relocation, you can read more > here. > http://comments.gmane.org/gmane.comp.boot-loaders. >by DockstarPBX - uBoot
nevtag Wrote: ------------------------------------------------------- > @ygator > I downloaded latest u-boot, patched it with my > patch and take your build steps. When I set > TEXT_BASE to 0x00c00000 it's running on dockstar > at 0x800200. > They made changes to relocation, you can read more > here. > http://comments.gmane.org/gmane.comp.boot-loaders. >by DockstarPBX - uBoot
I have rolled back to 2010.06 source code and built "doimage" from Pogoplug uboot source code to build "uboot.mtd0.kwb". However, the "uboot.mtd0.kwb" failed to boot from SDRAM. The patch from Jeff's link may not be the one Jeff used to build his recent mtd0 uboot.by DockstarPBX - uBoot
Is seems only Jeff's "uboot.mtd0.kwb" and "uboot-original-mtd0.kwb" can be tested by using: tftpboot 0x800000 uboot.mtd0.kwb go 0x800200 Several people have followed http://jeff.doozan.com/debian/uboot/build_uboot.htm but were not able to boot from SDRAM. I was able to boot mtd3 uboot from SDRAM, but mtd0 uboot always hang after "go 0x800200". Doesby DockstarPBX - uBoot
That link is very helpful. It seems Jeff's "mkDockstar.mtd0" is outdated, "doimage" has been replaced by "mkimage". Does anyone know how to use "mkimage" to replace the following in Jeff's "mkDockstar.mtd0"? ##################################################### make u-boot.kwb echo "Removing bad u-boot.kwb" rm u-booby DockstarPBX - uBoot
I was able to download old u-boot source code and built u-boot to the last step but get the following error: bash: ./doimage: cannot execute binary file I have done "chmod +x doimage" and tried as user and root. Does anyone know what does "doimage" do and if source code is available? Thanksby DockstarPBX - uBoot
Thanks. I found "u-boot-a59e27997637a2395ae2cc7f809127f24119a167.tar.gz" (06/2010). It seems to me download "tarball" is most preferable to avoid source/patch mismatch. Also tarballs seem much faster to download. I don't think I'm going to use git or snv to download source again.by DockstarPBX - uBoot
I tried to follow Jeff's link http://jeff.doozan.com/debian/uboot/build_uboot.htm to build uboot from source, but patch failed for "makefile" in "/tools/env". After adding "-static" to "makefile", I got many SDRM related errors. Has anyone tried to build uboot recently? Does anyone know how to roll back to old source code?by DockstarPBX - uBoot
I have used tftpboot with address of 0x800000, 0x1000000, and etc. I have a question: What is base address of Dockstar SDRAM? Is it 0x00000000 or 0x00800000? I have tried tftpboot with address from 0x00000000 to 0xf0000000 without getting any error message.by DockstarPBX - uBoot
have you tried ""setenv bootcmd 'ruubifs_bootcmd' "?by DockstarPBX - Debian
I did not read all lines of your envs, the problem is in your "bootcmd", it tries to load mtd0 (Pogo linux) to SDRAM but that won't work without stock u-boot. I can post correct envs after I get home today. Others may point you to the right "bootcmd". You may want change it by "setenv bootcmd 'run bootcmd_usb; ....' "by DockstarPBX - Debian
That link is for re-flashing Dockstar with stock uboot. Jeff's U-boot does not have "resetenv". You may try to set and save envs using "setenv" and "saveenv". If you use "prinenv" to print out your envs and post here (with serial number, mac address removed) , people may help you to set the correct envs.by DockstarPBX - Debian
Actually when I selected "ramdisk" and built OpenWrt, I did get new file systems in "bin", since the file names are same as before, I thought they were not "ramdisk" version of file systems. (I believe older versions of OpenWrt produced different file names for ramdisk version of file systems, according to this link: http://blog.vodkamelone.de/archives/148-Installinby DockstarPBX - uBoot
I was able to boot Openwrt from TFTP with help from ecc and others. I'd like to make TFTP boot the first in my boot sequence. It seems by default TFTP will wait long time and try many times if the file is not available. Are there ways to make TFTP in Jeff's u-boot to time out sooner and try only once before it gives up so u-boot can boot the next in "bootcmd" list?by DockstarPBX - uBoot
Thanks for the information. Actually I' m trying to find out if it's possible to boot from network every time without using external UBS drive or internal NAND flash. Is it possible to run Openwrt on SDRAM without external USB or internal NAND flash? After I build ramdisk version "vmlinux.elf" I got: Filename 'vmlinux.elf'. Load address: 0x800000 Loading: *by DockstarPBX - uBoot
I have downloaded openwrt-kirkwood-uImage and openwrt-kirkwood-rootfs.tgz, I can load uImage using "tftpboot 0x800000 openwrt-uImage" and load root-fs using "tftpboot 0x1100000 openwrt-rootfs.tgz". I tried to use "bootm 0x800000 0x1100000" to boot, but got the following: Using egiga0 device TFTP from server 192.168.15.110; our IP address is 192.168.15.105 Fiby DockstarPBX - uBoot
I set bootcmd as you did but was able to boot to pogo Linux without USB devices. Something else might be wrong. You don't need Jtag, what you need is a serial cable to reset environment variables if you can't boot into Linux and you don't have net console access.by DockstarPBX - Debian
If I want to boot your re-built Openwrt uImage and root-fs, what should I do from serial console? How should I setup U-boot such that Doskstar will boot to Openwrt after power up? I have not used tftpboot to boot from network before, detailed instructions are appreciated.by DockstarPBX - uBoot
I'm wandering if it's possible to configure Jeff's U-boot to boot from network to Debian or Openwrt or Pogolug Linux.by DockstarPBX - uBoot
If you have serial cable to access u-boot., you may be able to use tfpt to install original U-boot. I used Jtag to install original U-boot and then used serial cable to re-flash DockStart linux, from there I used Jeff's scsript to install Jeff's U-boot and Debian on flash. You may want to check this link (the last few posts): http://plugapps.com/forum/viewtopic.php?f=18&t=195&by DockstarPBX - uBoot
ChrisC Wrote: ------------------------------------------------------- I've > been following directions to restore the original > u-boot, with the instructions here: > http://www.plugapps.com/index.php5?title=Hardware: > _Seagate_DockStar_Reflashing > > That link is for recovering original Dockstar linux, not U-Boot.by DockstarPBX - uBoot
You can't use Jeff's new boot loader to recover Dockstar Linux. You need original U-Boot.by DockstarPBX - uBoot
In general, what are the best ways to add modules to NAND with read only file systems? Should I remount as rw, apt-get and remount as ro, or should I rebuild file system on USB and then copy to NAND?by DockstarPBX - Debian