User Tools

Site Tools


toh:pcengines:alix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
toh:pcengines:alix [2018/05/01 10:12]
tmomas link updated
toh:pcengines:alix [2018/05/13 10:55] (current)
tmomas OpenWrt spelling, cleanup
Line 11: Line 11:
  
 ===== Hardware Highlights ===== ===== Hardware Highlights =====
-There are many models of ALIX boards (all work with OpenWRT ​at present), with two different CPU/RAM configurations:​+There are many models of ALIX boards (all work with OpenWrt ​at present), with two different CPU/RAM configurations:​
  
 ^ CPU                         ^ Ram       ^ Flash           ^ Network ​                        ^ USB        ^ Serial ​       ^ ^ CPU                         ^ Ram       ^ Flash           ^ Network ​                        ^ USB        ^ Serial ​       ^
Line 24: Line 24:
  
 ===== Installation ===== ===== Installation =====
-There are two distinct options for installing ​OpenWRT, using images that are either:  +There are two distinct options for installing ​OpenWrt, using images that are either:  
-  * pre-built nightly and available from http://​downloads.openwrt.org/,​ or+  * pre-built nightly and available from [[http://​downloads.openwrt.org/​]], or
   * built by yourself (or a mate).   * built by yourself (or a mate).
  
Line 61: Line 61:
   - Attach a USB CompactFlash reader/​writer to the flashing machine and insert the CompactFlash card   - Attach a USB CompactFlash reader/​writer to the flashing machine and insert the CompactFlash card
   - Watch the output from '​dmesg'​ to see what device ID it has picked up (it will be something like /dev/sdb)   - Watch the output from '​dmesg'​ to see what device ID it has picked up (it will be something like /dev/sdb)
