Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - markj541

Pages: [1]
1
Angstrom & OpenZaurus / Mounting Cf Storage Card
« on: August 28, 2005, 02:55:58 pm »
Quote
Quote
Quote
What am I doing wrong?  It's a FAT16 formatted card (I tried reformatting it as FAT32 with the same results)

[div align=\"right\"][a href=\"index.php?act=findpost&pid=84224\"][{POST_SNAPBACK}][/a][/div]

I figured it out (sort of).

If I hand mount it using
mount -t vfat /dev/hda /mnt/cf
it seems to work. I can't seem to get it to work by editing anything in ftab and auto mounting when I insert the card.  This is good enough for now, but if anyone has any suggestions on getting it to automount, I am hear to listen.

Thanks in advance!
-John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84514\"][{POST_SNAPBACK}][/a][/div]

i have the same exact problem
i have oz 3.5.3 on a sl5500 and using a 1gb kingston card
only difference is i formatted as ext2

but it doesnt automount, and if i just try
mount /media/cf
i get the same Invalid Argument error.
i can do
mount /dev/hda1 /media/cf
and it works, but its a bit of a pain, because it gets unmounted on every suspend (dont get me started on the suspend/hang bug)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85679\"][{POST_SNAPBACK}][/a][/div]

I think the answer is in the file "/etc/pcmcia/ide_automount". If you have a version of "tail" (located in /usr/bin) instead of using the one built-in busybox, then I may have the answer. I found that the version in busybox supports the syntax "tail -2", where it means output the last 2 lines. A different version of tail (which I think is part of coreutils), only supports a syntax such as "tail -n 2". In the ide_automount file, there is a line where it is trying to get the partition from dmesg. The line looks like this:
 PARTS="`dmesg | tail -2 | grep $DEVICE | grep -v ide-cs | tail -1 | sed s/^.*\:\ //`"
I made a backup of this file, then changed it to look like this:
 PARTS="`dmesg | tail -n 2 | grep $DEVICE | grep -v ide-cs | tail -n 1 | sed s/^.*\:\ //`"
Once I did, the CF card would automount correctly. When it works correctly, the command will set the variable PARTS with the partition value for the CF card, such as "hda1".

I'm not sure which package installs the "/etc/pcmcia/ide_automount" file, but it should probably use the "tail -n 2" type format, since that seems to work for all versions of tail.

Let me know if that solves your problem.
Mark

2
Angstrom & OpenZaurus / "bootmanger" For Zaurus
« on: August 07, 2005, 09:28:30 am »
I've got altboot running OK, and here's how I went about creating my own "XXX-rootfs.bin" file.

# On my Zaurus 5500 (collie)
# 1. Did a fresh install of OZ 3.5.3 (zImage and initrd.bin) using 64-0 kernel and opie rootfs.
#     (used regular install instructions for OZ 3.5.3)
# 2. Followed instructions to upgrade kernel to r21
#     (see http://openzaurus.org/wordpress/2005/07/27...nel-on-collie/)
# 3. Inserted SD card (formatted as VFAT, could also be formatted as ext2)
# 4. created the boot-images directory
mkdir -p /media/card/boot-images
# 5. Copied altboot ipkg from hentges.net into the Zaurus and installed it
#     (I've got a collie, make sure you use the one for your machine)
wget http://hentges.net/tmp/altboot/altboot_200...8-r1_collie.ipk
ipkg install altboot_20050618-r1_collie.ipk

# At this point, I have a plain OZ 3.5.3 install, with altboot. I now tried to create
# a rootfs.bin file on my SD card.
# 6. created file about 250MB (you can make it much smaller, every 100000
#     works out to about 50MB).
dd if=/dev/zero of=/media/card/boot-images/001-rootfs.bin count=500000
# 7. make ext2 filesystem in that file
mkfs.ext2 /media/card/boot-images/001-rootfs.bin
# 8. mount the file (if /mnt/temp if it doesn't exist, run "mkdir -p /mnt/temp")
losetup /dev/loop1 /media/card/boot-images/001-rootfs.bin
mount /dev/loop1 /mnt/temp
cd /mnt/temp
# 9. copy the current root into my loop mounted filesystem
export dirname="bin boot dev etc home lib opt proc sbin sys usr var"
for dn in $(echo $dirname);do tar cf - /$dn | tar xvf - -C /mnt/temp;done
# 10. create other directories and links
mkdir -p media/card
mkdir -p media/card1
mkdir -p media/card2
mkdir -p media/card3
mkdir -p media/cf
mkdir -p media/hdd
mkdir -p media/image
mkdir -p media/net
mkdir -p media/ram
mkdir -p media/realroot
mkdir -p media/union
mkdir -p mnt/temp
ln -s /var/tmp tmp
cd /mnt/temp/mnt
ln -s /media/card card
ln -s /media/cf cf
ln -s /media/net net
ln -s /media/ram ram
# 11. I also went into /var and removed some temporary files (i.e. "*.pid" files in /var/run, files in /var/lock/subsys).
# 12. unmount and disconnect the the copied root filesystem
cd
umount /mnt/temp
losetup -d /dev/loop1

# Now I was ready to reboot and try to use the new filesystem on the SD card.

At the altboot message I hit a key to launch altboot
I then chose option 4, boot from SD and got these messages:

mount: /proc/mounts: No such file or directory
Mounting rootfs rw...ok
Generating device files...ok
Loading SD kernel module...ok
Mounting /media/card...ok

Note: No INIT [/sbin/init.sysvinit] found on target

At this point, since I had "001-rootfs.bin" and "002-rootfs.bin" (which was the one CoreDump supplied), I chose my new one.  Success!

Does anyone have a better way to do this? I'm interested in making more, but I'd like to hear about more efficient ways to make the "xxx-rootfs.bin" files.

Thanks,
Mark

P.S. There is one thing I've noticed, I always seem to do a fsck during a reboot after running from the SD image file. This seems wrong. I've tried using several different ways to shutdown the system, such as:
1. Shutdown (from utility tab)
2. Shutting down Opie, logging into a vt term as root, issuing "shutdown -r now"
What could be causing the unclean mount of the SD image, and any ideas on how can I try to troubleshoot it?

Thanks

3
Angstrom & OpenZaurus / Using Altboot With Fat Sd Card
« on: August 02, 2005, 11:44:51 am »
I'm getting ready to try either OZ 3.5.3 or the Hentges ROM. I'm interested in using the altboot option, but I've got a question.

Can I use an SD card formatted as FAT? My plan would be to have a couple of 250MB ext2 formatted image files (e.g. main-rootfs.bin, test-rootfs.bin) on the card (a 1GB card currently formatted as FAT).

If I can keep the card formatted as FAT, I could still load it into my camera (for overflow storage) when I fill up the 1GB card normally reserved for the camera.

Thanks,
Mark

4
Angstrom & OpenZaurus / Opie-nethack Not Working!
« on: January 04, 2005, 05:14:23 pm »
I'm running Nethack on OpenZaurus, and after some fiddling, got the "save" option working. I'm still running OZ3.2, but this should work on any version.

The problem is that there's no save directory, hence, no place for the program to save. So, you'll need to add one. In my setup, I've installed Nethack to the SD card, so I did this:

# cd /mnt/card/opt/Qtopia/games/lib/nethackdir
# mkdir save
# cd /opt/Qtopia/games/lib/nethackdir
# ln -s /mnt/card/opt/Qtopia/games/lib/nethackdir/save save

I did it this way so that the save files are on the SD card, otherwise you might fill up the root partition with save files.

----
Mark

5
Angstrom & OpenZaurus / POLL: How stable is your Open Zaurus
« on: August 17, 2004, 05:46:01 pm »
SL-5500 running OZ 3.2
512MB Kingston CF
256MB Kingston SD
Pretec CompactLAN

Never seems to lock up under normal use. I've had problems in the past with a few 3rd party applications, but I've removed those. I do run these apps, along with the most of the Opie (v.93) apps:

Hancom (Presenter, Sheet & Word)
JustReader
Opera
Konsole
Konqueror
RoadMap
FBVNCserver
ZSafe

Pages: [1]