OESF Portables Forum
General Forums => General Discussion => Topic started by: projekt on August 30, 2004, 11:36:38 pm
-
Hi, I'm a musician who wants to learn c++ just as a side hobby. I am new to linux and don't know a whole lot. I am not illeterate when it comes to computers however. anyways, I want to get the devimg working. i have a 5500sl w/a 256 sandisk SD card. I have the image and the script on /mnt/card and also created /mnt/dev for my final destination. Here is what I typed....
# image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
Setting mount point /mnt/dev...
Mounting image /mnt/card/dev_img-1.5...
Can't find /home/system/var/mnt/dev in /etc/fstab
Failed to mount image /mnt/card/dev_img-1.5 on /mnt/dev
I also nano'd fstab and this is whats inside, don't really know what any of it means...
/dev/mtdblock0 / cramfs ro 1 1
/dev/ram1 /dev minix defaults 1 2
/dev/mtdblock1 /home ext2 defaults 1 2
/dev/hda1 /mnt/cf auto noauto,owner 0 0
/dev/mmcda1 /mnt/card auto noauto,owner 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/mnt/card/dev_img-1.5 /mnt/dev/ cramfs loop,noauto 0 0
I can see that on the last line is where the script added what I typed. I am really confused here. I am a linux noob and a programming noob so this is just way over my head. I have however searched the forums and google quite extensively so I come to you defeated, not just looking for a quick ansewr. Thank you for your help.
James
-
You do not have to mount the image file to /mnt/dev. You can mount it to /home/zaurus/develop. I mentioned in one of my postings how I got it to work manually:
https://www.oesf.org/forums/inde...l=develop&st=30 (https://www.oesf.org/forums/index.php?showtopic=2285&hl=develop&st=30)
-
Devimg installed, but from what I know you just g++ x.cpp and it should work, right?
# PATH="$PATH:/home/zaurus/develop/bin/"
# $PATH
bash: /root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/home/QtPalmtop/bin:/home/zaurus/develop/bin/: No such file or directory
# mount /home/zaurus/develop/
mount: Could not find a spare loop device
# mknod /dev/loop2 b 7 2
# mount /home/zaurus/develop/
# compiler_setup.sh
Linking...
Setting up /usr/bin...
Setting up /usr/local/bin...
Setting up flex...
Setting up /usr/local/lib...
Setting up flex...
mkdir: Cannot create directory `/home/zaurus/automake': File exists
mkdir: Cannot create directory `/home/zaurus/autoconf': File exists
mkdir: Cannot create directory `/home/zaurus/libtool': File exists
Setting up perl...
mkdir: Cannot create directory `/mnt/pkgs': File exists
mkdir: Cannot create directory `/mnt/pkgs/perl': File exists
mkdir: Cannot create directory `/mnt/pkgs/perl/perl5.8.0': File exists
Setting up libraries...
You are now set up for dev using /home/zaurus/develop
# g++
gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2': Exec format error
Also, how can I see what loop devices are currently active? I noticed that after I ran this script, I came back and tried to go onto my SD card and I didn't see any files or folders anywhere under mnt! I need help here, this is driving me bonkers!
-
I've never received those error messages. The "File exists" errors seem to indicate that you ran the compiler_setup.sh script more than once. Did you execute the "su root" command to become the root user prior to executing the compiler_setup.sh script?
You can type the
mount
command by itself to see what devices are currently mounted.
Are you able to type the command:
cd /home/zaurus/develop
ls
and get a list of directories?
What happens when you run:
md5sum /home/zaurus/develop/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2
Is the result different from when you run:
md5sum /usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2
The md5 checksum that I get is 5c268f025b1861b850cdcbc1e7eb9098.
-
I learned today that a program called autoconf is hard-coded to look in "/mnt/dev/bin" for a file that is in "/home/zaurus/develop/bin". That means that you have to do something like:
su root
cd /mnt
ln -s /home/zaurus/develop dev
exit
to link /mnt/dev to /home/zaurus/develop.