华恒家庭网关方案

Similar documents
uClinux for blackfin

一个开放源码的嵌入式仿真环境 ― SkyEye

华恒家庭网关方案

Abstract arm linux tool-chain root NET-Start! 2

Microsoft Word - 正文.doc

,,, PCB, AR M VxWorks DSP,,,,,,,,,,, (CIP) /,,.:,2005 ISBN TP36 CIP (2005) : ( 10 ) : : (010 ) : (010)

1

自由軟體教學平台

Cygwin Cygwin windows Linux Cygwin.dll Windows Linux API Linux Windows Linux 2

<4D F736F F D20C7B6C8EBCABDCFB5CDB3C9E8BCC6CAA6BFBCCAD4B4F3B8D92E646F63>

<4D F736F F D20C7B6C8EBCABD6C696E7578BBF9B4A1CAB5D1E92E646F63>

Microsoft Word - PS2_linux_guide_cn.doc

ARM JTAG实时仿真器安装使用指南

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica

<4D F736F F D20C7B6C8EBCABDCAB5D1E9CAD2B7BDB0B82E646F63>

ebook70-22

RTX3.2.0标准版 - 技术白皮书

工程师培训

EK-STM32F


P4VM800_BIOS_CN.p65

P4V88+_BIOS_CN.p65

Microsoft Word - A doc

PCM-3386用户手册.doc

目 录

简 介 本 白 皮 书 高 度 概 述 了 支 持 移 动 互 联 网 设 备 (Mobile Internet Device) 的 Intel C++ Software Development Tool Suite for Linux* OS, 目 标 读 者 主 要 是 技 术 决 策 制 订

Simulator By SunLingxi 2003

Support All Industrial Ethernet Standards on Your Next "Drive" Design White Paper

USB解决方案.ppt

VoIP Make a Rtp Call VoIP Abstract... 2 VoIP RTP...3 Socket IP...9 Config Two Voice-hub

PROTEUS VSM

1 MTK 2 MTK 3 MTK

chapt01.ppt

HighPoint产品的FAQ手册

IP505SM_manual_cn.doc

網路安全:理論與實務 第二版

1 CPU

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

SPHE8202R Design Guide Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provi

投影片 1

BYOD IP+Optical (IP NGN) API 4. End-to-End (Service Aware) 5. IP NGN (IP Next Generation Network) ( ) Prime Carrier Management Access Edge Co

《计算机应用基础》学习材料(讲义)

Microsoft Word htm

untitled

经华名家讲堂

Xear 3D USB CH-IN-2 SPKs 2 6 :

ebook35-14

专业主干课程与主要专业课程教学大纲(2009年、2011年).doc

Oracle 4

STM32 STM3232ARM Cortex-M3 Cortex-M3 STM32Thumb-2 STM32MCU Cortex-M3ARM MCU STM32ARM 32 ARMCortex-M3 32 STM32 Cortex-M3 ARM Cortex-M3 ARM ARM

Microsoft Word - 39.doc

untitled

Bus Hound 5

untitled

epub

Microsoft Word - 選擇_無解答2_.doc

ebook71-13

IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG

A Preliminary Implementation of Linux Kernel Virus and Process Hiding

科 學 工 業 園 區 管 理 局 天 擎 積 體 電 路 股 份 有 限 公 司 呂 惠 平 新 竹 市 力 行 一 路 1 號 3 樓 C5 室 174,157, /08/04 I 產 品 設 計 業 CC01080 電 子 零 組 件 製 造 業

05 01 X Window X Window Linux Linux X Window X Window Webmin Web Linux Linux X Window X Window Notebook PC X Window X Window module Linux Linux kernel

9 Internet 10 Internet

陕西职业技术学院(用标志)

Sun Fire V440 Server Administration Guide - zh_TW

中文朗科AirTrackTM T600 迷你无线路由器用户手册.doc

Windows 2000 Server for T100

目 彔 1. 准 备 工 作 登 彔 设 置 功 能 说 明 实 时 监 控 基 本 控 制 功 能 设 置 画 质 调 节 彔 像 与 抓 拍

rz_Newsletter2016_en_ indd

ebook62-1

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

MCU DSP MSO MCU DSP MSO MSO MSO MCU/DSP I/O MSO 16 Microchip IC18 turn-on MSO chirp MCU I/O I 2 C

本文由筱驀釹贡献

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

目次 

AL-M200 Series

r_09hr_practical_guide_kor.pdf

(02) (02) (02) (02) (02)

<4D F736F F D D342DA57CA7DEA447B14D2DA475B57BBB50BADEB27AC3FEB14DA447B8D5C344>

