Differences

This shows you the differences between the selected revision and the current version of the page.

howto:chroot_gentoo 2009/02/08 18:42 howto:chroot_gentoo 2017/09/06 17:55 current
Line 3: Line 3:
===== Files needed ===== ===== Files needed =====
-  * [[http://download.dsmg600.info/bzip2-1.0.3.tar.bz2|bzip2]] +  * [[http://dns323.kood.org/downloads/bzip2-1.0.3.tar.bz2|bzip2]] 
-  * [[http://download.dsmg600.info/tar-1.15.92.tar.bz2|tar]] +  * [[http://dns323.kood.org/downloads/tar-1.15.92.tar.bz2|tar]] 
-  * [[http://download.dsmg600.info/chroot-5.97.tar.bz2|chroot]] +  * [[http://dns323.kood.org/downloads/chroot-5.97.tar.bz2|chroot]] 
-  * [[ftp://ftp.linux.ee/pub/gentoo/distfiles/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2005.0.tar.bz2|stage3-ppc-uclibc-2005.0]] (recommended for gentoo chroot) or [[ftp://ftp.linux.ee/pub/gentoo/distfiles/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2006.1.tar.bz2|stage3-ppc-uclibc-2006.1]] (recommended for gentoo boot). Don't use 2008.0 stage because it is compiled against 2.6 kernel headers. +  * [[http://ftp.eenet.ee/gentoo/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2005.0.tar.bz2|stage3-ppc-uclibc-2005.0]] (recommended for gentoo chroot) or [[http://ftp.eenet.ee/gentoo/experimental/ppc/embedded/stages/stage3-ppc-uclibc-2006.1.tar.bz2|stage3-ppc-uclibc-2006.1]] (recommended for gentoo boot). Don't use 2008.0 stage because it is compiled against 2.6 kernel headers. 
-  * [[ftp://ftp.linux.ee/pub/gentoo/distfiles/snapshots/portage-latest.tar.bz2|portage tree]]+  * [[http://ftp.eenet.ee/gentoo/snapshots/portage-latest.tar.bz2|portage tree]]
===== Installing steps ===== ===== Installing steps =====
Line 20: Line 20:
  - ''mount -t proc none /mnt/HD_a2/gentoo/proc''   - ''mount -t proc none /mnt/HD_a2/gentoo/proc''
  - ''cp /etc/resolv.conf /mnt/HD_a2/gentoo/etc/''   - ''cp /etc/resolv.conf /mnt/HD_a2/gentoo/etc/''
 +  - ''/mnt/HD_a2/chroot /mnt/HD_a2/gentoo /bin/bash''
  - Update [[howto:chroot_gentoo#etc_make.conf|/etc/make.conf]]   - Update [[howto:chroot_gentoo#etc_make.conf|/etc/make.conf]]
  - Update [[howto:chroot_gentoo#etc_conf.d_net|/etc/conf.d/net]]   - Update [[howto:chroot_gentoo#etc_conf.d_net|/etc/conf.d/net]]
-  - ''/mnt/HD_a2/chroot /mnt/HD_a2/gentoo /bin/bash'' 
  - ''env-update && source /etc/profile''   - ''env-update && source /etc/profile''
  - ''rc-update add net.eth0 default''   - ''rc-update add net.eth0 default''
Line 28: Line 28:
  - ''passwd root''   - ''passwd root''
  - **If you did choose to use 2005.0 stage then you must update e2fsprogs!** ''emerge e2fsprogs''   - **If you did choose to use 2005.0 stage then you must update e2fsprogs!** ''emerge e2fsprogs''
-  - **Always make sure that devfsd is installed!** ''emerge -pv devfsd''+  - **If you are going to hddboot, always make sure that devfsd is installed!** ''emerge -pv devfsd''
  - **It is also recommended that you update sys-apps/baselayout package. Its needed by net configuration to change mac address.** However, by default, baselayout pulls in and builds module-init-tools with support only for 2.6 kernels. So, to allow the updated module-init-tools to be built with support for both 2.4 and 2.6 kernels: ''echo %%"sys-apps/module-init-tools      old-linux" >> %%/etc/portage/package.use''   - **It is also recommended that you update sys-apps/baselayout package. Its needed by net configuration to change mac address.** However, by default, baselayout pulls in and builds module-init-tools with support only for 2.6 kernels. So, to allow the updated module-init-tools to be built with support for both 2.4 and 2.6 kernels: ''echo %%"sys-apps/module-init-tools      old-linux" >> %%/etc/portage/package.use''
  - ''emerge sys-apps/baselayout''   - ''emerge sys-apps/baselayout''
Line 39: Line 39:
LDFLAGS="-Wl,-z,relro" LDFLAGS="-Wl,-z,relro"
USE="-*" USE="-*"
-RSYNC_EXCLUDEFROM="/etc/portage/rsync_excludes"+PORTAGE_RSYNC_EXTRA_OPTS="—exclude-from=/etc/portage/rsync_excludes"
SYNC="rsync://rsync1.ee.gentoo.org/gentoo-portage" SYNC="rsync://rsync1.ee.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.linux.ee/pub/gentoo/distfiles" GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.linux.ee/pub/gentoo/distfiles"
Line 56: Line 56:
net is needed only if you are going to boot gentoo using loader.o or flashed custom kernel. net is needed only if you are going to boot gentoo using loader.o or flashed custom kernel.
<code> <code>
-config_eth0=( "192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255" ) +config_eth0=( "yourNASip netmask 255.255.255.0 broadcast yourBroadcastAddress" ) 
-routes_eth0=( "default gw 192.168.1.1" ) +routes_eth0=( "default gw yourGatewayAddress" ) 
-mac_eth0="00:13:46:D9:D7:75+mac_eth0="yourMACaddress" 
-dns_servers_eth0=( "192.168.1.1" )+dns_servers_eth0=( "yourDNSserverAddress" ) 
 +</code> 
 + 
 +Example : 
 +<code> 
 +config_eth0=( "192.168.0.20 netmask 255.255.255.0 broadcast 192.168.0.255" ) 
 +routes_eth0=( "default gw 192.168.0.254" ) 
 +mac_eth0="00:15:E9:6D:22:11
 +dns_servers_eth0=( "212.20.30.40" )
</code> </code>
Line 126: Line 134:
==== Additional software ==== ==== Additional software ====
-  * [[http://forum.dsmg600.info/t788-ntpclient-gentoo-hdd-boot-chroot.html|NTPclient]] +  * [[http://dns323.kood.org/forum/t788-ntpclient-gentoo-hdd-boot-chroot.html|NTPclient]] 
-  * [[http://forum.dsmg600.info/t955-chkbutton-replacement.html|DSMG600 button and leds]]+  * [[http://dns323.kood.org/forum/t955-chkbutton-replacement.html|DSMG600 button and leds]]
===== chrooting ==== ===== chrooting ====
Line 323: Line 331:
  * If your root file system is read-only then use ''mount -t ext3 -o rw,remount /dev/sda3 /'' to get write access.   * If your root file system is read-only then use ''mount -t ext3 -o rw,remount /dev/sda3 /'' to get write access.
  * Current e2fsprogs 1.40.4 fails to build with following error: ''../../lib/libuuid.so: undefined reference to `___tls_get_addr' '' See http://bugs.gentoo.org/show_bug.cgi?id=204102 for more details. Workaround is to use version 1.40.3 by running ''echo '>=sys-fs/e2fsprogs-1.40.4' >> /etc/portage/package.mask'' before emerging.   * Current e2fsprogs 1.40.4 fails to build with following error: ''../../lib/libuuid.so: undefined reference to `___tls_get_addr' '' See http://bugs.gentoo.org/show_bug.cgi?id=204102 for more details. Workaround is to use version 1.40.3 by running ''echo '>=sys-fs/e2fsprogs-1.40.4' >> /etc/portage/package.mask'' before emerging.
 +==== Installing an older package ====
 +Current version gentoo packages may not work on DSM-G600.
 +If you gets Masked packages because of unsupported EAPI or package only support kernel 2.6,
 +try to install an older package by browsing to /usr/portage///category/application// or going to the CSV tree :
 +[[http://sources.gentoo.org/viewcvs.py/gentoo-x86/]]
 +and searching older version of the package.
 +Once the version found, install it with this command :
 +<code>
 +emerge -av =category/package-version
 +</code>
===== Links ===== ===== Links =====
-  * [[http://forum.dsmg600.info/t18-Gentoo-howto.html|Forum thread]]+  * [[http://dns323.kood.org/forum/t18-Gentoo-howto.html|Forum thread]]
  * [[http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?full=1|Gentoo handbook]]   * [[http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?full=1|Gentoo handbook]]

Personal Tools