• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2 3
1  Linux Stuff / General Linux questions / Re: Cross-compiling applications for the SheevaPlug? on: April 11, 2013, 05:01:24 AM
For the benefit of other newbies struggling to cross-compile applications on a Linux PC for the SheevaPlug, I made two mistakes in the post above:

1. The Plug_Host_SWsupportPackageLinuxHost.zip contains two compiled file: gcc.tar.bz2 is indeed a Bz2 file, but "Linux Host Filesystem - rootfs.tar.bz2" is actually a gzip file. I ran this:
Code:
mv "Linux Host Filesystem - rootfs.tar.bz2" rootfs.tar.gz ; tar xzvf rootfs.tar.gz

2. To compile a basic app like "Hello, world", cd to LinuxHost/gcc/bin, and run "arm-none-linux-gnueabi-gcc -o hello hello.c", which will create a binary that uses shared libraries.

At this point, I'm surprised it works although I didn't specify neither the path to the C library nor its name. Maybe Marvell's toolchain is hard-linked to figure this out by itself by reading files from LinuxHost/rootfsv1.0.
2  Linux Stuff / General Linux questions / Re: Cross-compiling applications for the SheevaPlug? on: April 08, 2013, 06:41:39 AM
Also, I notice a discrepancy between the Linux version (3.5.0-17, 2.6.14, 2.6.32-5-kirkwood): Does it mean that the Marvell toolchain was compiled with Linux 2.6.14?

Code:
ubuntu.host# uname -a
Linux Aspire-3810T 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

sheeva# file hello
hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped

sheeva# uname -a
Linux debian 2.6.32-5-kirkwood #1 Mon Feb 25 13:55:40 UTC 2013 armv5tel GNU/Linux
3  Linux Stuff / General Linux questions / Re: Cross-compiling applications for the SheevaPlug? on: April 08, 2013, 06:38:09 AM
I successfully compiled and ran "Hello, world!" thusly:

1. Unzip Marvell's Plug_Host_SWsupportPackageLinuxHost.zip
2. cd LinuxHost/gcc/bin
3. Create "Hello, World!" file, and save as hello.c
4. gcc -o hello hello.c
5. Copy binary to embedded host
6. chmod +x hello
7. Run hello

But to compile real applications, I assume I must configure the host so it knows where to find the include files and the libraries, provided the application doesn't need some files not provided by the Marvell file.
4  Linux Stuff / General Linux questions / Re: Cross-compiling applications for the SheevaPlug? on: April 08, 2013, 05:27:38 AM
I downloaded and unzipped the "Host SW Support Package For Linux" file from the Downloads section, but don't know what to do next:

Code:
drwxr-xr-x 11 fred fred     4096 Feb 26  2008 gcc/
drwxr-xr-x 10 root root     4096 Feb 25  2009 rootfsv1.0/

The gcc/ directory contains no information on how to set things up to cross-compile applications.
5  General Category / General Discussion / Re: Which ARM toolchain ? on: April 08, 2013, 04:19:17 AM
Hello

The cross-compiler for the SheevaPlus seems available here:

"Host SW Support Package For Linux"
http://www.plugcomputer.org/downloads/plug-basic/

I have a couple of questions:
1. Will this cross-compiler run on any Linux host, or is it restricted to a specific distro?
2. How to set it up? After unzipping the file, there are two directories: gcc/ and rootfsv1.0/. How do we go from this to a running binary of "Hello,world!"?

Thank you.
6  General Category / General Discussion / Re: Cross compiling FFMPEG on: April 07, 2013, 03:19:42 PM
Hello

What toolchain did you use to cross-compile ffmpeg for the SheevaPlug?

Thank you.
7  Linux Stuff / General Linux questions / Cross-compiling applications for the SheevaPlug? on: April 05, 2013, 07:00:52 AM
Hello

I checked the Documentation section on the Plug Computer site, but didn't find how to set up a cross-compiler on a PC running Linux, and compile an application for the SheevaPlug (armv5tel processor: Feroceon 88FR131 rev 1 (v5l)).

