1 |
The command for installing the kernel modules didn't work correctly for |
2 |
me. When I typed |
3 |
ROOT=/embedded_rootfs make modules_install |
4 |
the modules where installed in my development host's /lib/modules. |
5 |
|
6 |
I could instruct the Makefile to install the modules in embedded_rootfs |
7 |
using: |
8 |
make INSTALL_MOD_PATH=/embedded_rootfs modules_install |
9 |
|
10 |
-Xabier |
11 |
|
12 |
|
13 |
> |
14 |
> |
15 |
>#---- Step 5 - Build and install a kernel to the embedded_rootfs ------------- |
16 |
> |
17 |
># Install a kernel into embedded_rootfs. |
18 |
># First we will emerge it into our development_rootfs, then configure and |
19 |
># build it. |
20 |
># ** Warning ** |
21 |
># There appears to be a bug in kernel version >2.6.12 that prevents us |
22 |
># from "make menuconfig" in the chroot environment. I don't know when it |
23 |
># will be fixed (I'll assume it has to do with uclibc, right ??). |
24 |
># A simple work around would be to compile a kernel outside of the |
25 |
># development_rootfs environment and copy the image over to the |
26 |
>embedded_rootfs |
27 |
># boot directory. I'm leaving the how-to as is for now, because I feel that |
28 |
># this "bug" be eventually be fixed upstream. |
29 |
>emerge vanilla-sources |
30 |
>cd /usr/src/ |
31 |
>cd linux |
32 |
>make menuconfig |
33 |
># Configure your kernel for your TARGET SBC here. I HIGHLY suggest you |
34 |
># configure the kernel to compile everything into the kernel, and nothing |
35 |
># as a module. |
36 |
>make |
37 |
>ROOT=/embedded_rootfs make modules_install |
38 |
>cp /usr/src/linux/arch/i386/boot/bzImage /embedded_rootfs/boot/vmlinuz-2.6.x |
39 |
> |
40 |
># A few notes on compiling your kernel. |
41 |
># If deploying to Compact Flash/DiskOnChip/SD use ext2, as the journaling |
42 |
># filing systems "write" to much for a flash device. |
43 |
># If deploying to a hard drive use a journaling filing system, such as |
44 |
># ext3 or reiserfs. |
45 |
> |
46 |
> |
47 |
> |
48 |
|
49 |
-- |
50 |
gentoo-embedded@g.o mailing list |