1 / 12

WEEK 3 MAKE FIRST KERNEL

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

waldo
Download Presentation

WEEK 3 MAKE FIRST KERNEL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WEEK 3MAKE FIRST KERNEL raykhor

  2. Review • GPL • Oleg Patch • Tools chain • Source directory

  3. 1. GPL • Unzip to • /opt • tar -xf /data/GPL/GPL_1927.zip -C /opt • /opt/broadcom

  4. Source Code • /opt/broadcom/src • Source code • /opt/broadcom/src/linux/linux/ • Kernel sourse code • /opt/broadcom/src/router/ • Router source code

  5. 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

  6. Environment Varible • export PATH= /opt/brcm/hndtools-mipsel-uclibc/bin: /opt/brcm/hndtools-mipsel-linux/bin:$PATH • export PATH=/opt/broadcom/tools:$PATH • *如果登出後,再登入時必須重設!

  7. 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

  8. 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/et Sources for the 10/100 Ethernet driver.

  9. Gateway • 以上make kernel, make 之後才會生成Gateway • /opt/broadcom/src/gateway • cd /opt/broadcom/src/gateway • make ; make install

  10. 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的壓縮檔

  11. Demo • /opt/broadcom/src/linux/linux/init/version.c

  12. Problem?? • Kernel要從哪里下手? • OS Network Driver • Router Network Driver • 改kernel的目的 • 截取封包?

More Related