After upgrading the SheevaPlug from its stock Ubuntu 9.04 to Debian 6, I noticed that the latest release of Nginx is 0.7.67, while support for the uwsgi protocol requires release 0.8.40 or newer.

Is there a good tutorial on how to cross-compile on Linux for the SheevaPlug?

Thank you.
8  Hardware and U-Boot firmware / U-Boot stuff / Re: Latest Uboot? on: March 22, 2013, 04:11:02 PM
Thank you. I'll stick to something that is known to work flawlessly :-)
9  Linux Stuff / General Linux questions / [Debian 6.0] Which services can I safely remove? on: March 22, 2013, 04:03:22 PM
Hello

I'm no expert, so would rather check with you before possibly breaking things.

Apparently, Debian relies on symlinks in /etc/rc3.d/ to load services, and it says this:
Code:
lrwxrwxrwx  1 root root   18 Mar 22  2013 S01bootlogs -> ../init.d/bootlogs*
lrwxrwxrwx  1 root root   17 Mar 22  2013 S13portmap -> ../init.d/portmap*
lrwxrwxrwx  1 root root   20 Mar 22  2013 S14nfs-common -> ../init.d/nfs-common*
lrwxrwxrwx  1 root root   17 Mar 22  2013 S16rsyslog -> ../init.d/rsyslog*
lrwxrwxrwx  1 root root   13 Mar 22  2013 S17atd -> ../init.d/atd*
lrwxrwxrwx  1 root root   14 Mar 22  2013 S17cron -> ../init.d/cron*
lrwxrwxrwx  1 root root   15 Mar 22  2013 S17exim4 -> ../init.d/exim4*
lrwxrwxrwx  1 root root   18 Mar 22  2013 S18rc.local -> ../init.d/rc.local*
lrwxrwxrwx  1 root root   19 Mar 22  2013 S18rmnologin -> ../init.d/rmnologin*
lrwxrwxrwx  1 root root   23 Mar 22  2013 S18stop-bootlogd -> ../init.d/stop-bootlogd*

I have no need for NFS, so I guess I can remove portmap and nfs-common. Like, I don't need an SMTP server, so I could remove exim. What about the rest?

