Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on a Slug? Linksys NSLU2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
linbox
n00b
n00b


Joined: 10 Apr 2004
Posts: 41

PostPosted: Fri Jul 06, 2007 4:19 pm    Post subject: compile problems of openslug Reply with quote

*********solved*********
I downloaded the original tar for openslug-3.10-beta and it worked
*********solved*********


Code:

NOTE: exceptions.TypeError:iterable argument required while evaluating:
${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}
ERROR: Error in executing:
ERROR: Exception:exceptions.TypeError Message:iterable argument required
ERROR: Printing the environment of the function
ERROR:  0001:def __anonfunc():
ERROR:  0002:    base_oldbitbake_workarounds(d)
ERROR:  0003:    base_after_parse(d)
ERROR:  0004:
ERROR:  0005:    import bb
ERROR:  0006:    # do_patch tasks require PATCHTOOL-native to have staged
ERROR:  0007:    patchdeps = bb.data.getVar("PATCHTOOL", d, True)
ERROR: iterable argument required while parsing


I setup the environment like this

Development with Gentoo
It is recommended, but not essential, to make a new user, to build using the Master Makefile.
Download the makefile as above and run:
make setup-host-gentoo
This will unmask montone-0.24 and boost-1.32.0 NB: Root access required
Note: After a 2005.1 installation, the permissions of my root drive turned out to be wrong (340?). The correct permissions are 755 - if you do not check and correct this, the perl and boost builds will fail.

Alternatively, you can emerge required packages in Gentoo with (As of 2006.1, Jan-2007):
At /etc/portage/package.keywords:
dev-embedded/bitbake ~amd64
dev-libs/boost ~amd64
dev-embedded/bitbake ~amd64
dev-python/PyQt? ~amd64
dev-python/sip ~amd64
emerge boost bitbake PyQt? sip monotone bitbake
In addition, it needs another two packages:
emerge app-misc/git dev-util/diffstat
Then:
make update
When doing so, you will get an error message saying that the monotone database needs to be converted. You need to do the following:
mtn --db monotone/nslu2-linux.mtn db migrate
mtn --db monotone/nslu2-linux.mtn db regenerate_caches
Now you are ready to build the packages.
make openslug
for the whole nine yards or
make openslug-packages
just for the openslug packages

thanks for any help

Guenter
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Mon Jul 09, 2007 8:36 pm    Post subject: Reply with quote

so this means that we could soon have a gentoo firmware ? I've been having problems with soma packages
Code:
[ebuild  N    ] sys-apps/busybox-1.6.0  USE="make-symlinks -debug -savedconfig (-selinux) -static" 0 kB
[ebuild  N    ] sys-libs/uclibc-0.9.28.3  USE="-build -debug -hardened (-iconv) -ipv6 -minimal (-nls) -pregen -savedconfig -uclibc-compat -userlocales -wordexp" 0 kB

and with iptables get it to block some ports only i think this is mostly because im booting from a different kernel (debian openslug).
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Tue Aug 21, 2007 3:04 am    Post subject: i keep getting this error trying to compile busybox. Reply with quote

i keep getting this error when compiling busybox.
Code:

/DISCARD/
 *(.note.GNU-stack)
OUTPUT(busybox_unstripped elf32-bigarm)
collect2: ld returned 1 exit status
armeb-softfloat-linux-uclibc-strip: 'busybox_unstripped': No such file
cannot stat `busybox_unstripped': No such file or directory
cannot stat `busybox_unstripped.bak': No such file or directory
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/busybox-1.5.1

