Junos
Reply
Visitor
atxparrothead
Posts: 6
Registered: ‎09-25-2008
0

Help w/ creating bootable PC Card/PCMCIA

I am having a heck of a time trying to get an off the self PC Card/PCMCIA card to become bootable.  I've followed various install-media readme.txt files and done several searches on the KB and here.  Is there any clear documentation or step by step instructions on how to do this.  I've gotten the router to boot off the hard disk and not the compact flash but can't get the router to boot off the PC Card/PCMCIA card.  I'm not sure if the router is even loading the PC Card/PCMCIA at boot up.  I've included a "show system boot-messages":

 

lab03.labtx> show system boot-messages
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-i386/sys/compile/JUNIPER
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 331705997 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (331.71-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
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, 14 entries at 0xc00fde70
DRAM Data Integrity Mode: Non-ECC
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
smb0: <Intel 82371AB SMB controller> port 0x5000-0x500f at device 7.3 on pci0
pcic0: <TI PCI-1251B PCI-CardBus Bridge> mem 0xe6205000-0xe6205fff irq 15 at device 13.0 on pci0
pcic0: TI12XX PCI Config Reg: [pci only]
pccard0: <PC Card bus -- legacy version> on pcic0
pcic1: <TI PCI-1251B PCI-CardBus Bridge> mem 0xe6200000-0xe6200fff irq 7 at device 13.1 on pci0
pcic1: TI12XX PCI Config Reg: [pci only]
pccard1: <PC Card bus -- legacy version> on pcic1
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0xd800-0xd83f mem 0xe6100000-0xe61fffff,0xe6204000-0xe6204fff irq 7 at device 16.0 on pci0
pcib1: <DEC 21150 PCI-PCI bridge> at device 17.0 on pci0
pci1: <PCI bus> on pcib1
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> port 0xe000-0xe03f mem 0xe6000000-0xe60fffff,0xe6207000-0xe6207fff irq 10 at device 19.0 on pci0
orm0: <Option ROMs> at iomem 0xc8000-0xc87ff,0xc9000-0xc97ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: MDA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
sio0: type 16550A, console
sio1 at port 0x3e8-0x3ef irq 5 on isa0
sio1: type 16550A
sio2 at port 0x2f8-0x2ff irq 3 on isa0
sio2: type 16550A
sio3: configured irq 7 not in bitmap of probed irqs 0
fxp0: Ethernet address 00:a0:a5:12:44:10
fxp1: Ethernet address 02:00:00:00:00:04
DEVFS: ready to run
ad0: 91MB <SanDisk SDCFB-96> [734/8/32] at ata0-master PIO1
ad1: 11513MB <IBM-DARA-212000> [23392/16/63] at ata0-slave UDMA33
Mounting root from ufs:/dev/ad1s1a
                   

Recognized Expert
benb
Posts: 205
Registered: ‎11-05-2007
0

Re: Help w/ creating bootable PC Card/PCMCIA

Based on your dmesg output, it doesn't look like a pccard is installed.  The pccard slots are present.  So, either the card isn't inserted, or has failed.

 

If the card is functional, you should see something like this.  The disk numbers will change, depending which slot the card is in.

 

ata2: <HITACHI FLASH> at port 0x4040-0x404f irq 15 function 0 config 1 on pccard1
ad3: Device does not support APM
ad3: 244MB <Hitachi XX.V.3.4.0.0 Rev 0.00> at ata2-master PIO4

 

Are you getting any sort of error messages, when you attempt to copy the image to the card?  Also, what size is the card.  I've seen issues with larger cards before.  I would stick with the 126/256M sized cards.  Can you provide the output from your attempt to install the media?

 

Regards,

Ben

Visitor
atxparrothead
Posts: 6
Registered: ‎09-25-2008
0

Re: Help w/ creating bootable PC Card/PCMCIA

Below is an actual copy of the dmesg output.  You will see that it finds/see's the PC Card/PCMCIA card(ad3):

 

root@lab03% dmesg
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-i386/sys/compile/JUNIPER
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 331706667 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (331.71-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66a  Stepping = 10
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
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, 14 entries at 0xc00fde70
DRAM Data Integrity Mode: Non-ECC
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard
pci0: <PCI bus> on pcib0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11
smb0: <Intel 82371AB SMB controller> port 0x5000-0x500f at device 7.3 on pci0
pcic0: <TI PCI-1251B PCI-CardBus Bridge> mem 0xe6205000-0xe6205fff irq 15 at device 13.0 on pci0
pcic0: TI12XX PCI Config Reg: [pci only]
pccard0: <PC Card bus -- legacy version> on pcic0
pcic1: <TI PCI-1251B PCI-CardBus Bridge> mem 0xe6200000-0xe6200fff irq 7 at device 13.1 on pci0
pcic1: TI12XX PCI Config Reg: [pci only]
pccard1: <PC Card bus -- legacy version> on pcic1
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0xd800-0xd83f mem 0xe6100000-0xe61fffff,0xe6204000-0xe6204fff irq 7 at device 16.0 on pci0
pcib1: <DEC 21150 PCI-PCI bridge> at device 17.0 on pci0
pci1: <PCI bus> on pcib1
fxp1: <Intel EtherExpress Pro 10/100B Ethernet> port 0xe000-0xe03f mem 0xe6000000-0xe60fffff,0xe6207000-0xe6207fff irq 10 at device 19.0 on pci0
orm0: <Option ROMs> at iomem 0xc8000-0xc87ff,0xc9000-0xc97ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: MDA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
sio0: type 16550A, console
sio1 at port 0x3e8-0x3ef irq 5 on isa0
sio1: type 16550A
sio2 at port 0x2f8-0x2ff irq 3 on isa0
sio2: type 16550A
sio3: configured irq 7 not in bitmap of probed irqs 0
fxp0: Ethernet address 00:a0:a5:12:44:10
fxp1: Ethernet address 02:00:00:00:00:04
DEVFS: ready to run
ad0: 91MB <SanDisk SDCFB-96> [734/8/32] at ata0-master PIO1
ad1: 11513MB <IBM-DARA-212000> [23392/16/63] at ata0-slave UDMA33
Mounting root from ufs:/dev/ad0s1a
Microcode: Header revision 1, Date 5/5/1999, Platform Id 0x20
Microcode: updated from revision 0 to 11, date=05051999
mastership: routing engine 0 becoming master
setting server address to 1
TNP: adding neighbor 1 to interface fxp1.
fxp1: link media UP 100Mb / full-duplex
TNP: version is changing to 1
TNP: adding neighbor 2 to interface fxp1.
setsockopt(RTS_ASYNC_NEED_RESYNC) ignored (pppd): client already active
cos_msg_red_drop_req_to_pfe: profile 0, err 0
rts_cos_red_drop_req_wait_and_reply red_drop_msg NULL to GETNEXT profile 0
fxp0: media DOWN 10Mb / half-duplex
ata4 at port 0x240-0x247,0x24e irq 15 slot 0 on pccard0
ad3: 122MB <SanDisk SDP3B-128> [980/8/32] at ata4-master BIOSPIO
ad3: cannot find label (no disk label)
ad3s1: cannot find label (no disk label)
fxp1: link media DOWN 10Mb / half-duplex
ad3: cannot find label (no disk label)
ad3s1: cannot find label (no disk label)
TNP: deleting neighbor 2 from interface fxp1.
TNP: version is changing to 2
ad3: cannot find label (no disk label)
ad3s1: cannot find label (no disk label)
fxp1: media DOWN 100Mb / full-duplex
fxp1: link UP 100Mb / full-duplex
TNP: version is changing to 1
TNP: adding neighbor 2 to interface fxp1.
fxp1: link media DOWN 10Mb / half-duplex
fxp1: media DOWN 100Mb / full-duplex
fxp1: link UP 100Mb / full-duplex
root@lab03%

Recognized Expert
benb
Posts: 205
Registered: ‎11-05-2007
0

Re: Help w/ creating bootable PC Card/PCMCIA

Good.  Your highlighted output indicates the disk is found.  But, the install image isn't readable/bootable.  So, can you paste the output from when you copy the disk?  Below is a link to the procedure.

 

https://www.juniper.net/support/csc/swdist-domestic/InstallReadMe.txt

 

    * PCMCIA boot flash card
To create a PCMCIA boot flash card, ftp the image to the router's /var/tmp directory
and insert a PC card into the routers' drive. Then, from the UNIX shell on your router,
change to the /var/tmp directory and issue the following commands:
dd if=/dev/zero of=/dev/ad3 count=20
dd if=install-media-<release-number>-domestic of=/dev/ad3 bs=64k

 

Visitor
atxparrothead
Posts: 6
Registered: ‎09-25-2008
0

Re: Help w/ creating bootable PC Card/PCMCIA

BenB...just wanted to say thanks in advance for your help w/ this. 

 

So i'm familar w/ the creating the PCMCIA bootable media portion that you posted.  I see that that installed the install-media pkg not the usual jinstall or jbundle that you use for upgrading the router.  What i'm trying to acheive is to have the router boot up off the PCMCIA card instead of flash or the harddrive. 

 

I'm running into issues w/ the router wanting to wipe the HD and start fresh after a reboot.  Is the proper image not on the PCMCIA card? 

Recognized Expert
benb
Posts: 205
Registered: ‎11-05-2007
0

Re: Help w/ creating bootable PC Card/PCMCIA

No problem.  Glad I am able to assist.  I understand your question now.  Sorry, I missed your point, earlier.

 

Wiping the HDD and starting fresh after reboot is exactly what should happen when you boot from the removable media.  You can't actually run JUNOS from the PCMCIA.

 

Regards,

Ben

Visitor
atxparrothead
Posts: 6
Registered: ‎09-25-2008
0

Re: Help w/ creating bootable PC Card/PCMCIA

It is almost like Juniper is contradicting themselves:

 

http://www.juniper.net/techpubs/software/junos/junos90/swconfig-install/boot-sequence.html

 

 unless i'm misinterpreting what their saying.

 

 

Recognized Expert
benb
Posts: 205
Registered: ‎11-05-2007
0

Re: Help w/ creating bootable PC Card/PCMCIA

I'm not seeing the contradiction.  The Note: in that link also indicates what I wrote.

 

"Note: To reinstall the JUNOS software, you boot the router from the removable media. Do not insert the removable media during normal operations. The router does not operate normally when it is booted from the removable media."

 

Regards,

Ben

 

 

Visitor
atxparrothead
Posts: 6
Registered: ‎09-25-2008
0

Re: Help w/ creating bootable PC Card/PCMCIA

thee contradiction comes from statements like this in that link:

 

The router attempts to boot from three devices in this order:

  • Removable medium, if one is installed
  • Flash disk
  • Hard disk

Most router models normally boot from the flash disk. The M7i router is not always shipped with a flash disk, and normally boots from a removable PC Card installed in a slot in its Routing Engine.

 

If the Routing Engine does not have an internal compact flash disk, two copies of the JUNOS software are preinstalled on the router: one on a PC Card that can be inserted into the slot in the Routing Engine faceplate, and one on a rotating hard disk in the Routing Engine. When the router boots, it first attempts to access the software image on the PC Card. If a PC Card is not inserted into the Routing Engine or the attempt otherwise fails, the router tries the hard disk.

 

If the Routing Engine has an internal compact flash disk, three copies of the JUNOS software are preinstalled on the router. When the router boots, it first attempts to access the image on the PC Card. If a PC Card is not inserted into the Routing Engine or the attempt otherwise fails, the router next tries the flash disk, and finally the hard disk.

 

 

In reading such things, this would lead one (me for instance) to believe that it's possible to boot the router off of the PCMCIA/PC Card.  Does this seem to be confusing and contradicting to you now?? 

 

My head is spinning now....

 

 

Recognized Expert
benb
Posts: 205
Registered: ‎11-05-2007
0

Re: Help w/ creating bootable PC Card/PCMCIA

I can see why there might be some confusion.  The sentences you highlight might make the reader believe it will boot-up normally.  But, I think this page is just trying to clarify the boot sequence.

 

The note in the box, is the only indication that the removable media will cause the router to  "not operate normally".


But, I can assure you.  The behavior you see is expected.  There is no supported way to run JUNOS on the removable media, itself.  It is a recovery mechanism.

 

Regards,

Ben

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.