Thank you.
10  Linux Stuff / General Linux questions / Re: [Martin Michlmayr's installer] Stuck at "Partition disks" on: March 22, 2013, 03:44:52 PM
Thanks to that tutorial, I now have Debian 6.0 running on my SheevaPlug Grin
11  Linux Stuff / General Linux questions / Re: [Martin Michlmayr's installer] Stuck at "Partition disks" on: March 22, 2013, 09:16:20 AM
For the benefit of other newbies: Although the tutorial does say that...
Quote
The Debian installer doesn't currently support installations to on-board flash storage, but you can use it to install to USB, SD or eSATA. In order to proceed, you will therefore need either a USB stick (or disk), an SD card or an external disk with an eSATA port.
... I was confused because it said further down that it's possible to download the installer from a TFTP server.

But that was really the installer: Debian itself cannot be installed directly on the NAND flash memory, so you really need to first plug a USB stick into the Plug before downloading and running the installer.

With the USB stick plugged in, you'll get to this better-looking screen:
Code:
+------------------------¦ [!!] Partition disks +-------------------------+
¦                                                                         ¦
¦ The installer can guide you through partitioning a disk (using          ¦
¦ different standard schemes) or, if you prefer, you can do it            ¦
¦ manually. With guided partitioning you will still have a chance later   ¦
¦ to review and customise the results.                                    ¦
¦                                                                         ¦
¦ If you choose guided partitioning for an entire disk, you will next     ¦
¦ be asked which disk should be used.                                     ¦
¦                                                                         ¦
¦ Partitioning method:                                                    ¦
¦                                                                         ¦
¦          Guided - use entire disk                                       ¦
¦          Guided - use entire disk and set up LVM                        ¦
¦          Guided - use entire disk and set up encrypted LVM              ¦
¦          Manual                                                         ¦
¦                                                                         ¦
¦     <Go Back>                                                      

However, Martin's tutorial ends with:
Quote
Your plug computer is now ready to boot Debian from USB, SD or eSATA and it will automatically do so whenever you turn on the plug computer

Since the Plug has a 512MB NAND flash memory, it'd be too bad not to use it and be required to keep a USB stick plugged permanently to run Debian while this wasn't necessary to run Ubuntu.

Thankfully, Matthias Blaicher's tutorial explains how to copy Debian from the USB stick to the NAND flash memory: In the "Partition disks" where I used to be stuck, I chose the default option "Guided - use entire disk", and the Debian installer detected the USB stick as "SCSI1 (0,0,0) (sda) - 3.9 GB Kingston DT 101 G2", and completed the install onto the stick.

I'll report back once the installer is done copying Debian to the stick.
12  Linux Stuff / General Linux questions / Re: [Martin Michlmayr's installer] Stuck at "Partition disks" on: March 22, 2013, 07:30:46 AM
The documentation says
Quote
The installer knows about all supported plug computers and will create a bootable kernel and ramdisk at the end of the installation. The installer will also offer a partition layout that is known to work. If you want to choose a different layout, make sure that you create a small (ca. 150 MB) /boot partition with the ext2 filesystem.

Could it be that upgrading Uboot wiped out the NAND and I first need to create an empty partition before running the installer?

If so, how do to this from Uboot?
13  Linux Stuff / General Linux questions / [Martin Michlmayr's installer] Stuck at "Partition disks" on: March 22, 2013, 07:21:18 AM
Hello

I'm following Martin Michlmayr's "Installing Debian on Plug Computers" to upgrade my SheevaPlug from Ubuntu to Debian.

After successfully upgrading Uboot, I used a TFTP server to download and run MM's installer, but I'm stuck at this screen:
Code:
------------------------¦ [!!] Partition disks +-------------------------+
  ¦                                                                         ¦
  ¦ This is an overview of your currently configured partitions and mount   ¦
  ¦ points. Select a partition to modify its settings (file system, mount   ¦
  ¦ point, etc.), a free space to create partitions, or a device to         ¦
  ¦ initialize its partition table.                                         ¦
  ¦                                                                         ¦
  ¦            Undo changes to partitions                                   ¦
  ¦            Finish partitioning and write changes to disk                ¦
  ¦                                                                         ¦
  ¦     <Go Back>                                                           ¦
  ¦                                                                         ¦
  +---------------------------------------------------------------------

I tried "Finish partitioning and write changes to disk" and hit ENTER, but it said:
Quote
No root file system is defined. Please correct this from the partitioning menu.

So next, I tried "Undo changes to partitions", but I get a blank screen, nothing happens. Hit CLTR+C, got back to "Partition disks" menu, but don't know what else to try.

Any idea?

Thank you.
14  Hardware and U-Boot firmware / U-Boot stuff / Latest Uboot? on: March 22, 2013, 05:58:32 AM
Hello,

I'm reading Martin Michlmayr's "Upgrading SheevaPlug's U-Boot" to upgrade my SheevaPlug from Ubuntu to Debian, and apparently, this requires first upgrading Uboot from its old, Marvell version.

The article includes this link to Uboot:

Code:
http://people.debian.org/~tbm/u-boot/2011.12-3/sheevaplug/u-boot.kwb

Before I go ahead, is there a more recent Uboot for the SheevaPlug?

Thank you.
15  General Category / General Discussion / Re: Sheevaplug installer - version 1.0 on: March 21, 2013, 04:40:11 PM
Thanks for the link.

I'm a bit confused about what to do/choose:

1. The "Sheeva Plug Installer 1.0" is 145 MB: What does it contain?

Edit: Apparently, the Sheevaplug Installer uses Ubuntu

2. After running mgillespie's Alternative Debian install, I'm apparently required to install the "Sheeva Plug Installer 1.0"", and replace its rootfs.tar.gz with mgillespie's: What's the difference between the two rootfs.tar.gz?

Edit: Apparently, mgillespie's rootfs.tar.gz uses Debian.

3. What about the Gentoo files? Is Gentoo a better alternative to Debian when upgrading from the outdated Ubuntu 9.04?

Thank you.
Pages: [1] 2 3