Giter Club home page Giter Club logo

learn-kernel's Introduction

Comment linux kernel code

learn linux kernel with qemu simulator 编译kernel,制作rootfs,配置qemu参数,主要用来使用gdb学习、分析调试linux kernel、uboot

how to use

sudo apt-get install gdb-arm-none-eabi gcc-arm-linux-gnueabi
./scripts/download.sh
make all

qemu options you can speicify:

  • -S hold in the first instruction
  • -s gdb server with port 1234

how to debug with gdb

waiting for composing

about making rootfs

  • how many ways to identify a rootfs ?

how to use tap netdevice in qemu

first, sudo apt install uml-utilities bridge-utils

install tap netdevice

sudo ./setup-net.sh for example: sudo ./setup-net.sh eth0 $(whoami)

remove tap netdevice

sudo ./rm-net.sh

Tips

  • only support assign ip via DHCP
  • The IP assignment maybe fail, commonly because DHCP, then you will lose the connection to the host when you login via ssh/telnet

Questions

  • 什么情况下会使用到skb链表?处理分片时?
  • skb->truesize 有啥用
  • _____alloc_skb 中,skbuff_head_cache skbuff_fclone_cache 的区别,为fast clone专门设计了一个memory ?
  • skb 是什么的缩写 ? socket buffer
  • what does skb->data_len represent ?

learn-kernel's People

Contributors

redstar9451 avatar

Watchers

huangzhaorong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.