OpenWrt Forum Archive

Topic: Failed to execute /init for Ralink SoC RT3052

The content of this topic has been archived between 1 Mar 2018 and 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello guys,

I am building kamikaze 7.09 for Ralink SoC board RT3052. and I'm building kernel embed with initramfs.
While building everything is fine ,but one kernel execution is done,ramdisk is not loading and it gives below error,

Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 4356k freed
Failed to execute /init
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.



Do anyone knows about how to eliminate this error?

thank you

Hi, I'm also building customized firmware on RT3052 board

I can successfully finish building but I don't know what firmware image should I flash into RT3052

Can you give me a hint?

Hey buddy,

You have to use /bin/openwrt-ramips-squashfs.img or jffs2.
Bytheway, which router do you have ?

in my router board there is only one partition ,so i can't keep kernel and ramdisk separately.
So I am trying to make initramfs and embed with kernel.
But giving follow problem,

Failed to execute /init
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


how do you build your kernel?embed with initramfs?

Hi , I got a ralink's EVB and a Buffalo WHR-300G

I've solved the image problem and my kernel and filesystem are put in different partitions.

After I set init=/etc/preinit , I got the same error message as you did

So we are stuck at the same point, hope someone knows the solution~

Hey Stephan,

lot thanks for your sharing views.
I think initramfs is not building properly in this build system.
There is some problem in root-ramips.

If you find solution,plz kindly help us out.

Why not choose initramfs as image type and load that?

On my RT3052 EVB the openwrt-ramips-uImage-initramfs.bin build from latest trunk boots fine.

Hi aport,

Can you share your menuconfig and kernel_menuconfig?

Hi all,

After using initramfs, I can boot without kernel panic , but system hangs after console showed "Press CTRL-C for failsafe"

Here is my bootup log

## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.30.6
   Created:      2009-09-18   2:07:16 UTC

   System Control Status = 0x00440000
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1236882 Bytes =  1.2 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

