OpenWrt Forum Archive

Topic: OpenWrt on WRAP board by pcengines

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

Hi,

has anyone had any success in installing OpenWrt on  the WRAP boards from pcengines (www.pcengines.ch)?

I tried following the SoekrisPort wiki here:  http://wiki.openwrt.org/SoekrisPort
which does have reference to using WRAP, but without success (serial terminal displays nothing when powered up).

If someone has got a system to work, could they either post a howto or even better an image file to blow to a CF?

thanks in advance...

I tried following the SoekrisPort wiki here:  http://wiki.openwrt.org/SoekrisPort
which does have reference to using WRAP, but without success (serial terminal displays nothing when powered up).

I made the HowTo and someone else added references and fixups for WRAPs. I am currently lacking such a board (and money to buy one) to check images are working correctly on it.

cheers Nico,

I'm currently trying to compile my own build using BuildRoot, but haven't got a clue as to what I am doing :-) so have no idea of it will work yet...  just building as we speak...

Looking at my screen there are a lot of references to mipsel which i'm guessing is indicating the processor that the OS is compiling for.  the WRAP website specs that the processor is:  266 MHz AMD Geode SC1100 CPU (fast 486 core)

Does anyone know if this means I need to compile a 386 processor version rather than mipsel?  and if so where in the make menuconfig would I need to start looking (couldn't see a reference for it at first glance)?

(Last edited by whitespirit on 20 Jan 2006, 16:56)

ok, so all the build gave me was a series of images for wrt54g etc etc, no x86 images...  So my next question is maybe the image that Nico has built is ok, but the grub loader is setup wrong... 

Can anyone advice me as to what would be required to setup a booting CF (Compact Flash) image - guess it's just like a booting harddisk? 

What would happen if I was to create one large linux filesytem on the CF and extract the openwrt-x86-2.4-rootfs.tar.gz to it.  Can I then just install grub on it, and if so how should the menu.lst be setup?

Sorry if these are idiot questions, but im at the stage of "just having enough knowledge to be dangerous" with these systems at the moment :-S


Thanks in advance for any info.

I followed the Soekris howto to the word and got it running fine on my WRAP 1E

is it somehow possible to get an image file for writing it to CF card ?
I don't have a reader in my linux boox but i'd like to test it also...

Ciao Gerd

the board I have is the WRAP.1E-2 (3 LAN ports) but it just won't boot after following the guide.  The only thing I can think of is that I have a 128M card not a 256M as per the original HowTo hmm (but I can figure out why that should have any effect since the starting image is 8M and I did make sure I had a 1M boot partition).

Any guru's out there willing to have a go at creating a bootable CF image of OpenWrt?  I've tried but without success (will try again in the office tomorow), If successful I'll post what I create (but dont hold your breath). neutral

whitespirit I used a 32mb cf card

hmm, tried going through the guide again, couple of things I wouldn't mind a bit of advice on ( Nico ) ;-)

1.  My CF is detected as sdb so i refence sdb1 and sdb2 in replace of sda1 and sda2.  Will that have an effect?
2.  When I tried  " grub-install --no-floppy --root-directory=/mnt/cf /dev/sdb "  I get the grub help list as if it is indicating that --no-floppy is not a valid command, does this sound right to you?
3.  I then edited the /mnt/cf/boot/grub/device.map file to read:

(hd0)   /dev/sda
(hd1)   /dev/sdb

i.e. deleted  (fd0) reference - is this needed?

would any of the above be the reason why the unit doesn't boot?

Thanks again, I really appreciate any help anyone can offer at this stage. 
BTW:  Would LILO be an alternative option?   I have pebble linux on a different CF and that boots fine and I think that might using LILO as I can't see any grub references in the /boot folder.

Hey Nico,

Firstly:  I love the how-to and I completely realise I am trying to apply this guide to a piece of hardware it was not written for so if you do not wish to respond then I do understand :-)

however... another quick question for you.  looking at the HowTo,  you have a download link for the kernel as: http://downloads.openwrt.org/people/nic … .4-vmlinuz

i..e the kernel name is "openwrt-x86-2.4-vmlinuz"

however in the grub menu.lst file you have:

kernel  /boot/openwrt-soekris-2.4-vmlinuz blkmtd_device=/dev/hda2 blkmtd_sync=1 root=/dev/mtdblock0 rootfstype=jffs2 init=/etc/preinit noinitrd console=ttyS0,19200n8

