Re: uClinux Source Code Patch (Once Again) for Dual PC Modem

john <john-k2rtHP/[email protected]>
Newsgroups gmane.linux.uclinux.actiontec
Message-ID <1083628426.27765.2.camel@lisa>
Works great, thanks Bruce!  

For debian users all you need to do is install the rpms using alien and
follow the same instructions. -John


On Mon, 2004-05-03 at 17:00, Bruce D. Lightner wrote:
> Dear Actiontec Dual PC Modem Hackers:
> 
> Oops!  The GPL source code update that I posted a few weeks ago
> had the wrong ".config" file.  Mia-copa! Mia copa!
> 
> I've included the correct Linux configuration file under the name
> "config.works".  I found that if one built a uClinux kernel with
> the v1.2 ".config" file, the kernel would panic as follows:
> 
>     Kernel panic: VFS: Unable to mount root fs on 1f:00
> 
> I found that I did not need to re-load the bootstrap using USB
> after this kernel panic.
> 
> Clearly, I somehow wiped out the ".config" file with an ancient
> one *before* I made the last uClinux source patch distribution
> (i.e., v1.2).  [Someone should fire me!]
> 
> The following *new* v1.3 ZIP archive:
> 
>    http://www.lightner.net/ActionHack/DualPcModemGplPatch_1.3.zip
> 
> ...contains a compressed TAR archive with the following files...
> 
>     linux/README_Actiontec.txt
>     linux/.config
>     linux/Makefile
>     linux/arch/armnommu/mach-cx821xx/cnxtbsp.c
>     linux/arch/armnommu/mach-cx821xx/cnxtflash.c
>     linux/arch/armnommu/mach-cx821xx/cnxtflash.h
>     linux/arch/armnommu/mach-cx821xx/cnxtirq.c
>     linux/arch/armnommu/mach-cx821xx/gpioisr.c
>     linux/arch/armnommu/mach-cx861xx/gpio.c
>     linux/arch/armnommu/kernel/armksyms.c
>     linux/config.works
>     linux/include/linux/cnxtflash.h
>     linux/include/asm-armnommu/arch-cx821xx/gpio.h
>     linux/drivers/mtd/devices/mtdram.c
> 
> ...which should end up overwriting files rooted at
> "/opt/uClinux/linux/".
> 
> The text file "linux/README_Actiontec.txt" contains updated
> instructions.  The uClinux "config" file is "linux/config.works"
> which should be used to overwrite "linux/.config".  I have used
> these files with "make oldconfig" to build a stable Actiontec
> Dual PC Modem uClinux kernel which runs correctly with Actiontec's
> "stock" ROM file system...trust me!  Here's the console log from
> loading the new kernel.
> 
>     http://lightner.net/ActionHack/DualPcModemBoot_1.3.txt
> 
> I connected to my ISP using PPP dial-up right after this.  Really!!
> 
> As before, the "Makefile" includes -DACTION_TEC as a global define
> (read "kludge"):
> 
>    CPPFLAGS := -D__KERNEL__ -I$(HPATH) -DACTION_TEC
> 
> The other files are all GPL, and include the needed logic to work
> with hardware that Actiontec *actually ships*.
> 
> I've once again updated the Wiki HOWTO page...
> 
> http://www.embeddedlinuxinterfacing.com/wiki.php/ActiontecGplReleaseHowto
> 
> ...to include the following instructions:
> 
> INSTALLING THE LATEST ACTIONTEC GPL SOURCE RELEASE
> --------------------------------------------------
> 
>   # su
>   # wget -nd \
>     ftp://128.121.226.214/pub/dualpcmodem/actiontec_release_031017.tar.gz
>   # tar -zxvf actiontec_release_031017.tar.gz
>   # usermod -G uClinux lightner
>   # newgrp uClinux
>   # cd Actiontec_Release/Actiontec_DPC_Base/
>   # make
> 
> APPLYING PATCH TO /opt/uClinux/linux/
> -------------------------------------
> 
>   # cd /opt/uCLinux
>   # wget -nd http://www.lightner.net/ActionHack/DualPcModemGplPatch_1.3.zip
>   # unzip DualPcModemGplPatch_1.3.zip
>   # tar -zxf DualPcModemGplPatch_1.3.tar.gz
> 
> REBUILDING THE ACTIONTEC UCLINUX KERNEL
> ---------------------------------------
> 
>   % cd /opt/uClinux/linux/
>   % newgrp uClinux
>   % make clean
>   % rm -f linux.bin linuz
>   % cp config.works .config
>   % make oldconfig
>   % make dep
>   % make linux.bin
>   % gzip -c linux.bin > linuz
>   % cp linuz /tftpboot/
> 
> Note the "extra" command to overwrite ".config" with "config.works"
> before the "make oldconfig".
> 
> Per John's request, I've posted a ZIP file with my copies of the modified 
> kernel and modified ROM file system:
> 
>    http://www.lightner.net/ActionHack/DualPcModemTftp_1.3.zip
> 
> Hopefully this should work a bit better.
> 
> Best regards,
> 
> Bruce
> 
> -- 
>   Bruce D. Lightner
>   Lightner Engineering
>   La Jolla, California
>   Voice: +1-858-551-4011
>   FAX: +1-858-551-0777
>   Email: lightner-2huV/[email protected]
>   URL: http://www.lightner.net/lightner/bruce/
> 
> __
> ActionHack Mailing List - ActionHack-W7/[email protected]
> http://www.express.org/mailman/listinfo/actionhack
> http://www.embeddedlinuxinterfacing.com/wiki.php/ActiontecDualModem
> 
> 

__
ActionHack Mailing List - ActionHack-W7/[email protected]
http://www.express.org/mailman/listinfo/actionhack
http://www.embeddedlinuxinterfacing.com/wiki.php/ActiontecDualModem
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.