Skip to main content
LiaoYuRuei
New Member
December 25, 2017
Question

FWF60C How to boot from flash ?

  • December 25, 2017
  • 1 reply
  • 48300 views

Hello all,

I have a FWF60C, because there were some error messages about disks from the console.

I erased the disk using 「 # execute erase-disk 」 command.

After that, I can't boot my FWF60, the console view as follow:

 

FortiWifi-60C (16:25-09.28.2011)
Ver:04000025
Serial number: FWF60CXXXXXXXXXX
CPU(00): 525MHz
Total RAM: 512MB
Initializing boot device...
Initializing MAC... nplite#0
Press any key to display configuration menu...
..

: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:
It will erase data in boot device. Continue? [yes/no]:yes
Formatting.....no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
 Done.


: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:

Please connect TFTP server to Ethernet port 'Any of port 1,2,3,4,5'.

Enter TFTP server address [192.168.1.168]:
Enter local address [192.168.1.188]:
Enter firmware image file name [image.out]:
MAC: 00:09:0f:1b:88:4a

Connect to tftp server 192.168.1.168 ...

#################################################################################################################################################################
Image Received.
Checking image... OK
Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D

Programming the boot device now.
USB boot device not found.
dev readblk br fail
The system must reformat the boot device to install this firmware.
The default and backup firmware will be lost.
Continue:[Y/N]?
USB boot device not found
write MRecord failed.
Partition upgrade fail: -1
Programming device failed.
Try to boot from device anyway

USB boot device not found.
Can not read USB boot device MBR.
Boot failed. Please check boot device or OS image ...
 Please power cycle. System halted.

 

Even I tried not set to default firmware, and using "R", as follow:

 

Initializing MAC... nplite#0
Press any key to display configuration menu...
.....

: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:
It will erase data in boot device. Continue? [yes/no]:yes
Formatting.....no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
no current device selected
 Done.


: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:

Please connect TFTP server to Ethernet port 'Any of port 1,2,3,4,5'.

Enter TFTP server address [192.168.1.168]:
Enter local address [192.168.1.188]:
Enter firmware image file name [image.out]:
MAC: 00:09:0f:1b:88:4a

Connect to tftp server 192.168.1.168 ...

#################################################################################################################################################################
Image Received.
Checking image... OK
Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?R
USB boot device not found.
 Please power cycle. System halted.

 

It asked me to boot from USB, and I inserted a usb, it seems booting successfully.

 

FortiWifi-60C (16:25-09.28.2011)
Ver:04000025
Serial number: FWF60CXXXXXXXXXX
CPU(00): 525MHz
Total RAM: 512MB
Initializing boot device...
Initializing MAC... nplite#0
Press any key to display configuration menu...
...

: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:
It will erase data in boot device. Continue? [yes/no]:yes
Formatting................ Done.


: Get firmware image from TFTP server.
: Format boot device.
: Configuration and information.
: Boot with backup firmware and set as default.
: Quit menu and continue to boot.
: Display this list of options.

Enter G,F,I,B,Q,or H:

Please connect TFTP server to Ethernet port 'Any of port 1,2,3,4,5'.

Enter TFTP server address [192.168.1.168]:
Enter local address [192.168.1.188]:
Enter firmware image file name [image.out]:
MAC: 00:09:0f:1b:88:4a

Connect to tftp server 192.168.1.168 ...

#################################################################################################################################################################
Image Received.
Checking image... OK
Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D

Programming the boot device now.
MRecord empty.
...............................
Reading boot image... 1713113 bytes.
Initializing firewall...

System is starting...
usb.c: unable to get device descriptor (error=-110)
Starting system maintenance...
Scanning /dev/sda1... (100%)
Formatting shared data partition ... done!
usb.c: unable to get device descriptor (error=-110)
usb.c: unable to get device descriptor (error=-110)


FWF60CXXXXXXXXXX login: usb.c: unable to get device descriptor (error=-110)


FWF60CXXXXXXXXXX login: admin
Password:
Welcome !

 