>>> Install busybox-1.5.1 into /var/tmp/portage/sys-apps/busybox-1.5.1/image/ category sys-apps
cannot stat `busybox_unstripped': No such file or directory

!!! ERROR: sys-apps/busybox-1.5.1 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_install
  ebuild.sh, line 1067:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  busybox-1.5.1.ebuild, line 179:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.5.1/temp/build.log'.


this is my emerge --info output
Code:
MiniMe torrents # emerge --info
Portage 2.1.2.9 (uclibc/arm, gcc-3.4.6, unavailable, 2.6.16 armv5teb)
=================================================================
System uname: 2.6.16 armv5teb XScale-IXP42x Family rev 1 (v5b)
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 20 Aug 2007 06:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="arm"
AUTOCLEAN="yes"
CBUILD="armeb-softfloat-linux-uclibc"
CFLAGS="-march=armv5t -mtune=xscale -Os"
CHOST="armeb-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=armv5t -Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"PORTAGE_TMPDIR="/var/tmp"PORTDIR="/usr/portage"SYNC="rsync://rsync.gentoo.org/gentoo-portage"USE="apache2 arm bash-completion bzip2 ccache cli cracklib crypt curl curlwrappers ftp gzip httpd idn lighttpd logrotate mail mailwrapper minimal mudflap ncurses openmp pam pcre perl readline server session spl ssl syslog tcpd tcpwrapper uclibc unicode usb vhosts xinetd xml zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY

_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Mon Oct 22, 2007 12:58 pm    Post subject: Reply with quote

Are there still people involved with gentoo on slug? I just laid my hands on one and I have installed openslug3.10 and the stage3-armeb-uclibc-softfloat-2005.1 on it. I am now trying to get nfsd running on it (I have the nfsd, exportfs, lockd, sunrpc kernel modules loaded, from ipkg). But I can not get nfs-utils compiled. I do need to install nfs-utils, right? Or does the kernel module exportfs automatically re-reads /etc/exports? (depmod -a does not help). My error on the other machine, when trying to mount, is: "mount: RPC: Remote system error - Connection refused"

Also gentoo now wants python-2.4.4, which I can not install because python-updater is blocking (does a binary install works here?). I really want to upgrade so that I can install a newer version of portage, the old portage is slow during the emerge --metadata (around 50% it is slowing down to a halt, which is solved in newer versions).

I am trying to use a crosscompiler to speed up thins, but I've read that many packages do not like to be cross compiled. So probably a dead end.

The question really is is there anyone working on a newer stage3? Or by lack of a maintainer this will not happen at all?
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Mon Oct 22, 2007 1:14 pm    Post subject: Reply with quote

phsdv wrote:
Are there still people involved with gentoo on slug? I just laid my hands on one and I have installed openslug3.10 and the stage3-armeb-uclibc-softfloat-2005.1 on it. I am now trying to get nfsd running on it (I have the nfsd, exportfs, lockd, sunrpc kernel modules loaded, from ipkg). But I can not get nfs-utils compiled. I do need to install nfs-utils, right? Or does the kernel module exportfs automatically re-reads /etc/exports? (depmod -a does not help). My error on the other machine, when trying to mount, is: "mount: RPC: Remote system error - Connection refused"

Also gentoo now wants python-2.4.4, which I can not install because python-updater is blocking (does a binary install works here?). I really want to upgrade so that I can install a newer version of portage, the old portage is slow during the emerge --metadata (around 50% it is slowing down to a halt, which is solved in newer versions).

I am trying to use a crosscompiler to speed up thins, but I've read that many packages do not like to be cross compiled. So probably a dead end.

The question really is is there anyone working on a newer stage3? Or by lack of a maintainer this will not happen at all?


y have not tried to instal nfsd how ever here are the versions of python and the portage that im running
Code:

MiniMe orvtech # emerge -pv python portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.2.12  USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] dev-lang/python-2.4.4-r4  USE="ncurses readline ssl -berkdb -bootstrap -build -doc -examples -gdbm -ipv6 -nocxx -nothreads -tk -ucs2" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB


i hope this helps, let me know if you need more info (make.conf, etc...)
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Tue Oct 23, 2007 9:51 am    Post subject: Reply with quote

orvtech wrote:

Code:

MiniMe orvtech # emerge -pv python portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.2.12  USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] dev-lang/python-2.4.4-r4  USE="ncurses readline ssl -berkdb -bootstrap -build -doc -examples -gdbm -ipv6 -nocxx -nothreads -tk -ucs2" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB

I've managed to get to the same situation. I had to do some hacking of the ebuilds, I removed the dependency to python-updater, which I installed and run later myself. Hopefully I did not miss something... At least the new portage is working. Next thing is to tackle the NFS install.

[edit]just found out that the feature "collision-protect" would have been a better solution:
Code:
FEATURES="-collision-protect" emerge -1O python-updater
emerge -1 python
emerge -1 portage
python-updater -i
emerge -C "<python-2.3.6-r2"
Back to top
View user's profile Send private message
sbergens
n00b
n00b


Joined: 01 Nov 2007
Posts: 1
Location: Sweden

PostPosted: Thu Nov 01, 2007 2:40 pm    Post subject: Re: i keep getting this error trying to compile busybox. Reply with quote

orvtech wrote:
i keep getting this error when compiling busybox.
[code]
/DISCARD/
*(.note.GNU-stack)
OUTPUT(busybox_unstripped elf32-bigarm)
collect2: ld returned 1 exit status
armeb-softfloat-linux-uclibc-strip: 'busybox_unstripped': No such file
cannot stat `busybox_unstripped': No such file or directory
cannot stat `busybox_unstripped.bak': No such file or directory]



I'm getting the same error on my slug. Has anybody been able to resolve this?

Thanks!
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Thu Nov 01, 2007 3:13 pm    Post subject: Re: i keep getting this error trying to compile busybox. Reply with quote

sbergens wrote:
orvtech wrote:
i keep getting this error when compiling busybox.

[code]
/DISCARD/
*(.note.GNU-stack)
OUTPUT(busybox_unstripped elf32-bigarm)
collect2: ld returned 1 exit status
armeb-softfloat-linux-uclibc-strip: 'busybox_unstripped': No such file
cannot stat `busybox_unstripped': No such file or directory
cannot stat `busybox_unstripped.bak': No such file or directory]



I'm getting the same error on my slug. Has anybody been able to resolve this?

Thanks!


there seems to be many problems with soft-float and GCC-4.X i have downgraded my gcc to version 3.X and i am attemptint to install the testing version of uclibc, i will re emerge my system with the new tool chain and try again. here is the error that i was getting

Quote:

armeb-softfloat-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -mbig-endian -mtune=xscale -march=armv4 -Wa,-mcpu=xscale -msoft-float -fno-stack-protector -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -fstrict-aliasing -Os -funit-at-a-time -isystem /usr/lib/gcc/armeb-softfloat-linux-uclibc/3.4.6/include -DNDEBUG -fPIC -D_DL_FINI_CRT_COMPAT -c ioperm.c -o ioperm.o
ioperm.c:47:22: asm/page.h: No such file or directory
make[4]: *** [ioperm.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-libs/uclibc-0.9.28.3-r1/work/uClibc-0.9.28.3/libc/sysdeps/linux/arm'
make[3]: *** [arm] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-libs/uclibc-0.9.28.3-r1/work/uClibc-0.9.28.3/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-libs/uclibc-0.9.28.3-r1/work/uClibc-0.9.28.3/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/uclibc-0.9.28.3-r1/work/uClibc-0.9.28.3/libc'
make: *** [_dir_libc] Error 2

!!! ERROR: sys-libs/uclibc-0.9.28.3-r1 failed.
Call stack:
ebuild.sh, line 1638: Called dyn_compile
ebuild.sh, line 985: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
uclibc-0.9.28.3-r1.ebuild, line 394: Called die


however i still get this error for busybox:

Quote:

OUTPUT(busybox_unstripped elf32-bigarm)
collect2: ld returned 1 exit status
armeb-softfloat-linux-uclibc-strip: 'busybox_unstripped': No such file
cannot stat `busybox_unstripped': No such file or directory
cannot stat `busybox_unstripped.bak': No such file or directory
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/busybox-1.6.1

>>> Install busybox-1.6.1 into /var/tmp/portage/sys-apps/busybox-1.6.1/image/ category sys-apps
* Your configuration for sys-apps/busybox-1.6.1 has been saved in
* /etc/portage/savedconfig/sys-apps/busybox-1.6.1 for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
cannot stat `busybox_unstripped': No such file or directory

