OpenWrt Forum Archive

Topic: Porting OpenWRT to the Routerboard 100

The content of this topic has been archived between 31 Mar 2018 and 2 May 2018. Unfortunately there are posts – most likely complete pages – missing.

abates wrote:

Looks like latest release from svn boots okay from dhcp.  It appears to be able to mount (or at least detect) the nand but I can't seem to get past the kernel boot, last message is "Warning: unable to open an initial console."  I'm thinking that the image built from build_root doesn't have a root file system and there is a kernel panic when the kernel can't mount a root fs.  Anyone have any thoughts?

Look at the wiki page: http://wiki.openwrt.org/OpenWrtDocs/Har … otik/RB100 in section 4.

You need to build a separate kernel for the network boot that uses a ramdisk to give you the tools you need to load OpenWRT.

The script to load the tar.gz image and kernel has a couple bugs.  It doesn't erase the existing files from the flash and has the kernel file name wrong.  Both an easy manual fix.

Edit:  I've added submitted a patch to fix the bugs: https://dev.openwrt.org/ticket/2584

(Last edited by lschweiss on 23 Oct 2007, 17:37)

lschweiss wrote:

Look at the wiki page: http://wiki.openwrt.org/OpenWrtDocs/Har … otik/RB100 in section 4.

You need to build a separate kernel for the network boot that uses a ramdisk to give you the tools you need to load OpenWRT.

The script to load the tar.gz image and kernel has a couple bugs.  It doesn't erase the existing files from the flash and has the kernel file name wrong.  Both an easy manual fix.

I built the target image as a ramdisk, so I don't think that is what the problem is.  Previous versions from svn get me all the way to a shell prompt but no ability to mount the nand.  This time, the kernel appears able to see the nand, but I don't get a shell prompt.  I did another svn update this morning and now I get a little further but there is a kernel panic shortly after starting the busybox init.  I can't post the message, it's at home and I'm at work smile

I'll post the dmesg when I get home this afternoon.

Andrew

abates wrote:

I'll post the dmesg when I get home this afternoon.
Andrew

Here is the last bit of dmesg from the latest build (ramdisk netboot, rev 9421):

Freeing unused kernel memory: 2244k freed
init started: BusyBox v1.7.2 (2007-10-22 19:01:47 MDT)
Can't open /dev/tty1: No such device or address
Can't open /dev/tty1: No such device or address
: Segmentation fault

Can't open /dev/tty1: No such device or address
: /etc/rc.common: eval: line 1: /sbin/hotplug2: not found

: Segmentation fault

: Segmentation fault

Can't open /dev/tty1: No such device or address
Can't open /dev/tty1: No such device or address

The last message repeats continuously and I'm not able to get to a shell prompt.

The problem your seeing looks like what I saw when the original firmware is not erased.    Have a look at the patch I made.  The mtd erase command is not wiping the partition as anticipated in the original script.  You must have an empty partition before the tar.gz image is extracted for OpenWRT to boot properly.

If you use your ramdisk boot you can manually mount the partition and see all the junk left around from the factory firmware.   Just 'rm -rf' it all and re-run wget2nand.

(Last edited by lschweiss on 24 Oct 2007, 20:29)

Okay, I've had some success.  I've been able to successfully boot openwrt on my routerboard 150, mount the nand, copy a kernel/rootfs to mtdblock0 and mtdblock1, and then boot from nand.  However, this success was not without its problems.  Here are some of the problems I've encountered so far:

1) By default, there is no way to log into the system from console, I had to build the getty package and add this line to the inittab:
     console::sysinit:/sbin/getty 115200 /dev/console

2) The kernel is passed /dev/mtdblock3 to boot from, I had to alter this to /dev/mtdblock1, rebuild the kernel, and install that kernel to nand in order to get the nand booted kernel to mount the root filesystem

3) There don't seem to be any pty's available to any process.  Dropbear gets these messages when a client is connecting:
     root@OpenWrt:/$ /usr/sbin/dropbear -F -E -p 22
     [837] Jan 01 00:04:57 Not backgrounding
     [838] Jan 01 00:05:01 Child connection from 192.168.1.100:33963
     [838] Jan 01 00:05:03 password auth succeeded for 'root' from 192.168.1.100:33963
     [838] Jan 01 00:05:03 pty_allocate: openpty: No such file or directory
     [838] Jan 01 00:05:03 no pty was allocated, couldn't execute

     I'm not sure if this is an issue with openwrt itself or if I've just mucked around enough to break something.  Any ideas would be appreciated.

