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

Eric Wanchic ewanchic at qwest.net
Thu Oct 21 07:58:30 CDT 2004


FYI: Ah! Sorry. I made a mistake last night. This list was only for
/bin/ldd, not from my source code. I was just copying text last night and
re-editing it to fit, but I forgot to reedit a line or too. Here are the two
bashes again. Sorry for the confusion.

>> I did an Bash# ldd /bin/bash. This is what it looked like:
>>
>>    bash# ldd /bin/bash
>>      linux-gate.so.1 => (0xffffe000)
>>      libreadline.so.4 => /lib/libreadline.so.4 (0x40034000)
>>      libhistory.so.4 => /lib/libhistory.so.4 (0x40060000)
>>      libncurses.so.5 => /lib/libncurses.so.5 (0x40067000)
>>      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)
>>

 Here is my seperate source code version:

    bash# ldd /home/ewanchic/Bash/bash-3.0/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)


> Sorry, I missed the part about the ramdisk proplem earlier.  Try using
> these instructions to create the image.

> bash# cd /
> bash# dd if=/dev/zero of=/dev/ram7 bs=1k count=4096
> bash# mke2fs -m0 /dev/ram7 4096
> bash# mount /dev/ram7 /mnt
> bash# cp -dpR ~/staging/* /mnt
> bash# umount /dev/ram7
> bash# dd if=/dev/ram7 of=~/phaseX-image bs=1k count=4096
> bash# gzip -9 ~/phaseX-image

> The difference is the 'mke2fs -m0 /dev/ram7 4096' command has a 4096 at
> the end which tells mke2fs to stop after 4096 Kbytes and the 'dd
> if=/dev/ram7 of=~/phaseX-image bs=1k count=4096' has been changed to
> tell dd to stop after 4096 Kbytes using count=4096.  These are the new
> instructions for the guide version 3.0 preview.


Oh, ok. That might make a difference. I'm defintely going to try that first.
I'm glad we getting all of this hammered away. :)

> If you get tired of trying to figure it out and just want a binary of
> BASH you are more than welcome to download precompiled stuff from the
> Architect project.  Go to
> http://www.happy-monkey.net/architect/bin-pkgs/ and get
> bash-mini-2.05a.i386.tar.gz.  It is compiled with the same options as
> Pocket Linux.

Thanks. I'll keep that in mind. I think if some of the other stuff still
doesn't work, then I'm going to bug the people over at bash. I should really
do that anyway just to get to the bottom of that phantom file
linux-gate.so.1. Thanks for all of your help. I'll keep you posted.

Eric


_______________________________________________
Pocket-Linux mailing list
Pocket-Linux at ufo.chicago.il.us
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux




More information about the Pocket-Linux mailing list