Bash

From wikiPodLinux

Bash is a UNIX command shell written for the GNU project. Its name is an acronym for Bourne-again shell.

Compiling for iPod

First add the line

void sh_xfree();

to the start of the file lib/sh/shmatch.c

then run

./configure --host=arm-elf LDFLAGS=-Wl,-elf2flt --with-gnu-malloc=no
make

If it gives you an error about the size command, ignore it (i'll fix this later).

Then simply copy the bash binary to your ipod's /bin directory, and make it executable

cp bash /mnt/ipodroot/bin/bash
chmod +x /mnt/ipodroot/bin/bash


No guarantees this works at all, binarys and diffs will come later.

  • note broken on bash-3.1 (osx10.4)
Retrieved from "http://ipodlinux.org/Bash"
Navigation



  • Google Search (http://www.google.com/custom?sa=Google+Search&cof=S%3Ahttp%3A%2F%2Fwww.ipodlinux.org%3BVLC%3Apurple%3BAH%3Acenter%3BBGC%3Awhite%3BLH%3A141%3BLC%3Ablue%3BL%3Ahttp%3A%2F%2Fipodlinux.org%2Fstylesheets%2Fimages%2Fwiki.png%3BALC%3Ablue%3BLW%3A128%3BT%3Ablack%3BAWFID%3A70a74ab66f4d59ae%3B&domains=ipodlinux.org&sitesearch=ipodlinux.org)