⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build

📁 QNX ADS BSP code for i.MX27 chips
💻
📖 第 1 页 / 共 2 页
字号:
############################################################################# Neutrino on the Freescale MX21ADS Board, with an ARM 920 core############################################################################## On-board devices:# ----------------## device:	MX9328MX1 UARTs# serial:	devc-sermx1 -e -F -b115200 -c44333333 0x1000a000,20 0x1000b000,19## device:	CS8900A Ethernet controller# network:	io-net -dcrys8900 ioport=0xcc000300,irq=203,mac=00e02991234e -ptcpip## device:	32M AMD NOR flash# flash:	devf-mx31ads -s0xC8000000,32M## device:	i.MX21 I2C# i2c:		i2c-mx21## device:	i.MX21 CSPI# SPI:		spi-master -d mx21 base=0x1000F000,irq=15,period=32K=2## device: i.MX21 USB OTG# USB:    io-usb -d tdi-mx21 ioport=0x10024000,irq=55,verbose=4#   # device:	64M Samsung NAND flash# NAND:   fs-etfs-mx21ads(use -e option first time, to erase and create filesystem)## device: i.MX21 Graphics SHARP LQ035Q7DB02 LCD# Graphics:   io-graphics -dimx21 xres=240,yres=320,bitpp=16,photon,mode_opts=/proc/boot/imx21.conf -pphoton######################################################################################################################################################### START OF BUILD SCRIPT###########################################################################[image=0xc0100000]# For Redboot , use raw#[virtual=armle,raw +compress] .bootstrap = {#For QNX IPL/sendnto, use binary[virtual=armle,binary +compress] .bootstrap = {    startup-mx21ads     #######################################################################    ## PATH set here is the *safe* path for executables.    ## LD_LIBRARY_PATH set here is the *safe* path for libraries.    ##     i.e. These are the paths searched by setuid/setgid binaries.    ##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))    #######################################################################    PATH=:/proc/boot:/bin:/usr/bin LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll procnto -v}[+script] .script = {	# Initialise the console	devc-sermx1 -e -F -b115200 -c44333333 0x1000a000,20 0x1000b000,19	reopen	display_msg Welcome to Neutrino on the Freescale MX21ADS (ARM 926 core) Board	slogger &	# Start some common servers	pipe &######################################################################## display_msg Starting on-board ethernet with TCP/IP stack...####################################################################### display_msg Starting ethernet driver  ... io-net -dcrys8900 ioport=0xcc000300,irq=203,mac=00e02991234e -ptcpip    ######################################################################### REMOTE_DEBUG (gdb or Momentics)##  - refer to the help documentation for the gdb, qconn and the IDE##    for more information on remote debugging##  - the commands shown require that NETWORK is enabled too########################################################################     devc-pty#    waitfor /dev/ptyp0 4#    waitfor /dev/socket 4#    qconn port=8000######################################################################### USB driver##   --  startup-mx21ads -U     ########################################################################    display_msg Starting USB driver on USB host ...#    io-usb -d tdi-mx21 ioport=0x10024000,irq=55,verbose=1#     waitfor /dev/io-usb/io-usb 4######################################################################### Flash driver########################################################################  display_msg Starting flash driver...#  devf-mx31ads -s0xc8000000,32M######################################################################## I2C driver##   --  startup-mx21ads -c ######################################################################## display_msg Starting i2c driver...# i2c-mx21######################################################################### SPI driver##   --  startup-mx21ads -s1(or s2 or s3) ######################################################################## display_msg Starting SPI driver...#spi-master -dmx21 base=0x1000E000,irq=16,period=32K  base=0x1000F000,irq=15,period=32K# spi-master -d mx21 base=0x1000F000,irq=15,period=32K=2#spi-master -dmx21 base=0x1000E000,irq=16######################################################################### ETFS NAND driver## first time use "fs-etfs-mx21ads -r4096 -e" ## later use "fs-etfs-mx21ads -r4096 " ######################################################################## display_msg Starting etfs driver...# fs-etfs-mx21ads -r 4096# fs-etfs-mx21ads -r4096 -e    ############################################################################# uncomment for graphics driver## - The resolution of the panel on the mx21 is 240x320x16## - Refer to the help documentation for information on embedding the Photon MicroGUI.############################################################################display_msg Starting Graphics driver...#io-graphics -dimx21 xres=240,yres=320,bitpp=16,photon,mode_opts=/proc/boot/imx21.conf -pphoton######################################################################### These env variables are inherited by all the programs which follow#######################################################################    SYSNAME=nto    TERM=qansi    HOME=/    LD_LIBRARY_PATH=.:/tmp/:/proc/boot:/usr/photon/lib:/dll:/lib:/lib/dll:/usr/lib:/usr/photon/dll:/opt/lib    PATH=.:/tmp:/proc/boot:.:/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/photon/bin:/opt/bin    PHOTON_PATH=/usr/photon    PHOTON=/dev/photon    PROCESSOR=armle    MMEDIA_MIDI_CFG=/etc/config/media/midi.cfg # Start the main shell	[+session] sh &}# Redirect console messages[type=link] /bin/sh=/proc/boot/ksh[type=link] /dev/console=/dev/ser1[type=link] /tmp=/dev/shmem# Programs require the runtime linker (ldqnx.so) to be at a fixed location[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so# Shared libarieslibc.so############################################################################# uncomment for NETWORK driver (tiny stack)###########################################################################devn-crys8900.solibsocket.sonpm-tcpip.so############################################################################# uncomment for SPI############################################################################ spi-mx21.so############################################################################# uncomment for USB driver############################################################################devu-tdi-mx21.so#libusbdi.so############################################################################# uncomment for Graphics driver############################################################################ imx21.conf# devg-imx21.so # Executables[data=c]devc-sermx1############################################################################# uncomment for REMOTE_DEBUG (gdb or Momentics)############################################################################ devc-pty# qconn# /usr/bin/pdebug=pdebug############################################################################# uncomment for I2C############################################################################ i2c-mx21############################################################################# uncomment for SPI############################################################################ spi-master ############################################################################# uncomment for NOT flash driver############################################################################ devf-mx31ads# flashctl############################################################################# uncomment for NETWORK driver########################################################################### io-net nicinfo ping fs-nfs2 ifconfigdhcp.client############################################################################# uncomment for USB driver############################################################################io-usb#usb############################################################################# uncomment for REMOTE_DEBUG (gdb or Momentics)############################################################################ devc-pty# qconn# /usr/bin/pdebug=pdebug############################################################################# uncomment for etfs############################################################################ fs-etfs-mx21ads# etfsctl############################################################################# uncomment for graphics driver############################################################################ io-graphics # Photon# phcalc# pwm############################################################################# general commands###########################################################################pipelssloggersleepsloginfopidinkshunamecatslaymountumountenvcpdd############################################################################# END OF BUILD SCRIPT###########################################################################/etc/commands = {############################################################################### CONFIGURING ON-BOARD SUPPORTED HARDWARE:####------------------------------------------------------------------------## SERIAL:     i.MX21 UART1,2,3,4##   example buildfile commands:##     devc-sermx1 -e -F -b115200 -c44333333 0x1000a000,20 0x1000b000,19##     waitfor /dev/ser1##     reopen /dev/ser1####   required binaries:##     devc-sermx1####-------------------------------------------------------------------------## NETWORK:    CS8900A Ethernet controller##    example buildfile commands:##      io-net -dcrys8900 ioport=0xcc000300,irq=203,mac=00e02991234e -ptcpip####    required libraries:##      devn-crys8900.so##      libsocket.so##      npm-tcpip.so####    required binaries:##      io-net##      ifconfig##      nicinfo##      ping##  ##-------------------------------------------------------------------------## USB:  USB OTG MAX3355EUD##     startup-mx21ads -U##     example buildfile commands:##    io-usb -d tdi-mx21 ioport=0x10024000,irq=55,verbose=1##      waitfor /dev/io-usb/io-usb 4####   required libraries:##      devu-tdi-mx21.so##      libffb.so####   required binaries:##      io-usb##      usb####-------------------------------------------------------------------------##   NOR FLASH:  32MB NOR AM29BDS128##   example buildfile commands:##     devf-mx31ads -s0xC8000000,32M####   required binaries:##     devf-mx31ads##     flashctl####   example extra commands:##     # creating a flash partition

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -