Home
W90N745 uClinux BSP User Manual
Contents
1. Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 1 W90N745 uClinux BSP User s Manual Winbond Electronics Corp July 25 2007 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 2 Histroy List Version Date Author Comment 1 0 July 7 2006 Initial Version 1 1 July 25 2007 Update kernel config section The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 3 st CUD EO seen E E EAN E ARAA I enr A Sn A 5 2 Farget Processor nn te Aa E E E en nn E R 5 3 S pported EU CNN sicoiir iie dd E AR 5 4 Development PlatfotM siressa E AR E AE E an 6 3 Dstallation POUR es nn ee a a E A EERS 6 Sol Install the tools and Ve lens ne D eee 6 5 2 Fil sinst lled ierocis nn ir ne nant eae hee 7 53 Drivers ndtheit NOG AMOR ce ti to ini T 54 Build th kernel and test program sissioni seeiiiniisiesii sesiis tassi i aiiora isins Sra Sa iaria 8 6 Kernel gh ET QU tes rE E E E R nd EE E Ea 9 6l S
2. pthread_attr_t attr void stackaddr int pthread_attr_getstackaddr const pthread_attr_t attr void stackaddr int pthread_attr_setstacksize pthread_attr_t attr size_t stacksize int pthread_attr_getstacksize const pthread_attr_t attr size_t stacksize int pthread_setschedparam pthread_t target_thread int policy const struct sched_param param int pthread_getschedparam pthread_t target_thread int policy struct sched_param param int pthread_mutex_init pthread_mutex_t mutex const pthread_mutexattr_t mutexattr int pthread_mutex_lock pthread_mutex_t mutex int pthread_mutex_trylock pthread_mutex_t mutex int pthread_mutex_unlock pthread_mutex_t mutex The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 36 int pthread_mutex_destroy pthread_mutex_t mutex int pthread_mutexattr_init pthread_mutexattr_t attr int pthread_mutexattr_destroy pthread_mutexattr_t attr int pthread_mutexattr_settype pthread_mutexattr_t attr int kind int pthread_mutexattr_gettype const pthread_mutexattr_t attr int kind int pthread_cond_init pthread_cond_t cond pthread_condattr_t cond_attr int pthread_cond_signal pthread_cond_t cond int pthread_cond_broadcast
3. the buffer size provides by the dev vdd0 is 2KB if the buffer size needs to be increase the Line 27 in uClinux dist linux 2 4 x drivers char vdd c can be changed to set the desired buffer size then rebuild the kernel define DEBUGBUF_SIZE 1024 2 9 Update Kernel and ROM File System This chapter describes how to update kernel and ROM file system onto FLASH as well as some kernel configuration regarding the ROM file system location Users could also refer to W90N745 Bootloader users manual pdf for more detail of bootloader operation The bootloader will scan the image sequentially and process the active images according to their attribute So you need to configure ROM file system image as the image 6 or other number smaller than 7 and Linux kernel as image 7 or other unused ID number grater than ROM file system s image ID The address of the images in FLASH is not relevant as long as they are not overlapped The following table lists the basic flash map of uClinux system and the bootloader We suggest user compress the Linux kernel image to save flash space And the ROM file system image The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 17 could also be a compressed i
4. IF 1 ER A E RENTER E EA NE E RAR 26 ER A a A US 28 ES AEE E EEA E ANTE E EE R 29 ILIO Mistenni 29 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 4 CLII NT erorii ce tacceeeens 31 TLI pthread ibrary eiie A ne en E E 35 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 5 1 Introduction Winbond uClinux is an embedded Linux kernel developed based on the Linux operating system it supports the ARM hardware platform without the MMU installed It supports almost all of the functions of Linux operation system including the memory management task scheduling interrupt handling and almost all of system calls that Linux supported For the file systems the Winbond uClinux supports the ROMFS gt RAMFS gt PROC FAT VFAT and it can support other file system if desired ROMEFS is a Read Only file system and it is the root file system of kernel It uses for store the utilities device files and user configuration files These files need to be saved in the directory of
5. Manual VERSION 1 1 PAGE 13 6 2 6 8 JFFS2 support This option shows up if MTD support is enabled File systems gt Journalling Flash File System v2 JFFS2 support 6 2 6 9 ISO9660 support File systems gt ISO 9660 CDROM file system support Microsoft Joliet CDROM extentions 6 2 7 USB device support First configure the the support of USB host controller OHCI host interface USB support gt Support for USB OHCI Compaq iMacs OPTi SiS ALi support USB Mass Storage device support SCSI support gt SCSI support SCSI disk support USB support gt USB Mass Storage support If USB CD ROM support is required enable following option as well SCSI support gt SCSI CD ROM support 6 2 8 MTD 6 2 8 1 NOR flash Memory Technology Devices MTD gt Memory Technology Device MTD support MTD partitioning support Direct char device access to MTD devices 1 Caching block device access to MTD devices RAM ROM Flash chip drivers gt Detect flash chips by Common Flash Interface CFI probe Flash chip driver advanced configuration options NO Flash cmd query data swapping 1 Specific CFI Flash geometry selection Support 16 bit buswidth The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from W
6. Winbond provides a defaul kernel configuration files in uClinux dist linux2 4 x wo_ev_board It is strongly urged that users load the default setting according to the target board before first time build the kernel The configuration should be loaded in kernel configuration menu Please refer to chapter 6 for detail about the kernel configuration 5 2 Files installed Four directories will be created under lt installed directory gt W90N745 uClinux Directories Comment uClinux dist W90N745_uClinux Kernel Source Code romdisk ROM File System Tree for W90N745 Board SYSTEM image Built image romfs img is the root file system image linux bin is the kernel binary execution code TestApps Test program on uClinux The arm_tools tar gz will be installed in usr local arm_tools arm tools 8 3 tar gz can be installed on usr local arm_tools_3 3 by manually later if support for C is required Tools installed under usr local arm_tools bin listed below usr local arm tools bin Bin Utilities include the compiler and linker etc install sh will add it to every user s PATH etc Profile updated usr local arm tools arm elf inc Header files usr local arm tools arm elf 1ib Linkable libraries C and pthread library 5 3 Drivers and their location MAC uClinux dist linux 2 4 x drivers net w90n745 mac c UART uClinux dist linux 2 4 x drivers char w90n745 uart c uClinux di
7. bin sh argv_sh envp_init Open the dev vdd0 as the fd 0 the call the dup 0 twice to get the fd 1 stdout and 2 stderr then call execve to execute the user program All of the printed message will be redirected to dev vddo Following example illustrate how to check the message recorded on dev vddO The user program test c include lt stdio h gt int main void int i 0 while 1 printf hello fflush stdout fprintf stderr world d n i if i 1000 1 0 return 0 Copy the compiled and executable program test to romdisk bin change it to executable permission and make a device file vddO The dev vddO use major device number 99 minor device number 0 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 16 mknod vdd0 c 99 0 Modify the romdisk bin init as followed mount t proc none proc mount t ramfs none usr mount t ramfs none swap ifconfig eth1 10 130 2 103 netmask 255 255 0 0 inetd amp test Use the genromfs to generate the romfs img and the updated linux bin with dev vddO supported When system startup telnet to the target system then cat dev vddO to get the message printed by test Currently
8. cd lt installed directory gt uClinux dist make clean make dep make The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 9 The built image linux bin will be copied to image e Build W90N745 test program Enter any folder under TestApps type command make then a new image file romfs img will be found at folder image Or you can use the following commands to generate a new image file genromfs d romdisk f romfs img There are 2 methods to execute the application programs One is enter the shell command prompt after system start up key in the application program name and execute it Another way is to put the application program name in a file named init in the bin directory the init contains all of the programs that want to be executed immediately when the system startup 6 Kernel configuration User can type ether make linux_menuconfig or make menuconfig under uClinux dist and select the option Customize Kernel Settings to enter the main menu of kernel configuration page User can use arrow key to move high light item and use space key to select or un select them It is strongly suggested run make dep after any configuration
9. int fd const struct iovec vector int count int writev int fd const struct iovec vector int count The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 34 pid_t getsid pid_t pid int fdatasync int fd int sysctl int name int nlen void oldval size_t oldlenp void newval size_t newlen int sched_setparam pid_t pid const struct sched_param p int sched_getparam pid_t pid struct sched_param p int sched_setscheduler pid_t pid int policy const struct sched_param p int sched_getscheduler pid_t pid int sched_yield void int sched_get_priority_max int policy int sched_get_priority_min int policy int sched_rr_get_interval pid_t pid struct timespec tp int nanosleep const struct timespec req struct timespec rem void mremap void old_address size_t old_size size_t new_size unsigned long flags int setresuid uid_t ruid uid_t euid uid_t suid int getresuid uid_t ruid uid_t euid uid_t suid int query_module const char name int which void buf size_t bufsize size_t ret int poll struct pollfd ufds unsigned int nfds int timeout int setresgid gid_t rgid gid_t egid gid_t sgid int getresgid gid_t rgid gid_t egid gid_t sgid int ___
10. made and before build kernel 6 1 Simplest configuration The following items show the configuration of the most compact kernel System Type gt Winbond ARM system type RAM Kernel executes from WINBOND W90N745 Board Implementation General setup gt ELF Kernel core proc kcore format Block devices gt ROM disk memory block device blkmem W90N745 FLASH type File systems gt ROM file system support Character devices gt Winbond W90N745 serial port support Support for console on Winbond W90N745 serial port This configuration support the ramfs and romfs two basic file system and only the ELF flat format binary The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 10 file can be executed no compressed flat format supported 6 2 Detailed configuration If more functions need to be supported on kernel then before the kernel rebuild it needs to do the selected kernel configuration the following sessions describe the procedures to do configurations These configurations are verified on the system However some of configurations of the network drivers file systems and network protocols are still on the alpha test stage such a
11. romdisk and use the genromfs utility to generate the ROM file system image document RAMFS is a RAM based read write file system mounted to the directory usr it uses for the storing of some temporary files its contents will be lost after the power off Besides Winbond uClinux supports the TCP IP gt PPP gt UDP and others network protocols It supports the multi threads operating environment It also supports the dynamic kernel module installation and removal insmod rmmod The Winbond uClinux implements the execve function to execute the FLAT file format user applications the FLAT file format is the only supported file format supported on the wbLinux kernel Winbond uCLinux software package provides the following items Based on uClinux 2 4 20 arm elf gcc 3 0 Sample application execute under uCLinux environment arm elf gcc 3 3 for C Applications 2 Target Processor Winbond W90N745 ARM7TDMI based MCU 3 Supported Functions Drivers Ethernet MAC four UARTs gt console PS2 keyboard keypad USB host controller USB mass The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 6 storage device 12C USI MTD AC97 12S File System romfs ramfs proc f
12. stat buf int fstat int filedes struct stat buf int iopl int level int vhangup void pid_t wait4 pid_t pid int status int options struct rusage rusage int swapoff const char path int sysinfo struct sysinfo info int __ipc unsigned int call int first int second int third void ptr int fsync int fd int clone int fn void arg void child_stack int flags void arg int setdomainname const char name size_t len int uname struct utsname buf int modify_Idt int func void ptr unsigned long bytecount int adjtimex struct timex buf int mprotect const void adadr size_t len int prot int sigprocmask int how const sigset_t set sigset_t oldset caddr_t create_module const char name size_t size int init_module void first void second void third void fourth void fifth int delete_module const char name int get_kernel_syms struct kernel_sym table long quotactl int cmd char special qid_t id caddr_t addr pid_t getpgid pid_t pid int fchdir int fd int bdflush int func long data int setfsuid uid_t fsuid int setfsgid gid_t gid loff_t llseek int fd loff_t offset int whence ssize t___ getdents int fd char buf size_t nbytes _newselect int n fd set readfds fd set writefds fd_set exceptfds struct timeval timeout int flock int fd int operation int msync const void start size_t length int flags int readv
13. without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 26 const void int rand void int rand_r unsigned int seed char initstate unsigned int seed char arg_state size tn int initstate_r unsigned int seed char arg_state size tn struct random_data buf long int random void int random_r struct random_data buf int32_t result char setstate char state int setstate_r char arg_ state struct random_data buf void srandom unsigned int x int srandom_r unsigned int seed struct random_data buf char realpath const char path char resolved_path int clearenv void int putenv char string int setenv const char name const char value int overwrite void unsetenv const char name long int strtol const char nptr char endptr int base long int strtoimax const char nptr char endptr int base unsigned long int strtoul const char nptr char endptr int base int system char command int unlockpt int fd __ptr_ t valloc size_t size 11 7inet int accept int s struct sockaddr addr socklen_t addrlen int bind int sockfd const struct sockaddr myaddr socklen_t addrlen int connect int sockfd const struct sockaddr saddr socklen_t addrlen int __dns lookup const char name int type int nscount char nsip unsigned char outpacket struct
14. Download it to the development board run it On the shell command prompt key in insmod XXX o the insmod will install the module into the kernel and it use the rmmod XXX to remove the module from kernel User can use Ismod to display all of the installed modules 8 Virtual debug device usage If the default console device dev console or the serial port wants to be used as other purpose such as modem this platform provides another Virtual debug device dev vddO as the console device to save the message print to stdout and strerr To enable this device it needs to configur it into the kernel Character devices gt The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 15 Virtual debug device support If this configuration is selected then the CONFIG_VDD was defined on the include linux autoconf h then the init functions in init main c will be compiled to use the dev vdd0 as the default console ifndef CONFIG VDD if open dev console O_RDWR 0 lt 0 printk Warning unable to open an initial console n else if open dev vdd0 O_RDWR 0 lt 0 printk Warning unable to open an initial console n endif dup 0 dup 0 execve
15. _getdents64 int fd char buf size_t nbytes int fentl64 int fd int command 11 12pthread library int pthread_create pthread_t thread pthread_attr_t attr void start_routine void void arg pthread_t pthread_self void int pthread_equal pthread_t thread1 pthread_t thread2 void pthread_exit void retval int pthread_join pthread_t th void thread_return int pthread_detach pthread_t th int pthread_attr_init pthread_attr_t attr int pthread_attr_destroy pthread_attr_t attr int pthread_attr_setdetachstate pthread_attr_t attr int detachstate int pthread_attr_getdetachstate const pthread_attr t attr int detachstate int pthread_attr_setschedparam pthread_attr_t attr const struct sched_param param int pthread_attr_getschedparam const pthread_attr_t attr struct sched param param int pthread_attr_setschedpolicy pthread_attr_t attr int policy int pthread_attr_getschedpolicy const pthread_attr_t attr int policy int pthread_attr_setinheritsched pthread_attr_t attr int inherit int pthread_attr_getinheritsched const pthread_attr_t attr int inherit int pthread_attr_setscope pthread_attr_t attr int scope int pthread_attr_getscope const pthread_attr_t attr int scope int pthread_attr_setguardsize pthread_attr_t attr size_t guardsize int pthread_attr_getguardsize const pthread_attr_t attr size_t guardsize int pthread_attr_setstackaddr
16. anual VERSION 1 1 PAGE 18 or bootloader gt fx 6 romfs img 0x7F0C0000 0x7F0C0000 a 9 3 Configuration method 2 Compressed ROM file system image romfs zip located at Ox7FOC0000 as image 6 runtime address 0x700000 Command for updating ROM file system listed below bootloader gt ft 6 romfs zip 0x7F0C0000 0x700000 acz or bootloader gt fx 6 romfs zip 0x7F0C0000 0x700000 acz 9 4 Configuration method 3 ROM file system image romfs img located at Ox7FOC0000 as image 6 runtime address 0xDO0000 Command for updating ROM file system listed below bootloader gt ft 7 romfs img 0x7FO0C0000 0x700000 ac or bootloader gt g x 7 romfs img 0x7F0C0000 0x700000 ac 9 5 Adjust ROMFS starting address The default ROMFS memory location is 0x700000 in SDRAM Here use the chang of ROMFS location to 0x60000 as an example to point out the modification needs to be take linux 2 4 x drivers block blkmem c in blkmem_init arena i address 0x600000 linux 2 4 x arch armnommu kernel setup c define MEM_ SIZE 6 1024 1024 make menuconfig Change the DRAM Size from 0xD00000 to 0x600000 9 6 Load the images to SDRAM During the development stage user may choose to load images to SDRAM instead writing them to FLASH below listed the steps to do so Load ROMFS to SDRAM mt 0x700000 or mx 0x700000 Load kernel to SDRAM mt Ox8000 or mx 0x80000 The above information is the exclusive intellec
17. arch data htab void hdestroy void The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 30 void hdestroy_r struct hsearch data htab ENTRY hsearch ENTRY item ACTION action int hsearch_r ENTRY item ACTION action ENTRY retval struct hsearch_data htab void tsearch const void key void vrootp _ compar_fn_t compar void tfind const void key void const vrootp __ compar_fn_t compar void tdelete const void key void rootp int compar const void const void void twalk const void root void action const void nodep const VISIT which const int depth void Ifind const void key const void base size_t nmemb size t size int compar const void const void void Isearch const void key void base size_t nmemb size_t size int compar const void const void void insque struct qelem elem struct qelem prev void remque void elem int statvfs const char file struct statvfs buf int fstatvfs int fd struct statvfs buf void closelog void void openlog const char ident int logstat int logfac int setlogmask int pmask void syslog int pri const char fmt void vs
18. at gt vfat ext2 jffs2 yaffs2 Interrupt handler timer gt UART net host controller Signal manage default signals in linux kernel SIGCHLD SIGKILL SIGALRM user defined Network Protocols TCP UDP IP 4 Development Platform Linux environement with a RedHat 6 x or higher version of Linux installed host computer with at least 800 MB free disk space 5 Installation Procedure Login a Linux PC 5 1 Install the tools and development 1 Copy the W90N745 tar gz to development directory and then decompress it tar xzvf w90n745 tar gz 2 Use the root account su Password sh install sh 3 Specify the absolute PATH that the SDK want to install for example home W90N745 After decompress the ARM GNU development tools will be installed on the usr local arm_tools and the uClinux dist will be decompress the lt installed directory gt W90N745 uClinux directory 4 Exit the super user mode exit The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 7 5 After the installation please logout and relogin to make sure usr local arm_tools bin is in your path if not you may set the compiler path manually export PATH usr local arm_tools bin PATH NOTE
19. buf The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 32 int setgid gid_t gid gid_t getgid void uid_t geteuid void gid_t getegid void int acct const char filename int umount2 const char special_file int flags int ioctl int d int request int _libc_fcntl int fd int command int setpgid pid_t pid pid_t pgid mode_t umask mode_t mask int chroot const char path int dup2 int oldfd int newfd pid_t getppid void pid_t getpgrp void pid_t setsid void int sigaction int signum const struct sigaction act struct sigaction oldact int setreuid uid_t ruid uid_t euid int setregid gid_t rgid gid_t egid int sigsuspend const sigset_t mask int sigpending sigset_t set int sethostname const char name size_t len int setrlimit __rlimit_resource_t resource const struct rlimit rlimits int getrlimit int resource struct rlimit rlim int getrusage int who struct rusage usage int gettimeofday struct timeval tv struct timezone tz int settimeofday const struct timeval tv const struct timezone tz int getgroups int size gid_t list int setgroups size_t size const gid_t list int select int n fd set read
20. ce to cp file1 file2 destination The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 20 df Show information about df device the filesystem on which each FILE resides or all filesystems by default echo Output the ARGs or echo arguments gt redirectory to file filename exec Exec FILE replacing exec file this shell with the specified program exit Exit the shell with a exit N status of N If Nis omitted the exit status is that of the last command executed free show memory status free help show help message help hexdump hex dump file hexdump file hostname show host name hostname kill send signal to process kill s sigspec n signum sigspec pid job n or kill l sigspec In Create a link to the In s file1 file2 specified TARGET Is List information about Is options the FILEs mkdir Create the DIRECTORY mkdir dirname The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux U
21. char name struct dirent readdir DIR dir int readdir_r DIR dir struct dirent entry struct dirent result void rewinddir DIR dir int scandir const char dir struct dirent namelist int selector const struct dirent int compar const void const void void seekdir DIR dir long int offset long int telldir DIR dir int lockf int fd int cmd off_t len int fnmatch const char pattern const char string int flags int glob const char pattern int flags int errfunc const char epath int eerrno glob_t pglob void globfree glob_t pglob int addmntent FILE filep const struct mntent mnt int endmntent FILE filep struct mntent getmntent FILE filep struct mntent getmntent r FILE filep struct mntent mnt char buff int bufsize char hasmntopt const struct mntent mnt const char opt FILE setmntent const char name const char mode char setlocale int category register const char locale struct Iconv localeconv void char nl_langinfo nl_item item int regcomp regex_t preg const char regex int cflags int regexec const regex_t preg const char string size_t nmatch regmatch_t pmatch int eflags void regfree regex_t preg size t regerror int errcode const regex_t preg char errbuf size_t errbuf_size int hcreate size_t nel int hcreate_r size_t nel struct hse
22. ecute void pthread_cleanup_push_defer_np void routine void void arg void pthread_cleanup_pop_restore_np int execute void pthread_kill_other_threads_np void sem_init sem_wait sem_post The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A
23. ent result_buf char buf size_t buflen struct hostent result int h_errnop int gethostbyname_r const char name struct hostent result_buf char buf size_t buflen struct hostent result int h_errnop void endhostent void struct hostent gethostent void void sethostent int stay_open int getnameinfo const struct sockaddr sa socklen_t addrlen char host socklen_t hostlen char serv socklen_t servien unsigned int flags struct netent getnetbyaddr uint32_t net int type struct netent getnetbyname const char name void endnetent void struct netent getnetent void void setnetent int f int getpeername int sockfd struct sockaddr addr socklen_t paddrlen void endprotoent void struct protoent getprotobyname const char name struct protoent getprotobynumber int proto struct protoent getprotoent void void setprotoent int f void endservent void struct servent getservbyname const char name const char proto int getservbyname_r const char name const char proto struct servent result_buf char buf size_t buflen struct servent result struct servent getservbyport int port const char proto int getservbyport_r int port const char proto struct servent result_buf char buf size_t buflen struct servent result struct servent getservent void int getservent_r struct servent result_buf char buf size_t buflen struct servent resul
24. eth0 d init Script init which located under romdisk bin directory contains all the applications want to be executed while starting up There are some commands in init which have been marked They are examples of using ifconfig mount command etc You may un comment and modify them to fit your need Please note the last user program in init should be an endless loop program such as sh or it will generate the Kernel panic 11 System call and library Almost all of the functions are compatible with the POSIX defined functions a little part of them were designed for the convenience of program developing The verification programs are included on the SDK Note that the functions end with _r have the same functionality as no _r appended but functions end with _r indicate that these functions are reentrant it indicates that they can be used on the multi thread operation environment without the risk of inconsistence 11 1 time char asctime const struct tm timeptr char asctime_r const struct tm timeptr char buf The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond 11 Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 23 clock_t clock char ctime const time_t timep c
25. f you want to copy it to SDRAM during run time Figure below shows the Memory Map of the BootLoader after loads uCLinux kernel and Romfs to SDRAM Memory Map of BSP BootLoader Power ON Flash Map SDRAM Map on Booting after Boot Up 0x7e000000 ok7 000000 Image 0x700000 8MB Other Images 0xD00000 16MB Or i Free Space ox7f1fffff 2MB gt seg gti nhs aaa oa Ox7f3fffff 4MB 9 1 Flash Configurations The Linux kernel image should always be compressed to save FLASH space and uncompress to SDRAM address 0x8000 for executing The command for updating kernel listed below bootloader gt ft 7 linux zip 0x7f020000 0x8000 acxz or bootloader gt fx 7 linux zip 0x7f020000 0x8000 acxz Three types of ROM file system configuration are supported it can either be compressed or not If ROM file system is not compressed it could reside in ether SDRAM or FLASH during run time 9 2 Configuration method 1 ROM file system image romfs img located at 0x7F0C0000 as image 6 runtime address 0x7F0C0000 Command for updating ROM file system listed below bootloader gt ft 6 romfs img 0x7FOCO0000 0x7F0C0000 a The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users M
26. fd char buf size_t count ssize_t write int __fd const void __buf size t__n int open const char fn int flags mode t mode int close int fd pid_t waitpid pid_t pid int status int options int creat const char file mode_t mode int link const char oldpath const char newpath int unlink const char pathname int execve const char filename char const argv char const envp int chdir const char path time_t time time_t t int mknod const char path mode_t mode dev_t dev int chmod const char path mode_t mode int Ichown const char path uid_t owner gid_t group off_t Iseek int fildes off_t offset int whence pid_t getpid void int mount const char specialfile const char dir const char filesystemtype unsigned long mountflags const void data int umount const char dir int setuid uid_t uid uid_t getuid void int stime time_t t long int ptrace enum __ ptrace_request request pid_t pid void addr void data unsigned int alarm unsigned int seconds int pause void int utime const char file const struct utimbuf times int access const char pathname int mode int nice int inc int kill pid_t pid int sig int rename const char oldpath const char newpath int mkdir const char pathname mode_t mode int rmdir const char pathname int dup int oldfd int pipe int filedes 2 clock_t times struct tms
27. fds fd_set writefds fd_set exceptfds struct timeval timeout int symlink const char oldpath const char newpath int readlink const char path char buf size_t bufsiz int uselib const char library int swapon const char path int swapflags int reboot int flag __ptr_t mmap void start size_t length int prot int flags int fd off_t offset int munmap void start size_t length int truncate const char path off_t length int ftruncate int fd off_t length int fchmod int fildes mode_t mode int fchown int fd uid_t owner gid_t group int getpriority int which int who int setpriority int which int who int prio The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 33 int statfs const char path struct statfs buf int fstatfs int fd struct statfs buf int ioperm unsigned long from unsigned long num int turn_on int __ socketcall int call unsigned long args int _syslog int type char bufp int len int setitimer int which const struct itimerval value struct itimerval ovalue int getitimer int which struct itimerval value int stat const char file name struct stat buf int Istat const char file name struct
28. har ctime_r const time_t timep char buf struct tm gmtime const time_t timep struct tm gmtime_r const time_t timep struct tm tp struct tm localtime const time_t timep struct tm localtime_r const time_t timep struct tm tp time_t mktime struct tm tp size_t strftime char s size_t maxsize const char format register const struct tm tp void tzset void time_t time time_t t int stime time_t t int ftime struct timeb tp 2regex int regcomp regex_t preg const char regex int cflags int regexec const regex_t preg const char string size_t nmatch regmatch_t pmatchf int eflags size_t regerror int errcode const regex_t preg char errbuf size_t errbuf_size void regfree regex_t preg 3termios int tcgetattr int fd struct termios term int tcsetattr int fildes int optional_actions struct termios termios_p int tcflush int fd int queue_selector speed_t cfgetispeed struct termios tp speed_t cfgetospeed struct termios tp int cfsetospeed struct termios tp spoeed_t speed int cfsetispeed struct termios tp speed_t speed void cfmakeraw struct termios t int tcsendbreak int fd int duration int tcflow int fd int action pid_t tcgetpgrp int fd int tcsetpgrp int fd pid_t pgrpid 11 4stdio int foutc int ch FILE fp int fgetc FILE fp int fflush FILE fp char fgets char s size_t cou
29. implest confis ratiO Deseni de ie el en n EE E tee EEE 9 62 Detailed confi SAMOA ienr e e E EERE SS EE Ea TENA 10 6 2 1 Enable the code maturity Slot ni Nan 10 O22 Lo dable module Sapo sec A none een in te 10 6 2 3 Compressed FLAT file format support ZFLAT nana teint dunes te 10 62 4 Character Me VICES SUD POI preiei oreak eee eranan rri a Ee N s nt 10 6 2 5 Network protocols and devices support nn nen imminente a un ns 11 62 60 Fil systems SPORE erreren re eas a nn etant 12 GT USI IGS DOS nee ain td one 13 628 N en de a er ene 13 7 Kernel module DO STARS ne ms een no en 14 8 Virtual debug device usage esata elses cs een na a en 14 9 Update Kernel and ROM File SNS nds on 16 DAL Flash Configurations Sd encens ete etre 17 9 2 SOUPS TE MOIS a de de ceeienedenigeas 17 9 3 Configuration IRON a Ro Ron 18 9 4 Configuration method en 18 9 5 Adjust ROMFS starting Aa RS a oscenncccevtnencnattenacazaccaacpovnnctadanassctecacndananciaamencawaneeasecesdeioaysettaneasaneaacucaestoaters 18 9 6 Loadithe images to SR ANT ro eaae EE E E EKEK EESE EE EnF Eea eSEE 18 9 7 Build the production F W image of HAS Sd nt etienne es 19 10 Slot App ATOS ns in r E E EEE an cit 19 11 System calland Ta 11 RENNES ER ARR AT 22 LL MES E E E E 22 i S E E E E nl ant E eee net E E 23 LES STONE desde entente 23 WD AR SSNS nn UN de E pelle tietara a cdied aes aaah bauareunegedices 23 i o RAIN gestern axeuacc ou ana A E E E 24 ILO SAM de ue E E i aaee e 25
30. inbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 14 Support 1 chip flash interleave Older theoretically obsoleted now drivers for non CFI chips AMD compatible flash chip support non CFI Mapping drivers for chip access gt Support for non linear mappings of flash chips W90P710 board mappings 6 2 8 2 NAND flash Memory Technology Devices MTD gt Memory Technology Device MTD support MTD partitioning support Pa Direct char device access to MTD devices Caching block device access to MTD devices NAND Flash Device Drivers gt X NAND Device Support NAND Flash device on WINBOND board 128MB 2k page size NAND is to be used in the system 7 Kernel module programming If the developer wants to the do the programming of kernel module such as device drivers the kernel module can only calls the kernel functions and its associated header files Use the gcc to compile to o object files There are 2 ways to install the o object files into the kernel Method 1 Modify the makefile for the kernel add the o object file name into the link section rebuild the kernel to get a updated kernel tftp the Linux binary code to development boards Method 2 Put the o file to the romdisk build the romfs img
31. ist ap int vsscanf const char str const char format va_list ap int vfscanf FILE stream const char format va_list ap 11 5string size_t strcspn register const char string const char set size_t strlen const char str char strcat char d const char s char strcpy char d const char s int stremp const char d const char s char strncat char d const char s size_t l char strncpy char d const char s size_t int strncmp const char d const char s size_t char strchr const char s int c char strrchr const char s int c char strdup const char s void memcpy void d const void s size_t void memccpy void d const void s int c size_t void memchr const void str int c size_t 1 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 25 void memset void str int c size_t l int memcmp const void s const void d size_t void memmove void d const void s size_t l char strpbrk register const char str const char set size_t strspn const char s const char accept char strstr const char s1 const char s2 char strtok register char s register const char delim char s
32. ize t send int sockfd const void buffer size_t len int flags ssize t sendmsg int sockfd const struct msghdr msg int flags ssize t sendto int sockfd const void buffer size_t len int flags const struct sockaddr to socklen_t tolen _ int setsockopt int fd int level int optname const void optval socklen_t optlen int shutdown int sockfd int how int socket int family int type int protocol int socketpair int family int type int protocol int sockvec 2 11 8types h _isalnum c isalpha c isascii c iscntrl c isdigit c isgraph c islower c _isprint c _ispunct c isspace c _isupper c _isxdigit c toupper c tolower c _toupper c _tolower c toascii c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 29 11 9error char strerror r int err char retbuf unsigned int n char strerror int err void perror const char str 11 10misc void _assert const char assertion const char filename int linenumber register const char function int alphasort const void a const void b int closedir DIR dir int dirfd DIR dir DIR opendir const
33. nt FILE f char gets char str int fouts const char str FILE fp int puts const char str int puts const char str The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 24 size_t fread void buf size_t size size_t nelm FILE fp size_t fwrite const void buf size_t size size_t nelm FILE fp void rewind FILE fp int fseek FILE fp long offset int ref long ftell FILE fp int fclose FILE fp int getc FILE stream int putc int c FILE stream int ungetc int c FILE fp int printf const char fmt int sprintf char sp const char fmt int forintf FILE fp const char fmt int vprintf const char fmt va_list ap int vsprintf char sp const char fmt va_list ap int vfprintf FILE op const char fmt va_list ap int putchar char c int getchar void setbuf FILE stream char buf void setbuffer FILE stream char buf size_tsize void setlinebuf FILE stream int setvbuf FILE fp char buf int mode size_t size int scanf const char format int fscanf FILE stream const char format int sscanf const char str const char format int vscanf const char format va_l
34. port Character devices gt Winbond W90N745 USI 6 2 4 4 Keypad support Character devices gt Winbond W90N745 Keypad 6 2 4 5 PS 2 support Character devices gt Winbond W90N745 ps 2 port support Virtual terminal 6 2 5 Network protocols and devices support Select the Networking support in General setup then the menus of the Networking options and Network drvice support of main menu on the linux kernel will appear General setup gt Networking support 6 2 5 1 TCP IP protocol support Networking options gt TCP IP networking 6 2 5 2 PPP support point to point protocol Network device support gt Network device support lt gt PPP point to point protocol support PPP Deflate compression L PPP over Ethernet EXPERIMENTAL 6 2 5 3 W90N745 Ethernet Controller device driver support Network device support gt Ethernet 10 or 100Mbit gt Ethernet 10 or 100Mbit Winbond W90N745 Embedded Ethernet support The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W9ON745 uClinux User s Manual VERSION 1 1 PAGE 12 6 2 6 File systems support 6 2 6 1 ext3 support File systems gt Ext3 journalling file system suppor
35. pthread_cond_t cond int pthread_cond_wait pthread_cond_t cond pthread_mutex_t mutex int pthread_cond_timedwait pthread_cond_t cond pthread_mutex_t mutex const struct timespec abstime int pthread_cond_destroy pthread_cond_t cond int pthread_condattr_init pthread_condattr_t attr int pthread_condattr_destroy pthread_condattr_t attr int pthread_rwlock_init pthread_rwlock_t rwlock const pthread_rwlockattr_t attr int pthread_rwlock_destroy pthread_rwlock_t rwlock int pthread_rwlock_rdlock pthread_rwlock_t rwlock int pthread_rwlock_tryrdlock pthread_rwlock_t rwlock int pthread_rwlock_wrlock pthread_rwlock_t rwlock int pthread_rwlock_trywrlock pthread_rwlock_t rwlock int pthread_rwlock_unlock pthread_rwlock_t rwlock int pthread_rwlockattr_init pthread rwlockattr_t attr int pthread_rwlockattr_destroy pthread_rwlockattr_t attr int pthread_key_create pthread_key_t key void destr_function void int pthread_key_delete pthread_key_t key int pthread_setspecific pthread_key_t key const void pointer void pthread_getspecific pthread_key_t key int pthread_once pthread_once_t once control void init routine void int pthread_cancel pthread_t thread int pthread_setcancelstate int state int oldstate int pthread_setcanceltype int type int oldtype void pthread_testcancel void void pthread_cleanup_push void routine void void arg void pthread_cleanup_pop int ex
36. resolv_answer a struct ether_addr ether_aton const char asc struct ether_addr ether_aton_r const char asc struct ether_addr addr char ether_ntoa const struct ether_addr addr char ether_ntoa_r const struct ether_addr addr char buf const char gai_strerror int code static int addrconfig sa_family_t af void freeaddrinfo struct addrinfo ai static int gaih_inet const char name const struct gaih_service service const struct addrinfo req struct addrinfo pai static int gaih_inet_serv const char servicename const struct gaih_typeproto tp const struct addrinfo req struct gaih_servtuple st int getaddrinfo const char name const char service const struct addrinfo hints struct addrinfo pai The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 27 struct hostent gethostbyadadr const void addr socklen_t len int type int gethostbyaddr_r const void addr socklen_t len int type struct hostent result_buf char buf size_t buflen struct hostent result int h_errnop struct hostent gethostbyname const char name struct hostent gethostbyname2 const char name int family int gethostbyname2_r const char name int family struct host
37. s PPPoE it needs to turn on the configuration of Code maturity level options gt Prompt for development and or incomplete code drivers Due to the pin number limitation some interfaces in W90N745 share the same group of pins for examlpe PS 2 and UART2 and UART1 CTS RTS keypad and MAC KPI and EMC UARTS and audio While one of those functions is enabled the other functions will disappeared from kernel configuration menu and eliminate the chance of configuration error 6 2 1 Enable the code maturity selection Code maturity level options gt Prompt for development and or incomplete code drivers 6 2 2 Loadable module support Loadable module support gt Enable loadable module support 6 2 3 Compressed FLAT file format support ZFLAT General setup gt Enable ZFLAT support 6 2 4 Character devices support 6 2 4 1 UART 1 3 support Character devices gt Winbond W90N745 serial port 1 3 Enable serial port 1 CTS RTS pins Please touch w90n745_uart_l c if this setting changed The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 11 6 2 4 2 12C support Character devices gt Winbond W90N745 I2C Module 6 2 4 3 USI sup
38. ser s Manual VERSION 1 1 PAGE 21 mknod Create device file mknod type major minor more File perusal filter more filename mount Mount file system mount t type device dir mv Rename SOURCE to mv source dest DEST or move SOURCE s to DIRECTORY printenv Print environment printenv varables pid Show current process pid ps Show process ps information pwd Show current dirctory pwd quit Quit current process quit rm Remove file rm file rmdir Remove dir rmdir dir sleep sleep several seconds sleep number setenv Set environment setenv var value varable source Run command in file source file sync System sync sync touch Update the access and touch option file modification times of each FILE to the current time The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond NO W90N745 uClinux Users Manual Electronics Corp VERSION 1 1 PAGE 22 umask The user file creation mask is set to MODE umask octal number umount Umount file system umount dir a ifconfig It used to configure the network interfaces such as ifconfig eth0 192 168 0 10 netmask 255 255 255 0 b route It used to manipulates the IP routing tables route add default netmask 255 255 255 0 gw 192 168 0 1 eth0 c dhcpc dhcp client application dhcpc
39. st linux 2 4 x drivers char w90n745_uart_ c PS2 uClinux dist linux 2 4 x drivers char w90n745 ps2 c Keypad uClinux dist linux 2 4 x drivers char w90n745 keypad c I2C uClinux dist linux 2 4 x drivers char w90n745 i2c c USB uClinux dist linux 2 4 x drivers usb The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 8 uClinux dist linux 2 4 x drivers usb wbusb Flash uClinux dist linux 2 4 x drivers block flash MTD uClinux dist linux 2 4 x drivers mtd Audio uClinux dist linux 2 4 x drivers sound w90n745_ c USI uClinux dist linux 2 4 x drivers char w90n745 usi c The files represent each device under dev listed in the following table Accessible Device Name H W interface Note dev ttySo COMA W90N745 COM 1 dev ttyS1 COMB W90N745 COM 2 dev ttyS2 COMC W90N745 COM 3 dev ttys3 COMD W90N745 COM 4 dev dsp0 12S I2S audio interface dev mixer0 dev dspl AC97 AC97 audio interface dev mixerl dev i2c0 l2C 12C Module dev i2cl l2C 12C Module dev usi USI USI interface dev keypad Keypad W90N745 Keypad 5 4 Build the kernel and test program e Build kernel
40. syscall rt_sigaction int signum const struct sigaction act struct sigaction oldact size_t size int sigprocmask int how const sigset_t set sigset_t oldset int sigpending sigset_t set int sigtimedwait const sigset_t set siginfo_t info const struct timespec timeout int sigsuspend const sigset_t mask ssize_t pread int fd void buf size_t count off_t offset ssize_t pwrite int fd const void buf size_t count off_t offset int chown const char path uid_t owner gid_t group char getcwd char buf int size int capget void header void data int capset void header const void data int sigaltstack const stack_t ss stack_t oss ssize_t sendfile int out_fd int in_fd off_t offset size_t count pid_t vfork void int getrlimit __rlimit_resource_t resource struct rlimit rlimits int truncate64 const char path __ off64_t length int ftruncate64 int fd __off64_t length int stat64 const char file_name struct stat64 buf The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 35 int Istat64 const char file_name struct stat64 buf int fstat64 int fd struct stat64 buf int pivot_root const char new_root const char put_old ssize t_
41. t void setservent int f int getsockname int sockfd struct sockaddr addr socklen_t paddrlen int getsockopt int fd int level int optname __ptr_t optval long int gethostid void int sethostid long int new_id unsigned long inet_addr const char cp int inet_aton const char cp struct in_addr inp unsigned long inet_Inaof struct in_addr in The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux User s Manual VERSION 1 1 PAGE 28 struct in_addr inet_makeaddr unsigned long net unsigned long host u_int32_t inet_network const char cp u_int32_t inet_netof struct in_addr in char inet_ntoa struct in_addr in char inet_ntoa_r struct in_addr in char buf int listen int sockfd int backlog const char inet_ntop int af const void src char dst size_t cnt int inet_pton int af const char src void dst ssize t recv int sockfd __ptr_t buffer size_t len int flags ssize t recvfrom int sockfd __ptr_t buffer size_t len int flags struct sockaddr to socklen_t tolen ssize t recvmsg int sockfd struct msghdr msg int flags int res_init void void res_close void int res_query const char dname int class int type unsigned char answer int anslen ss
42. t Partition Types gt Advanced partition selection PC BIOS MSDOS partition tables support 6 2 6 2 FAT based file systems MS DOS VFAT support File systems gt DOS FAT fs support MSDOS fs support VFAT Windows 95 fs support Partition Types gt Advanced partition selection PC BIOS MSDOS partition tables support Native Language Support gt Codepage 437 United States Canada NEW NLS ISO 8859 1 Latin 1 Western European Languages NEW 6 2 6 3 ext2 support File systems gt Second extended fs support Partition Types gt Advanced partition selection PC BIOS MSDOS partition tables support 6 2 6 4 proc file system support File systems gt proc file system support 6 2 6 5 nfs support File systems gt Network File Systems gt NFS file system support Provide NFSv3 client suppor 6 2 6 6 devfs support File systems gt dev file system support EXPERIMENTAL Automatically mount at boot 6 2 6 7 YAFFS support This option shows up if MTD NAND support is enabled File systems gt YAFFS2 file system support The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users
43. trtok_r char s const char delim char save_ptr char stpcpy char dest const char src int strcasecmp const char s const char d char strcasestr const char str1 const char str2 int strncasecmp const char s const char d size_t char strsep char pp const char delim 11 6stdlib void calloc size_t num size_t size void malloc size_t len void free void ptr void realloc void ptr size_t size void abort int atexit void function void int atoi const char nptr long atol const char nptr long long atoll const char nptr void bsearch const void key const void base size_tnmemb size_t size int compar const void const void div_t div int numer int denom void exit int rv char getenv const char var int getpt void int grantpt int fd int abs int j long int labs long int j Idiv_t Idiv long int numer long int denom intmax_t imaxabs intmax_t j long long int llabs long long int j char mkdtemp char template int mkstemp char template char mktemp char template int on_exit void function int void void arg char ptsname int fd int ptsname r int fd char buf size_t buflen void qsort void base size_t nmemb size_t size int compar const void The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced
44. tual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond NO W90N745 uClinux Users Manual Execute image g 0x8000 Electronics Corp 9 7 Build the production F W image of flash The final flash image on production can be built by the mkrom tool the mkrom tool will combine the bootloader image bootloader bin image 0 for system configuration information image 6 ROM file system image romfs img and image 7 compressed linux kernel linux zip to a final image of flash VERSION 1 1 PAGE 19 User can consult Make a Production ROM for the usage to mkrom tool 10 Shell and other applications Shell is the basic application on the Linux system default shell provided in BSP is sh sh uses the current directory as the prompting string Commands can be executed under shell It works the same way as PC Linux Key in help under shell will display the internal commands provided by shell command description usage cat Show file on screen Cat filename cd change current directory cd directory chgrp change the group chgrp GROUP FILE membership of each FILE to GROUP chmod change file directory chmod mode file dir mode chown change file directory chown group user own file dir cmp cmpare two files cmp file1 file2 date Get set date date MMDDhhmn YYYY cp copy sour
45. yslog int pri const char fmt va_list ap int semget key_t key int nsems int semflg int semctl int semid int semnum int cmd int semop int semid struct sembuf sops size_t nsops void shmat int shmid const void shmaddr int shmflg int shmctl int shmid int cmd struct shmid_ds buf int shmdt const void shmaddr int shmget key_t key size_t size int shmflg int msgctl int msqid int cmd struct msqid_ds buf int msgget key_t key int msgflg int msgrcv int msqid void msgp size_t msgsz long int msgtyp int msgflg int msgsnd int msqid const void msgp size_t msgsz int msgflg key_t ftok char pathname char proj int endttyent void struct ttyent getttyent void struct ttyent getttynam const char tty int setttyent void void endutent void struct utmp getutent void struct utmp getutid struct utmp ut struct utmp getutline struct utmp ut The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Table No 1110 0001 08 A Winbond Electronics Corp NO W90N745 uClinux Users Manual VERSION 1 1 PAGE 31 void pututline struct utmp ut struct utmp getutline struct utmp ut void utmpname const char file void updwtmp const char wtmp_file const struct utmp ut 11 11sysdeps void _exit int status ssize_t read unsigned int
Download Pdf Manuals
Related Search
Related Contents
Sony MDR-7520 User's Manual Manual de instalación del detector de humos por aspiración 取扱説明書 [L-09C] CMーD804 取扱説明書 IAI2 User Manual MICRO CANAL € 2014.BELU Manuale d'Uso User Manual MIPS32® M4K® Processor Core Datasheet Copyright © All rights reserved.
Failed to retrieve file