120 likes | 257 Views
WEEK 5. Comet.jc. Review. Make Second Kernel To Use USB-serial port Next ?. Make Second Kernel GPL, using newer kernel. tar -C /opt -zxvf GPL_1927.zip rm -rf /opt /broadcom/src/linux/linux tar -C / opt /broadcom/src/linux -jxvf linux- 2.4.37 .tar.bz2
E N D
WEEK 5 Comet.jc
Review • Make Second Kernel • To Use USB-serial port • Next ?
Make Second KernelGPL, using newer kernel • tar -C /opt -zxvf GPL_1927.zip • rm -rf/opt/broadcom/src/linux/linux • tar -C /opt/broadcom/src/linux -jxvf linux-2.4.37.tar.bz2 • ln -sf /opt/broadcom/src/linux/linux-2.4.37 /opt/broadcom/src/linux/linux
Using newer Tool Chain • tar -C /opt/brcm -jxvf hndtools-mipsel-uclibc-4.1.2.tar.bz2 • ln -sf /opt/brcm/hndtools-mipsel-uclibc-4.1.2 /opt/brcm/hndtools-mipsel-uclibc • Remove Old toolchain (option) • rm -rf /opt/broadcom/opt
PATH Setting • Add Toolchain path once for ever • into ~/.profile or ~/.bashrc export PATH=/opt/brcm/hndtools-mipsel-uclibc/bin:$PATH export PATH=/opt/brcm/hndtools-mipsel-linux/bin:$PATH export PATH=/opt/broadcom/tools:$PATH
Oleg - Firmware Patch • Tar -C /opt/broadcom/src -xvf wl500g-1.9.2.7-7g.tgz • cd /opt/broadcom/src/wl500g-1.9.2.7-7g • make kernel && make
Gateway => TRX • cd /opt/broadcom/src/gateway • make && make install • /opt/broadcom/src/gateway/mipsel-uclibc/WL500gp-1.9.2.7-7g.trx
Make Kernel Several Times • modify /opt/broadcom/src/wl500g-1.9.2.7-7g/kernel.config • cd /opt/broadcom/src/wl500g-1.9.2.7-7g • make kernel && make • modify/opt/broadcom/src/linux/linux/Makefile • cd /opt/broadcom/src/gateway • make && make install
2. To Use USB-serial port • tested with ATEN UC-232A (pl2303.o module) • insmod usbserial.o • insmod pl2303.o • mknod /dev/ttyUSB0 c 188 0 • chmod 666 /dev/ttyUSB0 ATEN UC-232A
Ubuntu 下的超級終端機 GtkTerm • Configuration : Port : /dev/tty/USBx
3. Next: Using Newer Patch ? • 1.9.2.7-7g (2007-04-06) to 1.9.2.7-10 (2008-03-30) • Changes : • Multicast/IPTV: no longer need routes to be specified • Added new flashfs option: try 'flashfs enabled' to enable flashfs loading forever • ……
Next: Kernel Config • /opt/broadcom/src/linux/linux/.config • /opt/broadcom/src/linux/linux/arch/mips/defconfig-bcm947xx • /opt/broadcom/src/linux/linux/Makefile