rootfs installation on a Beagleboard XM

240 views
Skip to first unread message

asp5

unread,
Apr 29, 2012, 9:42:09 PM4/29/12
to beagl...@googlegroups.com

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
MLO  U
-BOOT.BIN  uEnv.txt  UIMAGE


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

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
/checksyscalls.sh
 
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)


Thanks,
asp5.

Daniel He

unread,
Apr 30, 2012, 4:38:22 AM4/30/12
to beagl...@googlegroups.com
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

?


-- To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

bramh.p...@gmail.com

unread,
Jul 21, 2016, 7:25:33 AM7/21/16
to BeagleBoard
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

*******************************************************************************************
Reply all
Reply to author
Forward
0 new messages