NET+OS Bootloader Overview Requirements How to Build How to Customize Changes to Applications Configuration Settings.

Slides:



Advertisements
Similar presentations
Managing Cisco IOS Software. Overview The router boot sequence Locating IOS software The configuration register Recovering Passwords Backing Up the Cisco.
Advertisements

Cisco S2 C7 Router Operation System IOS. Routers Boot From Flash memory TFTP server ROM (not full Cisco IOS software) –Default depends on platform –Order.
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
CCNA2 MODULE 5.
Boot Mode. Agenda 1.What can I do if I forget my password? 2.What to do if My Gateway can’t enter into [usr/config] mode?
Managing Your Network Environment © 2004 Cisco Systems, Inc. All rights reserved. Managing Cisco IOS Devices INTRO v2.0—9-1.
Chabot College ELEC IOS Images.
CCNA 2 v3.1 Module 5.
Institute of Technology Sligo - Dept of Computing Cisco IOS & Router Config Semester 2V2 Chapter 7 Chapter 8.
CCNA 2 v3.1 Module 2.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has:  CPU  Memory  System Bus Connecting Internal.
Chapter 9 Managing a Cisco Internetwork Cisco Router Components Bootstrap - Brings up the router during initialization POST - Checks basic functionality;
File Transfer Protocol CS-328 Dick Steflik. FTP RFC 959 uses two TCP Ports –one for control –one for data transfers command-response protocol control.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
1 © 2002, Cisco Systems, Inc. All rights reserved. Router boot procedure.
Cisco 2 - Routers Perrine & modified by Brierley Page 18/18/2015 Chapter 5 IOS Internet Operating System (IOS)
© 2004 Cisco Systems, Inc. All rights reserved. Managing Your Network Environment Managing Router Startup and Configuration INTRO v2.0—9-1.
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
Cisco IOS & Router Config Semester 2V2 Chapter 6.
The GreenHills Tool Chain
Tutorial 11 Installing, Updating, and Configuring Software
Starting the switch Configuring the Switch
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
NET+OS 6 BSP How and why it was restructured Changes to memory map New features How to port to custom hardware.
NET+OS 6.1 Training. Introduction What is Net+Os? In Circuit Emulator (Raven) Ethernet Dev.-Driver GPIO PHY Ser. DD. OS (ThreadX) IP, ICMP, IGMP, PPP,
CCNA 3 Week 6 Switch Configuration. Copyright © 2005 University of Bolton Physical Details Available in variety of sizes –12 port, 16 port, up to 48 port.
NETOS5.1 Training NS7520 Overview NETOS5.1 Overview BSP Changes BSP & Board Configurations Build File Changes for GHS Makefile Changes for GNU Linker Files.
Sublayers Under the Network Layer: BOOTP & DHCP
1. Upgrading via the Network Booting Preparing Materials -PC server with a wired LAN port -Upgrade file for the network booting(bin type) Upgrade Procedure.
Page 110/19/2015 Chapter 5 CCNA2 Chapter 5 Managing Cisco IOS Software.
Ch.2 – Introduction to Routers
1 Version 3.0 Module 6 Switch Configuration. 2 Version 3.0 Switches Contain: –CPU –RAM –Operating System.
CCNA2 v3 Module 5 v3 CCNA 2 Module 5 JEOPARDY K. Martin.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Implementing Bootloaders on Renesas MCUs.
Sources of Cisco IOS Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Chapter 17 BOOTP and DHCP.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Dynamic Host Configuration Protocol (DHCP)
Introduction to Routers
AP-2000 Problem solving - Force Reload Entering Force Reload mode Force Reload is an emergency procedure to re-load the AP-2000 with new image file, when.
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
IOS Internetwork Operating System. IOS modes and ROM monitor Router>EXEC mode Router#Priviledge mode Router(config)#Global config m Router(config-if)#Interface.
Chapter 7 & 8 IOS Images and Router Configuration
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
1 Version 3.1 Module 5 Managing Cisco IOS Software.
IOS Boot Procedure Can be set in Global Config –Router(config)#boot system flash If not in NVRAM as to where to get IOS, default is Flash If not in Flash,
Cisco 2 - Routers Perrine. J Page 16/26/2016 Chapter 2 Cisco IOS Software Cisco’s operating system is called Cisco Internetwork Operating System (IOS)
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 2 Introduction to Routers.
1 Kyung Hee University Chapter 16 Host Configuration : BOOTP and DHCP.
Bootloaders Many embedded processors have flash memory. This allows us to alter a product even though it is in the users hands: -fix bugs -upgrade or enhance.
Managing a Cisco Devices Internetwork
BY: SALMAN 1.
Bootloaders Many embedded processors have flash memory. This allows us to alter a product even though it is in the users hands: -fix bugs -upgrade or.
© 2002, Cisco Systems, Inc. All rights reserved.
BY: SALMAN.
CCNA Routing and Switching Routing and Switching Essentials v6.0
Cisco S2 C5 Router Startup.
CHAPTER 7.
Chapter 5: Switch Configuration
Chapter 10: Device Discovery, Management, and Maintenance
CCNA Routing and Switching Routing and Switching Essentials v6.0
Chapter 5: Switch Configuration
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Chapter 10: Device Discovery, Management, and Maintenance
Cisco IOS & Router Config
Chapter 16 Host Configuration : BOOTP and DHCP
Configuration Of A Pull Network.
Lecture9: Embedded Network Operating System: cisco IOS
Managing Cisco IOS Software
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

