gentoo
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gentoo [2011/07/28 00:56] – created gilles | gentoo [2016/02/20 12:42] (current) – [Thumb vs. ARM] janus | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Gentoo | + | ====== |
If you consider yourself exclusively a computer user, this guide is not for you... | If you consider yourself exclusively a computer user, this guide is not for you... | ||
Line 5: | Line 6: | ||
Because hacking the AC100 is still in progress, especially regarding kernels, partitioning and booting, this is not yet a step by step guide for installing Gentoo. | Because hacking the AC100 is still in progress, especially regarding kernels, partitioning and booting, this is not yet a step by step guide for installing Gentoo. | ||
- | Portage overlay: emerge layman; layman -a gentosh-ac100 | + | Portage overlay: |
+ | | ||
+ | | ||
See http:// | See http:// | ||
- | The overlay has ebuilds for | + | The overlay has ebuilds for managing the boot image evolution LED notification plugin possibly more after this list is not maintained anymore |
- | managing the boot image | + | emerge evolution-ac100-leds |
- | evolution LED notification plugin | + | emerge eselect-ac100boot |
- | possibly more after this list is not maintained anymore | + | |
- | emerge evolution-ac100-leds | + | |
- | emerge eselect-ac100boot | + | |
- | Kernel boot | + | ===== Kernel boot ===== |
The easiest solution is to compile a custom kernel and initrd. There have been improvements, | The easiest solution is to compile a custom kernel and initrd. There have been improvements, | ||
Line 26: | Line 27: | ||
- | Repartitioning | + | ===== Repartitioning |
The best solution involves repartitioning. This way, the rootfs can be big and there can be access to the boot image. For a script that automates the kernel install process, see http:// | The best solution involves repartitioning. This way, the rootfs can be big and there can be access to the boot image. For a script that automates the kernel install process, see http:// | ||
- | Root filesystem | + | ===== Root filesystem |
- | Untar a stage3 tarball and portage snapshot from a gentoo mirror | + | Untar a stage3 tarball and portage snapshot from a gentoo mirror |
- | From the adb shell: | + | |
- | mount -t auto / | + | |
- | mkdir / | + | mkdir / |
- | cp / | + | # copy the wifi firmware |
- | cp / | + | |
- | mount -o bind the /dev / | + | |
- | chroot /storage / | + | cp / |
+ | mount -o bind the /dev / | ||
+ | chroot /storage / | ||
In the chroot: | In the chroot: | ||
- | mount the devpts, proc and sysfs filesystem manually | + | * mount the devpts, proc and sysfs filesystem manually |
- | Using adb to upload packages | + | ===== Using adb to upload packages |
- | As the device does not have access to the net, you wil need to use adb to copy the files into / | + | As the device does not have access to the net, you wil need to use adb to copy the files into |
- | ac100# emerge --pretend --fetchonly mypackage | sed -r '/ | + | * / |
- | host$ mkdir downloads | + | |
- | host$ adb pull / | + | |
- | host$ xargs wget -nc -nd -P downloads < | + | |
- | host$ adb push downloads/* / | + | |
- | ac100# emerge mypackage | + | |
+ | host$ mkdir downloads | ||
+ | host$ adb pull / | ||
+ | host$ xargs wget -nc -nd -P downloads < | ||
+ | host$ adb push downloads/* / | ||
+ | ac100# emerge mypackage | ||
You might want to use -va for big builds, to check if everything was downloaded properly. (Download size should be 0) | You might want to use -va for big builds, to check if everything was downloaded properly. (Download size should be 0) | ||
- | Workarounds | + | ===== Workarounds |
- | Thumb vs. ARM | + | ==== Thumb vs. ARM ==== |
The Thumb instruction set is somewhat more limited, but more memory-efficient than the ARM set. Some packages do not compile when the Thumb instruction set is used. GLib may fail to build because of inline asm that is not supported in Thumb. GConf may also fail. | The Thumb instruction set is somewhat more limited, but more memory-efficient than the ARM set. Some packages do not compile when the Thumb instruction set is used. GLib may fail to build because of inline asm that is not supported in Thumb. GConf may also fail. | ||
- | Use CFLAGS=" | + | |
+ | | ||
- | Wifi improperly detected | + | ==== Wifi improperly detected |
HAL did not properly detect that ra0 is a wifi interface. Insert the attached file 10-ralink.fdi into / | HAL did not properly detect that ra0 is a wifi interface. Insert the attached file 10-ralink.fdi into / | ||
The ralink driver in wpa supplicant did not seem to work properly. wext is known to work. | The ralink driver in wpa supplicant did not seem to work properly. wext is known to work. | ||
- | Permission problems | + | ==== Permission problems |
The android kernel provides security for apps by granting ' | The android kernel provides security for apps by granting ' | ||
1001 .. 1010 (inclusive), | 1001 .. 1010 (inclusive), | ||
Line 78: | Line 88: | ||
This will enable network access and possibly more. Sound still requires root (TODO). | This will enable network access and possibly more. Sound still requires root (TODO). | ||
- | Screen blanking | + | ==== Screen blanking |
The backlight can be turned off when gnome-screensaver is active. | The backlight can be turned off when gnome-screensaver is active. | ||
Make sure you have SSH or ADB shell access in case of an error. | Make sure you have SSH or ADB shell access in case of an error. | ||
- | Copy attached file gnome-screensaver-dialog.wrapper to / | + | * Copy attached file gnome-screensaver-dialog.wrapper to / |
- | Copy attached file blankscreend to / | + | |
- | Install ec-test program in / | + | |
- | chmod 755 / | + | |
- | mv / | + | |
- | ln -s gnome-screensaver-dialog.wrapper / | + | mv / |
+ | ln -s gnome-screensaver-dialog.wrapper / | ||
Add blankscreend to your gnome startup. Verify that it starts when you log in. | Add blankscreend to your gnome startup. Verify that it starts when you log in. | ||
- | Battery status | + | ==== Battery status |
Make sure you start nvrm_daemon before starting hal | Make sure you start nvrm_daemon before starting hal | ||
gentoo.1311807380.txt.gz · Last modified: 2011/07/28 00:56 by gilles