Loading ...
Sorry, an error occurred while loading the content.

using stock pogo rootfs externally from usb with optware

Expand Messages
  • dynamic_hamster
    I have an NSLU2 and bought a pink pogo to replace it but wanted everything running from the usb like the nslu2 so as not use the flash in rw mode. I found an
    Message 1 of 4 , Nov 21, 2011
    • 0 Attachment
      I have an NSLU2 and bought a pink pogo to replace it but wanted everything running from the usb like the nslu2 so as not use the flash in rw mode. I found an easy way to do this on a pogo was to make a copy of the stock rootfs to the usb stick, then use the /boot/uImage from archlinux in conjunction with jeff's uboot, and finally overlaying the /lib and /dev directories from archlinux.

      I've been using the pogo and optware externally from usb for a couple of days and it seems to work fine and I can pull the usb stick anytime and revert back to the original pogo plug if needed, or erase and redo my optware from scratch. Not sure anyone else is doing it this way or just me, but thought I would mention it.
    • oddballhero
      Actually, you could just put Optware on USB and lock down the rootfs as read only with mount -o ro,remount / and there wouldn t be much wear to the flash.
      Message 2 of 4 , Nov 22, 2011
      • 0 Attachment
        Actually, you could just put Optware on USB and lock down the rootfs as read only with "mount -o ro,remount /" and there wouldn't be much wear to the flash. But, I have done something similar to yours using Jeff's uboot to get kernel features that just building modules wouldn't give me. Although what I did was to build a newer kernel from source, and build a newer busybox with mdev functionality among other things. To get it to boot, you need to configure the kernel with usb and ext2/ext3 built-in/not as modules. It helps to have a serial cable. As I'v mentioned on http://www.nslu2-linux.org/wiki/Main/PlugComputers you could even run Optware on top of Archlinux (there are a few packages they don't provide, and Ovidiu Sas always has the latest Asterisk Builds for Optware). You could also play with a custom kernel and the SlugOS/LE 5.3 Beta (Other Targets) rootfs. I've done all the above on Kirkwood but also have gotten it to work with OXNAS by placing the modified kernel in NAND. You could also use WarheadsSE Archlinuxarm installer to do this if you don't want to do it by hand like this article did http://lists.fedoraproject.org/pipermail/arm/2011-July/001622.html .

        --- In nslu2-linux@yahoogroups.com, "dynamic_hamster" <dynamic_hamster@...> wrote:
        >
        > I have an NSLU2 and bought a pink pogo to replace it but wanted everything running from the usb like the nslu2 so as not use the flash in rw mode. I found an easy way to do this on a pogo was to make a copy of the stock rootfs to the usb stick, then use the /boot/uImage from archlinux in conjunction with jeff's uboot, and finally overlaying the /lib and /dev directories from archlinux.
        >
        > I've been using the pogo and optware externally from usb for a couple of days and it seems to work fine and I can pull the usb stick anytime and revert back to the original pogo plug if needed, or erase and redo my optware from scratch. Not sure anyone else is doing it this way or just me, but thought I would mention it.
        >
      • dynamic_hamster
        Thanks. I wasn t sure if pacman on Archlinux would interfere with ipkg but I might give it a try now. My constraint may be somewhat unique in that I still use
        Message 3 of 4 , Nov 22, 2011
        • 0 Attachment
          Thanks. I wasn't sure if pacman on Archlinux would interfere with ipkg but I might give it a try now. My constraint may be somewhat unique in that I still use my nslu2 and I wanted to configure the pogo as a clone of it - tried the slugos 5.3/le but got distracted and took the easy way out :-)


          --- In nslu2-linux@yahoogroups.com, "oddballhero" <oddballhero@...> wrote:
          >
          >
          >
          >
          > Actually, you could just put Optware on USB and lock down the rootfs as read only with "mount -o ro,remount /" and there wouldn't be much wear to the flash. But, I have done something similar to yours using Jeff's uboot to get kernel features that just building modules wouldn't give me. Although what I did was to build a newer kernel from source, and build a newer busybox with mdev functionality among other things. To get it to boot, you need to configure the kernel with usb and ext2/ext3 built-in/not as modules. It helps to have a serial cable. As I'v mentioned on http://www.nslu2-linux.org/wiki/Main/PlugComputers you could even run Optware on top of Archlinux (there are a few packages they don't provide, and Ovidiu Sas always has the latest Asterisk Builds for Optware). You could also play with a custom kernel and the SlugOS/LE 5.3 Beta (Other Targets) rootfs. I've done all the above on Kirkwood but also have gotten it to work with OXNAS by placing the modified kernel in NAND. You could also use WarheadsSE Archlinuxarm installer to do this if you don't want to do it by hand like this article did http://lists.fedoraproject.org/pipermail/arm/2011-July/001622.html .
          >
          > --- In nslu2-linux@yahoogroups.com, "dynamic_hamster" <dynamic_hamster@> wrote:
          > >
          > > I have an NSLU2 and bought a pink pogo to replace it but wanted everything running from the usb like the nslu2 so as not use the flash in rw mode. I found an easy way to do this on a pogo was to make a copy of the stock rootfs to the usb stick, then use the /boot/uImage from archlinux in conjunction with jeff's uboot, and finally overlaying the /lib and /dev directories from archlinux.
          > >
          > > I've been using the pogo and optware externally from usb for a couple of days and it seems to work fine and I can pull the usb stick anytime and revert back to the original pogo plug if needed, or erase and redo my optware from scratch. Not sure anyone else is doing it this way or just me, but thought I would mention it.
          > >
          >
        • oddballhero
          No problem. Actually with Archlinux (or Debian) and Optware on top, it s about the same as SlugOS with Optware on top, or OpenWRT with Optware on top
          Message 4 of 4 , Nov 23, 2011
          • 0 Attachment
            No problem. Actually with Archlinux (or Debian) and Optware on top, it's about the same as SlugOS with Optware on top, or OpenWRT with Optware on top (althought without the resource benefits of Busybox so you might need a swap partition). Just keep in mind that the ipkg packages work off the /opt directory and the pacman packages don't. You can launch the Optware start files from rc.local. What's good about this system is if you clone your NSLU2 stuff on the Archlinux system, when you do pacman -Syu, the upgrade won't give you surprises, unless you do ipkg update and upgrade. What's interesting is on OXNAS systems, with an OHCI device plugged in, whenever I did an "lsusb" using native Archlinux, I would get a Seg fault, but using the Optware lsusb, I would get my list. Still, you mention at the end about the "easy way out" and that would have been just mounting a flash drive on /opt and installing Optware there with the stock system intact (the equivalent of Unslung).
            Have fun!

            --- In nslu2-linux@yahoogroups.com, "dynamic_hamster" <dynamic_hamster@...> wrote:
            >
            >
            >
            > Thanks. I wasn't sure if pacman on Archlinux would interfere with ipkg but I might give it a try now. My constraint may be somewhat unique in that I still use my nslu2 and I wanted to configure the pogo as a clone of it - tried the slugos 5.3/le but got distracted and took the easy way out :-)
            >
            >
            > --- In nslu2-linux@yahoogroups.com, "oddballhero" <oddballhero@> wrote:
            > >
            > >
            > >
            > >
            > > Actually, you could just put Optware on USB and lock down the rootfs as read only with "mount -o ro,remount /" and there wouldn't be much wear to the flash. But, I have done something similar to yours using Jeff's uboot to get kernel features that just building modules wouldn't give me. Although what I did was to build a newer kernel from source, and build a newer busybox with mdev functionality among other things. To get it to boot, you need to configure the kernel with usb and ext2/ext3 built-in/not as modules. It helps to have a serial cable. As I'v mentioned on http://www.nslu2-linux.org/wiki/Main/PlugComputers you could even run Optware on top of Archlinux (there are a few packages they don't provide, and Ovidiu Sas always has the latest Asterisk Builds for Optware). You could also play with a custom kernel and the SlugOS/LE 5.3 Beta (Other Targets) rootfs. I've done all the above on Kirkwood but also have gotten it to work with OXNAS by placing the modified kernel in NAND. You could also use WarheadsSE Archlinuxarm installer to do this if you don't want to do it by hand like this article did http://lists.fedoraproject.org/pipermail/arm/2011-July/001622.html .
            > >
            > > --- In nslu2-linux@yahoogroups.com, "dynamic_hamster" <dynamic_hamster@> wrote:
            > > >
            > > > I have an NSLU2 and bought a pink pogo to replace it but wanted everything running from the usb like the nslu2 so as not use the flash in rw mode. I found an easy way to do this on a pogo was to make a copy of the stock rootfs to the usb stick, then use the /boot/uImage from archlinux in conjunction with jeff's uboot, and finally overlaying the /lib and /dev directories from archlinux.
            > > >
            > > > I've been using the pogo and optware externally from usb for a couple of days and it seems to work fine and I can pull the usb stick anytime and revert back to the original pogo plug if needed, or erase and redo my optware from scratch. Not sure anyone else is doing it this way or just me, but thought I would mention it.
            > > >
            > >
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.