NET+OS Bootloader Overview Requirements How to Build How to Customize Changes to Applications Configuration Settings

Features Recovers when flash update fails Application image is compressed Uses DHCP or BOOTP to get an IP address Uses TFTP to download new firmware

Normal Operation Bootloader always runs at Power Up Uses standard BSP initialization code Performs 32-bit CRC checksum of application image Decompresses Application from flash to RAM Starts Application

Recovery Mode Triggered if Application Image fails CRC checksum Uses DHCP/BOOTP to get an IP address Uses TFTP to download a new application Image Writes application image to flash Resets the unit

Structure of Flash ROM Bootloader stored in first 64K of flash Last sector of flash may be used for NVRAM storage Rest of flash is used to hold application image Customers can create more sections

Requirements DHCP or BOOTP Server TFTP Server TFTP must be on the same machine as the DHCP/BOOTP server

DHCP/BOOTP Server Setup Must supply boot filename, which is used as the name of the firmware image to download Bootloader will reject offers that don’t have a boot filename Must also supply an IP address Should supply a gateway and subnet mask

Lock Bootloader Sectors Booloader image must be written into start of flash at the factory Sectors that contain the bootloader must be locked at the factory to prevent accidental erasure Lock method depends on flash part

How to Build for Green Hills Configure the BSP Build the BSP Build the RAM image of the bootloader Build the ROM image of the bootloader Bootloader is in netos\src\bootloader

How to Build for MicroCross Configure the BSP Build the BSP Build “make all” in the bootloader directory

How to Customize Customization hooks in customize.c Customize.c contains a default implementation of the bootloader Custom features are added by modifying functions in customize.c These functions were written to be easy to customize

Example static char *getDefaultFilename(void) { static char *defaultFilename = ""; return defaultFilename; }

How to Change default Filename Default filename is sent to DHCP/BOOTP server as a hint about what file the unit wants to download Standard implementation is to send an empty string Change getDefaultFilename() to supply a default boot filename

Change Error Reporting Default implementation blinks LEDs in a pattern to indicate error condition Edit reportError() to change this

Determine when to Update Image Default implementation is to update the image if it fails a 32-bit CRC checksum test Might want to look at buttons or switches too Change shouldDownloadImage()

Determine if Image is Valid Need to determine if image downloaded from TFTP server is valid Default implementation performs a 32-bit CRC checksum of it Might need to prevent users from upgrading cheap units with firmware from expensive ones Edit isImageValid()

Might not want to use DHCP Default implementation uses DHCP/BOOTP to get an IP address and name of TFTP image to download Might want to get this information in a different way Can change downloadImage() to do this

Exchanging Additional Information May want to send additional information to the DHCP server, or have it send additional information to the unit Can customize downloadImage() to send Vendor Class ID (60) to DHCP server DHCP server can send Vendor Info (43) to unit

Changes to NAFTPAPP NAFTPAPP looks at filename to determine where to write image into flash Image.bin is written into application image space in flash Rom.bin is written to start of flash

Changes to Applications Debug, romzip, and ramzip images are gone The “Image” image replaces all of them Creates debug version that corresponds to the image the bootloader will execute Also creates compressed version that can be written to flash and executed by the bootloader

Structure of Application Image Image that is written to flash has a header Header is created by boothdr.exe Image is usually compressed Generated automatically when “image” is generated

Boothdr.exe Used to generate image that is written to flash Adds header and 32-bit CRC checksum Compresses application image boothdr [ ]

Boothdr Config File Used to set values in bootloader header Default version stored in linkerScripts\bootldr.dat Customers can override this by editing build or make files to use a different one

Default Boothdr Config File WriteToFlash Yes Compressed Yes ExecuteFromRom No flashOffset 0x10000 ramAddress 0x MaxFileSize 0xD0000

Customized Headers Customers can append their own headers onto the bootloader header Useful for identifying the H/W requirements of the firmware Custom header is appended by adding the name of a header file onto the command line used by boothdr.

New BSPCONF.H Settings BSP_BOOTLOADER_SIZE determines the size of the bootloader image in flash BSP_APPLICATION_OFFSET determines where the application image starts in flash BSP_APPLICATION_IMAGE_SIZE determines the maximum size of the application image in flash