101 (edited by z80yyz 2010-08-07 17:29:44)

Re: HOWTO: install OpenWrt on Seagate Dockstar

No, the device is dead at this point. I fixed my whoopsie (see post above) but now I am at the other blockage reported by someone else. I am not dual booting, no USB stick inserted. Using ~ecc's instructions it should be booting etc from NAND?

Gerrit

Looks like your device booted fine with your OpenWRT firmware. If you have correctly patched your Linux source, the LED will stay remain lit once the device has finished booting and is ready. Can you telnet into your device?

Mnn, is this the problem?

bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
bootargs_root=root=/dev/mtdblock2 ro

I checked NAND and there is definitely a squashfs magic id at 0x500000.

Mazi, is there a link to your working version of uImage?

Gerrit

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

Now the kernel boots but ends with (I am not booting from USB, in fact no USB stick inserted)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

Your DockStar booted from the NAND space where I suppose OpenWRT is and with a squashfs. If not, then what filesystem is used on the NAND space? If it is EXT3, did you include EXT3 into Linux kernel?

Mazi

103 (edited by z80yyz 2010-08-07 21:52:31)

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi Mazi

I was using my own build, now tried with ecc's uImage and rootfs inserted into NAND. Same result, Ext2, Ext3 and squashfs are built into ecc's kernel.
I double/triple checked my typing etc.

The kernel must have mtd support built in because it does the following (although the eraseblock errors worry me even though the seem outside of any space I am using for rootfs etc
since I am not the only one seeing this error there must be some common cause. Have read all the trheads that I can find here and on DslReports etc to no avail...

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1198 at 0x0000095c0000
Bad eraseblock 1437 at 0x00000b3a0000
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000002500000 : "rootfs"
0x000002500000-0x000010000000 : "rootfs_data"

Setting bootargs_root to root=/dev/sda1 rootfstype=ext2 does boot from the USB stick so there is hope!

Gerrit

104

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

since I am not the only one seeing this error there must be some common cause.
...
Setting bootargs_root to root=/dev/sda1 rootfstype=ext2 does boot from the USB stick so there is hope!

I agree there must be some intermittent problem with the flashing procedure.  Have you tried booting from USB and using the "nandwrite" command to flash /dev/mtd2 from there?

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi
Now that I can boot from USB, I tried the instructions in ecc's Troubleshooting section. After performing the flash_eraseall and nandwrite all is fine.

There must be something wrong int he Serial console process, the mtd block addresses listed there do not line up with what is in the console output when booting. Will try to figure that out before going too far down the FS path, otherwise I will never get back to this! :-)

Gerrit

106 (edited by mazilo 2010-08-08 03:09:17)

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

Mazi, is there a link to your working version of uImage?

Gerrit,

I apologize for not seeing the above request ealier. I have posted my OpenWRT firmware (from development trunk) for my DockStar here. AFAIC, that firmware worked on my DockStar. Right now, I have already upgraded with the r22497.

If you PM me your e-mail address, I sure would be more than happy to e-mail you the OpenWRT .config as well as the Linux config-default file or the uImage. My OpenWRT firmware for a DockStar is almost 100MB in size. It took my AMD Phenom II X3 9+ hrs to build. So, if you use my .config file, you may need to remove some of the applications.

Mazi

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi Mazi

Not to worry, I am happy to build my own as well now that the gadget works :-) I was building for WRT54, DIR615 and NSLU2 in the past so this is not a big leap in some ways.

I am using my asterisk box for the compiles, we don't get a lot of phone calls :-)

I did look at your .config but the problem becomes matching the SVN version of the tree to version of the .config. I will take some time on Sun to cull out all the =y lines to see if that is simpler to share the configuration defaults.

I'm keeping my uImage etc trimmed, the device is only for FreeSWITCH and maybe dnsmasq.

Many thanks go to you and ecc (and others) for moving this along. Do you know how/who the Dockstar might get included in OpenWRT menuconfig etc?

Gerrit

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

Do you know how/who the Dockstar might get included in OpenWRT menuconfig etc?