4) All the leds are on after boot, /etc/diag.sh doesn't seem to be able to set their state correctly.  Here are the post boot messages:
     leds-gpio: probe of leds-gpio.0 failed with error -16
     leds-gpio: probe of leds-gpio.1 failed with error -16
     Registered led device: gpio2
     Registered led device: gpio3
     leds-gpio: probe of leds-gpio.4 failed with error -22
     leds-gpio: probe of leds-gpio.5 failed with error -22
     leds-gpio: probe of leds-gpio.6 failed with error -22
     leds-gpio: probe of leds-gpio.7 failed with error -22
     Registered led device: port0led0
     Registered led device: port0led1
     Registered led device: port0led2
     Registered led device: port1led0
     Registered led device: port1led1
     Registered led device: port1led2
     Registered led device: port2led0
     Registered led device: port2led1
     leds-gpio: probe of leds-gpio.16 failed with error -16
     Registered led device: port3led0
     Registered led device: port3led1
     leds-gpio: probe of leds-gpio.19 failed with error -16
     Registered led device: port4led0
     Registered led device: port4led1
     Registered led device: port4led2

5) There seems to be something causing a segfault during the init process.  I haven't yet been able to isolate it, but if I remove boot and done from the init order, then the segfaults seem to go away.

6)  I can't start vi, all I get is a segfault

I think the segfaults I'm seeing may be related to the pty issue, but I have no idea where to even start with that one.  I'll post more if I learn anything new.

Thanks for all the help everyone!

Andrew

Okay, I've made even more headway.

abates wrote:

1) By default, there is no way to log into the system from console, I had to build the getty package and add this line to the inittab:
     console::sysinit:/sbin/getty 115200 /dev/console
...

3) There don't seem to be any pty's available to any process.  Dropbear gets these messages when a client is connecting:

...

These are fixed,  I had disabled hotplug2 in troubleshooting along the way, with it re-enabled the /dev/ptmx device node is created and there are pty's available to processes.  I no longer need to have getty installed and in the inittab.

abates wrote:

4) All the leds are on after boot, /etc/diag.sh doesn't seem to be able to set their state correctly.  Here are the post boot messages:

...

5) There seems to be something causing a segfault during the init process.  I haven't yet been able to isolate it, but if I remove boot and done from the init order, then the segfaults seem to go away.

...

I discovered that awk is segfaulting every time it is called.  The /etc/diag.sh script imports /lib/adm5120.sh and that script uses awk.  I think this is likely why all the led's are on.  This also explains the other segfaults I'm seeing during init.

I'll keep everyone posted if I discover any more.

Andrew

abates wrote:

I discovered that awk is segfaulting every time it is called.  The /etc/diag.sh script imports /lib/adm5120.sh and that script uses awk.  I think this is likely why all the led's are on.  This also explains the other segfaults I'm seeing during init.

Ticket 2627 has been filed on this problem.

Hi everybody,

I am trying to build an image for a Routerboard rb150 (the one without MiniPCI) with the last trunk svn.

I keep getting an error on running make during the kernel compile process. If I run

make package/kernel-compile V=99

the last lines of output read

