Sunteți pe pagina 1din 12

-------------------------------------------------------------------

Building an Olive PC
http://iwing.wordpress.com
http://www.ittelkom.ac.id/pinguin
-----------------------------------------------------------------------------------
Requirements:
* PC, (I am using K7S5A ECS motherboard,Processor Athlon XP 1100,
RAM 256 DDR PC 2700, HDD Samsung 10 G)
* FreeBSD 4.x ISO image
* A valid jinstall package
(I am using jinstall-8.4R4.2-domestic-signed.tgz)
* Intel network cards that use the fxp or em driver
(I am using 1 INTEL(R) PRO/1000 GT DESKTOP ADAPTER and 2
Intel EtherExpress Pro/100+ Management Adapter)

-----------------------------------------------------------------------------------
[Picture INTEL(R) PRO/1000 GT DESKTOP ADAPTER]

-----------------------------------------------------------------------------------

--------------------------------------------------------------------
!The following NICs have been tested and known to work with Olive: !
!Intel EtherExpress Pro/100 and Pro/100B (82558 / 82558B chipset) !
!Intel EtherExpress Pro/100+ Management Adapter (82559 chipset) !
!Intel Pro/1000MT Desktop Gigabit Adapter !
!Intel Pro/1000MT Dual Port Server Adapter (FW82546EB chipset) !
!Intel ICH3 Onboard Controller (82801CAM) !
!Compaq NC3120 (82258 chipset) !
!Compaq NC3121 (82558B chipset) !
!Compaq NC3134 (82559 chipset - 1496 MTU when using Dot1q) !
!Matrox QS-NIC Quad FE NIC (8255x chipset) !
!Radisys Quad Ethernet' FE NIC !
! !
!ref: http://juniperolive.blogspot.com/ !
! http://www.techexams.net !
! !
--------------------------------------------------------------------

* Serial cable/null-modem cable


-----------------------------------------------------------------------------------
Istallation

1. Install the base OS. For this install, we need FreeBSD version 4.4.
2. Boot from CDRom.
3. [Enter] to boot immediately.
4. Skip kernel configuration and continue with installation.
5. At the "/stand/sysinstall Main Menu", choose Standard.
6. At the "FDISK partition Editor", I used "A" for Use Entire Slice.
7. Choose "S" for Set Bootable.
8. Choose "Q" for Finish.
9. For the boot manager, go with "Standard" for a standard MBR.
10. At Disklabel Editor, I created the following slices:

2G for / partition
1G for swap
1G for /tmp
1G for /config
5G for /var (the rest of the disk)

11. At "choose distributions", go with "minimal"


12. Choose installation media: 1 CD/DVD
13. after the system reboots, make some mods to the system:

Ref: http://juniperolive.blogspot.com/

-----------------------------------------------------------------------------------
We need to untar the signed jinstall file first:

#cd /var/tmp
#mkdir jinst-signed
#cd jinst-signed
#tar zxvf ../jinstall-8.4R4.2-domestic-signed.tgz

Then untar the unsigned image:

#mkdir jinst
#cd jinst
#tar zxvf ../jinstall-8.4R4.4-domestic.tgz

Extract the pkgtools.tgz file and replace the checkpic binary inside with
/usr/bin/true :

#mkdir pkgtools
#cd pkgtools
#tar zxvf ../pkgtools.tgz
#cd bin
#cp /usr/bin/true ./checkpic
#cd ..

Create tar for pkgtools then remove the directory:

#tar zcvf ../pkgtools.tgz *


#cd ..
#rm -rf pkgtools

Create tar for the new jinstall package with modified checkpic

#tar zcfv /var/tmp/jinstall-8.4R4.2-domestic-olive.tgz *

Then install the new jinstall with bsd pkg_add tool:

#pkg_add -f /var/tmp/jinstall-8.4R4.2-domestic-olive.tgz
Ref: http://brokenpipes.blogspot.com/
http://www.techexams.net (tks to:froggy3132000)

-----------------------------------------------------------------------------------
Here you will need a console connection to your system as the PC is now functioning
as a "router" and it won't have a GUI. Your PC screen will probably say something
like this after the reboot:

"Loading /boot/loader"
"BTX loader 1.00 BTX version is 1.01"

Ref: http://juniperolive.blogspot.com/

-----------------------------------------------------------------------------------
Because my laptop (Acer Aspire 4520) doesn't have serial connection, I buy converter
usb to serial in the market (BEC Bandung), and customize the console cable from cisco,
you need also the serial db-9 female.

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

This is the pin out of the connector


[a]. pin out cisco
[Picture pin out cisco]

-----------------------------------------------------------------------------------
[b]. pin out db-9
[Picture pin out db-9]
Combine information from two pin out above, and the result more or less is like this
(Based on my experience)
cisco ----> db-9
1 ----> 7
2 ----> 4
3 ----> 3
6 ----> 2
7 ----> 6
8 ----> 8
-----------------------------------------------------------------------------------
This is my chicken scratch pin out:

-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------

I am using minicom in ubuntu 9.10 for remote the router


[Picture snapshoot of minicom]

-----------------------------------------------------------------------------------
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Sep 25 2009, 23:40:20.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

BIOS drive A: is disk0


BIOS drive C: is disk1
BIOS 639kB/261056kB available memory

FreeBSD/i386 bootstrap loader, Revision 0.8