!!! ERROR: sys-apps/busybox-1.6.1 failed.
Call stack:
ebuild.sh, line 1638: Called dyn_install
ebuild.sh, line 1083: Called qa_call 'src_install'
ebuild.sh, line 44: Called src_install
busybox-1.6.1.ebuild, line 164: Called die

_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1468
Location: /uk/sheffield

PostPosted: Fri Mar 07, 2008 5:06 am    Post subject: Reply with quote

-XoF- wrote:
Hi everyone,

since chilla's howto helped me a lot with installing gentoo on my slug, I took some efforts and continued the english version, which now includes the milestones. My small kernel-howto is now also integrated into the wiki:
http://gentoo-wiki.com/Gentoo_on_NSLU2

HTH,

-XoF-


I'm awaiting delivery of an NSLU2 and am keen to get Gentoo up and running on it. The wiki seems out of date slightly though as the links to chilla's site with the ready-to-run images isn't valid anymore.

Does anyone know where they've moved to or have copies they can send/host?
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Fri Mar 07, 2008 3:13 pm    Post subject: Reply with quote

slack---line wrote:
-XoF- wrote:
Hi everyone,

since chilla's howto helped me a lot with installing gentoo on my slug, I took some efforts and continued the english version, which now includes the milestones. My small kernel-howto is now also integrated into the wiki:
http://gentoo-wiki.com/Gentoo_on_NSLU2

HTH,

-XoF-


I'm awaiting delivery of an NSLU2 and am keen to get Gentoo up and running on it. The wiki seems out of date slightly though as the links to chilla's site with the ready-to-run images isn't valid anymore.

Does anyone know where they've moved to or have copies they can send/host?

do a 'regular' install of gentoo and start testing packages versions to see which one works here are the list and version of packages that i have:
Code:

