Hardware-Ben/zh-hans
From Qi-Hardware
Contents |
介绍
- LCD: 320x240 (在命令行下是40x30)
- 闪存大小: 2GB
- 内存大小: 32MB
- ...
状态
- 可以通过USB烧写bootloader, kernel, 和根文件系统。
- 通过机器背面的电池部分的 GND/RXD/TXD 的调试串口工作正常。
- 液晶屏可以工作。
- 键盘工作正常
- 音频播放/ALSA正常
- SD卡驱动还需完善。
- ...
管脚
PCB 08.50 (ben)
Micro-SD pins on testpads
Pin TP note ------------------ #1 TP14 data2 #2 TP15 cd/data3 / _CS #3 TP17 cmd / mosi #4 sdVCC switched by Q4 (fet?) controlled via line from cpu (on TP11) #5 TP16 clock #6 GND #7 TP12 data0 / miso #8 TP13 data1
串口
See Ben_source_code#serial_console.
系统信息
$ cat /proc/cpuinfo system type : JZ4740 processor : 0 cpu model : Ingenic JZRISC V4.15 BogoMIPS : 335.05 wait instruction : yes microsecond timers : no tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff] ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available
$ cat /proc/mtd mtd0: 00400000 00080000 "NAND BOOT partition" mtd1: 00400000 00080000 "NAND KERNEL partition" mtd2: 1f800000 00080000 "NAND ROOTFS partition" mtd3: 60000000 00080000 "NAND DATA partition"
$ uname -a Linux OpenWrt 2.6.31-rc6-gf1e89c8-dirty #2 PREEMPT Wed Sep 9 19:09:31 CST 2009 mips unknown
$ cat /proc/iomem 00000000-01ffffff : System RAM 00010000-002adebf : Kernel code 002adec0-003155ff : Kernel data 10020000-10020037 : jz4740-i2s 10021000-10030fff : jz-mmc.0 10021000-10021fff : jz-mmc 10042000-10051fff : jz_i2c.0 13010000-1301ffff : jz4740-nand.0 13010000-1301ffff : jz4740-nand 13030000-1303ffff : jz-ohci.0 13040000-1304ffff : jz-udc.0 13050000-1305ffff : jz4740-fb 13050000-1305ffff : jz4740-fb
$ cat /proc/interrupts
CPU0
9: 9173 INTC serial
14: 3 INTC MMC/SD
23: 144089 INTC jz-timerirq
32: 0 DMA MMC Rx
33: 0 DMA MMC Tx
144: 1 GPIO Bank D MMC card detect
162: 0 GPIO Bank D matrix-keypad
163: 23 GPIO Bank D matrix-keypad
164: 14 GPIO Bank D matrix-keypad
165: 25 GPIO Bank D matrix-keypad
166: 47 GPIO Bank D matrix-keypad
167: 15 GPIO Bank D matrix-keypad
168: 18 GPIO Bank D matrix-keypad
170: 0 GPIO Bank D matrix-keypad
ERR: 0
GPIO pins
JZ4720上只有一定数量的引脚可以配置成输出。而且,有一些引脚还是特定功能的,不能配置成其他功能,比如sdram,nand controller,lcd controller 和 mmc+sd controller。从下面这张中有具体的用途。 Please complete this table. The missing entries are not connected to a pad in the Jz4720.
Port A
- 01 sdram data 0
- 03 sdram data 1
- 05 sdram data 2
- 07 sdram data 3
- 08 sdram data 4
- 09 sdram data 5
- 10 sdram data 6
- 11 sdram data 7
- 12 sdram data 8
- 13 sdram data 9
- 15 sdram data 10
- 17 sdram data 11
- 22 sdram data 12
- 26 sdram data 13
- 28 sdram data 14
- 30 sdram data 15
Port B
- 00 sdram address 0
- 01 sdram address 1
- 02 sdram address 2
- 03 sdram address 3
- 04 sdram address 4
- 05 sdram address 5
- 06 sdram address 6
- 07 sdram address 7
- 08 sdram address 8
- 09 sdram address 9
- 10 sdram address 10
- 11 sdram address 11
- 12 sdram address 12
- 13 sdram address 13
- 14 sdram address 14
- 15 nand command latch
- 16 nand address latch
- 17 SHDN_HOST???
- 18 TP23 (free)
- 19 sdram dcs
- 20 sdram ras
- 21 sdram cas
- 22 ???
- 23 sdram cke
- 24 sdram cko
- 25 sdram cs1
- 26 sdram cs2
- 27 USB ID
- 28 ???
- 29 Audio output enable
- 30 TP25 (free)
- 31 ???
Port C
- 00 lcd data 0
- 01 lcd data 1
- 02 lcd data 2
- 03 lcd data 3
- 04 lcd data 4
- 05 lcd data 5
- 06 lcd data 6
- 07 lcd data 7
- 08 TP 35 (unused)
- 09 TP 36 (unused)
- 10 keyboard out 0
- 11 keyboard out 1
- 12 keyboard out 2
- 13 keyboard out 3
- 14 keyboard out 4
- 15 keyboard out 5
- 16 keyboard out 6
- 17 keyboard out 7
- 18 lcd pixel clock
- 19 lcd hsync
- 20 lcd vsync
- 21 LCD SPI chipselect
- 22 LCD SPI data
- 23 LCD SPI clock
- 24 sdram write enable 1
- 27 Charge detect
- 28 nand read enable
- 29 nand write enable
- 30 nand flash ready/busy
- 31 select uart or jtag on pad 147; not a gpio pin
Port D
- 00 SD Card detect
- 02 SD Card power enable
- 04 Speaker AMP enable
- 06 Shutdown detect
- 08 SD Card command
- 09 SD Card clock
- 10 SD Card data 1
- 11 SD Card data 2
- 12 SD Card data 3
- 13 SD Card data 4
- 15 TP 38 (free)
- 18 Keyboard in 1
- 19 Keyboard in 2
- 20 Keyboard in 3
- 21 Keyboard in 4
- 22 Keyboard in 5
- 23 Keyboard in 6 (i2c?)
- 24 Keyboard in 7 (i2c?)
- 25 uart transmit
- 26 Keyboard in 8 (uart receive)
- 27 Buzzer, controlled with pwm4. Piezo-electric buzzer; not related to soundcard output.
- 28 USB detect
- 29 power button