Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web UI & System Configuration Design

Similar presentations


Presentation on theme: "Web UI & System Configuration Design"— Presentation transcript:

1 Web UI & System Configuration Design
RDC R321x/R323x Web UI & System Configuration Design March. 23, draft version 0.99 RDC Semiconductor Co., Ltd. All Rights Reserved.

2 Architecture – Linux Boot Up
Linux Kernel Boot Up & Initialization Configuration data stored in the Flash Get & Check configuration in Flash Yes, Found No, not found Get default configuration in Filesystem Default configuration data stored in the RAMDisk Read configuration data, then initial & enable application

3 System Configuration & Flash Format
0x000000 Linux Kernel 0x1F0000 Configuration Database 0x200000 Ram Disk (File System) 0x3E0000 Redboot 0x3FFFFF Address define in the //linux2425/drivers/mtd/maps/physmap.c

4 Get/Store Configuration in the Flash
Get the configuration Read data from the flash (MTD block 2) cat /dev/mtdblock/2 > /tmp/config.tar.gz Decompress the data & check the format tar -zxvf /tmp/config.tar.gz if [ -r /tmp/configuration/sysinfo.conf] …. Store the configuration Compress the configuration data into a file tar -cvzf /tmp/config.tar.gz /tmp/configuration Store the file to the flash (MTD block 2) cat /tmp/config.tar.gz > /dev/mtdblock/2

5 System Configuration - File Lists
sysinfo.conf lan.conf wan.conf wireless.conf manage.conf Put in the /tmp/configuration directory Demo & show configuration file . /tmp/configuration : run time configuration data base . /http/config.tar.gz : default configuration file

6 System Configuration - Data Structure
Example : lan.conf # start eth1 Tag to define start DHCP_SERVER=ON  Variable, Value IPADDR= SUBNETMASK= # end eth1 Tag to define end

7 Linux Boot Up – Start Service
inittab (/etc) rcS (/etc/init.d) RDC’s application entry point Get & check configuration file Invoke individual process S50StartService (/etc/init.d) getmac.sh (/etc/app) getlan.sh … nat.sh … Process Functions Read the variable, value pair Apply and enable the configuration ( Demo and explain the program: S50StartService & getmac.sh )

8 Web UI – Http daemon start up
Linux boot up initialization Startup http daemon S50StartService(/etc/init.d) will start up the thttp daemon (/http) ### Start Http Daemon #### chmod 755 /http/webroot  r+x attribute chmod 644 /http/webroot/*.htm  r attribute, no x chmod 755 /http/webroot/*.cgi  r+x attribute /http/thttpd -C /http/thttpd.conf

9 Web UI – thttp.conf logfile=/tmp/thttpd.log  Must be assigned
Put in the /http directory user=root cgipat=**.cgi logfile=/tmp/thttpd.log  Must be assigned pidfile=/tmp/thttpd.pid port=80 Globalpasswd dir=/http/webroot  Html path nochroot

10 Web UI – Show html Http daemon receive html request Run time
Configuration Database (/tmp/configuration) RDC’s CGI function Get the run time configuration data Patch & output ( Demo lan_eth1.cgi & lan_eth1.htm )

11 Web UI – Post and Save configuration
Http Daemon receive POST request Run time Configuration Database (/tmp/configuration) RDC’s CGI function Call proccgi - Get the value to enviroment parameter Get the value and save to run time configuration space ( Demo lan_eth1.cgi & lan_eth1.htm )

12 Files List - Review S50StartService (/etc/init.d/)  RDC main entry point in Linux system boot up /etc/app  Get & apply configuration function directory /etc/http config.tar.gz  Default configuration file thttpd, thttpd.conf  Http daemon /etc/http/configuration  Original default configuration file lists (No compressed, no used in the run time code ,can be removed to save memory) /etc/http/webroot HTML & CGI root files /tmp thttpd.log, thttpd.pid  Http daemon log files config.tar.gz  From the flash or default configuration file /tmp/configuration  Run time configuration data base brctl,iptables,iwpriv  Put in the /etc/app directory proccgi  Put in the /sbin directory

13 Web Firmware Upgrade A tar-ball file include upgrade.lst and all image file( bzImage, redboot.bin, root_fs_i386.ext2.gz). upgrade.lst control what image will be upgrade upgrade.lst contents # start upgrade_files KERNEL_IMAGE=bzImage ROOT_IMAGE=root_fs_i386.ext2.gz REDBOOT_IMAGE=redboot.bin # end upgrade_files

14 Next version Improvement
Support Javascript on html, let user configure it more friendly Add on functions DHCP Client in the Wan site DHCP Server in the Lan site Wireless WEP security support FTP/Samba IDE/USB storage access

15 Q & A

16 Think Different - Apple We Think Things Even Beyond - RDC
Think Big - IBM Think Different - Apple We Think Things Even Beyond - RDC


Download ppt "Web UI & System Configuration Design"

Similar presentations


Ads by Google