i.e. you are referencing a different kernel name, is this correct (I have changed the name in my menu.lst to be openwrt-x86-2.4-vmlinuz  but still wont boot :-(

Also using fdisk i flagged the first partition (boot partition) as bootable, is this needed (it is not mentioned as necassary in the howto)?

If you have a copy of the original document you wrote I wouldn't mind a copy of it (just in case it has been subtly edited and no longer works for the WRAP unit). 


PS.. to any lilo/grub experts out there... in the pebble version of linux that I have that does boot, it seems to use linux and has a reference in the lilo.pebble.conf file of bios=0x80 does nayone know what this does and where there is a grub equivelent?

Thanks lots.

(Last edited by whitespirit on 26 Jan 2006, 18:47)

We decided to use a more generic name (x86) instead of soekris, since the port worked on other non-soekris based boards. I'll fix the wiki.

yee-haa!  I put the CF reader into a different PC (one without SCSI hard disk in it). Re-followed the wiki and I managed to get it working.. sweet.

For a while it was hanging at the Grub Bootloader stage 1.5.

To fix it I had to edit /mnt/cf/boot/grub/device.map to read:

(hd0) /dev/sda

and the re-run

grub-install --no-floppy --root-directory=/mnt/cf /dev/sda

May not be linked, but i also deleted any files in the /mnt/cf/boot/grub folder that were not listed on your example "find . -ls" reference.  However I suspect they were probably re-installed once the grub-install command had been re-issued.


My next task is to figure out how difficult would it be to get the system upgraded to latest (RC4) from (bleeding edge, r2392).

thanks for a cool port to x86.

Does anyone have some helpfile how to set up networking on PCengines WRAP ain OpenWrt ? I managed to install it on CF but can not figure out how to set up networking sad

For me I had to edit a couple of files.

firstly /etc/config/network

# Network configuration file

## LAN configuration
lan_ifname="br0"
lan_ifnames="eth1 eth2"
lan_proto="static"
lan_ipaddr="172.16.2.1"
lan_netmask="255.255.0.0"

## WAN configuration
wan_ifname="eth0"
##wan_proto="dhcp"
wan_proto="static"
wan_ipaddr="83.71.55.182"
wan_netmask="255.255.255.240"
wan_gateway="83.71.55.190"

##SPARE WAN2 if
wan2_ifname="eth0:1"
wan2_proto="static"
wan2_ipaddr="192.168.1.26"
wan2_netmask="255.255.255.0"
wan2_gateway="192.168.1.254"

And to bring up the interfaces at boot I made sure the relevent ifup lines were in the /etc/init.d/S40network file...
    ifup lan
    ifup wan
ifup wan2
    ifup wifi
    wifi up

What I couldn't figure out, is how to make the WAN work on DHCP. The wan_proto="dhcp" line didn't seem to work for me. smile

Also I think you can call the "wan2" interface anything you want (e.g. lan2) as long as that is how you refer to it in your scripts.. e.g. use the lines:

lan2_ifname="eth0:1"
lan2_proto="static"
lan2_ipaddr="192.168.1.26"
etc..

and "ifup lan2" in the /etc/init.d/S40network file

(Last edited by whitespirit on 14 Feb 2006, 09:56)

I'd be interested in finding out from nico what he had to change in the buildroot to make it compile for x86.
I've already told the buildroot to compile for i386, and the kernel too.
What else needs to be done?

I'm getting all the packages, but no jffs2 images anywhere *puzzled*

Can someone help? Perhaps a diff against a given snapshot?

Thanks.

Make sure you grab the latest development release:

You can get the source from Subversion. See the OpenWrt Development center https://dev.openwrt.org/. Check out the development branch.

I was able to create my own x86 release from this version dead-easy! smile  Although I had to remove a number of packages that I didn't have the right dependencies etc for on my version of linux, plus I couldn't get it to build on redhat for some reason... but still  dead-easy! ahem.. big_smile

When you run "make menuconfig" there is a choice of what platform you want to compile for, and then the images appear in the bin folder if memory serves.  It's all in the docs, not too difficult.

(Last edited by whitespirit on 8 Mar 2006, 16:29)

Thanks!
This seems to be working!

And to think I've been fighting with whiterussian for the last few weeks big_smile

Maybe it should be moved to kamikaze forum, but I don't want to create new thread...

Today I tried Kamikaze R6889 on my WRAP2C and it works but I cannot bridge eth0 (the only one ethernet port) with ath0   (atheros wlan card)

my config:

/etc/config/wireless

config wifi-device      wifi0
        option type     atheros
        option channel  5
        option disabled 0

config wifi-iface
        option device   wifi0
        option mode     ap
        option ssid     XR2WRAP
        option hidden   0
        option network lan
        option encryption none

/etc/config/network

# Copyright (C) 2006 OpenWrt.org

config interface loopback
    option ifname    lo
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0

config interface lan
    option ifname    eth0
    option proto    'static'
    option ipaddr    '192.168.1.2'
    option netmask    '255.255.255.0'

there are no bridge shown by 'brctrl show'. What should I do to create bridge between eth0 and ath0 an use my WRAP as AP?

(Last edited by Marek on 8 Apr 2007, 18:30)

Easy.

- In /etc/config/network add 'option type bridge' to the 'config interface lan' section.

- In /etc/config/wireless add 'option network lan' to the 'config wifi-iface' section.

(Last edited by forum2006 on 8 Apr 2007, 18:56)

Oh, I forgot the 'option type bridge'. Ofcourse it did the trick.

Thank you.

Is this possible to configure two wireless cards (WRAP has 2xminiPCI slot) via /etc/config/wireless or it is nessesary to make some workaround?

Marek wrote:

Is this possible to configure two wireless cards (WRAP has 2xminiPCI slot) via /etc/config/wireless or it is nessesary to make some workaround?

Should be possible. No idea if it works. Try to change your /etc/config/wireless to something like this:

config wifi-device      wifi0
        option type     atheros
        ...

config wifi-iface
        option device   wifi0
        option mode     ap
        ...

config wifi-device      wifi1
        option type     atheros
        ...

config wifi-iface
        option device   wifi1
        option mode     ap
        ...

I tried it before but it didnt  work, BUT I tried it again and SUCCESS! (maybe I made some mistake last time)

I think this 266MHz cpu present on WRAP is much faster than broadcom 4704@ 264MHz from ASUS WL-500gP The FTP transfer rate from WRAP CF card is about 4,1MB/s, but with ASUS transfer from USB stick about 2,5MB/s, both with ~100% cpu usage. I know this test isn't fully fair but I think it shows that Geode is faster than broadcom @ the same MHz.

(Last edited by Marek on 8 Apr 2007, 19:30)

anyone kave a preferred config file for use with a WRAP 2E AND kamikaze 7.06 and above?

The discussion might have continued from here.