Unfortunately, no. I was hoping ECC's work would end up in the development trunk. With ECC moving away from OpenWRT, I just hope developers here would take over the development. Otherwise, more and more DockStar devices will run on debian/ubuntu Linux distro.

BTW, my OpenWRT for a DockStar is a strip down version. The configuration files exclude NAT/Firewall and among other things.

Mazi

109 (edited by z80yyz 2010-08-08 14:28:57)

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi Mazi
I will do some digging in the mail list and on Trac.

This is a useful link to what what has been done snce the 10.3 Backfire release, scroll down for FreeSWITCH changes/additions. This also provides a single click link to the trac code changes. If necessary I will use the NSLU2 as a template, it is a subset of another platform AFIAK.

There doesn't appear to be much documentation on how to add a platform or a sub-platform but it must be out there somewhere :-) Just have to find it.
And I found it: OpenWRT uses Buildroot so their site is the best place for documentaton: http://buildroot.uclibc.org/downloads/buildroot.html

Gerrit

Re: HOWTO: install OpenWrt on Seagate Dockstar

Gerrit,

That will be cool if you can do that.  BTW, I just PMed you w.r.t FreeSWITCH.

Mazi

Re: HOWTO: install OpenWrt on Seagate Dockstar

Adding to this Trac for Dockstar support: https://dev.openwrt.org/ticket/7583

ECC: Can we re-use your great info from http://www.cs.cmu.edu/~ecc/dockstar-howto.html? If I can keep my energy going I will add this to the wiki as well, big credit notice & link  to you of course.

Gerrit

Re: HOWTO: install OpenWrt on Seagate Dockstar

That's cool. Let's hope that pulse you added will bring back the beats to make the project alive again.

BTW, got you PM and thanks.

Mazi

113

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

There doesn't appear to be much documentation on how to add a platform or a sub-platform but it must be out there somewhere :-) Just have to find it.

This document has some discussion on adding a new target (on page 6).

I filed a ticket requesting support for the DockStar (with a pointer to my patches) on the OpenWrt trac system, but that's as far as I got.

114 (edited by z80yyz 2010-08-08 22:50:00)

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi ecc
I read that but in the end I am using IXP4x/NSUL2 as a template. Already have Dockstar as a Target Profile in make menuconfig.

Next is setting defaults for top level and for kernel, then adding your led and mtd patch as a patch file.  And then customizing the /etc/config/system etc to include led settings.....

I am updating the trac you mentioned so that there is a focus there as well.

Fun so far :-)

