📄 linux_1_4_2_9312_demo_guide.txt
字号:
**********************************************************************
Demo peripherals under Atanasoff 1.4.2 using the Cirrus Logic EP9312
This document describes how to setup and demonstrate various peripherals in Linux.
The peripherals covered include USB, IDE, Audio, Touch Screen, and Ethernet.
1. redboot.bin, ramdisk.gz, and zImage are in the directory
cirrus-arm-linux-1.4.2/edb9312 on your Linux host.
Use the download utility to program redboot.bin to edb9312's flash.
2. Copy ramdisk.gz and zImage to /tftpboot.
3. Connect the Ethernet port on EDB9312 to a hub or switch.
Power on EDB9312. Upon RedBoot prompt, use fconfig to set configuration.
Power off then power on EDB9312 so the new configuration can take effect.
4. Upon RebBoot prompt, do the following:
load -r -v -b 0x800000 ramdisk.gz
load -r -v -b 0x80000 zImage
exec -r 0x800000 -s 0x600000
Make sure you can bring up Linux.
5. (Optional) Program ramdisk and zImage to flash.
Power off then power on EDB9312.
load -r -v -b 0x800000 ramdisk.gz
load -r -v -b 0x80000 zImage
fis init -f
fis create -b 0x800000 -l 0x600000 ramdisk
fis create -b 0x80000 -l 0x100000 zImage
fis list
Power off then power on EDB9312.
fis load ramdisk
fis load zImage
exec -r 0x800000 -s 0x600000
Make sure you can bring up Linux.
6. (Optional) Run script from RedBoot to bring up Linux.
Power off then power on EDB9312.
Upon RedBoot prompt, do the following:
RedBoot> fconfig
Run script at boot: true
Enter script, terminate with empty line
>> fis load ramdisk
>> fis load zImage
>> exec -r 0x800000 -s 0x600000
>>
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: false
........................
Update RedBoot non-volatile configuration - continue (y/n)? y
Power off then power on EDB9312.
Make sure Linux can be loaded automatically.
7. Power off EDB9312.
Connect the peripherals to be demonstrated to EDB9312.
Ethernet: MUST connect the Ethernet port to a hub or switch.
Prefer DHCP server in the network.
USB devices: storage drive(Thumb drive).
IDE devices: hard disk (master), CD ROM (slave).
Audio: connect speakers to I2S Line Out L/R (J10).
PS/2 keyboard: connect to J15.
8. Power on EDB9312 and bring up Linux.
9. Demo for peripherals:
9.1 PS/2 Keyboard:
You can use it immediately after Linux has been loaded.
9.2 USB Thumb Storage Device:
cd /mnt
mkdir thumb
mount -t vfat /dev/sda1 /mnt/thumb
(or "mount /dev/sda1 /mnt/thumb" if the file system type
is not FAT or unknown.)
cd thumb
ls
9.3 IDE Hard Disk:
cd /mnt
mkdir hd
mount -t vfat /dev/hda1 /mnt/hd
(or "mount /dev/hda1 /mnt/hd" if the file system type
is not FAT or unknown.)
cd hd
ls
9.4 IDE CD ROM:
cd /mnt
mkdir cdrom
mount -t iso9660 /dev/hdb /mnt/cdrom
(or "mount /dev/hdb /mnt/cdrom" if the file system type
is not iso9660 or unknown.)
cd cdrom
ls
9.5 Ethernet:
Use ifconfig to check IP address. Type:
ifconfig
(If no DHCP server in your network, you can manually assign one by
ifconfig eth0 xxx.xxx.xxx.xxx
However, telnet server and HTTP server may not start.)
Telnet server and HTTP server are running on EDB9312.
From Web Brower on your computer, you can connect to the HTTP server by
http://xxx.xxx.xxx.xxx(IP Address of EDB9312)
You can connect to the telnet server by
telnet xxx.xxx.xxx.xxx(IP Address of EDB9312)
9.6 Touch Screen
Use the USB keyboard (not serial port or telnet connection), type
set
to make sure QWS_MOUSE_PROTO is set to TPanel:/dev/misc/ep93xx_ts
cd /usr/qt/examples/launcher
./launcher -qws
Use a pen for touch screen) to click Canvas, Scribble,
Magnifier, or drawline at the upper right corner, and play it.
Click "Quit" at the lower right corner or press ALT+CTRL+BackSpace
to go back to command line. Upon the command line, type
clear
to clear the messy screen.
9.7 Audio Output:
- Play the music funky.mp3 by:
playmp3 /funky.mp3 /dev/audio
- The audio volume can be adjusted by
cmix vol xx
where xx could be a number between 0 to 100.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -