Skip to content

Fight against kernel dependency errors

MaStr edited this page Apr 19, 2012 · 7 revisions

Some HOWTOs uses the OpenWRT trunk image for installing the brand new Piratebox-Router/Piece of Hardware. The flaw of the trunk Image is a not stable kernel, modules and other stuff. This results in dependency errors or new software versions (Transparend Upgrade from python 2.6 to 2.7).

The most popular error is the following - it looks like:

   Collected errors:
   * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod- usb-ohci:
   * kernel (= 3.2.14-1-eb30a01493673f9c92acd8243277c304) *
   * opkg_install_cmd: Cannot install package kmod-usb-ohci. 

The small solution to solve this problem, you can upgrade the kernel... but this seems to not work!

For this reason I created a custom image for MR3020, which already contains all needed packages. (If an image for another Model is needed, feel free contacting me).

If you encounter this problem, do the following steps:

  • 1. Login to your router
    • telnet or ssh <router></router>
  • 2. Check if your internet works on your device:
    • ping google.de
  • 3. Download the custom image for your device. Select your link -here- (on work)
    • cd /tmp
    • wget -link-
    • This may differ to your device, check openwrt.org - MR3020 mtd write openwrt-xxxxxx.bin firmware
    • reboot
  • 4. Now your device reboots and the device will have the IP 192.168.1.1
  • 5. Connect your computer to your PirateBox Device directly. Your computer should recieve a 192.168.1.x IP. If not, you have to set it manually to 192.168.1.2 (depends on OS, i.e. linux: ifconfig eth0 192.168.1.2 ). If you can ping 192.168.1.1 connect to your little PirateBox again.
    • telnet 192.168.1.1
  • 6. SetUp your password again , after this step, you have to use SSH!
    • passwd
  • 7. Now setup your /etc/config/network that you can google.de again.
    • vi /etc/config/network
  • 8. if you have finished it, reload your network config
    • /etc/init.d/network reload
  • 9. Now you maybe loose connection to your device (depends on your modifications on config/network ). Connect your Device and your computer again to your homenet-router
  • 10. Login to your PirateBox again
    • ssh <ip></ip>
  • 11. Piratebox package is on turn now:
  • 12. Now, the package and python are getting installed.
  • 13. After getting your "Ok" Message, reboot your device
    • reboot
After this steps, you can access via wifi or ethernet to play around with PirateBox