|
Post by omega on Jan 24, 2007 2:04:15 GMT 7
Hi everybody, I've ported almost all of my modules to firmware version 1.00.06.5. Starting with this version, there is almost the same module framework available as with the N2100 device. I've updated the Thecus Wiki site to hold the new versions. Please don't mix old and new version. The old versions of my modules must not be used on firmware >= 1.00.06.5. The new version now support backup and restore of the module configuration to persistent storage (so it is not lost when a module gets uninstalled and is restored automatically a module is restored again) and upload and download of the configuration data is also possible. These are the modules which are available here: onbeat.dk/thecus/index.php/N5200_Module_List- INFO: Show device information
- IMGDUP: Duplicates the /img directory tree for write access
- META: Run startup and shutdown scripts
- NFSEXPORT: Export all internal filesystems for NFS
- RSYNC: Add rsync and rsync daemon support
- SERGETTY: Enable login on the serial interface
- SHUTDOWN: Shutdown or reboot when logging in as user shutdown or reboot
- SSHD: Add SSH daemon support
- SYSUSER: Add a system user with same privileges as root
Please report if there are any problems or if everything is working. Until now almost nobody was reporting success/failure and it seems nobody is using the modules. Have fun, Andreas
|
|
jamis
Full Member
Posts: 109
|
Post by jamis on Jan 24, 2007 2:32:52 GMT 7
I'm guessing the Wiki site hosts your patches now? Just wondering why I hadn't been getting emails from you lately.
|
|
|
Post by gideon007 on Jan 24, 2007 2:57:20 GMT 7
I haven'T had time to test your module framework on the .05 Firmware and right after that the 0.6.5 came out, so I wanted to wait for these new ones. I'll get back to trying the one I'm interested in tomorrow. I do think people are using your modules but are too lazy to report back. From my side all your work on that IS very much appreciated. Thanks!
|
|
|
Post by kniteowl on Jan 25, 2007 14:25:23 GMT 7
Anyone got the modules to install? I upgraded to 1.00.06.5 and everything looks fine. Went to the Module Mgmt and select the new modules (xxxxx.mod), click on the install and I get a blank screen. Waited and waited and nothing happened. Clicked the back arrow and it showed nothing. Tried again, got the same thing, tried rebooting to see if that was needed but nothing also. Should I see something after I click the install? Is there something that I need to do to allow it to install the modules??? This is happening with all modules. Teng
|
|
|
Post by peterfu on Jan 25, 2007 16:05:28 GMT 7
No success, too. Blank screen, nothing happened br Peter
|
|
|
Post by omega on Jan 25, 2007 16:22:54 GMT 7
kniteowl, peterfu, I've no idea what's happening on your devices. I've installed the module over and over again and have never seen these effects. Has anybody else tried to install my modules on 1.00.06.5? Any other expriences? I'll try to find a solution.... Andreas
|
|
|
Post by peterfu on Jan 25, 2007 17:16:02 GMT 7
Perhaps You can tell us what should happen and how we can support You to finding out whats going wrong.
Update: After pressing Install I get following link in my broswer: http://<IP of the N5200>/adm/module.html
The same page I get if i press install without choosing any modul file
br Peter
|
|
|
Post by Arctra on Jan 25, 2007 19:18:06 GMT 7
I haven'T had time to test your module framework on the .05 Firmware and right after that the 0.6.5 came out, so I wanted to wait for these new ones. I've installed and used a few of the modules on my .05 firmware and really appreciate them. Thank you very much for your work on these tho Omega!!!
|
|
|
Post by omega on Jan 25, 2007 20:44:27 GMT 7
peterfuI've checked the source and I've found a possible reason why it is not working: Whenever you start the installation of a module, the POST action is to call module.html (therefore the address 1.2.3.4/adm/module.html you're seeing). This page actually does the module install. The first if statement checks if the sqlite database file "/raid/data/module/cfg/module.db" is available. If this is not the case, you'll see an empty page. The next if statements check the value of $_POST['action'] which should have been set from module.htm and specifies what action should be taken (install, uninstall, enable or update). If this variable is empty or has a unknown value, you'll see an empty page. These are the only two reasons I can find how you can get an empty page like you do. The first reason doesn't apply because the module database is created (if it doesn't already exist) by the script /img/bin/rc/rc.module (if the module feature is enabled in the file /app/bin/sysconf.txt - this should be the case because this file is part of a read-only filesystem image). The seconds reason also cannot apply, because I don't see any chance to post the form and open module.html without setting $_POST['action']. So there must be another reason which I don't see for the moment. And it must be something special for both of you, because for me and Arctra it does work. Maybe you should try to install the firmware 1.00.06.5 again. Maybe someone from Thecus is reading this and can give an answer...!? Andreas
|
|
|
Post by peterfu on Jan 25, 2007 21:48:26 GMT 7
Thanks for the source check.
I've looked to the content of the module.html page and the page is simply empty. However, if i change it to module.htm then it has a content (still not working but you see something on the screen). I've also disabled XP SP2 firewall and my virus scanners - behaviour is with IE 6.0.2900 and firefox 1.5.0.9.
I have decided to start from scratch, so I removed all my users, groups, shares and Raids (no big deal, cause there are no data on it). Reinstalled FW 1.00.06.5 and created a Raid1 of 2 disks. At the moment I'm waiting for the Raid to finish to proceed afterwards.
br Peter
|
|
|
Post by peterfu on Jan 26, 2007 5:15:01 GMT 7
Finally it works ;D
As I have written before I rebuild everything, but recognized afterwards that it was still not possible and that also some directories were missing - nsync, usbhdd, usbcopy and i was also not able to log in via ftp (the problem was described in a threat here).
So i decided to hot remove the 2 active drives, cause I was assuming that then the N5200 will rebuild everthing after adding them aggain.
And Yes, exactly this happens - everything was build fine and now I was able to install the modules (at the moment sysuser and ssh).
I assume that the /raid/data/module was not created at the first firmware upgrade to 1.00.06.5 and because of that the installations failed. That corresponds to omega's source code check - nevertheless the question is why the folder was not created.
br Peter
|
|
|
Post by omega on Jan 26, 2007 5:34:09 GMT 7
Hi Peter, happy that it works now... Would be happy to get feedback who is using what and if it is working or if there are any problems or possible improvements..... not only from you... Andreas
|
|
|
Post by kniteowl on Jan 26, 2007 13:52:14 GMT 7
Thanks Peterfu, I think you found the problem that I have also. I think I know what the problem is now, I just have to find a way to fix it. When I had 1.00.05 running on the system, I had the old modules installed. This caused the modules folder to be created in /raid/data already. I think that this is causing a conflict.
I'm not in the mood for a 10 hour rebuild, so I will need to find a different way to fix this at the current time. If things don't work and there is no other way, I will rebuild the raid this weekend.
Teng
|
|
|
Post by omega on Jan 26, 2007 16:11:47 GMT 7
kniteowlI don't think that peterfu is having the same problem as he reports that several other directories are missing in /raid/data too. BUT: you're having the right idea Every time the system is booted, the script /img/bin/rc/rc.module is executed. This script checks if the directory /raid/data/module is available and if not it creates the directories /raid/data/module, /raid/data/module/cfg and /raid/data/module/lib. But if the directory /raid/data/module exists, the other two directories aren't checked and created! Unfortunately! In the next step the script checks if the sqlite database /raid/data/module/cfg/module.db exists and if not it creates an empty database. There are three conclusions now: - Everybody who want to update from 1.00.05 to 1.00.06.5 need to rename/remove the directory /raid/data/module. I suggest to rename the directory (e.g. with this command: "mv /raid/data/module /raid/data/module.save"). You can delete the saved directory later, but you might want to copy some config files (e.g. for SSH, RSYNC) to the new modules first.
- If you already upgraded to 1.00.06.5 without renaming /raid/data/module first and you had installed the NFSEXPORT module, the NFS export list is still having the extra exports. Then you can mount /raid/data via NFS and do the rename of the module directory. After that reboot the N5200 and the module handling should work now.
- If you already upgraded to 1.00.06.5 without renaming /raid/data/module first and step 2 is not applicable, then please tell me and I'll create a pseudo-patch which will rename the old /raid/data/module directory to another name.
I'll update the Wiki to warn about this issue. I'm sorry that I didn't recognized this situation in advance. Andreas
|
|
|
Post by peterfu on Jan 26, 2007 16:50:41 GMT 7
omega: you can't check everything and you make a terrific work on the modules - Thanks a lot !!! Think I had initially the same problem as kniteowl (had installed the 05 patches too), but played around too much and destroyed then other things - thats the advantage if you have a brand new box - you can't destroy data. Additional question : I don't see any preference pages of the installed modules - I assume You should see them by clicking on the module name in the module list - I see a blank page with the text "no name given". br Peter
|
|