rootfs installation on a Beagleboard XM

Hi all,

I recently got a Beagle-board xm pre-installed with Angstrom Linux.

Here are the contents of the SD card:

/media/Narcissus-rootfs$ ls
bin dev home lost+found mmc narcissus-was-here sbin tmp usr
boot etc lib media mnt proc sys usb1 var

/media/boot$ ls


I wanted to build a custom Linux Kernel. I got the kernel sources


did the following:

make -j8 ARCH=arm uImage
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Image arch/arm/boot/uImage is ready


I removed the existing UIMAGE from the FAT partition of the SD CARD and copied the newly built uImage (is that sufficient or do I have to format the card and then copy all the files ?).

make -j8 ARCH=arm modules
CALL scripts/
Building modules, stage 2.
MODPOST 36 modules

make -j8 ARCH=arm modules_install INSTALL_MOD_PATH=~/Desktop/emb_linux/make_modules_install
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
DEPMOD 3.2.2_omap2_bg_train


Here are the contents of the make_modules_install directory:

$ ls lib/modules/3.2.2_omap2_bg_train/
build modules.builtin.bin modules.ieee1394map modules.pcimap modules.usbmap
kernel modules.ccwmap modules.inputmap modules.seriomap source
modules.alias modules.dep modules.isapnpmap modules.softdep
modules.alias.bin modules.dep.bin modules.ofmap modules.symbols
modules.builtin modules.devname modules.order modules.symbols.bin


What I’m not able to figure out is how do I install the rootfs on the SD card? All the examples I found online were using a pre-compiled rootfs (like

[Angstrom-Beagleboard-demo-image-*.rootfs.tar.bz2]( , and just uncompress this file to the SD card does the trick. In my case how do I find
the files that need to be installed on the SD card. Is there a tool that generates the rootfs for the kernel that I'm compiling?
How do I copy the programs I compiled on to the SD card so that I can have them on the rootfs when I bring up the beagle board.

(using Ubuntu 12.04 as the host system, Minicom to view the serial port interface)


you need to install customized kernel on rootfs not FAT
would you try to

make -j8 ARCH=arm modules_install INSTALL_MOD_PATH=/dev/sdb2 % your rootfs device


hi , i see your comment for rootfs.
i did it already now , i want to copy my new gpio module as welll as .ko file to it , and again want to boot from sdcard , what will the procedure for it. Please reply asap