Linux version 2.6.30.6 (stephen) (gcc version 4.1.2) #24 Fri Sep 18 10:07:13 CST 2009
console [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3052   id:1 rev:3 running at 384.00 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS1,57600 rootfstype=squashfs
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0001508c
Readback ErrCtl register=0001508c
NR_IRQS:48
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early0] -> real [ttyS1]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29772k/32768k available (1709k kernel code, 2996k reserved, 301k data, 612k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
Mount-cache hash table entries: 512
net_namespace: 476 bytes
NET: Registered protocol family 16
MIPS: machine is Generic Ralink board
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ? 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
physmap platform flash device: 00400000 at bf000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
ralink flash device: 0x400000 at 0x1f000000
Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 5 MTD partitions on "Ralink SoC physically mapped flash":
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000150000 : "Kernel"
0x000000150000-0x000000400000 : "RootFS"
i8042.c: i8042 controller self test timeout.
TCP westwood registered
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>
Freeing unused kernel memory: 612k freed
- preinit -
Press CTRL-C for failsafe

Any ideas?

(Last edited by stephen.wang on 18 Sep 2009, 05:15)

Hey APORT and STEPHEN,
Thanks for your sharing.
I really appreciate it.
if I keep INITRAMFS path directory empty, then it give same error like stephen got.(Press CTRL-C for failsafe)

And if I will give root-ramips directory path, it give same below error

Failed to execute /init
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Dear APORT,
if possible, Please kindly share menuconfig and Kernel_menuconfig .


Does anyone  else have any idea?

(Last edited by aj.pattel888 on 18 Sep 2009, 14:32)

Hi -

I got a DIR-300 B1 with a Ralink RT3050 and I'd like to compile a custom kernel for from trunk (R17604).

I selected "Ralink RT288x/RT305x" as Target System, but "ramdisk" is not an option in the Target/Image submenu.

Is there something I could do in order to have it available?

Any help will be greatly appreciated. Thanks in anticipation!

--
Olivier

Hi Olecom,
Please select "Advanced configuration options (for developers)" --->"Show broken platforms / packages "

You will get  subtarget  and target profile menu,

Select Target as RT305x and subtarget profile is Default.
And select ramdisk from TARGET IMAGE MENU.

and then run MAKE V=99 FORCE=1, your build system will run fine.

Hi there,

Excellent! I appreciate your help, aj.pattel888. Thanks to your instructions, I have been able to compile the kernel.

I faced to the "The chosen file is not a valid firmware image file" error message when trying to upload the generated uImage through the D-Link webserver.

From u-boot (in command line), the "tftpboot" then "bootm" commands are also failing. Image is transfered OK to the device, but "bootm" stops with an error message:

RT3052 # tftpboot
Mac to giga Mac mode
Using Eth0 (10/100-M) device
TFTP from server 10.10.10.3; our IP address is 192.168.0.1
Filename 'openwrt.lzma.bin'.
Loading: #################################################################
Bytes transferred = 1619293 (18b55d hex)

RT3052 # bootm
## Booting image at 80100000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.30.7
   Created:      2009-09-21  15:33:01 UTC
 System Control Status = 0x03400000 
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1619229 Bytes =  1.5 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover

Any idea on what could be wrong?

The first choice in the u-boot menu (System Load Linux to SDRAM via TFTP) makes me more happy though: the dir-300 boots like a charm that way. I have no network, but it is probably just a matter of kernel modules in the kernel.

I wonder why the same image can load directly to SDRAM via TFTP but not in command line in u-boot.

PS: I tried with either no compression and LZMA compression for the Target/Image.

Hey Olivier,
You are welcome,

Acutally plz refer my answer to stephen.wang about this issue.He also faced same problem.
Now we both stuck in initramfs problem.

by the way, which openwrt(from /trunk/bin directory) file you are running in your board?

Hi -

I used openwrt-ramips-uImage-initramfs.bin

Would it be possible to share our .config? I have uploaded mine at http://olecam.online.fr/dir-300-b2/rt305x.config
I did not change anything in kernel_menuconfig.

Actually, my DIR-300 just boots fine, but I'm still not able to get networking enabled.

Here is my bootup log:

Automatic boot of image at addr 0x80800000 ...
## Booting image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.30.7
   Created:      2009-09-22   8:49:49 UTC

 System Control Status = 0x03400000
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2154665 Bytes =  2.1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.30.7 (olecam@getafix) (gcc version 4.1.2) #3 Tue Sep 22 10:49:
44 CEST 2009
console [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3052   id:1 rev:2 running at 320.00 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS1,57600 rootfstype=squashfs,jffs2
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0006c8ff
Readback ErrCtl register=0006c8ff
NR_IRQS:48
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early0] -> real [ttyS1]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 28856k/32768k available (1697k kernel code, 3912k reserved, 365k data, 1
476k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 212.99 BogoMIPS (lpj=1064960)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
MIPS: machine is Generic Ralink board
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 56
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
TCP westwood registered
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>
Freeing unused kernel memory: 1476k freed
- preinit -
Press CTRL-C for failsafe

Please press Enter to activate this console. PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (512 buckets, 2048 max)

I tried to enable kmod-rt2x00-lib (from Wireless Drivers) but the build fails with a "rt2x00lib.ko: No such file or directory" message. TBH I'm not sure that this module is the appropriate one.

Could you please provide me with your .config?

Thanks in anticipation.

--
Olivier

stephen.wang wrote:

Hi all,

After using initramfs, I can boot without kernel panic , but system hangs after console showed "Press CTRL-C for failsafe"

Here is my bootup log

## Booting image at bf050000 ...
   Image Name:   MIPS OpenWrt Linux-2.6.30.6
   Created:      2009-09-18   2:07:16 UTC

   System Control Status = 0x00440000
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1236882 Bytes =  1.2 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

Linux version 2.6.30.6 (stephen) (gcc version 4.1.2) #24 Fri Sep 18 10:07:13 CST 2009
console [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3052   id:1 rev:3 running at 384.00 MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS1,57600 rootfstype=squashfs
Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0001508c
Readback ErrCtl register=0001508c
NR_IRQS:48
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early0] -> real [ttyS1]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29772k/32768k available (1709k kernel code, 2996k reserved, 301k data, 612k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
Mount-cache hash table entries: 512
net_namespace: 476 bytes
NET: Registered protocol family 16
MIPS: machine is Generic Ralink board
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ? 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
physmap platform flash device: 00400000 at bf000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
ralink flash device: 0x400000 at 0x1f000000
Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 5 MTD partitions on "Ralink SoC physically mapped flash":
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000150000 : "Kernel"
0x000000150000-0x000000400000 : "RootFS"
i8042.c: i8042 controller self test timeout.
TCP westwood registered
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>
Freeing unused kernel memory: 612k freed
- preinit -
Press CTRL-C for failsafe

Any ideas?

Hey Stephen,if you have found solution, plz share with us ,thank you.

Hmm... when I compile from kamikaze trunk I now get the same problem. Odd... this didn't happen last week.

Hey aport,

if possible, can you please upload or send us config file and firmware of your last build?

also let us know if you find solution of this problem,

I am trying since last 10 days but no luck.

Thanks in advance.

aport wrote:

Here's an image and my buildroot .config. My kernel config is default.

http://nexaira.org/nxa/openwrt-ramips-u … tramfs.bin

http://nexaira.org/nxa/ramips-config

Thanks you for that aport! Your image boots up on DLink DIR-300 B1, but  "ra2880_read_mac" seems confused when the router boots from the flash memory:

System booted via Flash:

Please press Enter to activate this console. 
ra2880_read_mac: 00:00:00:00:00:00
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
ra2880_read_mac: 00:00:00:00:00:00
Ralink APSoC Ethernet Driver Initilization. v2.00  256 rx/tx descriptors allocated, mtu = 1500!
eth2 (): not using net_device_ops yet
ra2880_read_mac: 00:00:00:00:00:00
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
ra2880_read_mac: 00:00:00:00:00:00
PROC INIT OK!
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (512 buckets, 2048 max)

System loaded to SDRAM via TFTP:

Please press Enter to activate this console. 
ra2880_read_mac: 00:26:5a:2f:86:c8
GDMA1_MAC_ADRH -- : 0x00000026
GDMA1_MAC_ADRL -- : 0x5a2f86c8
ra2880_read_mac: 00:26:5a:2f:86:c8
Ralink APSoC Ethernet Driver Initilization. v2.00  256 rx/tx descriptors allocated, mtu = 1500!
eth2 (): not using net_device_ops yet
ra2880_read_mac: 00:00:00:00:00:00
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
ra2880_read_mac: 00:00:00:00:00:00
PROC INIT OK!
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (512 buckets, 2048 max)

As you can see, the first "ra2880_read_mac" is able to get the Mac Address of the device when the system is loaded to SDRAM via TFTP.

The network is not working but I suppose that you are still working on it.

"ifconfig -a" gives:

root@OpenWrt:/# ifconfig -a
eth2      Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:3 

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)

Thanks again for sharing your experience on the forum.

Best regards,
--
Olivier

BTW, any modifications on the file system are lost if the router is shutdowned/rebooted.

Is this a feature or will it be possible to deal with this in the future? Actually, I really need to being able to get modifications on the file system persistent. If there is no way to accomodate with this, I should probably consider to switch to different hardware.

Please tell me!

Thanks,
--
Olivier

aport wrote:
aj.pattel888 wrote:

Hey aport,

if possible, can you please upload or send us config file and firmware of your last build?

also let us know if you find solution of this problem,

I am trying since last 10 days but no luck.

Thanks in advance.

Here's an image and my buildroot .config. My kernel config is default.

http://nexaira.org/nxa/openwrt-ramips-u … tramfs.bin

http://nexaira.org/nxa/ramips-config

Thanks a lot aport.
Now I am able to build firmware and boot successfully on my ralink board.
Not able to get ethernet port or wifi working?

it gives mac 00:00:00:00:00:00

Does your openwrt firmware have ethernet & RT2860 wifi driver?
.

olecam wrote:

BTW, any modifications on the file system are lost if the router is shutdowned/rebooted.

Is this a feature or will it be possible to deal with this in the future? Actually, I really need to being able to get modifications on the file system persistent. If there is no way to accomodate with this, I should probably consider to switch to different hardware.

Please tell me!

Thanks,
--
Olivier

There's no storage on that because it's an initramfs image and there is no flash driver present.


If you would like to get up and running ASAP on a Ralink RT305x board I would recommend that you download the fonosfera sources and take a look at the  fonera2n target. blogic has done a great job with support for that platform. Wireless, ethernet, flash, everything is working very well. The wi-fi driver is precompiled, of course, because it's proprietary Ralink code. But the functionality is there.


http://trac.fonosfera.org/fon-ng


Thanks.

aj.pattel888 wrote:
aport wrote:
aj.pattel888 wrote:

Hey aport,

if possible, can you please upload or send us config file and firmware of your last build?

also let us know if you find solution of this problem,

I am trying since last 10 days but no luck.

Thanks in advance.

Here's an image and my buildroot .config. My kernel config is default.

http://nexaira.org/nxa/openwrt-ramips-u … tramfs.bin

http://nexaira.org/nxa/ramips-config

Thanks a lot aport.
Now I am able to build firmware and boot successfully on my ralink board.
Not able to get ethernet port or wifi working?

it gives mac 00:00:00:00:00:00

Does your openwrt firmware have ethernet & RT2860 wifi driver?
.

The image I had provided was the first build I made while attempting to use the ethernet driver provided by olecam. Looks like it doesn't work smile Really no surprise there, the driver is old and the kernel on ramips is very new. I would forsee issues compiling the wireless driver against 2.6.30 as well.

aport wrote:

There's no storage on that because it's an initramfs image and there is no flash driver present.

If you would like to get up and running ASAP on a Ralink RT305x board I would recommend that you download the fonosfera sources and take a look at the  fonera2n target. blogic has done a great job with support for that platform. Wireless, ethernet, flash, everything is working very well. The wi-fi driver is precompiled, of course, because it's proprietary Ralink code. But the functionality is there.

http://trac.fonosfera.org/fon-ng

Thanks.

Hi -

Well, I have been able to deal with the fonera sources and I confirm that everything is working well. Thanks!

Anyway, I still face to a problem with the vlans. Actually, I would like to get one of the LAN ports to be attached to a 3th vlan for a DMZ. This seems to be configurable with the help of the "switch" command:

switch vlan set 0 1 0000111
switch vlan set 1 2 0111011
switch vlan set 2 3 1000111

This is OK for the packets sent from the router but for some reason the received packets are always tagged to be originated from the vlan1 instead of vlan3.

I have enabled VLAN_DEBUG and I can confirm that all frames received by the 4 LAN ports are tagged to vlan1 when they come to the "vlan_skb_recv" function (defined in "vlan_dev.c", which is part if the 8021q sources), regardless of the "switch vlan set" configuration.

This seems to be (hard)coded somewhere but despite of many hours of search I haven't been able to find the which part of code does that.

This is making me totally crazy!!! Any help/idea/pointer/suggestion/... will be GREATLY appreciated!

Thanks!

--
Olivier

Hi

I've found this thread to be quite useful. I have a Belkin f5d8235-4 router that uses the ra3052f chip for cpu/radio and a RTL8366RB chip for the gigabit switch. I've checkout the lasted svn and used the .config file provided by olecam on Sep 22 2009. It works and I boot up into linux without the network or the wireless. What is the current status, what else is working (other than the linux) and what needs work (where can I contribute). Any guidance would be helpful.

Regards

Herb Swanson