ML310 With Linux

From RCSWiki

Jump to: navigation, search

Step 1. Set up hardware

(a) take main board and power supply out of box
(b) ground yourself and plub in DDR SDRAM
(c) plug in serial cable -- red (stipple/black) pin1 belongs closest to edge of board (this is the FPGA UART jack, J4)
(d) plug in IDE cable to PRI IDE -- red (stipple/black) pin1 is closest to the LEDs and red switches (not edge of board)

   NOTE:  the connectors on the ml-310 board are HALF keyed; many cables assume that one of the male pins on the board have been remove and, on the ml-310, it has NOT been removed. Drill
   out the filling for one cable.   

(e) connect the power supply to the main board and to the IDE disk


Step 2. Hook up host and power on.
(a) connect a serial cable to the back of the PC and plug it into the FPGA UART (J4) cable. Some RS-232 cables are straight-through and some are null modems. You want a null modem. If you have a straight-through cable you put a null modem adaptor inline.
(b) start up minicom (I like kermit but Linux seems to have adopted minicom) to set up the parameters:

   minicom -s 
This will take you straight to the configuration menu. press the down arrows to menu option "Serial port setup", hit return. Make sure that A shows "/dev/ttyS0" (assuming you plugged the ml-310 serial cable into COM1). Next make sure E says "9600 8N1" Finally, turn off hardware flow control. (Maybe this last step is not needed -- I'm just being conservative.) Escape to go to the main menu.
SAVE AS DEFAULTS and EXIT. At least one version of minicom saves the results as defaults but doesn't use those defaults until you restart it.

(c) Alright... moment of truth. Turn on power. The green LEDs should flash, then all light, then go off and progress back to being all on. Meanwhile you should get a power-on test on the minicom screen:


Welcome to minicom 2.00.0

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n Compiled on Feb 21 2005, 19:32:30.

Press CTRL-A Z for help on special keys


ML310 Diagnostics/ACE-loader (Rev04)



Production EEPROM data:
Header = XILINX
FAB P/N = 1280333-02
ASY P/N = 0431302-04
ASY S/N = 1104891
ETH0 MAC = 00:0a:35:00:77:70
Init date = 04/11/20 15:57:44
memtest: passed, 628 ms
pcitest: passed, 100 ms
smbinit: passed, 2 ms
moninit: passed, 358 ms
rtctest: passed, 5 ms
spdprom: passed, 655 ms
ethtest: passed, 64 ms
sndtest: passed, 0 ms
monstat: passed, 11 ms
post310: Self-test passed,

Enter Desired System ACE CF Configuration <0-7>.
  0: ACE-loader.
  1: Linux w/PCI.
  2: VxWorks w/PCI.
  3: QNX Demo.
  4: Linux EDK Base Build.
  5: VxWorks EDK Base Build.
  6: User Configuration A.
  7: User Configuration B.
                                                                                                                                                                     

Select:


At this point, choose Along with lots of other messages at boot, there should be a couple of lines that indicate that linux discovered your IDE drive:

hda: IBM-DTLA-307030, ATA DISK drive
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0 at 0xdff8-0xdfff,0xdff6 on irq 31
blk: queue c0232a90, I/O limit 4095Mb (mask 0xffffffff)
hda: 60036480 sectors (30739 MB) w/1916KiB Cache, CHS=59560/16/63, UDMA(100)

Step 3. log in as root

MontaVista(R) Linux(R) Professional Edition 3.1

ml310 login: root
Password: <--- default root "310ml"


Step 4. make file systems

fdisk /dev/hda

(make two partitions)

Step 3. format two partitions

mkfs -V -t ext3 -v -c /dev/hda1
mount /dev/hda1 /mnt
cd /mnt
dump 0f - /dev/xsysace/disc0/part2 | restore rvf -
cd
umount /mnt
mkfs -V -t ext3 -v -c /dev/hda2
1 (a default BSP plus MVLinux).


--Parag 12:34, 29 Oct 2005 (CDT)

Personal tools