P3V4X JumperFree TM

大学计算机基础B.doc

如 果 此 設 備 對 無 線 電 或 電 視 接 收 造 成 有 害 干 擾 ( 此 干 擾 可 由 開 關 設 備 來 做 確 認 ), 用 戶 可 嘗 試 用 以 下 一 種 或 多 種 方 法 來 消 除 這 個 干 擾 : 重 新 調 整 與 確 定 接 收 天 線 方 向 增 大 此 設

epub 61-2

逢 甲 大 學

PowerPoint 演示文稿

<4D F736F F D B9E3B6ABCAA1CBAEC0FBB9A4B3CCCAD3C6B5BCE0BFD8CFB5CDB3BCBCCAF5B9E6B7B6A3A8CAD4D0D0A3A9C7A9B7A22E646F63>

ch08.PDF

声 明 Copyright 2010 杭 州 华 三 通 信 技 术 有 限 公 司 及 其 许 可 者 版 权 所 有, 保 留 一 切 权 利 未 经 本 公 司 书 面 许 可, 任 何 单 位 和 个 人 不 得 擅 自 摘 抄 复 制 本 书 内 容 的 部 分 或 全 部, 并 不 得

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

(02) (02) (02) (02) (02

CH01.indd

hhbf531_low_cost_board_user_manual-v3.00.doc

AIX系统培训7.ppt


TCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

Transcription:

uclinuxblackfin www.hhcn.com 1

Blackfin Why uclinux HHBF561 2

Blackfin New generation of high performance, low power ADI Processors Industrial Controls VoIP VoIP 3

BlackfinBF533 System Peripherals Dynamic Power Management Switching Regulator PLL Watchdog JTAG Up to 750 MHz BLACKfin Processor Core User Peripherals SPORT 2 SPI 1 UART 1 Timers 3 Converter Host PC PWM Real Time Clock Memory GPIO 16 Network Interfaces FLASH/SRAM SDRAM PM up to 80K bytes DM up to 68K bytes DMA Video I/O PPI LCD Camera 4

BlackfinBF561 Emulator & Test Control Voltage Regulator Event Watchdog Controllers Timers System Control Blocks Memory DMA no RTC PLL 32-bit External Bus Interface BF533 : Blackfin Core Up to 750 MHz 32KB 64KB Inst. Data SRAM / Cache L2 L1 System Interface Unit 128 KB SRAM Blackfin Core Up to 750 MHz 32KB 64KB Inst. Data SRAM / Cache High Speed I/O PPI 0 / GPIO PPI1 / GPIO 2 BF Cores 2 PPI 32Bit EBIU No RTC 32Bit DMA 3 DMA controller SPORT0 SPORT1 GPIO TIMERS (12) SPI0 UART IrDA Peripheral Blocks 5

Blackfin Converter Network Display Blackfin Control Signalcode processing RTC Watchdog RTOS DSP 6

Blackfin Advanced Technology In Development Consumer Media BF56x BF561-750 756 MHz 2xPPI, 32-bit EBIU 4xSerial Ports 4xPPI, 4xSerial Ports, 10/100 Ethernet MAC, PCI, HPI BF56x 2xPPI, 4xSerial Ports, USB2.0 BF561 500 600 MHz 2xPPI, 32-bit EBIU 4xSerial Ports BF53x PPI, 3xSerial Ports, USB2.0 Automotive, Industrial and Instrumentation BF539 BF533-750 PPI, 10xSerial Ports, I 2 C, CAN Performance BF533 BF532 BF531 400-600 MHz PPI, 16-bit EBIU 4xSerial Ports 756 MHz PPI, 16-bit EBIU 4xSerial Ports BF536/537 PPI, 5xSerial Ports, I 2 C, CAN, 10/100 Ethernet MAC BF534 PPI, 5xSerial Ports, I 2 C, CAN, 48xGPIO BF535 PCI, USB 4xTimers, Watchdog Timer 16xGPIO, RTC PRESENT FUTURE 7

uclinux Blackfin + OS Embedded Linux GHS Integrity Control Applications OS Real Time DSP Code VCSE Kernel (or RTOS) Blackfin VDK from ADI Unicoi Fusion RTOS Nucleus PLUS ThreadX CMX Live Devices uitron (API)... 8

uclinux VxWorks WinCE Embedded Linux Ohter < 512KB + + < 900KB Linux API 9

uclinux Micro-Control Linux MMU real memory manage flat elf2flt Motorola DragonBall, and other 68K Derivatives Motorola ColdFire ARM7TDMI and MC68EN302 ETRAX Intel i960 PRISMA Atari68K Blackfin RT 10

uclinux TCP/IP data 50~100k bss100~150k text >80k 300k 11

uclinux LinuxuClinux TOP ADDR D000-0000 (virtual) Linux w/ Virtual Memory stack TOP ADDR 00EA-6000 (physical) uclinux heap Heap Pages Allocated Virtual Gap ~ 256 MB heap stack static Data Using MMAP Fixed size Stack No Gaps Gaps Round to Next page BASE ADDR C000-0000 (virtual) static Data text BASE ADDR 00E8-0000 (physical) text 12

uclinux uclinux bootloader vmlinux.lds.s 13

HHBF533 600MHZ BF533 16M SDRAM 2M FLASH UART 10M/100M USB Host USB Device RTC JTAG Bootloader U-Boot 1.1.1 Flash uclinux Linux-2.6.2 Ext2 ftp, ftpd, telnet, telnetd,httpd... 14

HHBF561开发平台 600MHZ BF561处理器 64M SDRAM 16M FLASH UART串口 10M/100M以太网口 音频输入接口 音频输出接口 视频输入接口 视频输出接口 USB Host USB Device JTAG调试口 Bootloader U-Boot 1.1.1 z 硬件测试 z 以太网或串口下载程序 z Flash烧写 uclinux系统 z Linux-2.6.2内核 z 设备驱动 z Ext2根文件系统 z 网络应用 ftp, ftpd, telnet, telnetd,httpd... 15

U-BOOT linux lib 16

HHBF561 Linux 17

flash U- boot linux flash u-boot SDRAM linux linux SDRAM 18

Linux GNU 4 GCC: GNU.o AS: GNU (Assembler).S.s.o LD: GNU (Linker) LDD: NM: AR: -m486 -On -shared -static -Wall 486 19

Make Make Make Makefile Makefile EXEC = test OBJS = test.o all: $(EXEC) $(EXEC): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS$(LDLIBS_$@)) romfs: clean: $(ROMFSINST) /bin/$(exec) -rm -f $(EXEC) *.elf *.gdb *.o uclinux-dist/makefile 20

