DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2006-09-08 19:38:56

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Gentoo how-to

Installation

Code:

# Get bzcat, tar and busybox-with-chroot from
# bzip2-1.0.3.tar.bz2, tar-1.15.91.tar.bz2 and busybox-1.00-pre1.tar.bz2 at http://dns323.kood.org/downloads/
# It is recommended that you setup a second ext3 partition for your chmod environment to avoid long boot-up's!
# Look bugs thread for more info:  http://dns323.kood.org/forum/t19-Updated-28092006-Bugs.html
ln -s /mnt/HD_a2/busybox-with-chroot /bin/chroot
mkdir /mnt/HD_a2/gentoo
cd /mnt/HD_a2/gentoo
# You might want to try also newer stage from
# ftp://ftp.linux.ee/pub/gentoo/distfiles/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2006.1.tar.bz2
# Note: you cant use this stage to compile DSM-G600 compatible binaries because this stage has uClibc 0.9.28
# instead uClibc 0.9.27 which is DSM-G600 compatible.
wget ftp://ftp.linux.ee/pub/gentoo/distfiles/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2005.0.tar.bz2
bzcat stage3-ppc-uclibc-2005.0.tar.bz2 | tar -xvpf -
cd /mnt/HD_a2/gentoo/usr
wget ftp://ftp.linux.ee/pub/gentoo/distfiles/snapshots/portage-latest.tar.bz2
bzcat portage-latest.tar.bz2 | tar -xvf -
mount -o bind /dev /mnt/HD_a2/gentoo/dev
mount -t proc none /mnt/HD_a2/gentoo/proc
cp /etc/resolv.conf /mnt/HD_a2/gentoo/etc/
chroot /mnt/HD_a2/gentoo /bin/bash
env-update && source /etc/profile

/etc/make.conf

Code:

CFLAGS="-Os -pipe -mcpu=603e -mtune=603e"
CHOST="powerpc-pc-linux-uclibc"
CXXFLAGS="-Os -pipe -mcpu=603e -mtune=603e"
USE="-*"
ACCEPT_KEYWORDS="~ppc"
RSYNC_EXCLUDEFROM="/etc/portage/rsync_excludes"
SYNC="rsync://rsync1.ee.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.linux.ee/pub/gentoo/distfiles"

/etc/portage/rsync_excludes

Code:

- app-accessibility/
- metadata/cache/app-accessibility/
- app-emulation/
- metadata/cache/app-emulation/
- app-laptop/
- metadata/cache/app-laptop/
- app-office/
- metadata/cache/app-office/
- app-pda/
- metadata/cache/app-pda/
- dev-games/
- metadata/cache/dev-games/
- games-*/
- metadata/cache/games-*/
- gnome-*/
- metadata/cache/gnome-*/
- kde-*/
- metadata/cache/kde-*/
- rox-*/
- metadata/cache/rox-*/
- media-gfx/
- metadata/cache/media-gfx/
- media-tv/
- metadata/cache/media-tv/
- media-video/
- metadata/cache/media-video/
- sci-*/
- metadata/cache/sci-*/
- x11-*/
- metadata/cache/x11-*/
- xfce-*/
- metadata/cache/xfce-*/

Finaly

Code:

cd /usr/portage
rm -r `gawk '{ printf("%s ",$2) }' /etc/portage/rsync_excludes`
# Let's test emerge
USE=unicode emerge links

//edit 2006-09-15
*Link to stage 2006.0 added
//edit 2006-09-16
*ACCEPT_KEYWORDS="~ppc" added to make.conf
//edit 2006-09-28
*suggestion added to avaid chmod bug and long boot up's after you install your chmod environment
//edit 2006-11-27
*Link to 2006.1 stage added.

Last edited by sala (2006-09-28 11:20:26)


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#2 2006-09-12 03:40:34

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Gentoo how-to

This looks more interesting than Debian one.  I will give this a try tonight.

sala, which one do you prefer?

Offline

 

#3 2006-09-12 08:55:03

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Definetly Gentoo, but only if you have patience to wait, since emergeing new packages can be extremely slow. Still most important, gentoo chroot takes little less ram memory than Debian smile


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#4 2006-09-12 18:27:55

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Gentoo how-to

I got mine up running with Gentoo last night.  Thanks for your flawless instructions.  I did take a while, but I got most of everything I needed.  I will get the "screen" utility so I can login and detach at will.

--
Quang

Offline

 

#5 2006-09-13 10:34:34

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

qn1234 wrote:

I will get the "screen" utility so I can login and detach at will.

Screen is mess. You will get "socket: Address family not supported by protocol." error. I think it is because of kernel and atm I dont know how to fix this without compilling new kernel.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#6 2006-09-13 23:45:37

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: Gentoo how-to

emerge compilled screen, but I get an "Sorry, could not find a PTY" [screen is terminating] while there pty entries in /dev.

The command df doesn't work for me.  I get error msg "cannot read table of mounted filesystems: No such file or directory."  I suspect it reads /proc/mounts which has /dev/proc as an entry and it's not in /dev in the chroot setup.

--
Quang

Offline

 

#7 2006-09-14 08:11:19

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Use these lines to chroot, this makes df work. For /dev/pty problem I don't have fix for now, I look into it as soon as I can wink

Code:

mount -t proc none /mnt/HD_a2/gentoo/proc
chroot /mnt/HD_a2/gentoo /bin/bash

DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#8 2006-09-15 00:00:31

mchinand
Member
Registered: 2006-08-04
Posts: 6

Re: Gentoo how-to

sala wrote:

Use these lines to chroot, this makes df work. For /dev/pty problem I don't have fix for now, I look into it as soon as I can wink

I don't know if this is the problem for screen, but when I compiled the telnetd for busybox, I had to set an option to use the old 'BSD' style ptys rather than the newer, UNIX98 ptys, since the kernel is configured to use the BSD ptys. If screen tries to access /dev/ptmx, then it expects UNIX98 ptys.

Offline

 

#9 2006-09-15 00:42:11

mchinand
Member
Registered: 2006-08-04
Posts: 6

Re: Gentoo how-to

After taking a quick look at the latest version of screen (4.02) it seems to be able to handle oldstyle BSD ptys. Maybe more ptys need to be created? Only 10 pty and tty devices are created by the makedevs commands I originally used  for telnetd whereas there can be 256 of each. See /usr/src/Documentation/devices.txt for the device naming of the ptys. I haven't yet tried using Gentoo or Debian yet but this really looks interesting.

Offline

 

#10 2006-09-15 08:15:15

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Code:

mount -t proc none /mnt/HD_a2/gentoo/proc
chroot /mnt/HD_a2/gentoo /bin/bash

These are for df, ifconfig and other tools that uses /proc, not for screen wink
If you get around screen /dev/pty problem, then you probably run into next error like "socket: Address family not supported by protocol."


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#11 2006-09-16 14:32:34

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Next step with gentoo chrooting would be to get distcc working, so we could use other pc's to boots up emerging process.
Here are some links if you want to get head start wink
http://www.gentoo.org/doc/en/distcc.xml
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
http://www.sable.mcgill.ca/~dbelan2/cro … -i686.html


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#12 2007-11-18 12:54:55

dannystaple
Member
Registered: 2007-08-29
Posts: 9

Re: Gentoo how-to

I also noted that you need to re-emerge rsync with USE=-ipv6, as the base install has it enabled by default, and will cause issues.
However, I have now noticed that ipv6 can be compiled as a kernel module... So with unix.o, and ipv6.o, we can support all those bits without complaints. I am going to try compiling a ipv6.o module in the next couple of weeks, and will let you guys know when I get it working...

Offline

 

#13 2007-11-18 20:27:17

orvtech
Member
From: http://tinyurl.com/25uspy
Registered: 2007-10-31
Posts: 12
Website

Re: Gentoo how-to

i am having some problems getting the services that i added by running 'rc-update add [SERVICE] default' in my chroot gentoo. is there a workaround for this ?


thanks in advace

Offline

 

#14 2007-12-20 10:36:18

Jundee
New member
Registered: 2007-12-20
Posts: 2

Re: Gentoo how-to

I just made a Gentoo installation. After reboot I cannot login. Connection works ok, and after I put username & password I get following message: "server refused to allocate pty". Any ideas?

I found some information about Debian installation having samekind of problem, and some undefined sleeps added to fun_plug made it work. I have not tried this yet, though.

