Talk:Compile Programs on the NAS
From NAS-2000.org
Hmm, I tried to extract the buildroot with tar, but it allways stops after 10 minutes of extracting at the same place with the error
./usr/lib/gcc/armv4l-unknown-linux-gnu/3.4.4/include/g++-v3/armv4l-unknown-linux-gnu/bits tar: Unknown typeflag: 0x4c ././@LongLink tar: Unrecognised file type
I tried to download the stage3 tarball from a different server but it didnt help... Any idea?
-> You are so rigth I forgot that I had this problem.
An easy solution is to mount the NAS via NFS and extract the *.tbz2 file on your computer to the NAS :)
"emerge portage" fails with this error:
Calculating dependencies \!!! Cannot resolve a virtual package name to an ebuild. !!! This is a bug, please report it. (virtual/libiconv-0)
And I can't "emerge" vim etc. (same error).
Can you help?
[ "emerge portage --nodeps" doesn't help either. Building an updated portage works, but then "emerge --sync" fails (invalid rsync options). Is the Arm architecture still supported by Gentoo? ]
[edit] Compiling Programs on NAS4220 /NAS2000
I struggled with this for a while but have finally got a full LInux ARM build on my Nas4220 (I assume it will work for nas2000 also)
I used the debian "SargeBook_v5.tgz" as a starting off point, which is a Psion ARM install
"SargeBook - Debian 3.1 "stable" for netBook" [1] about 96MB
This is the actual file [2]
I basically used the existing how-to which is gentoo based to give me an idea of what to do.
These are the notes I made :
1) copy to a directory on the NAS box
2) tar xvf Sargebook V5.tgz
3) mount -t proc none ./proc
4) usr/sbin/chroot ./ /bin/bash
5) edit /etc/resolv.conf
6) edit /etc/apt/sources.list to point to a closer mirror
7) apt-get update
8) apt-get install findutils
9) apt-get install iptraf
10) apt-get install apt-utils
11) apt-get upgrade
This was from memory, so I may have missed something, I use the following shell script to kick it off
#!/bin/sh<br>
CWD=`pwd`
cd /mnt/md1/public/debian/
mount -t proc none ./proc
mount -t sysfs none ./sys
mount -t usbfs none ./proc/bus/usb
usr/sbin/chroot ./ /bin/bash
cd $CWD
exit