Difference between revisions of "IDP Build & Deploy Image"

From ESS-WIKI
Jump to: navigation, search
(Created page with "=Build an IDP OS= 1. Go to the $HOME/Project directory on your Development Computer: cd $HOME/Project 2. Define your Gateway options by coping and pasting the configure comma...")
(No difference)

Revision as of 06:28, 28 January 2016

Build an IDP OS

1. Go to the $HOME/Project directory on your Development Computer:

cd $HOME/Project

2. Define your Gateway options by coping and pasting the configure command

Configure for Intel Atom processor
../WindRiver/wrlinux-7/wrlinux/configure --enable-board=intel-baytrail-64 --enable-kernel=idp --enable-bootimage=ext3,hdd --enable-patchresolve=noop --enablerootfs=idp \
--enable-addons=wr-idp --with-layer=wr-prosyst-mbs-smarthome-sdk-ia,wrdigi-idigiconnector,wr-wks-oneagent-oma-dm-ia,wr-wks-oneagent-tr069,\
sysversion,wr-iot --with-template=feature/vlan,feature/opc,feature/recovery,feature/opc_demo,feature/ipsec_vpn,feature/l2tp,feature/realtek, \
feature/ems-test,feature/remote-session,feature/openjdk-bin,feature/online_updates,feature/bluetooth,feature/pptp_vpn,feature/target-toolchain \
--withpackage=make,git,iasl,libtool,perl,ruby,subversion,autoconf,automake,curl,conntrack-tools,fuse,igmpproxy,iperf,ipset,libcli,mipv6-daemonumip,\
ntfs-3g,ntfsprogs,sshfs-fuse,tftp-hpa,tftp-hpa-server,tcpdump,vim 
Configure for Intel Core processor
../WindRiver/wrlinux-7/wrlinux/configure --enable-board=intel-haswell-64 --enable-kernel=idp --enable-bootimage=ext3,hdd --enable-patchresolve=noop --enablerootfs=idp \
--enable-addons=wr-idp --with-layer=wr-prosyst-mbs-smarthome-sdk-ia,wrdigi-idigiconnector,wr-wks-oneagent-oma-dm-ia,wr-wks-oneagent-tr069,\
sysversion,wr-iot --with-template=feature/vlan,feature/opc,feature/recovery,feature/opc_demo,feature/ipsec_vpn,feature/l2tp,feature/realtek, \
feature/ems-test,feature/remote-session,feature/openjdk-bin,feature/online_updates,feature/bluetooth,feature/pptp_vpn,feature/target-toolchain \
--withpackage=make,git,iasl,libtool,perl,ruby,subversion,autoconf,automake,curl,conntrack-tools,fuse,igmpproxy,iperf,ipset,libcli,mipv6-daemonumip,\
ntfs-3g,ntfsprogs,sshfs-fuse,tftp-hpa,tftp-hpa-server,tcpdump,vim 

3. Build the IDP

make fs

4. The config.log created in $HOME/Project is an exact copy of the configure options used to build the Gateway OS. Save this as config.sh for future development projects:

cp config.log config.sh

5. Continue to Copy Gateway OS to USB Flash Drive.
Note: Remove grsecurity to experiment with application development. Refer to IDP Build IDP Without Grsecurity

Grsecurity is included in the Linux kernel by default. This feature can inhibit exploration by preventing your apps from working.
Disable grsecurity while you experiement with your Gateway. When you are ready to build a production-ready Gateway, consider re-enabling grsecurity

Menu Config

$make -C build linux-windriver.menuconfig
$make -C build linux-windriver.rebuild
Note: 1.Type "/" to search key word
      2.To select be installed driver or function
      For example: Ath9k wifi module driver

Copy Gateway OS to USB Flash Drive

1. ls /dev/sd?
2. Insert the USB flash drive into your Development Computer
3. ls /dv/sd?
4. cd $HOME/workspace/<YourProjectDirectory_prj>
5. Deploy the image to USB flash drive. Note: The deploy process takes about 15 minutes.

For Atom processor
sudo ./deploy.sh -u -f export/intel-baytrail-64-idp-idp-dist.tar.bz2 -d /dev/sd? -y; sync

For Intel Core processor
sudo ./deploy.sh -u -f export/intel-haswell-64-idp-idp-dist.tar.bz2 -d /dev/sd? -y; sync

6. Type your Linux password if prompted and click OK. The bootable USB drive is created when you see DONE! 7. Remove and reinsert into your Development Computer. The flash drive mounts with two partitions, one of which is /media/<username>/wr_usb_boot 8. Copy image to the flash drive

For Atom processor 
sudo cp export/intel-baytrail-64-idp-idp-dist.tar.bz2 /media/<username>/wr_usb_boot/opt/; sync
For Intel Core processor
sudo cp export/intel-haswell-64-idp-idp-dist.tar.bz2 /media/<username>/wr_usb_boot/opt/; sync

9. Remove the USB flash drive from your Development Computer

Install the OS on the Gateway

1. Insert the USB to Gateway and power on. Login using "root" for the login ID and password.
2. Install the OS:

tgt=/dev/sda /sbin/reset_media

3. Installation is complete when you see the message "DONE!" Shut down the Gateway

poweroff

4. Remove the USB flash drive and power up your Gateway 5. Login using "root" for both the login ID and password. The OS installation is complete.