I have an old Raspberry 1B which I want to use to evaluate OpenWrt. I bought two USB32ETH adapters because the RPi1B only has one ETH interface. On following pages I describe the steps I executed to boot the system headless in my home network.
1) Download the firmware from this page. Use the correct firmware for 1B
2) Extract the image
gzip -d openwrt-24.10.4-bcm27xx-bcm2708-rpi-ext4-factory.img.gz
3) Then flash the image openwrt-24.10.4-bcm27xx-bcm2708-rpi-ext4-factory.img with dd on a SD card (substitute /dev/sdx with the correct device)
dd if=openwrt-24.10.4-bcm27xx-bcm2708-rpi-ext4-factory.img of=/dev/sdx bs=2M
4) Boot the image on the RPi1B. The system will boot with IP 192.168.1.1 which usually does not match the home network IP range. Turn off the RPi1B after about 3 Minutes.
5) Mout the SD card and edit /etc/config/network. Update the IP addres 192.168.1.1 to an IP address which is not used in your home network.
6) Boot the RPi1B with the updated image.
7) ssh into the system with root@<IP> or open a browser with http://<IP> and then set a password
8) Update the lan interface and add the default gateway (network->interfaces>lan>-general settings->IPv4 gateway)O and custom DNS server (network->interfaces>lan>-advanced settings->Use custom DNS server) of your home network
9) Update the software list in system->software->update lists
10) Update all installed packages on the commandline. Login with ssh and execute
opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade
11) Either use vi to edit files on the system or install nano on the system->software page.
12) If a connected monitor doesn't display anything you have to define the supported screen resolution in /boot/cmdline.txt. Append the following string at the end of the existing commands:
video=HDMI-1:1280x800M@60
and reboot on the console with
reboot
13) Install missing Linux modules for USB2ETH adapters. I have an adapter with ASIXAX88179 and have to install following modules:
opkg install kmod-usb-net kmod-usb-net-asix-ax88179 kmod-usb-net-cdc-mbim
14) Configure OpenWrt
