MyNetgear

From
Jump to: navigation, search

Hardware

  • eth0 MAC address 00:0F:B5:3D:5D:FC
  • eth1 MAC address 00:0F:B5:3D:5D:FD

Defaults (as delivered)

CFE> printenv
Variable Name        Value
-------------------- --------------------------------------------------
BOOT_CONSOLE         uart1
boardtype            bcm95365r
et0mdcport           0
et0phyaddr           254
configvlan           0x1
et0macaddr           00-0f-b5-3d-5d-fc
et1macaddr           00-0f-b5-3d-5d-fd
STARTUP              ifconfig eth0 -auto; boot -elf flash0.os:
kernel_args          kernel_args console=ttyS1,115200 root=/dev/ram0 init=linuxrc rw syst_size=8M
CFE_VERSION          1.0.34
CFE_BOARDNAME        BCM95365R
CFE_MEMORYSIZE       32
*** command status = 0

To boot from tftp set STARTUP to:

ifconfig eth0 -auto;boot -elf -tftp 192.168.0.1:vmlinux;

Flash Layout

CFE> show devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0x18000300
uart1                NS16550 UART at 0x18000400
flash0.boot          New CFI flash at 1C000000 offset 00000000 size 384KB
flash0.config        New CFI flash at 1C000000 offset 00060000 size 128KB
flash0.os            New CFI flash at 1C000000 offset 00080000 size 7672KB
flash0.nvram         New CFI flash at 1C000000 offset 007FE000 size 8KB
eth0                 BCM4710 Ethernet unit 0 (00-0F-B5-3D-5D-FC)
*** command status = 0

CFE

To restore the netgear image run in CFE:

  • ifconfig -auto eth0
  • flash -noheader 192.168.0.5:netgear.img.1 flash0.os
  • flash -noheader 192.168.0.5:netgear.img.2 -offset=3932160 flash0.os

"The CFE flash routine will only download and flash a maximum of 4194304 bytes (4MB) at a time. To get around the 4MB limit, we need to split the image into smaller chunks and then use the -offset flag to flash the two parts." [1]

Passwords

  • root with password "password" for netgear's firmware

Kernel

Root filesystem