week 3 make first kernel

Post on 23-Jan-2016

50 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

WEEK 3 MAKE FIRST KERNEL. raykhor. Review. GPL Oleg Patch Tools chain Source directory. 1. GPL. Unzip to /opt tar -xf /data/GPL/ GPL_1927.zip -C /opt /opt/broadcom. Source Code. /opt/broadcom/src Source code /opt/broadcom/src /linux/linux/ Kernel sourse code - PowerPoint PPT Presentation

TRANSCRIPT

WEEK 3MAKE FIRST KERNEL

raykhor

Review

GPL Oleg Patch Tools chain Source directory

1. GPL

Unzip to /opt

tar -xf /data/GPL/GPL_1927.zip -C /opt

/opt/broadcom

Source Code

/opt/broadcom/src Source code

/opt/broadcom/src/linux/linux/ Kernel sourse code

/opt/broadcom/src/router/ Router source code

2 .Tools chain

Unzip hndtools-mipsel-uclibc-3.2.3-full Move to

/opt/brcm//opt/brcm/hndtools-mipsel-uclibc-3.2.3-full

Unlink old link, re-link.=============================

=== rm -rf /opt/brcm/hndtools-mipsel-uclibc mv /data/toolschain/opt/brcm/hndtools-mipsel-uclibc-3.2.3-full

/opt/bcrm/ ln -s hndtools-mipsel-uclibc-3.2.3-full hndtools-mipsel-uclibc

Environment Varible

export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:

/opt/brcm/hndtools-mipsel-linux/bin:$PATH

export PATH=/opt/broadcom/tools:$PATH

* 如果登出後,再登入時必須重設!

3.Oleg

Unzip wl500g-1.9.2.7-7g

/opt/broadcom/src/wl500g-1.9.2.7-7g===========================

=====

mv wl500g-1.9.2.7-7g /opt/broadcom/src/ cd /opt/broadcom/src/wl500g-1.9.2.7-7g make kernel; make

Source Code

/opt/broadcom/src Source code

/opt/broadcom/src/linux/linux/ Kernel sourse code

/opt/broadcom/src/router/ Router source code

/opt/broadcom/src/etSources for the 10/100 Ethernet driver.

Gateway

以上make kernel, make 之後才會生成Gateway /opt/broadcom/src/gateway

cd /opt/broadcom/src/gateway make ; make install

TRX

Gateway make; make install 完後 /opt/broadcom/src/gateway/mipsel-uclibc

Install #System Utilities Target # 在 Router上的檔案 target.cramfs vmlinuz WL500gp-1.9.2.7-7g.trx #Target的壓縮檔

Demo

/opt/broadcom/src/linux/linux/init/version.c

Problem??

Kernel要從哪里下手? OS Network Driver Router Network Driver

改 kernel的目的 截取封包?

top related