(builder@ddraig.juniper.net, Wed May 21 08:34:43 UTC 2008)
Loading /boot/defaults/loader.conf
/kernel text=0x7347a7 data=0x3f864+0x5991a syms=[0x4+0x77240+0x4+0x72973]

Hit [Enter] to boot immediately, or space bar for command prompt.


Booting [kernel]...
Olive CPU
Copyright (c) 1996-2008, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 8.4R4.2 #0: 2008-05-21 08:47:52 UTC
builder@ddraig.juniper.net:/volume/build/junos/8.4/release/8.4R4.2/obj-i386R
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 1095345274 Hz
CPU: AMD Athlon(tm) Processor (1095.35-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x662 Stepping = 2
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,P>
AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory = 268369920 (262080K bytes)
sio0: gdb debugging port
avail memory = 250728448 (244852K bytes)
Preloaded elf kernel "kernel" at 0xc09ba000.
DEVFS: ready for devices
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00f7780
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <S3 Trio3D/2X graphics accelerator> at 0.0
isab0: <SiS 85c503 PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
pci0: <OHCI USB controller> at 2.2 irq 11
pci0: <OHCI USB controller> at 2.3 irq 5
atapci0: <SiS 5591 ATA100 controller> port 0xff00-0xff0f at device 2.5 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x1039, dev=0x7012) at 2.7 irq 11
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0xd400-0xd43f mem 0xcfe0000
em0: <Intel(R) PRO/1000 Network Connection Version - 3.1.10> port 0xd000-0xd03f0
em0: Speed:N/A Duplex:N/A
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> port 0xcc00-0xcc3f mem 0xcfc0000
pcib1: <SiS 5591 host to AGP bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
sio0: type 16550A, console
sio1: configured irq 5 not in bitmap of probed irqs 0
sio2 at port 0x2f8-0x2ff irq 3 on isa0
sio2: type 16550A
sio3: configured irq 7 not in bitmap of probed irqs 0
em0: bus=0, device=15, func=0, Ethernet address 00:1b:21:08:21:51
fxp0: Ethernet address 00:03:47:b0:92:61
fxp1: Ethernet address 00:90:27:e6:61:2e
DEVFS: ready to run
em0: Link is up 1000 Mbps Full Duplex
ad1: 9732MB <SAMSUNG SV1022D> [19773/16/63] at ata0-slave UDMA66
ata1-slave: <HL-DT-STDVD-RAM GSA-H55N/1.03> CDROM device - NO DRIVER!
Mounting root from ufs:/dev/ad1s1a
WARNING: / was not properly dismounted
if_pfe_open: listener socket opened, listening...
Mounted jbase package on /dev/vn0...
Verified manifest signed by PackageProduction_8_4_0
Verified jboot signed by PackageProduction_8_4_0
Mounted jkernel package on /dev/vn1...
Verified manifest signed by PackageProduction_8_4_0
Mounted jpfe package on /dev/vn2...
Mounted jdocs package on /dev/vn3...
Verified manifest signed by PackageProduction_8_4_0
Mounted jroute package on /dev/vn4...
Verified manifest signed by PackageProduction_8_4_0
Mounted jcrypto package on /dev/vn5...
Verified manifest signed by PackageProduction_8_4_0
Mounted jpfe-common package on /dev/vn6...
Mounted jweb package on /dev/vn7...
Verified manifest signed by PackageProduction_8_4_0
Executing /packages/mnt/jweb-8.4R4.2/mount.post..
swapon: adding /dev/ad1s1b as swap device
Automatic reboot in progress...
/dev/ad1s1a: 1324 files, 33259 used, 1478796 free /dev/ad1s1e: 5 files, 5 used,)
(10 frags, 125993 blocks, 0.0% fragmentation)
(108 frags, 184836 blocks, 0.0% fragmentation)
/dev/ad1s1f: 235 files, 339028 used, 1527241 free (225 frags, 190877 blocks, 0.)
tunefs: soft updates set
chown: wheel: illegal group name
Creating initial configuration...mgd: commit complete

Database Initialization Utility


RDM Embedded 7 [04-Aug-2006] http://www.birdstep.com
Copyright (c) 1992-2006 Birdstep Technology, Inc. All Rights Reserved.

/var/sdb/session_db initialized

Setting initial options: debugger_on_panic=NO debugger_on_break=NO.


Doing initial network setup:.
Initial interface configuration:
additional daemons:.
checking for core dump...
savecore: could not be determined
Additional routing options: ipsec kld.
Doing additional network setup:.
Starting final network daemons:.
setting ldconfig path: /usr/lib /opt/lib
starting standard daemons: cron.
Initial rc.i386 initialization: microcode kld.
Local package initialization:.
kern.securelevel: -1 -> 1
starting local daemons:.
Tue Sep 7 09:01:24 UTC 2010

toiletumum (ttyd0)
login: iwing
Password:
Last login: Mon Sep 6 16:05:16 on ttyd0

--- JUNOS 8.4R4.2 built 2008-05-21 08:47:52 UTC


---
--- NOTICE: System is running on alternate media device (/dev/ad1s1a).
---
iwing@toiletumum>
-----------------------------------------------------------------------------------
Another snapshot
-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

-----------------------------------------------------------------------------------

Done, thanks you for all attentions, have a nice day b^_^d
and fill free to corect me if iam wrong...

S-ar putea să vă placă și