Start a Conversation

Unsolved

B

2 Posts

848

April 14th, 2022 18:00

N3048 stuck in ONIE won't show menu

So someone got creative, and now my switch is stuck booting into ONIE into discovery mode. It won't display the ONIE menu to do anything, it just boots right into the console. How do I get out of this?

U-Boot SPL 2012.10-gf288cf1 (Jun 05 2018 - 02:02:20)
BENCH SCREENING TEST1
=========================================
IPROC_XGPLL_CTRL_3: 0x15400000
IPROC_XGPLL_STATUS: 0x800001d6
DCO code: 29
=========================================
HWRev: 0x46 AVS: 0x0
VOUT Init: 0x64 VOUT Set: 0x64
DEV ID = 0xdc14
SKU ID = 0xb340
DDR type: DDR3
MEMC 0 DDR speed = 750MHz
PHY revision version: 0x00044006
ddr_init2: Calling soc_ddr40_set_shmoo_dram_config
ddr_init2: Calling soc_ddr40_phy_calibrate
DDR phy calibration passed
Programming controller register
ddr_init2: MemC initialization complete
Validate Shmoo parameters stored in flash ..... OK
Press Ctrl-C to run Shmoo ..... skipped
Restoring Shmoo parameters from flash ..... done
Running simple memory test ..... OK
DeepSleep wakeup: ddr init bypassed 3
DDR Interface Ready
(ONFI), MT29F32G08ABAAAWP , blocks per lun: 1000 lun count: 1
NAND: 1024 KiB blocks, 8 KiB pages, 16B OOB, 8-bit
NAND: chipsize

U-Boot 2012.10-gf288cf1 (Jun 05 2018 - 02:02:20) - ONIE 4.39.1.0-5 - DELLEMC N3K2K version=v1.0.5

DRAM: 2 GiB
WARNING: Caches not enabled
NAND: (ONFI), MT29F32G08ABAAAWP , blocks per lun: 1000 lun count: 1
NAND: 1024 KiB blocks, 8 KiB pages, 16B OOB, 8-bit
NAND: chipsize 4096 MiB
EEPROM: TlvInfo v1 len=182

soc_pcie_hw_init : port->reg_base = 0x18012000 , its value = 0x1
PCIe port in RC mode

==>PCIE: LINKSTA reg 0xbe val 0x1001

**************
port 0 is not active!!
**************
In: serial
Out: serial
Err: serial
arm_clk=1000MHz, axi_clk=500MHz, apb_clk=125MHz, arm_periph_clk=500MHz
USB0: Initial usb2h clock is: 000003fc
Initial usb2h clock is: 000003fd
iClk = 00000078, USBClk = 01536440

Bring usb2h_out of reset.......
usb2_reset_state is set and now it is: 00000000
EEPROM: TlvInfo v1 len=182
EEPROM: TlvInfo v1 len=182
Net: bcmiproc_eth-0
========== relocate address: 0xdff18000, offset 0xc1f18000 ==========
boot in 3 s
Loading Open Network Install Environment ...
Platform: arm-dellemc_n3k2k_armv7a-r0
Version : 4.39.1.0-5

NAND read: device 0 offset 0x2e00000, size 0x2000000
33554432 bytes read: OK
## Booting kernel from FIT Image at 70000000 ...
Using 'conf@1' configuration
Trying 'kernel@1' kernel subimage
Description: Broadcom iProc Linux
Type: Kernel Image
Compression: uncompressed
Data Start: 0x700000d4
Data Size: 5249400 Bytes = 5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x61008000
Entry Point: 0x61008000
Hash algo: crc32
Hash value: 4465cb78
Verifying Hash Integrity ... crc32+ OK
## Flattened Device Tree from FIT Image at 70000000
Using 'conf@1' configuration
Trying 'fdt@1' FDT blob subimage
Description: Flattened Device Tree blob - bcm956340.dtb
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x70501b40
Data Size: 8151 Bytes = 8 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 59a6fb3f
Verifying Hash Integrity ... crc32+ OK
Booting using the fdt blob at 0x70501b40
Loading Kernel Image ... OK
OK
boot_prep_linux commandline: quiet console=ttyS0,115200n8 maxcpus=2 mem=2032m envaddr=0x1C400000 root=/dev/ram mtdparts=nand_iproc.0:4m(uboot),4m(uboot-env),2m(shmoo),4m(sys_eeprom),32m(diags),32m(onie),-(open) ubi.mtd=open serial_num=TW0998N4DNG0094P5078 envaddr=0x1C400000 boot_reason=update
Loading Device Tree to 64ffb000, end 64ffffd6 ... OK

Starting kernel ...

April 14th, 2022 19:00

OK!!! I figured it out!!