Accomplishments today:
Have Dockstar as a Target Profile
Working on setting default options for Dockstar vs. Default- will probably ask on the openwrt-devel mailing list as my experiments using other platforms as examples is not producing expected results :-(

When I get something worth posting, I will place the patch files on my blog until such time as the changes get committed into the tree

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hi z80yyz,

Can you also add an option for booting from /dev/sda1, ext2 file system?

Re: HOWTO: install OpenWrt on Seagate Dockstar

This is something which should be set in the UBoot Environment IMHO.

2x TP-Link wr1043nd (1x64MB RAM, 1x32MB RAM) - booting from usb sticks (kexec'd kernel)
1x Seagate DockStar booting  from 500GB 2,5" HDD (firststage u-boot with usb boot support)
1x la fonera 2.0 (stock @ backfire)

Re: HOWTO: install OpenWrt on Seagate Dockstar

Hello,
I was trying to add Bluetooth support and kept coming up with a lot of dmesg "symbol not found" comments when the modules were loaded.  Research indicates that this is caused by the modules loaded using the kirkwood build don't work on the dockstar.  I made an effort to set up the build environment and compile my own but I got overwhelmed with the make config menu.  There are just too many choices.  So Mazi, if you are willing, could I get a look at that config file?  I am guessing that would set me on the right path to where I only have to add the additional bluetooth tools.

Re: HOWTO: install OpenWrt on Seagate Dockstar

As Memphis indicated, this is done in u-boot AFAIK. there are instructions linked to in earlier posts that show how to add a chained u-boot that will boot from /dev/sda1

nguyen wrote:

Hi z80yyz,

Can you also add an option for booting from /dev/sda1, ext2 file system?

119 (edited by mazilo 2010-08-09 12:52:45)

Re: HOWTO: install OpenWrt on Seagate Dockstar

mrkrupa wrote:

So Mazi, if you are willing, could I get a look at that config file?

Can you please PM me your e-mail address? This way, I can attach the configuration files to you.

Mazi

Re: HOWTO: install OpenWrt on Seagate Dockstar

life can be easy here using method in post #25, but you have to have a serial connection

opkg list_installed
asterisk14 - 1.4.25.1-2
asterisk14-app-meetme - 1.4.25.1-2
asterisk14-chan-mobile - 1.4.8-1
asterisk14-voicemail - 1.4.25.1-2
base-files - 42-r20728
bluez-libs - 3.36-3
bluez-utils - 3.36-7
busybox - 1.15.3-2
dbus - 1.2.4.6permissive-2
dnsmasq - 2.52-2
dropbear - 0.52-4
e2fsprogs - 1.41.11-1
firewall - 1-10
hotplug2 - 1.0-beta-1
iptables - 1.4.6-2
iptables-mod-conntrack - 1.4.6-2
iptables-mod-nat - 1.4.6-2
iw - 0.9.19-1
kernel - 2.6.30.10-1
kmod-bluetooth - 2.6.30.10-1
kmod-cfg80211 - 2.6.30.10+2010-03-24-5
kmod-crc-ccitt - 2.6.30.10-1
kmod-crypto-aes - 2.6.30.10-1
kmod-crypto-arc4 - 2.6.30.10-1
kmod-crypto-core - 2.6.30.10-1
kmod-eeprom-93cx6 - 2.6.30.10-1
kmod-fs-nfs - 2.6.30.10-1
kmod-fs-nfs-common - 2.6.30.10-1
kmod-fs-vfat - 2.6.30.10-1
kmod-hid - 2.6.30.10-1
kmod-input-core - 2.6.30.10-1
kmod-input-evdev - 2.6.30.10-1
kmod-ipt-conntrack - 2.6.30.10-1
kmod-ipt-core - 2.6.30.10-1
kmod-ipt-nat - 2.6.30.10-1
kmod-ipt-nathelper - 2.6.30.10-1
kmod-leds-gpio - 2.6.30.10-1
kmod-mac80211 - 2.6.30.10+2010-03-24-5
kmod-nls-base - 2.6.30.10-1
kmod-nls-cp437 - 2.6.30.10-1
kmod-nls-iso8859-1 - 2.6.30.10-1
kmod-ppp - 2.6.30.10-1
kmod-pppoe - 2.6.30.10-1
kmod-rtl8187 - 2.6.30.10+2010-03-24-5
kmod-scsi-core - 2.6.30.10-1
kmod-tun - 2.6.30.10-1
kmod-usb-core - 2.6.30.10-1
kmod-usb-net - 2.6.30.10-1
kmod-usb-net-cdc-ether - 2.6.30.10-1
kmod-usb-serial - 2.6.30.10-1
kmod-usb-serial-ftdi - 2.6.30.10-1
kmod-usb-storage - 2.6.30.10-1
kmod-usb2 - 2.6.30.10-1
kmod-zaptel14 - 2.6.30.10+1.4.9.2-2
libblkid - 1.41.11-1
libc - 0.9.30.1-42
libdbus - 1.2.4.6permissive-2
libdlna - 0.2.3-1
libexpat - 2.0.1-1
libext2fs - 1.41.11-1
libfaad2 - 2.7-1
libffmpeg - 20080419-2
libgcc - 4.3.3+cs-42
libiconv - 1.11-1
libintl - 0.17-1
libiptc - 1.4.6-2
liblua - 5.1.4-6
libncurses - 5.7-2
libnl-tiny - 0.1-1
libpopt - 1.7-5
libpthread - 0.9.30.1-42
librt - 0.9.30.1-42
libuci - 12012009.5-1
libuci-lua - 12012009.5-1
libupnp - 1.6.6-2
libusb - 0.1.12-2
libuuid - 1.41.11-1
libxtables - 1.4.6-2
lua - 5.1.4-6
luci - 0.9.0-1
luci-admin-core - 0.9.0-1
luci-admin-full - 0.9.0-1
luci-admin-mini - 0.9.0-1
luci-app-firewall - 0.9.0-1
luci-app-initmgr - 0.9.0-1
luci-cbi - 0.9.0-1
luci-core - 0.9.0-1
luci-http - 0.9.0-1
luci-i18n-english - 0.9.0-1
luci-ipkg - 0.9.0-1
luci-lmo - 0.9.0-1
luci-nixio - 0.9.0-1
luci-sgi-cgi - 0.9.0-1
luci-sys - 0.9.0-1
luci-theme-base - 0.9.0-1
luci-theme-openwrt - 0.9.0-1
luci-uci - 0.9.0-1
luci-uvl - 0.9.0-1
luci-web - 0.9.0-1
mtd - 12
opkg - 513-2
ppp - 2.4.4-5
ppp-mod-pppoe - 2.4.4-5
uci - 12012009.5-1
udevtrigger - 106-1
uhttpd - 7
usbutils - 0.86-1
ushare - 1.1a-1
vsftpd - 2.2.2-1
wireless-tools - 29-4
zaptel14-libtonezone - 1.4.9.2-2
zlib - 1.2.3-5

Solid uptime so far, no crash

# uptime
 21:46:30 up 10 days, 22:36, load average: 0.11, 0.05, 0.00

Lot of space available on /

# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root               251.0M     13.3M    237.7M   5% /
tmpfs                    62.1M      1.3M     60.8M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda                991.0M    986.6M      4.4M 100% /mnt/mydrive

Re: HOWTO: install OpenWrt on Seagate Dockstar

In fact, you can also use the standard kirkwood distrib, *without* serial - see post #91 here :
https://forum.openwrt.org/viewtopic.php?pid=114498#p114498

It's my optimisation of the Kyle Anderson method... Thx to ratbug for pointing to this at the beginning.
And as he says : stability and no issue with the kmod package. The only drawback : no support for leds.

Re: HOWTO: install OpenWrt on Seagate Dockstar

fxmx86 wrote:

The only drawback : no support for leds.

This can be overcome if one were to locally recompile the Linux kernel on backfire with the patch. I have my DockStar boots off of an external USB partition installed with my own built OpenWRT Development firmware with the patch. The LED works as expected from the 1st boot. It blinks when there is an activity on netdev.

Mazi

Re: HOWTO: install OpenWrt on Seagate Dockstar

Certainly, Mazilo, the issue may be that after, users can't install the kmod*.opk because the kernel won't be the same one. As ECC said before : "jow confirmed that "custom kernel implies custom modules""
https://forum.openwrt.org/viewtopic.php?pid=113935#p113935

May be it's possible to keep the custom kernel compatible with as little modification as possible : just change the green GPIO number and don't had the orange one ?

Re: HOWTO: install OpenWrt on Seagate Dockstar

Interesting about the opkg, I built my own kernel and installed FreeSWITCH using opkg. Ran fine. There really isn't much customizing going on for the build. MTD and Leds changes won't affect opkg?

Still hacking at making Dockstar a Profile. The Menuconfig stuff is obtuse to say it politely. :-) Making progress though, should have a patch next week for all to ponder and try out.
Working on
1. changing the name of the squashfs and uImage files (replace kirkwood with dockstar and indicate 128k aligned)
2. add patches for leds and mtd into linux/kirkwood
3. custom config/system file for the leds (they don't work out of the box with just the kernel driver change akaik)
4. tinker with default modules a bit (keep it bare)

Once I start using the Dockstar as my phone switch the kernel build experimenting days are over.

Gerrit

Re: HOWTO: install OpenWrt on Seagate Dockstar

z80yyz wrote:

3. custom config/system file for the leds (they don't work out of the box with just the kernel driver change akaik)

I followed ECC's suggestion as shown here and the LED on my DockStar works out of the box. ALl I did was to create a local files/etc/config/system file on my local OpenWRT root to include such information.

Mazi