Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for dealing with kernel panic of home gateway system

A system kernel, home gateway technology, applied in the direction of network connection, response error generation, etc., can solve problems such as inability to accurately locate the problem, difficult operation, lack of oops information, etc., to facilitate the kernel crash problem, reduce manufacturing costs, reduce The effect of maintenance costs

Active Publication Date: 2015-09-09
FENGHUO COMM SCI & TECH CO LTD
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the serial port is not connected in time before the kernel crashes or the serial port is faulty, because the system has crashed and cannot perform any effective input and output, the system cannot effectively output oops information at all, and developers (or users) cannot proceed without oops information. The capture of kernel crash information makes it impossible to accurately locate the problem
[0006] (2) In this processing method, the oops information can only be output to the console or the screen once, and cannot be viewed again after the power is turned off. The developer (or user) can only record it by handwriting or taking pictures. It is more difficult; at the same time, because the screen can only display one page of Oops information (because the information displayed cannot be adjusted through input and output), when there is too much Oops information, the complete content cannot be displayed at all, and the lack of complete oops information is also a problem. Cannot proceed further

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for dealing with kernel panic of home gateway system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0037] The implementation environment of this embodiment is a home gateway device based on a Linux operating system, the kernel version is Linux2.6.18, and the CPU is a MIPS architecture.

[0038] see figure 1 As shown, the embodiment of the present invention provides a method for processing the kernel crash of the home gateway system, including the following steps:

[0039] S1: Initialize a spin lock for prohibiting local interrupts and kernel preemption, so that the kernel crash information to be acquired is accurate and reliable, and then go to step S2.

[0040] S2: Find and record all stack register pointer variables corresponding to the current system in the abnormal CPU registers after the system kernel crashes, and go to step S3.

[0041] Step S2 specifically includes the following steps: record the register pointer variable in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a system for dealing with kernel panic of a home gateway system, and relates to the technical field of Linux kernel exception handling. The method includes following steps: checking and recording register pointer variables of all stacks corresponding to the current system in a CPU register which is abnormal after the system kernel panic; reading kernel panic information in each register pointer variable and saving the information to a global cache area; writing all the kernel panic information of the global cache area into a designated file of a Flash memory; and printing abnormity prompt information to a system terminal according to the kernel panic state of the system, and performing debugging according to the abnormity prompt information and the kernel panic information in the Flash memory by users. According to the method and the system, the kernel panic information is completely captured without depending on serial ports, the handling process is highly-efficient and convenient, and the reusability is high.

Description

technical field [0001] The invention relates to the technical field of Linux kernel exception processing, in particular to a method and system for processing a kernel crash of a home gateway system. Background technique [0002] The Linux system is a multi-user, multi-task, multi-thread and multi-CPU operating system based on POSIX (Portable Operating System Interface of Unix) and Unix. Today, there are already many hardware devices installed with a full version or a cut-down version of the Linux system, such as home gateways, mobile phones, tablets, computers, large servers, etc. [0003] As a user-side terminal product of triple play integration, Linux-based home gateway is widely used and demanded more and more. When developers are developing drivers or users are applying products, they often encounter some kernel panics (Kernel Panic). The so-called kernel panic refers to the action taken by the operating system when it detects an internal fatal error and cannot safely...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07H04L12/66
Inventor 赵伟周转运王志军
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products