OpenWrt Forum Archive

Topic: Compile Error

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

OK, on to configuring the network!
On this page http://wiki.openwrt.org/OpenWrtDocs/Configuration it says I must modify the NVRAM
lan_ifname=br0
lan_ifnames="vlan0 eth1"
lan_proto=static
lan_ipaddr=192.168.1.25
lan_netmask=255.255.255.0
lan_gateway=192.168.1.1
lan_dns=192.168.1.1
wan_proto=none

Now, if I modify lan_dns, does that mean the dns the router uses is changed, or only what it gives out with DHCP?

So, the SD card in a card reader gets automatically mounted?

yes, the problem is the usb stick somehow, I got usb storage working.

Nevermind the NVRAM question I erased, forgot nvram commit

(Last edited by schweitzer on 29 Dec 2006, 02:33)

Thanks Florian for adding US Robotics 5461 support to WhiteRussian. Support added in [5928] and [5929].


Check out WR from subversion. Then build it normally with 'make menuconfig' and 'make'. Don't forget to select the ImageBuilder under Packages in menuconfig (at the end of the list).

This creates the required images:
    openwrt-brcm-2.4-squashfs.trx -> for TFTP
    openwrt-usr5461-squashfs.bin  -> to flash directly from the original US Robotics 5461 web interface

You have to reduce the size of the image with the ImageBuilder by removing not required packages. See the previous posts in this thread to get an idea which packages you can remove.

(Last edited by forum2006 on 29 Dec 2006, 17:50)

The USR5461 seems to be very similar to the Belkin F5D7230-4 and the Siemens SE505V2. Most things written for those models should apply to your router, too.

Some of the memory sticks have a broken SCSI cmd layer (especially cheap USB MP3 players), and won't be detected properly. Whenever this happens, you'll get mount points like disc0_*. In cases one might even get disc*_* ( see https://dev.openwrt.org/ticket/1104 for a fixing this annoying behavior ).

A hint on the file system: I suggest you use EXT2 (it is faster and it takes less memory than VFAT - EXT3 is reported to write more often to the disc, but I haven't tested this). If you have to use FAT, better format your disc with FAT16, it will be a lot faster, and it will take less RAM to mount it).

Follow the instructions in section "How do I boot from the USB device" in http://wiki.openwrt.org/UsbStorageHowto, and the flash size limitation will be a thing of the past. If you have no USB strorage plugged in, the box will boot as usual.

Note that for BCM4712 based routers the init script should look like this:

#!/bin/sh

# change this to your boot partition
boot_dev="/dev/discs/disc0/part1"

# install needed modules for usb and the ext3 filesystem
# **NOTE** for usb2.0 replace "uhci" with "ehci-hcd"
# **NOTE** for ohci chipsets replace "uhci" with "usb-ohci"

for module in usbcore usb-ohci scsi_mod sd_mod usb-storage ext2 wlcompat wl switch-adm switch-core; do {
insmod $module
}; done

# this may need to be higher if your disk is slow to initialize
sleep 4s

# mount the usb stick
mount "$boot_dev" /mnt

# if everything looks ok, do the pivot root
[ -x /mnt/sbin/init ] && {
mount -o move /proc /mnt/proc && \
pivot_root /mnt /mnt/mnt && {
mount -o move /mnt/dev /dev
mount -o move /mnt/tmp /tmp
mount -o move /mnt/jffs2 /jffs2 2>&-
mount -o move /mnt/sys /sys 2>&-
}
}

# finally, run the real init (from USB hopefully).
exec /bin/busybox init

The discussion might have continued from here.