cp: cannot stat `/home/flavio/RADIOLAN/OPENWRTSDK/kamikaze/build_dir/linux-adm5120_router_le/linux-2.6.23.1/net/key/af_key.ko': No such file or directory
make[2]: *** [/home/flavio/RADIOLAN/OPENWRTSDK/kamikaze/bin/packages//kmod-ipsec_2.6.23.1-adm5120-1_mipsel.ipk] Error 1
make[2]: Leaving directory `/home/flavio/RADIOLAN/OPENWRTSDK/kamikaze/package/kernel'
make[1]: *** [package/kernel/compile] Error 2
make[1]: Leaving directory `/home/flavio/RADIOLAN/OPENWRTSDK/kamikaze'
make: *** [package/kernel-compile] Error 2

In the /build_dir/linux-adm5120_router_le/linux-2.6.23.1/net/key/ there is a source file that does not get compiled by make.
I already tried to modify the kernel config, but I had no success.

What should I do?

Thanks

Did anyone ever get it working on the RB133c?  I see that it is supported under the hardware section but this thread looks like there are problems.  Before I try to load it on an RB133c I would like to know that someone has made it work and what pitfalls I might come across.    Thx in advance!

I have it currently running on 2 rb133c's and 2 rb150s.  Seems pretty stable so far.  The 150's have been rebooting under heavy load, but florian reports that he thinks this has been fixed recently.

I've followed the instructions at the openwrt rb100 wiki page up to the point where it says that due to a problem with nand, follow the instructions here. They seem to work as I have got openwrt running on my Routerboard rb133c. It has an atheros minipci card installed.

The ethernet port works when I do 'ifconfig eth0 add 192.168.1.1 up'  but none of the settings in /etc/config/network or /etc/config/wireless seem to be getting loaded. I can't sort out how to get my wireless interface up or what exactly it is called (ath0 doesn't seem to exist).

Indeed, when I run 'ifup lan' or 'ifup wifi0' I get:

root@(none):/etc/config# ifup lan
/sbin/ifup: /sbin/ifdown: line 15: uci_revert_state: not found
/sbin/ifup: /sbin/ifdown: line 18: uci_load: not found
interface not found.

It appears the problem is in /etc/functions.sh where it calls uci_load.  I have noticed that /etc/functions.sh is significantly different on my routerboard than on my linksys wrt54g running openwrt 7.09.

The images I downloaded from ..kamikaze/2.6/adm5120 were in a folder dated February 6th, 2008 called '10405'.  I tried first with the netboot image from ..kamikaze/2.6/ladmin5120/latest directory but that vmlinuz.elf file dated January 14th would not boot, it gave an 'initrd not found or missing' error or something to that effect.

My question is what do I have to do to get the wireless working? Will I need to build openwrt myself and include the atheros driver/module?  I have seen above that abates has managed this and I see no reason I can't sort that out as well. 

Does the ifup script not work because it is from some random build from SVN and not a proper release?

My goal is use OpenWRT with the OLSRd mesh routing daemon to communicate with RS232 devices.  I am also evaluating the Asus wl-500gP since it has USB.

Thanks for any insight as I am not sure as to how to proceed,
-C

cdiggity wrote:

I've followed the instructions at the openwrt rb100 wiki page up to the point where it says that due to a problem with nand, follow the instructions here. They seem to work as I have got openwrt running on my Routerboard rb133c. It has an atheros minipci card installed.

wget2nand was modified recently, so in theory extracting stuff manually is no longer necessary.  I haven't tried the updated version of wget2nand yet, though.

cdiggity wrote:

The ethernet port works when I do 'ifconfig eth0 add 192.168.1.1 up'  but none of the settings in /etc/config/network or /etc/config/wireless seem to be getting loaded. I can't sort out how to get my wireless interface up or what exactly it is called (ath0 doesn't seem to exist).

Indeed, when I run 'ifup lan' or 'ifup wifi0' I get:

root@(none):/etc/config# ifup lan
/sbin/ifup: /sbin/ifdown: line 15: uci_revert_state: not found
/sbin/ifup: /sbin/ifdown: line 18: uci_load: not found
interface not found.

It appears the problem is in /etc/functions.sh where it calls uci_load.  I have noticed that /etc/functions.sh is significantly different on my routerboard than on my linksys wrt54g running openwrt 7.09.

The images I downloaded from ..kamikaze/2.6/adm5120 were in a folder dated February 6th, 2008 called '10405'.  I tried first with the netboot image from ..kamikaze/2.6/ladmin5120/latest directory but that vmlinuz.elf file dated January 14th would not boot, it gave an 'initrd not found or missing' error or something to that effect.

If you try to netboot the normal kernel (i.e. not a netboot kernel) when you do not have a filesystem on the flash you will get an error about it not being able to mount the root filesystem.  I'm guessing that's what happened there.

cdiggity wrote:

My question is what do I have to do to get the wireless working? Will I need to build openwrt myself and include the atheros driver/module?  I have seen above that abates has managed this and I see no reason I can't sort that out as well. 

Does the ifup script not work because it is from some random build from SVN and not a proper release?

Possibly.  There have been some changes to uci and /etc/functions.sh recently which may have broken something.  The last version I tried on rb1xx was r10310.  I did not test it extensively, but everything I tried seemed to work fine including the wireless (with an Atheros miniPCI card.)

It would probably be best for you to compile Kamikaze yourself.  It's not hard smile

Here are the generic instructions: BuildingKamikazeHowTo

The RB100 wiki page should give you the rb1xx specific bits.

EDIT: r10366 is the last version before the recent uci changes.  Perhaps you should try that revision.  If that works for you, you should probably open a ticket with the details.

(Last edited by Wodin on 9 Feb 2008, 11:09)

cdiggity wrote:

The images I downloaded from ..kamikaze/2.6/adm5120 were in a folder dated February 6th, 2008 called '10405'.  I tried first with the netboot image from ..kamikaze/2.6/ladmin5120/latest directory but that vmlinuz.elf file dated January 14th would not boot, it gave an 'initrd not found or missing' error or something to that effect.

updated the latest soft link to point to the latest build.  looks like you were able to successfully netboot.

Hi,

I've got r10366 for adm5120 built and used wget2nand to downgrade from r10405 to r10366 since r10405 was giving me problems with the ifup/ifdown scripts (which still don't seem to do anything other than say interface not found).

Now I'm not sure if I selected all the appropriate wireless options for the image. I selected anything I thought I might need, but probably missed some things.

I'm trying to get the RB133 to work as an access point but it doesn't seem to be broadcasting its SSID.  I have an atheros card in it at the moment. I don't think I included hostapd in the image so if it is required that could be a problem.



Here is the output from 'dmesg':

Linux version 2.6.23.14 (jcm@red1) (gcc version 4.1.2) #1 Tue Feb 26 11:56:51 HST 2008
console [early0] enabled
CPU revision is: 0001800b                                                                            
SoC      : ADM5120 revision 8, running at 175MHz                                                     
Bootdev  : NAND flash                                                                                
Prom     : RouterBOOT                                                                                
Determined physical RAM map:                                                                         
 memory: 01000000 @ 00000000 (usable)                                                                
Initrd not found or empty - disabling initrd                                                         
On node 0 totalpages: 4096                                                                           
  Normal zone: 32 pages used for memmap                                                              
  Normal zone: 0 pages reserved                                                                      
  Normal zone: 4064 pages, LIFO batch:0                                                              
  Movable zone: 0 pages used for memmap                                                              
Built 1 zonelists in Zone order.  Total pages: 4064                                                  
Kernel command line: root=/dev/mtdblock3 rootfstype=yaffs2 init=/etc/preinit                         
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.                          
Primary data cache 8kB, 2-way, linesize 16 bytes.                                                    
Synthesized TLB refill handler (20 instructions).                                                    
Synthesized TLB load handler fastpath (32 instructions).                                             
Synthesized TLB store handler fastpath (32 instructions).                                            
Synthesized TLB modify handler fastpath (31 instructions).                                           
PID hash table entries: 64 (order: 6, 256 bytes)                                                     
Using 87.500 MHz high precision timer.                                                               
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)                                         
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)                                          
Memory: 13820k/16384k available (1852k kernel code, 2564k reserved, 327k data, 124k init, 0k highmem)
Calibrating delay loop... 173.05 BogoMIPS (lpj=346112)                                               
Mount-cache hash table entries: 512                                                                  
adm5120: registered board 'Generic ADM5120 board'                                                    
adm5120: registered board 'Cellvision NFS-101U/101WU'                                                
adm5120: registered board 'Cellvision CAS-861/861W'                                                  
adm5120: registered board 'Cellvision CAS-790'                                                       
adm5120: registered board 'Cellvision CAS-771/771W'                                                  
adm5120: registered board 'Cellvision CAS-700/700W'                                                  
adm5120: registered board 'Cellvision CAS-670/670W'                                                  
adm5120: registered board 'Cellvision CAS-630/630W'                                                  
adm5120: registered board 'Compex WPP54G'                                                            
adm5120: registered board 'Compex WPP54AG'                                                           
adm5120: registered board 'Compex WP54G-WRT'                                                         
adm5120: registered board 'Compex WP54G'                                                             
adm5120: registered board 'Compex WP54AG'                                                            
adm5120: registered board 'Compex NetPassage 28G'                                                    
adm5120: registered board 'Compex NetPassage 27G'                                                    
adm5120: registered board 'Edimax BR-6104WG/6114WG'                                                  
adm5120: registered board 'Edimax BR-6104K/6104KP'                                                   
adm5120: registered board 'Infineon EASY 83000 Reference Board'                                      
adm5120: registered board 'Infineon EASY 5120-WVoIP Reference Board'                                 
adm5120: registered board 'Infineon EASY 5120-RT Reference Board'                                    
adm5120: registered board 'Infineon EASY 5120P-ATA Reference Board'                                  
adm5120: registered board 'Mikrotik RouterBOARD 192'                                                 
adm5120: registered board 'Mikrotik RouterBOARD 153'                                                 
adm5120: registered board 'Mikrotik RouterBOARD 150'                                                 
adm5120: registered board 'Mikrotik RouterBOARD 133C'                                                
adm5120: registered board 'Mikrotik RouterBOARD 133'                                                 
adm5120: registered board 'Mikrotik RouterBOARD 112'                                                 
adm5120: registered board 'Mikrotik RouterBOARD 111'                                                 
adm5120: registered board 'ZyXEL Prestige 335/335WT'                                                 
adm5120: registered board 'ZyXEL Prestige 334WT'                                                     
NET: Registered protocol family 16                                                                   
adm5120: setting up board 'Mikrotik RouterBOARD 133C'                                                
adm5120: system has PCI BIOS                                                                         
registering PCI controller with io_map_base unset                                                    
PCI: mapping irq for 0000:00:01.0 pin:1, irq:14                                                      
Time: MIPS clocksource has been installed.                                                           
NET: Registered protocol family 2                                                                    
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                                       
TCP established hash table entries: 512 (order: 0, 4096 bytes)                                       
TCP bind hash table entries: 512 (order: -1, 2048 bytes)                                             
TCP: Hash tables configured (established 512 bind 512)                                               
TCP reno registered                                                                                  
squashfs: version 3.0 (2006/03/15) Phillip Lougher                                                   
Registering mini_fo version $Id$                                                                     
JFFS2 version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.                                      
yaffs Feb 26 2008 11:54:46 Installing.                                                               
io scheduler noop registered                                                                         
io scheduler deadline registered (default)                                                           
Serial: AMBA driver $Revision: 1.41 $                                                                
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA                                              
console handover: boot [early0] -> real [ttyS0]                                                      
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA                                             
ADM5120 built-in ethernet switch driver version 0.1.1                                                
adm5120-flash.0: probing at 0x1FC00000, size:1024KiB, width:8 bits                                   
CFI: Found no adm5120-flash.0 device at location zero                                                
Found: PMC Pm39LV010                                                                                 
adm5120-flash.0: Found 1 x8 devices at 0x0 in 8-bit bank                                             
adm5120-flash.0: Found an alias at 0x20000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0x40000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0x60000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0x80000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0xa0000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0xc0000 for the chip at 0x0                                       
adm5120-flash.0: Found an alias at 0xe0000 for the chip at 0x0                                       
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x100000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x120000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x140000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x160000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x180000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1a0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1c0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x1e0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x200000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x220000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x240000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x260000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x280000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2a0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2c0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x2e0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x300000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x320000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x340000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x360000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x380000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3a0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3c0000              
adm5120-flash.0: Found different chip or no chip at all (mfr 0xff, id 0xff) at 0x3e0000              
number of JEDEC chips: 1                                                                             
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.                             
adm5120-flash.0: reducing map size to 128KiB                                                         
adm5120-flash.0: found at 0x1FC00000, size:128KiB, width:8 bits                                      
adm5120-flash.0: adding static partitions                                                            
Creating 2 MTD partitions on "adm5120-flash.0":                                                      
0x00000000-0x00010000 : "booter"                                                                     
0x00010000-0x00020000 : "firmware"                                                                   
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)                      
Scanning device for bad blocks                                                                       
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":                                                
0x00000000-0x00400000 : "kernel"                                                                     
0x00400000-0x04000000 : "rootfs"                                                                     
mtd: partition "rootfs" set to be root filesystem                                                    
split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"                                         
adm5120_wdt: Watchdog Timer version 0.1                                                              
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)                                                  
ip_tables: (C) 2000-2006 Netfilter Core Team                                                         
TCP vegas registered                                                                                 
NET: Registered protocol family 1                                                                    
NET: Registered protocol family 17                                                                   
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>                                        
All bugs added by David S. Miller <davem@redhat.com>                                                 
trxsplit: searching TRX header in 'booter'                                                           
trxsplit: searching TRX header in 'firmware'                                                         
trxsplit: 'kernel' is not a NOR flash, skipped                                                       
trxsplit: 'rootfs' is not a NOR flash, skipped                                                       
yaffs: dev is 32505859 name is "mtdblock3"                                                           
yaffs: passed flags ""                                                                               
yaffs: Attempting MTD mount on 31.3, "mtdblock3"                                                     
yaffs: auto selecting yaffs1                                                                         
VFS: Mounted root (yaffs2 filesystem) readonly.                                                      
Freeing unused kernel memory: 124k freed                                                             
Please be patient, while OpenWrt loads ...                                                           
Algorithmics/MIPS FPU Emulator v1.5                                                                  
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.                                       
device eth0 entered promiscuous mode                                                                 
br-lan: port 1(eth0) entering learning state                                                         
br-lan: topology change detected, propagating                                                        
br-lan: port 1(eth0) entering forwarding state                                                       
ieee80211_crypt: registered algorithm 'NULL'                                                         
ieee80211: 802.11 data/management/control stack, git-1.1.13                                          
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>                      
ieee80211_crypt: registered algorithm 'WEP'                                                          
ieee80211_crypt: registered algorithm 'TKIP'                                                         
ieee80211_crypt: registered algorithm 'CCMP'                                                         
PPP generic driver version 2.4.2                                                                     
tun: Universal TUN/TAP device driver, 1.6                                                            
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>                                               
batgat: [init_module:96] batgat loaded  rv963                                                        
batgat: [init_module:97] I was assigned major number 254. To talk to                                 
batgat: [init_module:98] the driver, create a dev file with 'mknod /dev/batgat c 254 0'.             
batgat: [init_module:99] Remove the device file and module when done.                                
batman-adv: B.A.T.M.A.N. Advanced 0.1-alpha rv963 (compability version 1) loaded                     
wlan: trunk                                                                                          
ath_hal: module license 'Proprietary' taints kernel.                                                 
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_F)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)                             
ath_rate_minstrel: look around rate set to 10%                                                       
ath_rate_minstrel: EWMA rolloff level set to 75%                                                     
ath_rate_minstrel: max segment size in the mrr set to 6000 us                                        
wlan: mac acl policy registered                                                                      
ath_pci: trunk                                                                                       
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)                                                     
MadWifi: ath_attach: Switching rfkill capability off                                                 
MadWifi: ath_attach: Switching per-packet transmit power control off                                 
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps                                                         
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps   
wifi0: H/W encryption support: WEP AES AES_CCM TKIP                                                  
wifi0: ath_announce: Use hw queue 1 for WME_AC_BE traffic                                            
wifi0: ath_announce: Use hw queue 0 for WME_AC_BK traffic                                            
wifi0: ath_announce: Use hw queue 2 for WME_AC_VI traffic                                            
wifi0: ath_announce: Use hw queue 3 for WME_AC_VO traffic                                            
wifi0: ath_announce: Use hw queue 8 for CAB traffic                                                  
wifi0: ath_announce: Use hw queue 9 for beacons                                                      
ath_pci: wifi0: Atheros 5212: mem=0x11400000, irq=14                                                 
Registered led device: power                                                                         
Registered led device: user                                                                          
Registered led device: lan1_speed                                                                    
Registered led device: lan1_lnkact                                                                   
Registered led device: lan2_speed                                                                    
Registered led device: lan2_lnkact                                                                   
Registered led device: lan3_speed                                                                    
Registered led device: lan3_lnkact                                                                   
device ath0 entered promiscuous mode                                                                 
br-lan: port 2(ath0) entering learning state                                                         
br-lan: topology change detected, propagating                                                        
br-lan: port 2(ath0) entering forwarding state                                                       
root@OpenWrt:/etc/config#

Here is my /etc/config/wireless:

root@OpenWrt:/etc/config# cat /etc/config/wireless                                                   
config wifi-device  wifi0                                                                            
        option type     atheros                                                                      
        option channel  auto                                                                         
                                                                                                     
        # REMOVE THIS LINE TO ENABLE WIFI:                                                           
        # option disabled 1                                                                          
                                                                                                     
config wifi-iface                                                                                    
        option device   wifi0                                                                        
        option network  lan                                                                          
        option mode     ap                                                                           
        option ssid     OpenWrt                                                                      
        option encryption none

and the output of ifconfig.  I was surprised to have both ath0 and wifi0. Is this because I included too many wireless drivers in my kernel?

root@OpenWrt:/etc/config# ifconfig                                                                   
ath0      Link encap:Ethernet  HWaddr 00:80:48:4F:03:FD                                              
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                         
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                         
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                                       
          collisions:0 txqueuelen:0                                                                  
          RX bytes:0 (0.0 B)  TX bytes:652 (652.0 B)                                                 
                                                                                                     
br-lan    Link encap:Ethernet  HWaddr 00:0C:42:0B:9B:43                                              
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0                             
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                         
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0                                         
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                                       
          collisions:0 txqueuelen:0                                                                  
          RX bytes:656 (656.0 B)  TX bytes:652 (652.0 B)                                             
                                                                                                     
eth0      Link encap:Ethernet  HWaddr 00:0C:42:0B:9B:43                                              
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                         
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0                                         
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                                       
          collisions:0 txqueuelen:1000                                                               
          RX bytes:684 (684.0 B)  TX bytes:652 (652.0 B)                                             
          Interrupt:17                                                                               
                                                                                                     
lo        Link encap:Local Loopback                                                                  
          inet addr:127.0.0.1  Mask:255.0.0.0                                                        
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                                                   
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                         
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                       
          collisions:0 txqueuelen:0                                                                  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                                     
                                                                                                     
wifi0     Link encap:UNSPEC  HWaddr 00-80-48-4F-03-FD-98-0E-00-00-00-00-00-00-00-00                  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                         
          RX packets:373 errors:0 dropped:0 overruns:0 frame:45                                      
          TX packets:187 errors:14 dropped:0 overruns:0 carrier:0                                    
          collisions:0 txqueuelen:195                                                                
          RX bytes:19788 (19.3 KiB)  TX bytes:22200 (21.6 KiB)                                       
          Interrupt:14

I don't know how to proceed to get this RB133 working as an access point.  Any thoughts?

And a second question, I have an Asus WL-500gP with a stock broadcom card in it.  Apparently kernel 2.6 works with the asus wl-500 and atheros, but not broadcom.  Does anyone know why I couldn't put my atheros card from the routerboard in the Asus, and the Asus' broadcom card in the Routerboard?

Thanks for your assistance
-c

cdiggity wrote:

Here is my /etc/config/wireless:

root@OpenWrt:/etc/config# cat /etc/config/wireless                                                   
config wifi-device  wifi0                                                                            
        option type     atheros                                                                      
        option channel  auto                                                                         
                                                                                                     
        # REMOVE THIS LINE TO ENABLE WIFI:                                                           
        # option disabled 1                                                                          
                                                                                                     
config wifi-iface                                                                                    
        option device   wifi0                                                                        
        option network  lan                                                                          
        option mode     ap                                                                           
        option ssid     OpenWrt                                                                      
        option encryption none

That looks OK.

I'm not sure what the defaults of the different options are, so you could try adding "option hidden 0" to the wifi-iface section.

cdiggity wrote:

and the output of ifconfig.  I was surprised to have both ath0 and wifi0. Is this because I included too many wireless drivers in my kernel?

wifi0 is the underlying wireless device.  ath0 is virtual interface attached to the physical device.  You can have more than one athX interface attached to a wireless device.

What does "iwconfig ath0" give you?

cdiggity wrote:

Does anyone know why I couldn't put my atheros card from the routerboard in the Asus, and the Asus' broadcom card in the Routerboard?

I don't know.

As it turns out, the wireless may have been working quite fine before and it was just my gnome-networkManager application that gets confused after a suspend/resume cycle. I rebooted my laptop and the access point appeared.

I did add the option hidden 0 and changed # option disabled 1 to option disabled 0 but I think that solves my RB133 related queries and now I'm on to just sorting out how to configure OpenWRT in general!

Thanks for your help.

FYI here is my iwconfig ath0:

root@OpenWrt:/# iwconfig ath0                                                   
ath0      IEEE 802.11g  ESSID:"OpenWrt"  Nickname:""                            
          Mode:Master  Frequency:2.442 GHz  Access Point: 00:80:48:4F:03:FD     
          Bit Rate:0 kb/s   Tx-Power:23 dBm   Sensitivity=1/1                   
          Retry:off   RTS thr:off   Fragment thr:off                            
          Encryption key:off                                                    
          Power Management:off                                                  
          Link Quality=0/70  Signal level=-94 dBm  Noise level=-94 dBm          
          Rx invalid nwid:3150  Rx invalid crypt:0  Rx invalid frag:0           
          Tx excessive retries:0  Invalid misc:0   Missed beacon:

HI

I set up an Rb133 with kernel and rootfs got from: http://wifi.ozo.com/airo/openwrt/firmwa … 20/latest/

Now the board is running but I'm unable to understand how hardware device are mapped on /dev/port
I would like to direct access hardware of the board from user space without the need to write a kernel module (I'm unable to this task !!)
does anyone know about it ?

moreover: the processor periferals are memory mapped:
caould I access its from /dev/mem file ???
and in this case what is the memory translation from the processor core address (eg: from datasheet I see network leds are mapped at 0x12000100 ... )

thank you all in advance

Which hardware do you want to control ?
Openwrt has leds support by kernel for rb1xx series.

>Which hardware do you want to control ?
>Openwrt has leds support by kernel for rb1xx series.

yes I know
my test was to discover the use of MINI-PCI bus
I would like to test the possibility to map a dual port ram or similar to the pci pus to create a small lcd video card
I know that pci rchitecture allow the possibility to implement 'legacy' devices with fixed bus address, adm5120 has a reserved memory area for pci memory mapped devices
so I thought : If I can write to these addresses may be i will be able to write at high speed to an external ram
my one is an experimental design so I would bypass many tasks involved in pci devices (auto configuration etc)
I need simply to know how to  write in the PCI memory area...

as you can see all this is covered by many doubts !
but after all experimenting is my main task !

thank you

Just wanted to post a correction for the use of the wget2nand command when flashing the RB routers. When you build kamikaze using the trunk the NAND kernel image file needs to be renamed, you have to add the "2.6" to the name. The kernel should be called "openwrt-adm5120-2.6-rb1xx-kernel" so wget2nand can find it. The rootfs file does not need to be renamed.

Rob

Hello,
I'm trying to create a bridge on RB133 with OpenWrt by following command:

root@OpenWrt:/># brctl addbr br1
add bridge failed: Package not installed

I've searching for the solution - it seems that it is not right compiled kernel or package for bridge.

I'm using a firmware from site http://wifi.ozo.com/airo/openwrt/firmwa … 5120/11306 and I've installed the following packages:
kernel
wireless-tools
libgcc
libpcap
libncurses
kmod-madwifi
bridge (1.0.6-1 mipsel)
iptables

When do the same command in version 10774 - it wrotes the same error. Is there some package missing? Or is it really a bug?

Thanks
Alik

try to remove and reinstall the bridge package from the package directory of the firmware you are using.

Thanks for your answer. I'm trying your solution but it doesn't work. I'm using MIPSEL packages (bridge, ...) from directory ...\11306\packages\mipsel\

Alik

Hi to all..
I have the same problem with the creation of a bridge to my wan and my lan

I installed on my rb112 kamikaze/2.6/adm5120/13645/

and this is my packages installed:

base-files-adm5120 - 13-r13645 -
bridge - 1.4-1 -
busybox - 1.11.3-3 -
dropbear - 0.51-2 -
hostap-utils - 0.4.7-1 -
hotplug2 - 0.9+r102-2 -
iptables - 1.4.0-1 -
kernel - 2.6.26.8-adm5120-1 -
kmod-crypto-aes - 2.6.26.8-adm5120-1 -
kmod-crypto-arc4 - 2.6.26.8-adm5120-1 -
kmod-crypto-core - 2.6.26.8-adm5120-1 -
kmod-crypto-michael-mic - 2.6.26.8-adm5120-1 -
kmod-hostap - 2.6.26.8-adm5120-1 -
kmod-ieee80211 - 2.6.26.8-adm5120-1 -
kmod-ipt-core - 2.6.26.8-adm5120-1 -
kmod-madwifi - 2.6.26.8+r3314-adm5120-1 -
libgcc - 4.2.4-13 -
libncurses - 5.6-1 -
libpcap - 0.9.8-1 -
libuci - 0.6.4-1 -
mtd - 8 -
opkg - 4564-1 -
uci - 0.6.4-1 -
uclibc - 0.9.29-13 -
udevtrigger - 106-1 -
wireless-tools - 29-2 -
wpa-supplicant - 0.6.3-1 -

but when i digit:

root@OpenWrt:/lib/network# brctl addbr br-lan
add bridge failed: Package not installed

Can anyone help me please??

Thanks a lot

reporting success in installing 8.09.2 on a RB133C

BusyBox v1.11.2 (2010-01-19 15:46:03 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (8.09.2, r18961) -------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.26.8 #1 Tue Jan 19 16:23:07 CET 2010 mips unknown
root@OpenWrt:/#