[pocket-linux] Problem Chapter 3: RAMDISK: incomplete write (-28 != 32768) 4194304

David Horton dhorton at speakeasy.net
Wed Oct 20 14:20:35 CDT 2004


> -----Original Message-----
> From: Eric Wanchic [mailto:ewanchic at qwest.net]
> Sent: Wednesday, October 20, 2004 05:32 PM
> To: ''Pocket-Linux''
> Subject: [pocket-linux] Problem Chapter 3: RAMDISK: incomplete write (-28 !=	32768) 4194304
> 
> :( I'm sorry, the previous thread is not the right error message. Maybe
> someone can delete it or replace it with this. I'm reduing this for the sake
> of others that are searching the web for this problem.
> 
> Here are my Errors after I completed Chapter 3, and booted with the new root
> disk.
> 
> RAMDISK: Compressed image found at block 0
> RAMDISK: incomplete write (-28 != 32768) 4194304
> VFS: insert root floppy and press ENTER
> 
> Here's the Run down:
> 
> Software:
>  - Distribution = Suse 9.1
>  - Bash = 3.0
> 
> Chapter Modifications:
> 3.3.2 -
>   ...
>   bash# ./configure --enable-minimal-config --build=i386-pc-linux-gnu
>   ...
> 
> 3.3.3 -
>   bash# ldd bash
>     linux-gate.so.1 => (0xffffe000)
>     libdl.so.2 => /lib/libdl.so.2 (0x40034000)
>     libc.so.6 => /lib/tls/libc.so.6 (0x40037000)
>     /lib/ld-linux.so.2 => /lib/ld-linux/so/2 (0x40000000)
> 

linux-gate.so.1 is something that might be giving you problems.  I have not encountered this library requirement when building BASH from source.  Is it possible that you copied the /bin/bash that came with your distro rather than the one you compiled?  I think somebody else did this once and it caused a similar problem.

> 3.3.4 -
>   ...
>   mkdir /mnt/lib/tls
>   bash# strip --strip-unneeded -o /mnt/lib/libdl.so.2 /lib/libdl.so.2
> 
>   bash# strip --strip-unneeded -o /mnt/lib/dl-linux.so.2 /lib/dl-linux.so.2
>   bash# strip --strip-unneeded -o /mnt/lib/tls/libc.so.6 /lib/tls/libc.so.6
>   bash# chmod +x /mnt/lib/*
> 
>   bash# chmod +x /mnt/lib/tls/*
> 
> 

Try putting all the libraries in /mnt/lib and don't create /mnt/lib/tls.  The dynamic linker, ld-linux, always checks /lib and /usr/lib directories by default.

> ------------------------
> 
> I created a new floppy, formatted it, and coppied the image again, no go. I
> looked at the draft for v.3.0 and entered the grub prompt manually. Still no
> go.
> 
> Google searching doesn't bring much that I can work with here. Any
> suggestions on what to do next? Thanks
> 
> Eric
> 

I think once you fix the library problems it should work fine.

Good Luck,
Dave







More information about the Pocket-Linux mailing list