NSLU2-Linux
view · edit · print · history

0. Intro.

    nslu2 cross development inside a sandbox,with full operation.
 You login the sbox,choose target_nslu2,then exec_method (emulation or cputransparency).
 Just compile any source,eventually with arm_patch found in openembedded/packages_openslug.
 then run it from this sbox !
  (cputransparency executes on real device,so far better than emulation ,such as qemu )

1. install scratchbox :core,lib ,toolchains

 using: http://scratchbox.org/debian/
          http://www.scratchbox.org/download/files/sbox-releases/1.0/src/

 http://www.scratchbox.org/documentation/user/scratchbox-1.0/html/installdoc.html

 Scratchbox packages

Base (required):

  scratchbox-core - environment, common tools and host compiler
  scratchbox-libs - libraries required by core, devkits and toolchains

Development kits (optional):

  scratchbox-devkit-debian - environment and tools for Debian development
  scratchbox-devkit-doctools - document generation tools
  scratchbox-devkit-perl - additional Perl modules 

Toolchains (optional):

  scratchbox-toolchain-arm-gcc3.3-glibc2.3
  scratchbox-toolchain-i686-gcc3.3-glibc2.3
  scratchbox-toolchain-arm-gcc3.2-uclibc20040229
  scratchbox-toolchain-i386-gcc3.2-uclibc20040229
 2. Build armeb-toolchain  (nslu2. This builds only Dan Kegel toolchain)
   You can also build custom toolchain packages. See Scratchbox toolchains [5].
    http://scratchbox.org/wiki/CrossToolToolchain  'armv5b-softfloat'


    Start Scratchbox with command:
       $ /scratchbox/login
    Follow these steps to create a new cross-compilation target:
   Start sb-menu:
      [sbox-HOST: ~] > sb-menu
 3. Build device_tools   for armeb_target (needs to communicate/debug thru CPU_transparency with nslu2)  
    Device_tools:  sbrshd  fakemon  gdbserver,gdb (DDD)
    Download those src files into /scratchbox/packages
    Login scratchbox,select HOST then untar src ,select target armeb
    sbox> make sbrshd  to build this daemon
    fakemon needs to be patched with 
     http://scratchbox.org/repos/1.2/sb-toolchains/device_tools/fakeroot/files/communication.patch
     and compile with 
     sbox-HOST>gcc-o ../lib/libfakeroot/libfakeroot-tcp.so.0.0.1 libfakeroot.c communicate.c -fPIC -DPIC -shared -lpthread -ldl -Wl,-soname -Wl,libfakeroot-tcp.so.0

for the rest about fakeroot,follow

    http://scratchbox.org/documentation/docbook/fakeroot.html

   4. install on nslu2 side sbrshd ,gdbserver,openssh
      on PC side ssh,nfs,

   You obtain a beautiful scratchbox-armeb connected with nslu2 to play
view · edit · print · history · Last edited by nnhoan.
Originally by wangji.
Page last modified on January 29, 2006, at 01:15 AM