[ebuild   R   ] sys-apps/portage-2.1.4.4  USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] sys-libs/ncurses-5.6-r2  USE="unicode -bootstrap -build -debug -doc -gpm -minimal -nocxx -profile -trace" 0 kB
[ebuild   R   ] sys-libs/zlib-1.2.3-r1  0 kB
[ebuild   R   ] sys-kernel/linux-headers-2.4.26-r1  0 kB
[ebuild   R   ] sys-devel/gnuconfig-20070724  0 kB
[ebuild   R   ] sys-devel/m4-1.4.10  USE="-examples (-nls)" 0 kB
[ebuild   R   ] sys-apps/sed-4.1.5  USE="(-nls) -static" 0 kB
[ebuild   R   ] app-crypt/hashalot-0.3-r2  0 kB
[ebuild   R   ] sys-devel/flex-2.5.33-r3  USE="(-nls) -static" 0 kB
[ebuild   R   ] dev-util/pkgconfig-0.22  USE="-hardened" 0 kB
[ebuild   R   ] sys-devel/autoconf-wrapper-4-r3  0 kB
[ebuild   R   ] sys-devel/automake-wrapper-3-r1  0 kB
[ebuild   R   ] dev-libs/expat-2.0.1  0 kB
[ebuild   R   ] app-admin/python-updater-0.2  0 kB
[ebuild   R   ] sys-apps/sandbox-1.2.18.1-r2  0 kB
[ebuild   R   ] dev-libs/popt-1.10.7  USE="(-nls)" 0 kB
[ebuild   R   ] sys-apps/tcp-wrappers-7.6-r8  USE="-ipv6" 0 kB
[ebuild   R   ] sys-libs/cracklib-2.8.12  USE="(-nls) -python" 0 kB
[ebuild   R   ] sys-apps/findutils-4.3.11  USE="(-nls) (-selinux) -static" 0 kB
[ebuild   R   ] sys-devel/gcc-config-1.4.0-r4  0 kB
[ebuild   R   ] virtual/libiconv-0  0 kB
[ebuild   R   ] app-arch/gzip-1.3.12  USE="(-nls) -pic -static" 0 kB
[ebuild   R   ] sys-apps/net-tools-1.60-r13  USE="(-nls) -static" 0 kB
[ebuild   R   ] sys-apps/kbd-1.13-r1  USE="(-nls)" 0 kB
[ebuild   R   ] sys-libs/uclibc-0.9.28.3  USE="userlocales -build -debug -hardened (-iconv) -ipv6 -minimal (-nls) -pregen -savedconfig -uclibc-compat -wordexp" 0 kB
[ebuild   R   ] sys-devel/patch-2.5.9  USE="-build -static" 0 kB
[ebuild   R   ] sys-apps/gawk-3.1.5-r3  USE="(-nls)" 0 kB
[ebuild   R   ] app-arch/tar-1.19-r1  USE="(-nls) -static" 0 kB
[ebuild   R   ] app-arch/bzip2-1.0.4-r1  USE="-static" 0 kB
[ebuild   R   ] app-arch/cpio-2.9-r1  USE="(-nls)" 0 kB
[ebuild   R   ] sys-devel/make-3.81  USE="(-nls) -static" 0 kB
[ebuild   R   ] sys-apps/texinfo-4.8-r5  USE="-build (-nls) -static" 0 kB
[ebuild   R   ] app-shells/bash-3.2_p17-r1  USE="-afs -bashlogger (-nls) -plugins -vanilla" 0 kB
[ebuild   R   ] sys-apps/sysvinit-2.86-r10  USE="(-ibm) (-selinux) -static" 0 kB
[ebuild   R   ] dev-libs/libpcre-7.4  USE="unicode -doc" 0 kB
[ebuild   R   ] sys-libs/libcap-1.10-r11  USE="-python" 0 kB
[ebuild   R   ] sys-devel/bison-2.3  USE="(-nls) -static" 0 kB
[ebuild   R   ] app-editors/nano-2.0.7  USE="minimal ncurses unicode -debug -justify (-nls) -slang -spell" 0 kB
[ebuild   R   ] sys-devel/binutils-config-1.9-r4  0 kB
[ebuild   R   ] sys-process/procps-3.2.7  USE="(-n32)" 0 kB
[ebuild   R   ] sys-apps/less-416  USE="unicode" 0 kB
[ebuild   R   ] net-misc/dropbear-0.49  USE="minimal zlib -multicall -pam -savedconfig -static" 0 kB
[ebuild   R   ] sys-libs/readline-5.2_p12-r1  0 kB
[ebuild   R   ] app-misc/pax-utils-0.1.16  USE="caps" 0 kB
[ebuild   R   ] virtual/init-0  0 kB
[ebuild   R   ] sys-devel/binutils-2.17-r1  USE="-multislot -multitarget (-nls) -test -vanilla" 0 kB
[ebuild   R   ] sys-apps/grep-2.5.1a-r1  USE="pcre (-nls) -static" 0 kB
[ebuild   R   ] virtual/editor-0  0 kB
[ebuild   R   ] sys-apps/which-2.16  0 kB
[ebuild   R   ] sys-devel/bc-1.06-r6  USE="readline -static" 0 kB
[ebuild   R   ] sys-devel/gcc-3.4.6-r2  USE="(-altivec) -bootstrap -boundschecking -build -d -doc -fortran -gcj -gtk -hardened -ip28 -ip32r10k -libffi% (-multilib) -multislot (-n32) (-n64) (-nls) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB
[ebuild   R   ] sys-libs/com_err-1.40.3  USE="(-nls)" 0 kB
[ebuild   R   ] sys-libs/ss-1.40.3  USE="(-nls)" 0 kB
[ebuild   R   ] sys-fs/e2fsprogs-1.40.3  USE="(-nls) -static" 0 kB
[ebuild   R   ] sys-devel/libperl-5.8.8-r1  USE="-berkdb -debug -gdbm -ithreads" 0 kB
[ebuild   R   ] dev-lang/perl-5.8.8-r4  USE="-berkdb -build -debug -doc -gdbm -ithreads -perlsuid" 0 kB
[ebuild   R   ] sys-devel/autoconf-2.61-r1  USE="-emacs" 0 kB
[ebuild   R   ] sys-apps/help2man-1.36.4  USE="(-nls)" 0 kB
[ebuild   R   ] perl-core/Test-Harness-2.64  0 kB
[ebuild   R   ] app-admin/perl-cleaner-1.04.3  0 kB
[ebuild   R   ] perl-core/PodParser-1.35  0 kB
[ebuild   R   ] sys-apps/xinetd-2.3.14  USE="perl tcpd" 0 kB
[ebuild   R   ] sys-apps/util-linux-2.12r-r8  USE="crypt perl (-nls) -old-crypt (-selinux) -static" 0 kB
[ebuild   R   ] sys-devel/automake-1.10  0 kB
[ebuild   R   ] net-misc/rsync-2.6.9-r5  USE="xinetd -acl -ipv6 -static" 0 kB
[ebuild   R   ] sys-devel/libtool-1.5.26  USE="-vanilla" 0 kB
[ebuild   R   ] sys-apps/coreutils-6.9-r1  USE="-acl (-nls) (-selinux) -static -xattr" 49 kB
[ebuild   R   ] sys-apps/groff-1.19.2-r1  USE="-X -cjk" 0 kB
[ebuild   R   ] sys-apps/shadow-4.0.18.1-r1  USE="cracklib (-nls) -nousuid -pam (-selinux) -skey" 0 kB
[ebuild   R   ] sys-process/psmisc-22.5-r2  USE="-X -ipv6 (-nls) (-selinux)" 0 kB
[ebuild   R   ] sys-apps/man-1.6f  USE="(-nls)" 0 kB
[ebuild   R   ] sys-apps/man-pages-2.76  USE="(-nls)" 0 kB
[ebuild   R   ] sys-apps/diffutils-2.8.7-r2  USE="(-nls) -static" 0 kB
[ebuild   R   ] dev-libs/openssl-0.9.8g  USE="zlib -bindist -emacs -gmp -kerberos (-sse2) -test" 0 kB
[ebuild   R   ] net-misc/wget-1.10.2  USE="ssl -build -debug -ipv6 (-nls) -socks5 -static" 0 kB
[ebuild   R   ] dev-lang/python-2.4.4-r6  USE="ncurses readline ssl -berkdb -bootstrap -build -doc -examples -gdbm -ipv6 -nocxx -nothreads -tk -ucs2" 0 kB
[ebuild   R   ] dev-python/python-fchksum-1.7.1  0 kB
[ebuild   R   ] dev-python/pycrypto-2.0.1-r6  USE="-bindist -gmp -test" 0 kB
[ebuild   R   ] sys-apps/file-4.21-r1  USE="-python" 0 kB
[ebuild   R   ] sys-apps/debianutils-2.28.2  USE="-static" 0 kB
[ebuild   R   ] sys-apps/mktemp-1.5  0 kB
[ebuild   R   ] app-misc/ca-certificates-20070303-r1  0 kB
[ebuild   R   ] sys-apps/baselayout-1.12.10-r5  USE="unicode -bootstrap -build -static" 0 kB
[ebuild   R   ] sys-apps/module-init-tools-3.4  USE="-old-linux" 0 kB
[ebuild   R   ] sys-fs/udev-115-r1  USE="(-selinux)" 0 kB

