Re: zaurus-debian questions
Klaus Weidner <[email protected]>
| Newsgroups | gmane.linux.debian.devel.3com-pilot |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 17, 2003 at 09:45:01PM -0500, [email protected] wrote: > I've been using the latest zaurus-debian and wondered if anybody else had > tried to use keypebble to view the Xvnc session. All I get is a black > screen that draws garbage where the text should be when I try "ls" in an > open window. I haven't been able to find any relevant settings in > keypebble. Keypebble is IMHO too slow and rather broken... By the way, I've hacked the xf4vnc server and fbvnc client to use a shared memory region for the pixmap, this completely avoids the need to push pixels through the TCP socket, and makes it as fast as a local (unaccelerated) X server. I have zero time to work on it, but I can post the patches here if anyone is interested. > Second, is there any reason to use chroot instead of pivot_root? I would > like to be able to get to the qpe files under debian but I wasn't sure if > there was some major issue with pivot_root that I was not aware. chroot was just easier to set up - you have to be a bit careful with handling the sdmmc module needed to talk to then new root drive. I am running a pivot_root setup on my C750, the files I used are in http://pocketworkstation.org/files/c700-kernel/romupdate-native-debian-2003-03-20.zip The init script (called instead of /sbin/init from the kernel) is appended. It took me some head scratching to figure out how to do a read with timeout in plain /bin/sh :-) > Third, I think I'm missing something obvious with the wireless networking. > I am fine using my Zonet card under qpe and it shows up under "cardctl > status" in debian but I can't convince it to take an IP. > # ifconfig 192.168.0.103 > 192.168.0.103: error fetching interface information: Device not found > # Wireless configuration is a bit of a mess, with the incompatible wlan and wlanng drivers and tools. I don't understand it myself so I can't help you there :-( -Klaus
debian-init.sh
(application/x-sh, 1.4 KB)
#!/bin/sh
#set -x
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
read_timeout () {
sh -c '( sleep "'$1'" && kill $$ ) >/dev/null & read i; kill $!; echo "$i"' 2>/dev/null
}
echo
echo "*** Pocket Workstation boot loader ***"
echo
echo -n "Boot (d)ebian, (s)hell or (q)topia environment? [d] "
r=`read_timeout 10`
if [ ."$r" = ."q" ]; then
# run qtopia via native init
exec /sbin/init
fi
if [ ."$r" = ."s" ]; then
# run a shell only
exec /bin/bash
exec /bin/sh
fi
# ok, let's continue with the Debian system
panic () {
echo "*** Oops, something went wrong! Launching a shell." >&2
echo "*** Run "exec /sbin/init" to launch the Qtopia environment." >&2
exec /bin/bash
exec /bin/sh
exit 1
}
insmod /lib/modules.rom/`uname -r`/kernel/drivers/block/sharp_mmcsd_m.o || panic
# update /proc/deviceinfo/* information
mount /proc /proc -t proc
/sbin/writerominfo
[ ! -e /dev/mmcda ] && mknod /dev/mmcda b 60 0
[ ! -e /dev/mmcda1 ] && mknod /dev/mmcda1 b 60 1
[ ! -e /dev/mmcda2 ] && mknod /dev/mmcda2 b 60 2
e2fsck -y /dev/mmcda1
mount /dev/mmcda1 /usr/mnt.rom/card -t ext2 -o ro || panic
MNTP=/usr/mnt.rom/card
PATH=$PATH:/sbin:$MNTP/bin:$MNTP/usr/bin:$MNTP/sbin:$MNTP/usr/sbin
cd $MNTP || panic
[ ! -d mnt/rom ] && {
mount /dev/mmcda1 $MNTP -n -o rw,remount
mkdir mnt/rom
mount /dev/mmcda1 $MNTP -n -o ro,remount
}
pivot_root . mnt/rom || panic
#exec chroot . sbin/init "$@" <dev/tty >dev/tty 2>&1
exec chroot . sbin/init "$@" || panic