I got the new update file onto the USB.

So, I set the ENV variable for rescue mode, rebooted, and then installed the update...

ONIE:/ # onie-env-set onie_boot_reason rescue
Updating environment variable: `onie_boot_reason=rescue'
Proceed with update [N/y]? y
ONIE:/ # reload

<<< reloading here >>>

ONIE:/ # mkdir /mnt/media
ONIE:/ # mount -t vfat /dev/sda /mnt/media
ONIE:/ # onie-nos-install /mnt/media/onie-installer-arm-dellemc_n3k2k_armv7a-r0_6.6.3.17

ONIE: Executing installer: /mnt/media/onie-installer-arm-dellemc_n3k2k_armv7a-r0_6.6.3.17
/dev/console
Verifying archive integrity... All good.
Uncompressing ONIE installer.......
ONIE: NOS Version : 6.6.3.47
ONIE: Architecture : arm
ONIE: Machine : dellemc_n3k2k_armv7a
ONIE: Machine Rev : 0
ONIE: Config Version: 0

Begin FASTPATH instalubi0: detaching mtd6
lation procedure:


Formatting /dev/mtd6 UBI file system:
ubi0: mtd6 is detached


# Creating 896MB file system at /mnt/fastpath...
ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: attached mtd6 (name "open", size 4018 MiB)
ubi0: PEB size: 1048576 bytes (1024 KiB), LEB size: 1032192 bytes
ubi0: min./max. I/O unit sizes: 8192/8192, sub-page size 8192
ubi0: VID header offset: 8192 (aligned 8192), data offset: 16384
ubi0: good PEBs: 4012, bad PEBs: 6, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 20/10, WL threshold: 4096, image sequence number: 625205572
ubi0: available PEBs: 3934, total reserved PEBs: 78, PEBs reserved for bad PEB handling: 74
ubi0: background thread "ubi_bgt0d" started, PID 1098

# Mounting /mnt/fastpath...
UBIFS (ubi0:0): default file-system created
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1105
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "open"
UBIFS (ubi0:0): LEB size: 1032192 bytes (1008 KiB), min./max. I/O unit sizes: 8192 bytes/8192 bytes
UBIFS (ubi0:0): FS size: 930004992 bytes (886 MiB, 901 LEBs), journal size 33030144 bytes (31 MiB, 32 LEBs)
UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 631B3DD8-E2D1-4580-8F58-7B513F7C5CCC, small LPT model
# Installing N3000Advv6.6.3.47.stk...

# Unmounting /mnt/fastpath...
UBIFS (ubi0:0): un-mount UBI device 0
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops

# Updating U-Boot environment variables...

bootdelay 3
active image1
backup image2
boot_image1 ubifsload $loadaddr /image1;bootm $bootaddr
boot_image2 ubifsload $loadaddr /image2;bootm $bootaddr
i1 image1
i2 image2
fpboot setenv bootargs "console=ttyS0,${baudrate}n8 envaddr=0x1C400000 maxcpus=2 mem=$memsize root=/dev/ram mtdparts=${nandparts} ethaddr=${ethaddr} ubi.mtd=open quiet"
ubifscfg setenv mtdparts mtdparts=${nandparts};ubi part nand0,6 0;ubifsmount open
fastpath run fpboot; if test $active = $i1; then run ubifscfg; run boot_image1;setenv active image2; saveenv; run boot_image2;else; if test $active = $i2; then run ubifscfg; run boot_image2;setenv active image1; saveenv; run boot_image1;fi; fi; run onie_bootcmd;
nos_bootcmd run fastpath
onie_boot_reason

# Fastpath installation complete.


Rebooting...
discover: Rescue mode detected. No discover stopped.
Stopping: dropbear ssh daemon...ONIE: NOS install successful: /mnt/media/onie-installer-arm-dellemc_n3k2k_armv7a-r0_6.6.3.17
ONIE: Rebooting...
done.
ONIE:/ # Stopping: telnetd... done.
Stopping: syslogd... done.
Info: Unmounting kernel filesystems
umount: can't umount /: Invalid argument
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL toreboot: Restarting system

U-Boot SPL 2012.10-gf288cf1 (Jun 05 2018 - 02:02:20)
BENCH SCREENING TEST1
=========================================
IPROC_XGPLL_CTRL_3: 0x15430000
IPROC_XGPLL_STATUS: 0x800001dc
DCO code: 29
=========================================
HWRev: 0x46 AVS: 0x0
VOUT Init: 0x64 VOUT Set: 0x64
DEV ID = 0xdc14
SKU ID = 0xb340
DDR type: DDR3
MEMC 0 DDR speed = 750MHz
PHY revision version: 0x00044006
ddr_init2: Calling soc_ddr40_set_shmoo_dram_config
ddr_init2: Calling soc_ddr40_phy_calibrate
DDR phy calibration passed
Programming controller register
ddr_init2: MemC initialization complete
Validate Shmoo parameters stored in flash ..... OK
Press Ctrl-C to run Shmoo ..... skipped
Restoring Shmoo parameters from flash ..... done
Running simple memory test ..... OK
DeepSleep wakeup: ddr init bypassed 3
DDR Interface Ready
(ONFI), MT29F32G08ABAAAWP , blocks per lun: 1000 lun count: 1
NAND: 1024 KiB blocks, 8 KiB pages, 16B OOB, 8-bit
NAND: chipsize

U-Boot 2012.10-gf288cf1 (Jun 05 2018 - 02:02:20) - ONIE 4.39.1.0-5 - DELLEMC N3K2K version=v1.0.5

DRAM: 2 GiB
WARNING: Caches not enabled
NAND: (ONFI), MT29F32G08ABAAAWP , blocks per lun: 1000 lun count: 1
NAND: 1024 KiB blocks, 8 KiB pages, 16B OOB, 8-bit
NAND: chipsize 4096 MiB
EEPROM: TlvInfo v1 len=182

soc_pcie_hw_init : port->reg_base = 0x18012000 , its value = 0x1
PCIe port in RC mode

==>PCIE: LINKSTA reg 0xbe val 0x1001

**************
port 0 is not active!!
**************
In: serial
Out: serial
Err: serial
arm_clk=1000MHz, axi_clk=500MHz, apb_clk=125MHz, arm_periph_clk=500MHz
USB0: Initial usb2h clock is: 000003fc
Initial usb2h clock is: 000003fd
iClk = 00000078, USBClk = 01536440

Bring usb2h_out of reset.......
usb2_reset_state is set and now it is: 00000000
EEPROM: TlvInfo v1 len=182
EEPROM: TlvInfo v1 len=182
Net: bcmiproc_eth-0
========== relocate address: 0xdff18000, offset 0xc1f18000 ==========
boot in 3 s
Creating 1 MTD partitions on "nand0":
0x000004e00000-0x000100000000 : "mtd=6"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 1048576 bytes (1024 KiB)
UBI: logical eraseblock size: 1032192 bytes
UBI: smallest flash I/O unit: 8192
UBI: VID header offset: 8192 (aligned 8192)
UBI: data offset: 16384
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=6"
UBI: MTD device size: 4018 MiB
UBI: number of good PEBs: 4016
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 3061
UBI: total number of reserved PEBs: 955
UBI: number of PEBs reserved for bad PEB handling: 40
UBI: max/mean erase counter: 20/10
UBIFS: mounted UBI device 0, volume 0, name "open"
UBIFS: mounted read-only
UBIFS: file system size: 930004992 bytes (908208 KiB, 886 MiB, 901 LEBs)
UBIFS: journal size: 33030144 bytes (32256 KiB, 31 MiB, 32 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root: 5182151 bytes (5060 KiB)
Loading file '/image1' to addr 0x70000000 with size 34423774 (0x020d43de)...
Done
## Booting kernel from Legacy Image at 70000074 ...
Image Name: System for iproc_pct
Image Type: ARM Linux Multi-File Image (uncompressed)
Data Size: 34423594 Bytes = 32.8 MiB
Load Address: 61008000
Entry Point: 61008000
Contents:
Image 0: 3738307 Bytes = 3.6 MiB
Image 1: 2014925 Bytes = 1.9 MiB
Image 2: 7821 Bytes = 7.6 KiB
Image 3: 28662514 Bytes = 27.3 MiB
Verifying Checksum ... OK
## Loading init Ramdisk from multi component Legacy Image at 70000074 ...
## Flattened Device Tree from multi component Image at 70000074
Booting using the fdt at 0x7057ca5c
Image is not a fdt
Continuing to boot without FDT
Loading Multi-File Image ... OK
OK
boot_prep_linux commandline: console=ttyS0,115200n8 envaddr=0x1C400000 maxcpus=2 mem=2032m root=/dev/ram mtdparts=nand_iproc.0:4m(uboot),4m(uboot-env),2m(shmoo),4m(sys_eeprom),32m(diags),32m(onie),-(open) ethaddr=88:6F:D4:A9:00:AA ubi.mtd=open quiet

Starting kernel ...


recovery_signal_init:vaddr=0xF0BE3000 mapped address=0x18000000
recovery_signal_init:setting GPIO-1 to output
recovery_signal_init:writing GPIO-1 high

recovery_signal_init:vaddr=0xF0BE3000 mapped address=0x18000000
recovery_signal_init:setting GPIO-1 to output
recovery_signal_init:writing GPIO-1 high
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
starting pid 1163, tty '': '/etc/init.d/rcS'
starting pid 1301, tty '/dev/ttyS0': '/etc/rc.d/rc.fastpath'
Enhanced hardware detected
Mounting /dev/mtdblock6 at /mnt/fastpath...done.
Mounting tmpfs at /mnt/application...done.


Dell EMC Networking Boot Options
================================

Select a menu option within 3 seconds or the Operational Code will start automatically...

1 - Start Operational Code
2 - Display Boot Menu

Select (1, 2)#


Extracting Operational Code from .stk file...done.
Loading Operational Code...done.
Loading modules...
Decompressing Operational Code...done.
Uncompressing apps.lzma
Uncompressing python.lzma
Installing Python
DMA pool size: 16777216
AXI unit 0: Dev 0xb340, Rev 0x01, Chip BCM56340_A0, Driver BCM56340_A0
SOC unit 0 attached to PCI device BCM56340_A0
Using a clock divider of 25 for mac_cclk
hpcBroadStackInit:hpc - stack ports found. Starting in stacking mode.


<186> Apr 15 02:30:50 0.0.0.0-1 General[fp_main_task]: bootos.c(194) 12 %% CRIT Event(0xaaaaaaaa)
started!

<185> Apr 15 02:30:50 0.0.0.0-1 SIM[Cnfgr_Thread_]: sim_util.c(4146) 14 %% ALRT Switch was reset due to power disruption or unexpected restart.(error[0x0]).

(Unit 1 - Waiting to select management unit)>
(Unit 1 - Waiting to select management unit)>?

bcmsh Enter into BCM Shell. Only the admininstrative user
can run this command.
connect Connect console session to another stack unit.
devshell Execute devshell command. Only the admininstrative
user can run this command.
drivshell Execute devshell command. Only the admininstrative
user can run this command.
exit Connect console session to another stack unit.

(Unit 1 - Waiting to select management unit)>
_____________________________SupportAssist EULA_____________________________
I accept the terms of the license agreement. You can reject the license
agreement by configuring this command 'eula-consent support-assist reject'.

By installing SupportAssist, you allow Dell to save your contact information
(e.g. name, phone number and/or email address) which would be used to provide
technical support for your Dell products and services. Dell may use the information
for providing recommendations to improve your IT infrastructure.
SupportAssist also collects and stores machine diagnostic information, which
may include but is not limited to configuration information, user supplied contact
information, names of data volumes, IP addresses, access control lists, diagnostics &
performance information, network configuration information, host/server configuration
& performance information and related data (Collected Data) and transmits this
information to Dell. By downloading SupportAssist and agreeing to be bound by these
terms and the Dell end user license agreement, available at: http://www.dell.com/aeula,
you agree to allow Dell to provide remote monitoring services of your IT environment
and you give Dell the right to collect the Collected Data in accordance with Dell's
Privacy Policy, available at: http://www.dell.com/privacypolicycountryspecific, in order to
enable the performance of all of the various functions of SupportAssist during your
entitlement to receive related repair services from Dell. You further agree to
allow Dell to transmit and store the Collected Data from SupportAssist in accordance
with these terms. You agree that the provision of SupportAssist may involve
international transfers of data from you to Dell and/or to Dell's affiliates,
subcontractors or business partners. When making such transfers, Dell shall ensure
appropriate protection is in place to safeguard the Collected Data being transferred
in connection with SupportAssist. If you are downloading SupportAssist on behalf
of a company or other legal entity, you are further certifying to Dell that you
have appropriate authority to provide this consent on behalf of that entity. If you
do not consent to the collection, transmission and/or use of the Collected Data,
you may not download, install or otherwise use SupportAssist.

____________________________AeroHive HiveManager NG EULA_____________________________
This switch includes a feature that enables it to work with HiveManager
(an optional management suite), by sending the switch's service
tag number and IP Address to HiveManager to authenticate your entitlement to use HiveManager.
If you wish to disable this feature, you should run command 'eula-consent hiveagent reject'
immediately upon powering up the switch for the first time, or at any time thereafter.

Applying Global configuration, please wait ...


Welcome to Dell EMC Easy Setup Wizard

The setup wizard guides you through the initial switch configuration, and
gets you up and running as quickly as possible. You can skip the setup
wizard, and enter CLI mode to manually configure the switch. You must
respond to the next question to run the setup wizard within 60 seconds,
otherwise the system will continue with normal operation using the default
system configuration. Note: You can exit the setup wizard at any point
by entering [ctrl+z].

Would you like to run the setup wizard (you must answer this question within
60 seconds)? (y/n) y

No Events found!

Top