Total: 85 packages (85 reinstalls), Size of downloads: 49 kB

_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1468
Location: /uk/sheffield

PostPosted: Fri Mar 07, 2008 3:31 pm    Post subject: Reply with quote

Cheers for that orvtech, will forge ahead, sounds not too bad a process.

You've seem to have used quite 'aggressive' USE flags (in the sense that there are lots of exclusions/minus', things like -doc -trace -nocxx), would you mind posting your /etc/make.conf (or output from emerge --info) so I can get a feel for things.

EDIT - Actually forget that I've just looked higher in the thread and you've already posted your emerge --info.

Thanks,

slack
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Fri Mar 07, 2008 3:38 pm    Post subject: Reply with quote

slack---line wrote:
Cheers for that orvtech, will forge ahead, sounds not too bad a process.

You've seem to have used quite 'aggressive' USE flags (in the sense that there are lots of exclusions/minus', things like -doc -trace -nocxx), would you mind posting your /etc/make.conf (or output from emerge --info) so I can get a feel for things.

EDIT - Actually forget that I've just looked higher in the thread and you've already posted your emerge --info.

Thanks,

slack
no problem, i am also looking in to buying another NSLU2 and use that one for development
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1468
Location: /uk/sheffield

PostPosted: Mon Apr 07, 2008 9:27 pm    Post subject: Reply with quote

phsdv wrote:
Next thing is to tackle the NFS install.


Did you manage to resolve this?

Has anyone installed nfs-utils?

With 1.1.0-r1 I get

failed emerge of nfs-utils-1.1.0-r1:

make[3]: Entering directory `/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/work/nfs-utils-1.1.0'
if [ ! -d /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs ]; then mkdir -p /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs; fi
touch /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/xtab; chmod 644 /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/xtab
touch /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/etab; chmod 644 /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/etab
touch /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/rmtab; chmod 644 /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/rmtab
mkdir -p /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm.bak
touch /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/state
chmod go-rwx /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm.bak /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/state
chown nobody /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/sm.bak /var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/image//var/lib/nfs/state
make[3]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/work/nfs-utils-1.1.0'
make[2]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/work/nfs-utils-1.1.0'
make[1]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/work/nfs-utils-1.1.0'
!!! dobin: tools/rpcgen/rpcgen does not exist
 *
 * ERROR: net-fs/nfs-utils-1.1.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2376:  Called die
 * The specific snippet of code:
 *           dobin tools/rpcgen/rpcgen || die "rpcgen";
 *  The die message:
 *   rpcgen
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/nfs-utils-1.1.0-r1/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *



I tried installing openrpcgen from [url="https://bugs.gentoo.org/show_bug.cgi?id=182956"]this bug[/url] and it compiled and installed fine, but it didn't help with emerging nfs-utils so I tried unmasking 1.1.1 and get a different error

failed emerge of nfs-utils-1.1.1:

armeb-softfloat-linux-uclibc-gcc -Wall -Wstrict-prototypes -pipe -march=armv5t -Os -o mountd mountd-mountd.o mountd-mount_dispatch.o mountd-auth.o mountd-rmtab.o mountd-cache.o mountd-svc_run.o mountd-fsloc.o  ../../support/export/libexport.a ../../support/nfs/libnfs.a ../../support/misc/libmisc.a -lwrap -lblkid 
mountd-cache.o: In function `auth_unix_gid':
cache.c:(.text+0x1d4): undefined reference to `getgrouplist'
cache.c:(.text+0x214): undefined reference to `getgrouplist'
../../support/nfs/libnfs.a(svc_socket.o): In function `svc_socket':
svc_socket.c:(.text+0xcc): undefined reference to `getrpcbynumber_r'
collect2: ld returned 1 exit status
make[2]: *** [mountd] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.1.1/work/nfs-utils-1.1.1/utils/mountd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-fs/nfs-utils-1.1.1/work/nfs-utils-1.1.1/utils'
make: *** [all-recursive] Error 1
 *
 * ERROR: net-fs/nfs-utils-1.1.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2348:  Called die
 * The specific snippet of code:
 *       emake || die "Failed to compile"
 *  The die message:
 *   Failed to compile
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-fs/nfs-utils-1.1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-fs/nfs-utils-1.1.1/temp/environment'.
 *


Anyone had any joy?
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Tue Apr 08, 2008 7:14 pm    Post subject: Reply with quote

slack---line wrote:
phsdv wrote:
Next thing is to tackle the NFS install.
Did you manage to resolve this?
Unfortunately no. It took too much time. Compile times are to long and I did not get cross compiling working. Now I have debian installed on the slug, with among others, lighttpd and nfs running on it. And happy with it. I still have gentoo on my other x86 machines though :D.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1468
Location: /uk/sheffield

PostPosted: Wed Apr 09, 2008 3:22 pm    Post subject: Reply with quote

Thanks for that phsdv, I've got a working version installed, so its not toooo much hassle, was just trying to bring everything up-to-date though.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Sun Jun 15, 2008 12:11 am    Post subject: Reply with quote