-  - Ensure that /dev/sdb (or whatever is determined in step #2) is not mounted through the use of the '​mount'​ command. If it is, unmount it with '​umount'​.+  - Ensure that /dev/sdb (or whatever is determined in step #2) is not mounted through the use of the ''mount'' command. If it is, unmount it with ''​umount''.
   - Decide whether you want to use the squashfs (openwrt-x86-squashfs.image) or ext2 image (openwrt-x86-ext2.image). The ext2 one will take up considerably more space on the CompactFlash card, but will be faster to boot.   - Decide whether you want to use the squashfs (openwrt-x86-squashfs.image) or ext2 image (openwrt-x86-ext2.image). The ext2 one will take up considerably more space on the CompactFlash card, but will be faster to boot.
-  - Uncompress your image file <code bash> gunzip openwrt-x86-generic-combined-ext2.img.gz </​code>​+  - Uncompress your image file <code bash>​gunzip openwrt-x86-generic-combined-ext2.img.gz</​code>​
   - Flash the desired image to the CompactFlash card with: <code bash>dd if=openwrt-x86-ext2.image of=/​dev/​sdb</​code>​   - Flash the desired image to the CompactFlash card with: <code bash>dd if=openwrt-x86-ext2.image of=/​dev/​sdb</​code>​
   - Depending on your CF card size the default install won´t full fill your CF card. You can use gparted or equivalent application to expand the root partition.   - Depending on your CF card size the default install won´t full fill your CF card. You can use gparted or equivalent application to expand the root partition.
   - Removed the CompactFlash card, place it in the ALIX board and power on.   - Removed the CompactFlash card, place it in the ALIX board and power on.
-  - Once powered on and booted up the ALIX should be reachable on 192.168.1.1 on eth1. In default install eth0 is wan interface configured to obtain ip by dhcp and eth1 is br-lan interface with static ip 192.168.1.1 :!: this does not aaply for the **Alix.1c/​1d** - see below. +  - Once powered on and booted up the ALIX should be reachable on 192.168.1.1 on eth1. In default install eth0 is wan interface configured to obtain ip by dhcp and eth1 is br-lan interface with static ip 192.168.1.1 :!: this does not apply for the **Alix.1c/​1d** - see below. 
-  - If you have a serial cable it is recommended to do the first boot and initial network configuration with it attached ( minicom configured for 38400-8N1)+  - If you have a serial cable it is recommended to do the first boot and initial network configuration with it attached (minicom configured for 38400-8N1)
  
        
Line 83: Line 83:
 ---- ----
  
-===== OpenWRT ​on the ALIX.1d =====+===== OpenWrt ​on the ALIX.1d =====
  
 ==== Differences between the ALIX system boards ==== ==== Differences between the ALIX system boards ====
Line 108: Line 108:
 :!: The ''​lan''​ network is still required for the wireless AP to '​bridge'​ to, even though it has no physical interface. :!: The ''​lan''​ network is still required for the wireless AP to '​bridge'​ to, even though it has no physical interface.
  
-<​code>​uci set network.wan=interface+<​code>​ 
 +uci set network.wan=interface
 uci set network.wan.ifname=eth0 uci set network.wan.ifname=eth0
-uci set network.wan.proto=dhcp</​code>​+uci set network.wan.proto=dhcp 
 +</​code>​
  
 Finally, effect the changes. Finally, effect the changes.
  
-<​code>​uci commit network +<​code>​ 
-/​etc/​init.d/​network restart</​code>​+uci commit network 
 +/​etc/​init.d/​network restart 
 +</​code>​
  
 You can confirm the result of this script by executing: ''​ifconfig eth0 | grep inet''​ and/or ''​ping 8.8.8.8 -c 4''​. You can confirm the result of this script by executing: ''​ifconfig eth0 | grep inet''​ and/or ''​ping 8.8.8.8 -c 4''​.
Line 122: Line 126:
 This should work on other x86 models. ​ First, install the wireless card drivers (this assumes an Atheros ath9k-compatible wifi card): This should work on other x86 models. ​ First, install the wireless card drivers (this assumes an Atheros ath9k-compatible wifi card):
  
-<​code>​opkg update +<​code>​ 
-opkg install kmod-ath9k</​code>​+opkg update 
 +opkg install kmod-ath9k 
 +</​code>​
  
 You can confirm the result of this script by executing ''​ifconfig wlan0''​. ​ Next, configure the radio: You can confirm the result of this script by executing ''​ifconfig wlan0''​. ​ Next, configure the radio:
  
-<​code>​wifi detect > /​etc/​config/​wireless+<​code>​ 
 +wifi detect > /​etc/​config/​wireless
 uci set wireless.radio0.disabled=0 uci set wireless.radio0.disabled=0
-uci commit wireless</​code>​+uci commit wireless 
 +</​code>​
  
 Finally, install and start the access point daemon: Finally, install and start the access point daemon:
  
-<​code>​opkg install wpad-mini +<​code>​ 
-wifi</​code>​+opkg install wpad-mini 
 +wifi 
 +</​code>​
  
 By Default, the SSID will be **OpenWRT** and there will be no WEP/WPA. By Default, the SSID will be **OpenWRT** and there will be no WEP/WPA.
Line 161: Line 171:
 You can assign various triggers for LED activity using the instructions [[:​docs:​guide-user:​base-system:​led_configuration|here]]. You can assign various triggers for LED activity using the instructions [[:​docs:​guide-user:​base-system:​led_configuration|here]].
  
-After reading the previous link about leds functionality,​ the easiest way to configure the leds is from the web gui (luci) in "system" >> "led configuration"​+After reading the previous link about leds functionality,​ the easiest way to configure the leds is from the web gui (LuCI) in "System" >> "LED configuration"​
  
 ===== Entering Failsafe Mode ===== ===== Entering Failsafe Mode =====
Line 188: Line 198:
  
 ===== Using the Geode'​s AES engine ===== ===== Using the Geode'​s AES engine =====
-As of OpenWRT ​Backfire 10.03, cryptodev support can be enabled by installing the following packages (confirmed and tested on Alix 2d13):+As of OpenWrt ​Backfire 10.03, cryptodev support can be enabled by installing the following packages (confirmed and tested on Alix 2d13):
  
 From Kernel Modules, Cryptographic API modules: From Kernel Modules, Cryptographic API modules:
Line 203: Line 213:
  
 ===== Relevant external articles ===== ===== Relevant external articles =====
-Many of the below are written with Gentoo in mind, but will work equally well on OpenWRT ​(you should install relevant pages via '​opkg'​ rather than '​emerge'​ though).+Many of the below are written with Gentoo in mind, but will work equally well on OpenWrt ​(you should install relevant pages via '​opkg'​ rather than '​emerge'​ though).
  
   * [[http://​www.twam.info/​hardware/​alix/​watchdog-on-alix3d3|Watchdog usage on Gentoo]]   * [[http://​www.twam.info/​hardware/​alix/​watchdog-on-alix3d3|Watchdog usage on Gentoo]]
toh/pcengines/alix.txt · Last modified: 2018/05/13 10:55 by tmomas