Difference between revisions of "Filesystem"

From Idrive
Jump to navigation Jump to search
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
X2 filesisyem version: ltib4-no-x-20130618
+
'''How to build the X2 filesystem.'''
  
Changes list:
+
1. Use Boundary base filesystem "ltib4-no-x-20130618" as starting point.
 +
 
 +
2. Prepare an ext4 SD card having "ltib" label.
 +
 
 +
3. Changes that have to be applied to the base filesystem in order to be able to run X2 application:
 
  '''kernel + modules'''  
 
  '''kernel + modules'''  
  run ist.sh under kernel distribution
+
  run ist.sh under kernel distribution which will copy all needed files to /media/ltib
 
 
'''/etc/fstab'''
 
 
 
  
 +
'''/etc/fstab - 128MB RAM disk and SD card auto mount'''
 +
/etc/fstab < add the following lines at the end:
 +
  + tmpfs /mnt/ramdisk tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=128M 0 0
 +
  + /dev/mmcblk1p1  /mnt/sdcard    auto    defaults    0    0
 +
 +
'''Boot files'''
 +
/
 +
  + u-boot.imx
 +
  + 6x_bootscript
 +
  + 6x_bootscript.txt
 
  '''X2 application'''
 
  '''X2 application'''
 
  /root/
 
  /root/
  x2idr.fw,
+
  + x2idr.fw,
  adresa.cfg,
+
  + adresa.cfg,
  ip.cfg,
+
  + ip.cfg,
  mac.cfg,
+
  + mac.cfg,
  size.cfg,
+
  + size.cfg,
  run.sh,  
+
  + run.sh,  
  stream.sh,
+
  + stream.sh,
  modules.sh,
+
  + modules.sh,
  make_board_links.sh;
+
  + make_board_links.sh;
 
  /root/lib/  
 
  /root/lib/  
  libavccodec.so.56.0.101,
+
  + libavccodec.so.56.0.101,
  libavformat.so.56.3.100,
+
  + libavformat.so.56.3.100,
  libavutil.so.54.7.100,
+
  + libavutil.so.54.7.100,
  libswresample.so.1.1.100,
+
  + libswresample.so.1.1.100,
  libswscale.so.3.0.100;
+
  + libswscale.so.3.0.100;
 
  /root/modules/  
 
  /root/modules/  
  event.ko,
+
  + event.ko,
  rt5572sta.ko;
+
  + rt5572sta.ko;
  /etc/Wireless/RT2870STA/
+
/mnt/sdcard < mkdir
  RT2870STA.dat;
+
/mnt/ramdisk < mkdir
  RT2870STACard.dat;
+
 
 +
  /etc/rc.d/
 +
  + rc.conf < config_services += "idrive", HOSTNAME="Idrive", IPADDR0="10.3.0.254";
 +
  + init.d/idrive
 
    
 
    
 
+
  '''USB stick update application'''
  '''update application'''
 
 
  /root/
 
  /root/
  update,
+
  + update,
  update_stick_log.txt;
+
  + update_stick_log.txt;
 +
/etc/udev/rules.d/01-usb-stick.rules;
 +
/lib/udev
 +
  + update.sh
 +
  + reboot.sh
 +
  + update
  
  '''wpa supplicant'''
+
  '''WPA Supplicant - WIFI'''
 
  /root/
 
  /root/
  wpa_supplicant,
+
  + wpa_supplicant,
  wpa_passphrase;
+
  + wpa_passphrase;
 +
  + wpa.cfg
 +
/etc/Wireless/RT2870STA/
 +
  + RT2870STA.dat;
 +
  + RT2870STACard.dat;
  
 
+
  '''pppd - 3G module'''
  '''pppd'''
 
 
  /etc/ppp/*
 
  /etc/ppp/*
 
  /usr/sbin/
 
  /usr/sbin/
  pppd
+
  + pppd
  chat
+
  + chat
 +
  + ln -s /etc/ppp/resolv.conf /etc/resolv.conf
 +
 
 +
 
 +
4. Copy the files structure to the SD Card.

Latest revision as of 12:43, 23 February 2015

How to build the X2 filesystem.

1. Use Boundary base filesystem "ltib4-no-x-20130618" as starting point.

2. Prepare an ext4 SD card having "ltib" label.

3. Changes that have to be applied to the base filesystem in order to be able to run X2 application:

kernel + modules 
run ist.sh under kernel distribution which will copy all needed files to /media/ltib
/etc/fstab - 128MB RAM disk and SD card auto mount 
/etc/fstab < add the following lines at the end: 
 + tmpfs /mnt/ramdisk tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=128M 0 0
 + /dev/mmcblk1p1  /mnt/sdcard    auto    defaults     0     0

Boot files
/
 + u-boot.imx
 + 6x_bootscript
 + 6x_bootscript.txt
X2 application
/root/
 + x2idr.fw,
 + adresa.cfg,
 + ip.cfg,
 + mac.cfg,
 + size.cfg,
 + run.sh, 
 + stream.sh,
 + modules.sh,
 + make_board_links.sh;
/root/lib/ 
 + libavccodec.so.56.0.101,
 + libavformat.so.56.3.100,
 + libavutil.so.54.7.100,
 + libswresample.so.1.1.100,
 + libswscale.so.3.0.100;
/root/modules/ 
 + event.ko,
 + rt5572sta.ko;
/mnt/sdcard < mkdir
/mnt/ramdisk < mkdir
/etc/rc.d/
 + rc.conf < config_services += "idrive", HOSTNAME="Idrive", IPADDR0="10.3.0.254";
 + init.d/idrive 
 
USB stick update application
/root/
 + update,
 + update_stick_log.txt;
/etc/udev/rules.d/01-usb-stick.rules;
/lib/udev 
 + update.sh
 + reboot.sh
 + update
WPA Supplicant - WIFI
/root/
 + wpa_supplicant,
 + wpa_passphrase;
 + wpa.cfg
/etc/Wireless/RT2870STA/
 + RT2870STA.dat;
 + RT2870STACard.dat;
pppd - 3G module
/etc/ppp/*
/usr/sbin/
 + pppd
 + chat
 + ln -s /etc/ppp/resolv.conf /etc/resolv.conf


4. Copy the files structure to the SD Card.