Im sorry ... i know that this falls of the 'gentoo' topic but my HDD died and i had to reinstall, so i desided to start from scrach and reflashed my nslu2 with SlugOS/BE 3.10 Beta (NSLU2) which i assume it is the SlugOS Bigendian now i cant communicate with my nslu2 it doesnt show up under any ip of the range 192.168.1.* any ideas?
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Thu Jun 19, 2008 9:28 am    Post subject: Reply with quote

Quote:
my original interest in using a slug as a webserver was prompted by the thought of finding a computer to host my photos that would consume less electricity. I'm confident that the money I've spent on this project (about $200 plus $50 donated to nslu2-linux.org) will pay for itself in reduced energy costs within 20-30 years


thanks tbg...i was looking for this idea and something to play with as i already have usb hdd and webservers running on my desktop.And this idea is damn good to have a server off my desktop...without adding a dedicated pc as a server :P
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Wed Jun 25, 2008 7:19 pm    Post subject: Reply with quote

My NSLU2 is on a reboot loop after doing a fresh install on a new HDD, it boots read the hdd for a couple of seconds and then it just reboots... i see nothing on the errors logs. the only thing that i can think of is that im either bringing up a services that it is cousin this or that i need a service in order to boot normally.

I also checked for /.recovery

can some one post the out of this command:
Code:
 ls -la /etc/runlevels/*


Here is my output
Code:

/etc/runlevels/boot:
total 8
drwxr-xr-x 2 root root 4096 Nov 30  1999 .
drwxr-xr-x 6 root root 4096 Jun 11 11:32 ..
lrwxrwxrwx 1 root root   20 Nov 30  1999 bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root   19 Nov 30  1999 checkfs -> /etc/init.d/checkfs
lrwxrwxrwx 1 root root   21 Nov 30  1999 checkroot -> /etc/init.d/checkroot
lrwxrwxrwx 1 root root   17 Nov 30  1999 clock -> /etc/init.d/clock
lrwxrwxrwx 1 root root   23 Nov 30  1999 consolefont -> /etc/init.d/consolefont
lrwxrwxrwx 1 root root   20 Nov 30  1999 hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root   19 Nov 30  1999 keymaps -> /etc/init.d/keymaps
lrwxrwxrwx 1 root root   22 Nov 30  1999 localmount -> /etc/init.d/localmount
lrwxrwxrwx 1 root root   19 Nov 30  1999 modules -> /etc/init.d/modules
lrwxrwxrwx 1 root root   18 Nov 30  1999 net.lo -> /etc/init.d/net.lo
lrwxrwxrwx 1 root root   21 Nov 30  1999 rmnologin -> /etc/init.d/rmnologin
lrwxrwxrwx 1 root root   19 Nov 30  1999 urandom -> /etc/init.d/urandom

/etc/runlevels/default:
total 8
drwxr-xr-x 2 root root 4096 Nov 30  1999 .
drwxr-xr-x 6 root root 4096 Jun 11 11:32 ..
lrwxrwxrwx 1 root root   20 Jun 11 12:28 dropbear -> /etc/init.d/dropbear
lrwxrwxrwx 1 root root   19 Jun 15 17:33 metalog -> /etc/init.d/metalog
lrwxrwxrwx 1 root root   20 Jun 15 13:45 net.eth0 -> /etc/init.d/net.eth0
lrwxrwxrwx 1 root root   22 Nov 30  1999 ntp-client -> /etc/init.d/ntp-client
lrwxrwxrwx 1 root root   20 Nov 30  1999 sysklogd -> /etc/init.d/sysklogd
lrwxrwxrwx 1 root root   22 Jun 19 21:01 vixie-cron -> /etc/init.d/vixie-cron

/etc/runlevels/nonetwork:
total 8
drwxr-xr-x 2 root root 4096 Nov 30  1999 .
drwxr-xr-x 6 root root 4096 Jun 11 11:32 ..

/etc/runlevels/single:
total 8
drwxr-xr-x 2 root root 4096 Nov 30  1999 .
drwxr-xr-x 6 root root 4096 Jun 11 11:32 ..
lrwxrwxrwx 1 root root   20 Nov 30  1999 sysklogd -> /etc/init.d/sysklogd


_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 264

PostPosted: Sat Jul 05, 2008 10:45 pm    Post subject: Reply with quote

Hi, I just bought a slug yesterday and of course I'd like to have Gentoo running on it. ;) I'm still reading into this but so far I managed to get the 2005.0 softfloat-uclibc image installed and more or less updated. Now I feel I'm stuck hard due to uclibc and would like to switch over to glibc although it may consume more memory. Running over the last few pages of this thread, there seem to have been some problems using GCC 4 on the slug in 2006/2007. Since it has been quite a while since then - and I suppose you still keep an eye on this - I'd like to ask what the current status is for armeb-softfloat-linux-gnu hosts or targets.

crossdev on my amd64 (Core2Duo) currently stops at gcc-stage2 (double definitions; seems like a collision with softfloat to me):

Code:

/usr/libexec/gcc/armeb-softfloat-linux-gnu/ar  rc ./libgcc.a libgcc/./_udivsi3.o libgcc/./_divsi3.o libgcc/./_umodsi3.o libgcc/./_modsi3.o libgcc/./_dvmd_lnx.o libgcc/./_negdf2.o libgcc/./_addsubdf3.o libgcc/./_muldivdf3.o libgcc/./_cmpdf2.o libgcc/./_unorddf2.o libgcc/./_fixdfsi.o libgcc/./_fixunsdfsi.o libgcc/./_truncdfsf2.o libgcc/./_negsf2.o libgcc/./_addsubsf3.o libgcc/./_muldivsf3.o libgcc/./_cmpsf2.o libgcc/./_unordsf2.o libgcc/./_fixsfsi.o libgcc/./_fixunssfsi.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_clear_cache.o libgcc/./_enable_execute_stack.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_powisf2.o libgcc/./_powidf2.o libgcc/./_powixf2.o libgcc/./_powitf2.o libgcc/./_mulsc3.o libgcc/./_muldc3.o libgcc/./_mulxc3.o libgcc/./_multc3.o libgcc/./_divsc3.o libgcc/./_divdc3.o libgcc/./_divxc3.o libgcc/./_divtc3.o libgcc/./_fixunsxfsi.o libgcc/./_fixsfdi.o libgcc/./_fixunssfdi.o libgcc/./_floatundisf.o libgcc/./_fixdfdi.o libgcc/./_fixunsdfdi.o libgcc/./_floatundidf.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_floatundixf.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_floatunditf.o libgcc/./_eprintf.o libgcc/./__gcc_bcmp.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o
libgcc/./_floatundisf_s.o: In function `__floatundisf':
libgcc2.c:(.text+0x0): multiple definition of `__floatundisf'
libgcc/./_addsubsf3_s.o:/var/tmp/cross/armeb-softfloat-linux-gnu/portage/cross-armeb-softfloat-linux-gnu/gcc-4.2.4/work/gcc-4.2.4/gcc/config/arm/ieee754-sf.S:303: first defined here
libgcc/./_floatundidf_s.o: In function `__floatundidf':
libgcc2.c:(.text+0x0): multiple definition of `__floatundidf'
libgcc/./_addsubdf3_s.o:/var/tmp/cross/armeb-softfloat-linux-gnu/portage/cross-armeb-softfloat-/usr/libexec/gcc/armeb-softfloat-linux-gnu/ranlib ./libgcc.a
linux-gnu/gcc-4.2.4/work/gcc-4.2.4/gcc/config/arm/ieee754-df.S:452: first defined here
collect2: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/cross/armeb-softfloat-linux-gnu/portage/cross-armeb-softfloat-linux-gnu/gcc-4.2.4/work/build/gcc'
make[2]: *** [libgcc.a] Error 2
rm gfortran.pod
make[2]: Leaving directory `/var/tmp/cross/armeb-softfloat-linux-gnu/portage/cross-armeb-softfloat-linux-gnu/gcc-4.2.4/work/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/var/tmp/cross/armeb-softfloat-linux-gnu/portage/cross-armeb-softfloat-linux-gnu/gcc-4.2.4/work/build'
make: *** [all] Error 2


What are the latest versions I can use that are still in portage for both native and cross compilation? (2.6 kernels below 2.6.17 already got kicked out; so I'm unable to continue using uclibc)

Is there anything I can refer to for switching from uclibc to glibc? (if it's in here just ignore that question, I'll continue reading tomorrow ;) ) I already read there is (was?) an image linked in this thread but that's from late 2006, so I assume it's nearly no difference in effort between updating that image and switching my almost updated uclibc system to glibc.

Is it still possible to break something by flashing a kernel? (It was mentioned somewhere on page 5 or 6; but I assume everything is fine unless something overwrites redboot which should not happen normally? How easy is this to happen; I mean usually there should be some precautions so booted systems cannot write to critical areas of the flash memory?)

I'm currently using SlugOS/BE 4.8 Beta as an image for chrooting. It seems they have been using glibc, GCC 4.1.2 and provided a (most-likely vulnerable?) kernel 2.6.21. So it has to work with Gentoo instead of Debian somehow? ;)

Thanks in advance so far; if I should just continue googling and reading the fine howtos for my answers I would be glad if you could point me to the (in your opinion) right ones. There are so many different instructions, I still have to figure out what applies to me and what does not.
_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Sun Jul 06, 2008 8:09 pm    Post subject: Reply with quote

The last service that my NSLU2 runs before rebooting is the /etc/runlevels/boot/checkroot

it gets in to this if loop
Code:
                        if [[ ${RC_FORCE_AUTO} == "yes" ]] ; then
                                eend 2 "Rerunning fsck in force mode"
                                fsck -y -C -T /
                        else
                                eend 2 "Filesystem couldn't be fixed :("
                                echo "starting CHECKROOT failed to repair FS" >> /var/log/boot.log
                                sulogin ${CONSOLE}
                        fi



i know this cause i can see the line "starting CHECKROOT failed to repair FS" in /var/log/boot.log

i have checked the FS allready with e2fschk -fvy /dev/sda1 and found no errors


any ideas
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
c00l.wave
Apprentice
Apprentice


Joined: 24 Aug 2003
Posts: 264

PostPosted: Sat Jul 26, 2008 5:13 pm    Post subject: Reply with quote

I'm still trying to get Gentoo running on the NSLU using glibc. Since the last posting I got a lot to work but still can't boot. What I did:

- set up the crosscompiler
- wrote a wrapper-script for xmerge since portage is reported broken for crossdev (pulls in host dependencies)
- compiled a basic system and discovered it's way to big to fit in the 6MB internal flash memory
- followed the wiki howto on how to compile a "TinyGentoo"
- tried to shrink that even further (has ~14MB)
- compiled the kernel from nslu-linux.org and finally got it booting up to init

Currently I do some debugging using the LEDs since I don't want to solder pins for a serial line on the board. I know that the kernel starts init but init freezes with no output (I set up console output to serial port and patched console_write in drivers/serial_core, so I can get some output through the LEDs. This should not only cover the kernel but also output from all other processes.). The kernel does not panic.

Does anyone have any idea on what I may be missing at this point? Kernel size is 1001kB, rootfs roughly between 4,4MB and 6,3MB (depends on what I delete). Maybe I deleted too much. I will attach USB flash memory, however I need the modules for USB, the partition type, SCSI generic and a file system (preferably Reiser, which doesn't make a big difference in kernel/module size). This does not fit into the kernel itself, so I will need the internal flash memory.

So I'm left with 2 major questions:

1) What can I delete that shouldn't break the system until it loaded it's modules and switches from internal to USB memory? (Still no clue how exactly I'm going to make it do so, but it seems to work as SlugOS and my router can do the same.) Maybe I have to set up some device nodes to make it work/output data to serial?
2) Or can I make the kernel expand beyond its memory block of 1MB, maybe have some kind of second boot loader in the 1MB block, boot a fat kernel from the block intended for the JFFS2 rootfs image and then go directly to my USB memory for further booting? What tools would I need if someone already did this?

I'll attach my script used for slimming down the rootfs:

Code:

#!/bin/bash

echo Copying...
rm -Rf /root/slimslug
mkdir /root/slimslug
cp -P --preserve=all -R /root/tinyslug/* /root/slimslug/

echo Slimming...
cd /root/slimslug/

rm -Rf usr/share/locale/*
cp ../tinyslug/usr/share/locale/locale.alias usr/share/locale/

rm -Rf usr/share/i18n/charmaps/*
cp ../tinyslug/usr/share/i18n/charmaps/ISO-8859-15.* usr/share/i18n/charmaps/
cp ../tinyslug/usr/share/i18n/charmaps/ISO-8859-1.* usr/share/i18n/charmaps/
cp ../tinyslug/usr/share/i18n/charmaps/UTF-8.* usr/share/i18n/charmaps/

rm -Rf usr/share/i18n/locales/*
cp ../tinyslug/usr/share/i18n/locales/en_US usr/share/i18n/locales/
cp ../tinyslug/usr/share/i18n/locales/en_GB usr/share/i18n/locales/
#cp ../tinyslug/usr/share/i18n/locales/translit* usr/share/i18n/locales/
cp ../tinyslug/usr/share/i18n/locales/POSIX usr/share/i18n/locales/

rm -Rf usr/share/doc/*
rm -Rf usr/share/info/*
rm -Rf usr/share/man/*

rm -Rf usr/share/zoneinfo/*
cp ../tinyslug/usr/share/zoneinfo/* usr/share/zoneinfo/
mkdir usr/share/zoneinfo/Europe
cp ../tinyslug/usr/share/zoneinfo/Europe/Berlin usr/share/zoneinfo/Europe/

rm -Rf usr/include
rm -Rf usr/lib/gconv/*
rm -Rf var/*

find . -iname \*.a -exec rm \{\} \;

rm -f lib/modules/2.6.25.6/kernel/crypto/tcrypt.ko
rm -f lib/modules/2.6.25.6/kernel/crypto/wp512.ko
rm -f lib/modules/2.6.25.6/kernel/crypto/serpent.ko

rm -Rf lib/modules/2.6.25.6/kernel/*

echo Creating image...
mkfs.jffs2 -d /root/slimslug --faketime -o /root/slimslug.jffs2 -pad --big-endian --eraseblock=0x20000

echo Resulting size:
du -ks /root/slimslug
du -k /root/slimslug.jffs2

_________________
nohup nice -n -20 cp /dev/urandom /dev/null &
Back to top
View user's profile Send private message
tazinblack
Veteran
Veteran


Joined: 23 Jan 2005
Posts: 1144
Location: Baden / Germany

PostPosted: Tue Aug 26, 2008 4:36 pm    Post subject: Reply with quote

tokka wrote:
squawker wrote:

Grab the tarball here: http://www.puszczka.com/slug/armeb-softfloat-linux-gnu-stage3.tar.bz2
That's my server at home on ADSL - if someone wants to host it on a bigger pipe then please do.


Done:

www.daniel.jp/slug/armeb-softfloat-linux-gnu-stage3.tar.bz2

Should be fine there for a bit.

Squawker, any chance of the firmware image you built for that, I've had a couple of failed Gentoo attempts so I want the next one to be as painless as poss:)


Hello tokka,

is it possible for you to reprovide the stage3-tarball?
This Link seems to be dead. This would save a lot of time.
With you're agreement I would also put it to my webserver to make it available to the whole world.

Would be great.
tazinblack
_________________
Gruß / Regards
tazinblack
_______________________________________________________
what's the point in being grown up if you can't be childish sometimes
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Mon Jan 26, 2009 5:19 pm    Post subject: Reply with quote

KK guys, i fanaly saved some money and got these puppies to use them as a development environment.

http://photos-a.ll.facebook.com/photos-ll-snc1/v2058/119/106/1414306889/n1414306889_250272_4716.jpg

I will be focusing first on creating a stage3 that would work with a kernel 2.6, i remember couple of months back i found a tutorial about how to roll your own firmware so i will be trying that too. on the down side im still 'borrowing' wifi from a couple of neighbors so it will be slow.
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
orvtech
Tux's lil' helper
Tux's lil' helper


Joined: 28 Aug 2004
Posts: 115
Location: US. Florida

PostPosted: Tue Feb 03, 2009 8:01 pm    Post subject: Reply with quote

this could be a bit off topic but...

does anyone knows what flags should i pass to qemu to boot the usb thumb drive of my nslu2 running arm be ?
_________________
http://orvtech.com
http://www.linuxevolution.org
Back to top
View user's profile Send private message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 594

PostPosted: Sun Jul 19, 2009 1:12 am    Post subject: Reply with quote

Anyone endeavoring to install Gentoo from the 2005.1 stage3 may be interested in the directions for getting Portage to work: https://forums.gentoo.org/viewtopic-p-5877905.html#5877905
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Page 8 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum