Forum Topic - How to create the filesystem in SD card ?: (5 Items)
   
How to create the filesystem in SD card ?  
Hello,
  I use the beagle board to verify my QNX application. Now I use the bin file (my software is in the bin file) in SD 
card to start the whole QNX system. But I want to setup the filesystem in SD card , not use the "uncompressing" method 
to setup the filesystem. 
  I saw one QNX software package "beagle_mouse_SmartEnergy_1.3.3_external.zip" that it setups the filesystem in SD card.
 How can I acheive?
Re: How to create the filesystem in SD card ?  
Jay-

Once you get beagle to boot from SD, you must then mount the SD card in neutrino.  This involves starting the mmcsd 
driver and then mounting the filesystem.  

Note your filesystem may be formated to be fat32  type '11' or '12'.  The number on the mount line must match. 

Files will appear at /fs using the line below.  It will be read/write but you must reboot if you remove the SD card.

Of course, all the binaries /proc/boot/devb-mmcsd-omap3  and /proc/boot/mount must  be present in the .ifs image as well
 as all required libraries (fs-dos.so)

#######################################################################
## mmcsd driver
##
## The SD card contains many desired executables
## Path should include the mountpoint /fs
#######################################################################
display_msg Starting mmcsd filesystem...
/proc/boot/devb-mmcsd-omap3 dos exe=all lfn=show sfn=windows &
waitfor /dev/hd0 5 &
mount -t dos /dev/hd0t12 /fs



Re: How to create the filesystem in SD card ?  
Hello Dennis,
  Thanks for your reply.
I have followed the steps you described. The files in SD card are mounted and executable in the beagle board.
  In the current configuration, the file system (not include the files in SD card) is generated (or uncompressed) by the
 file “ifs-omap3530-beagle.bin”. 
  But I still wonder that if the file “bsp-TI-omap3530.ifs” is used in SD card now, not the one "ifs-omap3530-beagle.
bin", how to organize the file system?

Re: How to create the filesystem in SD card ?  
If I understand you correctly, the system is booting from ifs-omap3530-beagle.bin?  But when you build a system, the 
output is bsp-TI-omap3530.ifs ?

This would imply that uboot is configured to boot 'ifs-omap3530-beagle.bin'.  So just copy the new bsp-TI-omap3530.ifs 
over ifs-omap3530-beagle.bin   OR change uboot to boot the other name.

In the system you build, you can omit most of the binaries you place on the SD card filesystem.  ( I say "most" because 
you still need enough binaries to mount the SD card before you can use its contents.)   Be sure to add the SD mountpoint
 to your path.  Omitting files from the .ifs results in faster booting and saves  RAM.
Re: How to create the filesystem in SD card ?  
  Yes, the system is booted by " ifs-omap3530-beagle.bin" now.
I use the beagle board BSP. It can also generate the "*.ifs" file.
  As I mentioned in the first post of this topic, I want to put all files in SD cad, not the filesystem uncompressed by 
" ifs-omap3530-beagle.bin. Is it feasible?


> If I understand you correctly, the system is booting from ifs-omap3530-beagle.
> bin?  But when you build a system, the output is bsp-TI-omap3530.ifs ?
> 
> This would imply that uboot is configured to boot 'ifs-omap3530-beagle.bin'.  
> So just copy the new bsp-TI-omap3530.ifs over ifs-omap3530-beagle.bin   OR 
> change uboot to boot the other name.
> 
> In the system you build, you can omit most of the binaries you place on the SD
>  card filesystem.  ( I say "most" because you still need enough binaries to 
> mount the SD card before you can use its contents.)   Be sure to add the SD 
> mountpoint to your path.  Omitting files from the .ifs results in faster 
> booting and saves  RAM.