BUT....this is not what I wanted.

Does anyone know how to change the boot device ?

Thanks.

    1 reply

    Chris
    New Member
    December 26, 2017

    It is a bit strange that you get the Message "no current device selected". When you format or Flash the target is normaly always the internal Flash from the device. It seems that it doesn't exists anymore. Never seen this before. Am I right that you currently only boot from an USB-Stick and this works? Does the Device start normaly und comes up? I only know the auto Flash from USB but not to start a device with the full Firmware on An USB-Stick.

    LiaoYuRuei
    New Member
    December 27, 2017

    yes, now I can only boot from USB and it works.

    And the FWF60C format my USB into 3 partitions (just like the flash in FWF60C) as its boot device.

     

    I insert another USB and do the steps of update firmware, after it boot,

    and see the partitions using this command "diag hardware deviceinfo disk"

     

     

    FortiWifi-60C (16:25-09.28.2011)
    Ver:04000025
    Serial number: FWF60CXXXXXXXXXX
    CPU(00): 525MHz
    Total RAM: 512MB
    Initializing boot device...
    Initializing MAC... nplite#0
    Press any key to display configuration menu...
    ....

    : Get firmware image from TFTP server.
    : Format boot device.
    : Configuration and information.
    : Boot with backup firmware and set as default.
    : Quit menu and continue to boot.
    : Display this list of options.

    Enter G,F,I,B,Q,or H:
    It will erase data in boot device. Continue? [yes/no]:yes
    Formatting................... Done.


    : Get firmware image from TFTP server.
    : Format boot device.
    : Configuration and information.
    : Boot with backup firmware and set as default.
    : Quit menu and continue to boot.
    : Display this list of options.

    Enter G,F,I,B,Q,or H:

    Please connect TFTP server to Ethernet port 'Any of port 1,2,3,4,5'.

    Enter TFTP server address [192.168.1.168]:
    Enter local address [192.168.1.188]:
    Enter firmware image file name [image.out]:
    MAC: 00:09:0f:1b:88:4a

    Connect to tftp server 192.168.1.168 ...

    #######################################################################################################################################################################################
    Image Received.
    Checking image... OK
    Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D

    Programming the boot device now.
    MRecord empty.
    .............................
    Reading boot image... 1726625 bytes.
    Initializing firewall...

    System is starting...
    usb.c: unable to get device descriptor (error=-110)
    Starting system maintenance...
    Scanning /dev/sda1... (100%)
    Formatting shared data partition ... done!
    usb.c: unable to get device descriptor (error=-110)
    usb.c: unable to get device descriptor (error=-110)
    usb.c: unable to get device descriptor (error=-110)


    FWF60CXXXXXXXXXX login: usb.c: unable to get device descriptor (error=-110)
    usb.c: unable to get device descriptor (error=-110)


    FWF60CXXXXXXXXXX login:

    FWF60CXXXXXXXXXX login: admin
    Password:
    Welcome !

    FWF60CXXXXXXXXXX # config system interface

    FWF60CXXXXXXXXXX (interface) # show
    config system interface
    edit "dmz"
    set vdom "root"
    set ip 10.10.10.1 255.255.255.0
    set allowaccess ping https http fgfm capwap
    set type physical
    set snmp-index 1
    next
    edit "wan2"
    set vdom "root"
    set mode dhcp
    set allowaccess ping fgfm auto-ipsec
    set type physical
    set snmp-index 2
    next
    edit "wan1"
    set vdom "root"
    set mode dhcp
    set allowaccess ping fgfm auto-ipsec
    set type physical
    set snmp-index 3
    next
    edit "modem"
    set vdom "root"
    set mode pppoe
    set type physical
    set snmp-index 4
    next
    edit "ssl.root"
    set vdom "root"
    set type tunnel
    set alias "SSL VPN interface"
    set snmp-index 7
    next
    edit "internal"
    set vdom "root"
    set type physical
    set snmp-index 8
    next
    edit "wifi"
    set vdom "root"
    set type vap-switch
    set snmp-index 9
    next
    edit "lan"
    set vdom "root"
    set ip 192.168.1.99 255.255.255.0
    set allowaccess ping https ssh http fgfm capwap
    set type switch
    set snmp-index 10
    next
    end

    FWF60CXXXXXXXXXX (interface) # end

    FWF60CXXXXXXXXXX #
    FWF60CXXXXXXXXXX # usb.c: unable to get device descriptor (error=-110)

    FWF60CXXXXXXXXXX # conf router static

    FWF60CXXXXXXXXXX (static) # show

    FWF60CXXXXXXXXXX (static) # end

    FWF60CXXXXXXXXXX # diagnose hardusb.c: unable to get device descriptor (error=-110)
    ware deviceinfo disk

    Disk Internal(boot) ref: 14.6GB type: USB [JetFlash Transcend 16GB] dev: /dev/sda
    partition ref: 37.0MB, 7.0MB free mounted: Y label: dev: /dev/sda1(boot) start: 256
    partition ref: 39.0MB, 39.0MB free mounted: N label: dev: /dev/sda2(boot) start: 80384
    partition ref: 3 37.0MB, 29.0MB free mounted: Y label: dev: /dev/sda3 start: 160512

    Total available disks: 1
    Max SSD disks: 0 Available storage disks: 0

    FWF60CXXXXXXXXXX # usb.c: unable to get device descriptor (error=-110)

    FWF60CXXXXXXXXXX #
    FWF60CXXXXXXXXXX # diagnose hardware deviceinfo disk

    Disk Internal(boot) ref: 14.6GB type: USB [JetFlash Transcend 16GB] dev: /dev/sda
    partition ref: 37.0MB, 7.0MB free mounted: Y label: dev: /dev/sda1(boot) start: 256
    partition ref: 39.0MB, 39.0MB free mounted: N label: dev: /dev/sda2(boot) start: 80384
    partition ref: 3 37.0MB, 29.0MB free mounted: Y label: dev: /dev/sda3 start: 160512

    Total available disks: 1
    Max SSD disks: 0 Available storage disks: 0


     

    Although it continuing show the message in console,

    『usb.c: unable to get device descriptor (error=-110)』,

    but it can wok.

     

     

    Chris
    New Member
    December 27, 2017

    This behavior is very interest. I google around a while and found only one workaround for a 80C. In this case the internal flash are dead and as a workaround they jumpered some undocumented things in the device to Boot from an external UBS-Stick. I don't know if this can also be done with a 60C. Do you you have jumpered anything in the device? If yes it were very interesst for me. If not you are a lucky Guy that you can boot from an external Stick.

    Otherwise you would now have a non-functioning device. This is a nice Feature that is normaly not possible.

     

    By the way. Since V5.2 Fortinet has disabled logging to Flash.

    This is because the flash are stressed and fails from a certain time.

    Do you have logging to Flash activated?

     

    The cli comand "diag hardware deviceinfo disk"

    is a normal command. It shows you the attached Disks like SSD/USB.

    The internal Flash is also recognized as an USB-Device.

    As I can see you have a 16Gb JetFlash Transcend Stick attached.

     

    The command "diag system flash list" shows you the current flashed Firmware.

    Under active you see with FW is aktive now.

     

    Can you please put the result of:

    get hardware status

     

    You will see something like this (this is the result of working a 60D):

    Fortigate-60D # get hardware status Model name: FortiGate-60D ASIC version: CP0 ASIC SRAM: 64M CPU: FortiSOC2 Number of CPUs: 1 RAM: 1839 MB Compact Flash: 12850 MB /dev/sda   <--- This is the internal Flash Hard disk: not available USB Flash: not available

    I would like to know what is at CompactFlash on your device.

     

    PS: Erase-Disk is not the recommend Command to format a Flash.

         This will only be used if you want that all data should be totally erased when you sell the device for example.

         In all other situations format is the right way.