/HHBF561/tools /usr/local cp -rf /HHBF561/tools/* /usr/local 21

blackfin cvs -z9 -d:pserver:anonymous@cvs.blackfin.uclinux.org:/cvsroot/gcc3 binutils cvs -z9 -d:pserver:anonymous@cvs.blackfin.uclinux.org:/cvsroot/gcc3 elf2flt cvs -z9 -d:pserver:anonymous@cvs.blackfin.uclinux.org:/cvsroot/gcc3 gcc http://blackfin.uclinux.org/frs/?group_id=17 Binutils: make distclean./configure --target=bfin-elf --prefix=<output_dir> --exec-prefix=<output_dir> make make install cp -rf <2.6 kernel>/linux-2.6.x/include <output_dir>/bfin-elf cp -rf <2.6 kernel>/lib/libc/include <output_dir>/bfin-elf 22

PATH=<output_dir>/bin:$PATH GCC make disclean./configure --target-bfin-elf --prefix=<output_dir> --exec-prefix=<output_dir> make make install Elf2flt make distclean./configure --target=bfin-elf --with-libbfd=<binutils_dir>/bfd/libbfd.a --with-libiberty=<output_dir>/lib/libiberty.a --with-bfd-include-dir=<binutils_dir>/bfd --with-inutils-include-dir=<binutils_dir>/include --prefix=<ourput_dir> --exec-prefix=<output_dir> make make install 23

U-BOOT LINUX U-BOOT U-BOOT(Universal Bootloader) PowerPCARM U-BOOTLinux Linux Blackfin BF533 U-BOOT http://blackfin.uclinux.org/frs/?group_id=20&release_id=110,u-boot BF561 24

U-BOOT U-BOOT make clean make mrproper make ezkit561_config ROM U-BOOT make clean make all RAM U-BOOT make clean make u-boot.ram 25

U-BOOT U-BOOT help [COMMAND] go ADDR BOOT> help tftp setenv [NAME VALUE] fl DEST SRC LENGTH FLASH BOOT> setenv ipaddr 192.168.2.120 printenv [NAME] md[.b,.w,.l] ADDR BOOT> printenv ipaddr saveenv flash bootelf [ADDR] elf BOOT> saveenv loadb [ADDR BAUDRATE] BOOT> loadb 0x1000 115200 tftp ADDR FILENAME BOOT> tftp 0x1000 linux.bin BOOT> go 0x1000 BOOT> fl 0x20000000 0x10000000 0x20000 BOOT> md 0x1000 BOOT> bootelf 0x1000 26

U-BOOT Visual DSP++ U-BOOT RAMU-BOOT(u-boot.dxe) ROMU-BOOT(u-boot.bin) PC JTAG Visual DSP SDRAM u-boot.dxe EBIU_SDGCTL: EBIU_SDBCTL: EBIU_SDRRC: 0x91998D 0x13 0x74A PC RAMU-BOOT 0x1000000 115200 8N1 U-BOOT ROMU-BOOT FLASH BOOT> loadb 1000000 BOOT>fl 20000000 1000000 20000 FLASH U-BOOT 27

uclinux BF533 LINUX 2.42.6, 2.6 2.6 Blackfin uclinux http://blackfin.uclinux.org/frs/?group_id=17&release_id=107 linux uclinux uclinux Linux Makefile 28

Linux Makefile : make clean make dep(2.4 ) make Linux config.in2.6 Kconfig.config uclinux linux-2.6.x make menuconfig 29

Linux linux BF561: BF561 BF533,CORE A BF533 BF561 CORE A uclinux on BF533BF561 : linux-2.6.x/include/asm/board/bf533.hcclk_xxxbf561 linux-2.6.x/drivers/serial/bf33_serial.c linux-2.6.x/arch/ints-priority.cbfin_request_irqbfin_enable_irq BF561 30

C uclibcuc-libc uc-libc uclinuxc coldfile uclibcuc-libc bug uclibc libc: C libm: libcrpt: libpthread:posix libutil: Unix libz: 31

uclinux-dist/user uclinux-dist make menuconfig Busybox Busybox linux UNIX PC Busybox POSIX arg0 32

Linux linux init shell BlackfinLinux BSP ext2 uclinux-dist/vendors/ TARGET/Makefile uclinux-dist/romfs genext2fs ext2 rootfs.img 33

rootfs.img.ramdisk rootfs.o rootfs.o linux ld vmlinux.lds.s.data:{ }>ram ramdisk_begin =. ; *(.ramdisk) ramdisk_end =. ; ramdisk_beginramdisk_end 34

uclinux-dist make uclinux-dist/images linux.binzimage.bin linux.bin linux zimage.bin linux.bin u-boot FLASH, U-BOOT U-BOOT SDRAM BOOT> tftp 0x1000 linux.bin BOOT> go 1000 BOOT> tftp 0x1000 zimage BOOT> fl 0x20040000 0x1000 0x100000 U-BOOT 35

HHBF561 Linux uclinux 36

HHBF561 D/A ADV7171BF533PPI BF533 GPIO I2C ADV7171 struct file_operations adv7171_fops = { open: ioctl: release: adv7171_open, adv7171_ioctl, adv7171_release, write: adv7171_write, }; init() adv7171 PPI DMA open(): PPI DMA write(): ISR(): ioctl(): DMA 37

HHBF561 Linux dev_basenet_device Linux 38

HHBF561 EBIU DM9000 D0~D1516 DM9000 A2 DM9000 / PF11DM9000 CS1 DM9000 39

HHBF561 drivers/net/space.c ethif_probe dmfe_probe: dev, ethif_probe dmfe_open: ifconfig Open dmfe_stop: dmfe_start_xmit: sk_buffer dmfe_interrupt dm9000... 40

HHBF561 Inetd /etc/inetd.conf service type protocal wait user server cmdlinec service /etc/services Type socket Stream/Dgram Protocol Wait Dgram socket User ID Server Cmdline argument() 41

HHBF561 uclinux make menuconfig inetdtelnetdftpd romfs/etc/inittab inet:unknown:/bin/inetd romfs/etc/inetd.conf ftp tream tcp nowait root /bin/ftpd telnet stream tcp nowait root /bin/telnetd make 42

HHBF561 telnetd: [/]# telnet 192.168.2.254 Trying 192.168.2.254... Connected to 192.168.2.254 (192.168.2.254). Escape character is ^]. Sash command shel (version 1.1.1) />ls bin dev etc home lib mnt proc root sbin tmp usr var /> 43

HHBF561 BF561CORE A LINUX CORE B CORE A CORE B CORE A CORE A 44

HHBF561 VoIP Linux H.264/MPEG4 G.711/G.723.1/G.729/MP3 TCP/IP H.323 GUI MPEG4 MP3WMA email SMSMMS ADI BF561(600MHz) TFT LCD(3.5 ) FLASH SDRAM CCD A/D A/D D/A 45

HHBF561 FAQ 1. uclinux uclinux Application Module MP3 SoHo Gateway Communication Module BF533 +uclinux 50uS 2. GPL GPL module insmod GPL 46

market@hhcn.com : http://hhtech.clubhi.com/ 0551-5333155/5333156/5333157 47