Difference between revisions of "Filesystem"

From Idrive
Jump to navigation Jump to search
Line 1: Line 1:
X2 filesisyem version: ltib4-no-x-20130618
+
'''How to build a X2 filesystem.'''
  
Prepare an ext4 SD card having "ltib" label
+
1. Use Boundary base filesystem "ltib4-no-x-20130618" as starting point.
  
Changes that have to be applied to the base Filesystem in order to be able to run X2 application:
+
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 which will copy all needed files to /media/ltib
 
  run ist.sh under kernel distribution which will copy all needed files to /media/ltib
Line 14: Line 16:
 
  '''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/rc.d/
 +
  + rc.conf < config_services += "idrive", HOSTNAME="Idrive", IPADDR0="10.3.0.254";
 +
  + init.d/idrive
 +
 
 +
 
 
  /etc/Wireless/RT2870STA/
 
  /etc/Wireless/RT2870STA/
  RT2870STA.dat;
+
  + RT2870STA.dat;
  RT2870STACard.dat;
+
  + RT2870STACard.dat;
  
 
  '''USB stick update application'''
 
  '''USB stick update application'''
 
  /root/
 
  /root/
  update,
+
  + update,
  update_stick_log.txt;
+
  + update_stick_log.txt;
 
  /etc/udev/rules.d/01-usb-stick.rules;
 
  /etc/udev/rules.d/01-usb-stick.rules;
 
  /lib/udev  
 
  /lib/udev  
  update.sh
+
  + update.sh
  reboot.sh
+
  + reboot.sh
  update
+
  + update
  
 
  '''wpa supplicant - WIFI'''
 
  '''wpa supplicant - WIFI'''
 
  /root/
 
  /root/
  wpa_supplicant,
+
  + wpa_supplicant,
  wpa_passphrase;
+
  + wpa_passphrase;
  
 
  '''pppd - 3G module'''
 
  '''pppd - 3G module'''
 
  /etc/ppp/*
 
  /etc/ppp/*
 
  /usr/sbin/
 
  /usr/sbin/
  pppd
+
  + pppd
  chat
+
  + chat
  ln -s /etc/ppp/resolv.conf /etc/resolv.conf
+
  + ln -s /etc/ppp/resolv.conf /etc/resolv.conf
 +
 
 +
4. Copy the files structure to the SD Card.

Revision as of 12:28, 23 February 2015

How to build a 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 
Edit /etc/fstab and add the following lines: 
  tmpfs /mnt/ramdisk tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=128M 0 0
  /dev/mmcblk1p1  /mnt/sdcard    auto    defaults     0     0
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;
/etc/rc.d/
 + rc.conf < config_services += "idrive", HOSTNAME="Idrive", IPADDR0="10.3.0.254";
 + init.d/idrive 
 
/etc/Wireless/RT2870STA/
 + RT2870STA.dat;
 + RT2870STACard.dat;
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;
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.