• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: OpenOCD for the Sheeva Plug  (Read 1355 times)
wstupar
Newbie
*

Karma: 0
Posts: 33


View Profile
« on: June 28, 2009, 02:54:36 PM »

This may not be appropriate for the PlugComputer forum, but I don't know where else to turn. I am wanting to install the  new (good) U-bo0t on the plug. I am reading the http://plugcomputer.org/plugwiki/index.php/Das_U-boot_plug_support. I have gotten down to the "How to download..." and "On Linux host setup OpenOCD...". Then I am reading http://www.openplug.org/plugwiki/index.php/Setting_Up_OpenOCD_Under_Linux.

I downloaded http://www.intra2net.com/en/developer/libftdi. The instructions say "Follow the instructions included in the version supplied for your architecture. I could find no instructions. I tried to configure and build the library but I get

checking for libusb-config... /usr/local/lib/libusb-1.0.s0.0.0.0:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
./configure: line 19885: /usr/local/lib/libusb-1.0.s0.0.0.0:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory
./configure: line 19886: /usr/local/lib/libusb-1.0.s0.0.0.0:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory
checking if libusb version is >= 0.1.7... ./configure: line 19899: /usr/local/lib/libusb-1.0.s0.0.0.0:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory

yum says that I do have libsub installed. Please help this Linux newbie
Logged

restamp
Global Moderator
Sr. Member
*****

Karma: 4
Posts: 273


View Profile
« Reply #1 on: June 28, 2009, 06:34:14 PM »

I'm not sure I understand:  If your only desire is to load a new Uboot, there are simpler options than installing a whole OpenOCD environment on an Intel Linux box.  Perhaps the simplest way is to run Rabeeh Khoury's SheevaPlug Installer:

http://www.openplug.org/plugwiki/index.php/SheevaPlug_Installer
http://plugcomputer.org/plugforum/index.php?topic=355

This will install a fairly nice Uboot (which has the ability to boot from an SDcard), something the official version doesn't support.  The installer actually uses a statically compiled version of openocd to access the Plug to write the new Uboot and environment.  It then automatically goes on to install a fairly recent Unix, but if you are quick to interrupt it, you can upgrade the Uboot w/o erasing your existing Unix.

If you still have a viable Uboot on your Plug, I think there is also a Uboot command to upgrade itself by copying a new version of the Uboot onto the NAND, which may be a simpler approach.

Don't get me wrong:  I'm sure a comprehensive OpenOCD environment is useful for development and experimentation, but it isn't a prerequisite for simply installing a new Uboot.
Logged

rooster
Guest
« Reply #2 on: June 29, 2009, 09:07:56 AM »

Hi,
I posted a OpenOCD HOWTO for windows and linux: http://plugcomputer.org/plugwiki/index.php/HowTo:Build_OpenOCD
The installer (Sheevaplug_installer) is ready to use and you can use the configuration files from there.

If you want to use SVN version you will need to change the sheevaplug.cfg nand erase call, the new openocd accepts address and size.

For example from: nand erase 0 5 6
To:                    nand erase 0 0xa0000 0x40000
Logged

Pages: [1]
Print
Jump to: