Reply
Thread Tools
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#31
Originally Posted by sarathmenon View Post
What was the size of your initfs partition? Mine is 4M, and the generated initfs file is close to 6M and won't fit in. I had to unselect telnet and ssh while creating the initfs file.
for me df prints 2848 blocks used, 1248 available, 4096 total for /mnt/initfs mount point. This is on plain N810 with bootmenu installed and maybe with some extra files in initfs. Removing ssh+telnet shouldn't make 6 MB to fit into 4MB, they are both quite small. What is size of created jffs2 image with and without selecting dropbear and/or telnet? You can run initfs_flasher more times without flashing anything and see initfs.bootmenu.jffs2 size. You can also let the flasher wait asking you for bootmenu.conf (if found) and examine initfs_flasher/initfs/ directory in another shell window.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2009-01-14 at 08:02.
 
Posts: 23 | Thanked: 2 times | Joined on Oct 2008
#32
Originally Posted by fanoush View Post
for me df prints 2848 blocks used, 1248 available, 4096 total for /mnt/initfs mount point. This is on plain N810 with bootmenu installed and maybe with some extra files in initfs. Removing ssh+telnet shouldn't make 6 MB to fit into 4MB, they are both quite small. What is size of created jffs2 image with and without selecting dropbear and/or telnet? You can run initfs_flasher more times without flashing anything and see initfs.bootmenu.jffs2 size. You can also let the flasher wait asking you for bootmenu.conf (if found) and examine initfs_flasher/initfs/ directory in another shell window.
Thanks. My initfs partition's size is 4 Mb. The size of the image when I had enabled utelnetd and dropbear was 6.4M. Ijust redid the whole thing and it now ended up at 3.4M. Dunno where the extra 3M came from. I had ^Ced the script the first time, so maybe it was appending to a temp file that was previously created. Thanks guys for helping me out.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#33
Originally Posted by sarathmenon View Post
I had ^Ced the script the first time, so maybe it was appending to a temp file that was previously created.
Not sure about temp file appending but yes it may be related to ^Cing it. 3.4M still sounds too big but maybe plain N810 has some wimax stuff stripped out.

BTW, would you care to figure out which missing part breaks it when removing extra stuff? There is to_remove.lst file and it goes over it and 'rm -rf' 's it. My tip is library in /usr/local/lib. The line that fails is "iwtool radio on" in linuxrc. You could remount initfs rw, chroot to it and try to remove stuff in steps and try to run iwtool after each one.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2009-01-14 at 10:35.
 
Posts: 23 | Thanked: 2 times | Joined on Oct 2008
#34
@fanoush: I'll give it a try and see where the initfs breaks.
 
Posts: 23 | Thanked: 2 times | Joined on Oct 2008
#35
to_remove.lst had ./usr/local/lib, which was deleting these files:

./usr/local/lib/libiw.so.29
./usr/local/lib/libiw.so

I removed that line, and rewrote initfs this time selecting the option of remove unneeded extra and factory testing stuff, and the device came back up fine after the reboot.

Last edited by sarathmenon; 2009-01-14 at 10:28.
 

The Following User Says Thank You to sarathmenon For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#36
I see, thanks. Looks like N810 wimax initfs has indeed some extra stuff, I cannot find even iwtool command in my initfs (maybe it is in /usr/local/bin?, there is no such directory in N810 version) and the wimax firmware blob is mising too (if there is any). That explains your 3.4MB size. Ok I'll remove lines
./usr/local/lib
./usr/local
That should keep testserver removed but other stuff in /usr/local intact.

BTW, it would be easier if they would distribute same initfs for both devices :-) Anyone wants to PM me his N810 wimax edition WLAN MAC ID (with last two digits zeroed if you wish)?
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2009-01-14 at 11:02.
 
Posts: 23 | Thanked: 2 times | Joined on Oct 2008
#37
Thanks. BTW, if you need a tarball of the initfs image, I can mail that to you. iwtool is on initfs' /usr/bin on my tablet.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#38
Originally Posted by sarathmenon View Post
iwtool is on initfs' /usr/bin on my tablet.
It is not there for me. Anyway, got it now and indeed it is dynamicaly linked to libiw.so.29. Mystery solved.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#39
If you look at the "to_remove.lst" list, you can go in and manually remove individual sections to make room. "du -sx *" will show how big each subdirectory is in total (all the files in all directories below are in the total).

(Actually this file or the flasher scipt is inefficient or the source of the problem - the script is doing "rm -rf" on each line of the above file which means recursively remove files and directories, but the list has both files, then the containing directories, e.g. /usr/local/lib/testserver/... but also removes /usr/local completely too)

To remove things manually:

mount /mnt/initfs -o remount,rw
cd /mnt/initfs/
rm -r usr/share/man usr/local/lib/testserver usr/lib/libtestserver*
...
etc.

Then sync, or
mount /mnt/initfs -o remount,ro

df should show the results.
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#40
http://www.internettablettalk.com/fo...ax+mac+address

While you are updating, I know how to add the console (font, bitblt, etc. modules) on the alternate vt, but it would be a lot more convenient if I could get those modules loaded and whatever enabled as part of this install script.

(And I'm trying to get the wlan (wifi) modules to load before wimax - wifiinfo gets confused if the wimax is at the top in /proc/net/wireless).
 

The Following User Says Thank You to tz1 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 12:09.