Any news about the getting screen working? That would be awesome.

Offline

 

#15 2008-01-04 17:28:07

orvtech
Member
From: http://tinyurl.com/25uspy
Registered: 2007-10-31
Posts: 12
Website

Re: Gentoo how-to

Jundee wrote:

I just made a Gentoo installation. After reboot I cannot login. Connection works ok, and after I put username & password I get following message: "server refused to allocate pty". Any ideas?

I found some information about Debian installation having samekind of problem, and some undefined sleeps added to fun_plug made it work. I have not tried this yet, though.

Any news about the getting screen working? That would be aesome.

that happened to me too but installing a NSLU2, that has to do with /etc/conf.d/rc.conf i think. it is all explained in the documentation.

Offline

 

#16 2008-05-06 17:53:55

Borkdude
Member
Registered: 2008-04-27
Posts: 6

Re: Gentoo how-to

bash-2.05b# USE=unicode emerge links
Calculating dependencies ...done!
>>> emerge (1 of 4) sys-devel/m4-1.4.11 to /
>>> md5 files   ;-) m4-1.4.10-r2.ebuild
>>> md5 files   ;-) m4-1.4.11.ebuild
>>> md5 files   ;-) m4-1.4.10-r1.ebuild
>>> md5 files   ;-) m4-1.4.10.ebuild
>>> md5 files   ;-) m4-1.4.10-r3.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) files/m4-1.4.10-gnulib-vasnprintf.patch
>>> md5 files   ;-) files/m4-1.4.10-seek.patch
>>> md5 files   ;-) files/digest-m4-1.4.11
>>> md5 src_uri ;-) m4-1.4.11.tar.lzma
>>> Unpacking source...
>>> Unpacking m4-1.4.11.tar.lzma to /var/tmp/portage/m4-1.4.11/work
unpack m4-1.4.11.tar.lzma: file format not recognized. Ignoring.
>>> Source unpacked.

!!! ERROR: sys-devel/m4-1.4.11 failed.
!!! Function econf, Line 488, Exitcode 1
!!! no configure script found
!!! If you need support, post the topmost build error, NOT this status message.

Any suggestions?

Offline

 

#17 2009-01-22 22:21:42

slackr
New member
Registered: 2009-01-22
Posts: 2

Re: Gentoo how-to

Ok, im pretty new to gentoo and emerge.
But there seems to be a problem with e2fsprogs at the moment.

This is what i get with emerge --pretend e2fsprogs
Calculating dependencies ...done!
[blocks B     ] <sys-fs/e2fsprogs-1.41 (from pkg sys-libs/e2fsprogs-libs-1.41.3-r1)
[ebuild  N    ] sys-devel/bc-1.06.95
[ebuild  N    ] sys-libs/e2fsprogs-libs-1.41.3-r1
[ebuild     U ] sys-fs/e2fsprogs-1.41.3 [1.35-r1]

Any idea on how i should solve this?

Offline

 

#18 2009-01-23 13:46:12

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Basically in this situation you'll need to uninstall sys-fs/e2fsprogs first before you can install new version. Run emerge -C sys-fs/e2fsprogs to uninstall blocker.
But e2fsprogs-1.41 is already safe version to use so you can leave it as it is.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#19 2009-01-23 20:48:49

slackr
New member
Registered: 2009-01-22
Posts: 2

Re: Gentoo how-to

Thanks for the help Sala.
Here comes the next bug:
DSM-G600 / # emerge sys-apps/baselayout
Calculating dependencies /!!! Cannot resolve a virtual package name to an ebuild.
!!! This is a bug, please report it. (virtual/init-0)

Any idea?

Offline

 

#20 2009-01-24 18:43:48

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

http://bugs.gentoo.org/show_bug.cgi?id=114798

Try to upgrade portage package first and them make sure your portage tree is correctly in place. Try to not to use emerge --sync Instead juste delete /usr/portage content and extract new portage from bzipball.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#21 2009-02-02 00:02:30

acruhl
Member
Registered: 2009-02-01
Posts: 9

Re: Gentoo how-to

Thanks for this Sala, I'm having fun so far.

Be patient with me please, I'm more of a NetBSD guy than a Gentoo Linux guy.

I think there are still portage problems:

marvin etc # emerge -pv devfsd

