Differences
This shows you the differences between the selected revision and the current version of the page.
howto:chroot_gentoo 2009/07/08 09:08 | 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 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 57: | Line 57: | ||
<code> | <code> | ||
config_eth0=( "yourNASip netmask 255.255.255.0 broadcast yourBroadcastAddress" ) | config_eth0=( "yourNASip netmask 255.255.255.0 broadcast yourBroadcastAddress" ) | ||
- | routes_eth0=( "default gw yourGatewayAdress" ) | + | routes_eth0=( "default gw yourGatewayAddress" ) |
mac_eth0="yourMACaddress" | mac_eth0="yourMACaddress" | ||
dns_servers_eth0=( "yourDNSserverAddress" ) | 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]] |