These are the packages that I would merge, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "devfsd" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-fs/devfsd-1.3.25-r9 (masked by: missing keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 "Software Availability" in the Gentoo Handbook.

This means that devfsd is not going to install, correct?

I'm also having the same problem as slackr with sys-apps/baselayout. I got the portage tar.bz2 file from Feb 1, and it's still a problem.

Your directions are very simple and clear, but we're having problems. Is this just too old of a distribution and it's getting stale or something?

Thanks for any help you can provide.

Offline

 

#22 2009-02-02 08:57:31

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Gentoo how-to

Use 2006.1 stage, it does have devfsd installed by default.

- sys-fs/devfsd-1.3.25-r9 (masked by: missing keyword) means that ebuild does not have ppc keyword in it. You can add it manually and then run "ebuild devfsd-1.3.25-r9.ebuild digest" to get around.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#23 2009-02-02 16:58:43

acruhl
Member
Registered: 2009-02-01
Posts: 9

Re: Gentoo how-to

Now I'm using the new 2006.1 stuff.

Ok, just so we're clear, I did this:

edit /usr/portage/sys-fs/devfsd/devfsd-1.3.25-r9.ebuild

Change this line:

KEYWORDS=""

to this:

KEYWORDS="ppc"

Run this command:

ebuild devfsd-1.3.25-r9.ebuild digest
(this time it works)

Then this:

emerge -av devfsd

And now I have an installed devfsd.

On to the next stuff now.

Last edited by acruhl (2009-02-02 16:59:38)

Offline

 

#24 2009-02-02 17:21:12

acruhl
Member
Registered: 2009-02-01
Posts: 9

Re: Gentoo how-to

Ok, next problem smile

root@marvin / # cat /etc/portage/package.use
sys-apps/module-init-tools old-linux

root@marvin / # emerge -av sys-apps/baselayout

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

Calculating dependencies... done!
[blocks B     ] <sys-apps/util-linux-2.13 (is blocking sys-apps/coreutils-6.10-r2)
[ebuild  N    ] app-arch/lzma-utils-4.32.7  USE="-nocxx" 468 kB
[ebuild     U ] sys-apps/coreutils-6.10-r2 [5.94-r1] USE="-acl (-nls) (-selinux) -static -vanilla% -xattr% (-build%)" 3,691 kB
[ebuild     U ] sys-apps/sysvinit-2.86-r10 [2.86-r5] USE="(-ibm) (-selinux) -static" 100 kB
[ebuild  N    ] virtual/init-0  0 kB
[ebuild     U ] sys-apps/baselayout-1.12.11.1 [1.12.6] USE="-bootstrap -build -static -unicode" 217 kB
[ebuild     U ] sys-apps/module-init-tools-3.4 [3.2.2-r1] USE="old-linux%* (-no-old-linux%)" 424 kB

Total size of downloads: 4,901 kB

!!! Error: The above package list contains packages which cannot be installed
!!!        at the same time on the same system.

For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/h … =1#blocked

Should I unmerge util-linux-2.13?

Sorry, I just don't know anything about Gentoo yet. I'm trying though.

Offline

 

#25 2009-02-02 20:24:59

acruhl
Member
Registered: 2009-02-01
Posts: 9

Re: Gentoo how-to

And more problems, darn:

root@marvin / # emerge --sync
WARNING: usage of RSYNC_EXCLUDEFROM is deprecated, use PORTAGE_RSYNC_EXTRA_OPTS instead
>>> Starting rsync with rsync://195.222.16.154/gentoo-portage...
>>> Checking server timestamp ...
receiving file list ... done
rsync: pipe failed in do_recv: Address family not supported by protocol (97)
rsync error: error in IPC code (code 14) at main.c(647) [receiver=2.6.8]

!!! Rsync has not successfully finished. It is recommended that you keep
!!! trying or that you use the 'emerge-webrsync' option if you are unable
!!! to use rsync due to firewall or other restrictions. This should be a
!!! temporary problem unless complications exist with your network
!!! (and possibly your system's filesystem) configuration.

This kind of stuff is familiar to me in the NetBSD world, this stuff happens when you're using old stuff, lacking options, etc. I tried updating some other stuff with emerge and it complained that something related to RPC didn't exist.

Any ideas?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB