![]() |
Zaurus SL-C1000 > Zaurus distributions (Debian) >
was dinorex.mocasting.com (Chinese)
Dinorex’s Debian Zaurus distribution.
- Abandoned — “Due to speed issues, especially when compared to pdaXrom‘s excellent work, this project has been concluded and will not be worked on in the future.”
- An edit of the existing instructions.
-
Completely untested.
-
forum thread (this post) [ 1 ] was www.oesf.org/forums/index.php?showtopic=20058 (not archived)
- https://web.archive.org/web/20130325122146/http://dinorex.mocasting.com/p/53648
- 1 Description
- 2 Issues
- 3 Screenshots
- 4 Debian/PocketWorkstation dual-booting with Qt
- 4.1 Optional
- 4.2 Preparation
- 4.3 Build
debian.fs - 4.4 Build swap file
- 4.5 Modify
fstab - 4.6 Prepare
debroot - 4.7
postinst.sh - 4.8 edit
Fbvnc - 4.9 edit
debroot.conf - 4.10 Delete the zdebian symbolic link
- 4.11 edit zdebian
- 4.12 create
sw-deb.shandsw-qt.sh - 4.13 create
launch.default - 4.14 create
startd - 4.15 edit
rc.rofilesys
- 5 Usage / Notes
Description ∞
Booting straight into Debian with the Sharp Zaurus SL-series.
The developer is using a stock Sharp ROM.
TODO – Test it with Cacko.
Issues ∞
-
Building the keymap to SL-C3100 under the Debian environment.
- This means that it doesn’t have the keymap which has the mapping of the ‘/’ command.
Screenshots ∞
was www.users.on.net/~hluc/myZaurus/screenshots/sc-debian.jpg
https://www.oesf.org/forum/index.php?topic=20058.msg131984#msg131984 [ 3 ] was www.oesf.org/forums/index.php?showtopic=20058&view=findpost&p=131984 (not archived)
Very similar to Meanie’s capture screen in X/Qt but with CPU Utilization only 20-30%, with a dark-green background, and some small battery signals/keyboard signs in the right-top corner on the following screen …
was img137.imageshack.us/img137/5079/debian9ta.jpg (not archived)
https://www.oesf.org/forum/index.php?topic=20058.msg132001#msg132001 [ 4 ] was www.oesf.org/forums/index.php?showtopic=20058&view=findpost&p=132001 (not archived)
Using UltraVNC as the capturing tool, i just managed to capture the VNC screen… but the actual screen’s battery meter & keyboard icons are not present in this screen…
plz also note that the CPU utilization is greatly reduced in the right bottom corner…
Debian/PocketWorkstation dual-booting with Qt ∞
How to dual-boot Debian / PocketWorkstation with Qtopia in the Sharp Zaurus SL-series.
Optional ∞
Telnet is optional.
Optional equipment:
- A CompactFlash (CF) LAN / WiFi card, to Telnet into the Zaurus inside if issues occur
-
A large-capacity SecureDigital (SD) card, if your Zaurus does not have a large internal storage capacity.
- The Zaurus SL-C3000 and higher have a local MicroDrive which is large enough.
Preparation ∞
- Download zaurus-debian-big-v0.18.tgz
-
If your Zaurus has no
tcpipconfigured, enable it with the Qtopia Network GUI / applet.- Install the
sudoipk if it is absent. (It comes with Cacko.)
- Install the
- enable telnetd inside your Zaurus
-
For the fastest performance, you can directly format your SD card into ext2 format; but for MD-equipped Zauri, a loop device is also a good choice for loop filesystem mounting
- My mount-point choice is
/hdd3/debrootwith a loop device called/hdd3/debian.fs
- My mount-point choice is
Build debian.fs ∞
su cd /hdd3 mkdir debroot dd if=/dev/zero of=/hdd3/debian.fs bs=1M count=768 (i create a 768M loop device) echo y | /sbin/mke2fs debian.fs mount -o loop -t ext2 /hdd3/debian.fs /hdd3/debroot
Build swap file ∞
Please also note that a swapfile needs to be built (around 256M is suggested). (Background details)
su dd if=/dev/zero of=/hdd3/swapfile bs=1M count=256 mkswap /hdd3/swapfile
-
Cacko 1.23 has a swapfile tool built in.
- Click the cpu monitor next to the clock. Then pick the “swapfile” tab.
- (date not recorded) — I tried this and it hung.
Modify fstab ∞
fstab: /etc/fstab
/hdd3/swapfile swap defaults 0 0 /hdd3/debian.fs /hdd3/debroot ext2 loop 0 0
Prepare debroot ∞
Extract the tar.gz:
zcat zaurus-debian-big-v0.18.tgz | tar xvf - -C /hdd3/debroot
postinst.sh ∞
In the /hdd3 directory, run ./debroot/INSTALL.d/postinst.sh
-
All questions should be answered
y/yes- except the last question: Run ‘Fbvnc’ now? (answer no)
edit Fbvnc ∞
vi /usr/local/bin/Fbvnc
NOTE: Many model numbers have been tried, and -hw c700 seems to be the best.
You are welcome to try other hardware model numbers and tell Dinorex if you find a better one.
if [ -z "$1" ]; then fbvnc -hw c700 127.0.0.1:1 else fbvnc -hw c700 "$@" fi
edit debroot.conf ∞
vi /etc/debroot.conf
Spoiler
DEBROOT=/usr/mnt.rom/card DEB_PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/games #DEB_QPE_WARNING=1 DEB_DO_MOUNTS=1 DEB_COPY_INTO_CHROOT="etc/resolv.conf" DEB_COPY_INTO_NATIVE="etc/hosts" #DEB_RUN_SERVICES="" #DEB_RUN_SERVICES="inetd ssh lpd" #DEB_RUN_SERVICES="ssh" DEB_RUN_VNCSERVER=1 DEB_RUN_FBVNC=1 DEB_ZAPM_PROXY=1 DEB_RUN_ZAPMD=1 DEB_ROOTCMD=1
Delete the zdebian symbolic link ∞
In the /etc/rc.d/ directory tree, find the symbolic link to zdebian and delete it.
In my case it was:
rm /etc/rc.d/rc5.d/S99zdebian
edit zdebian ∞
vi /etc/rc.d/init.d/zdebian
Change the first line to #!/bin/bash
TODO – make a little script to prepend that.
create sw-deb.sh and sw-qt.sh ∞
In /usr/local/bin/, create these two files:
sw-deb.sh ∞
vi /usr/local/bin/sw-deb.sh
Spoiler
#!/bin/sh clear echo "zdebian stop.." /etc/rc.d/init.d/zdebian stop echo "kill Xvnc.." echo "change launch.default to 'q'" echo q > /home/zaurus/launch.default echo "DONE." exit 0
chmod 755 /usr/local/bin/sw-deb.sh
sw-qt.sh ∞
vi /usr/local/bin/sw-qt.sh
Spoiler
#!/bin/sh echo a > /home/zaurus/launch.default sudo /sbin/reboot killall qpe killall qpeserver killall qtsamba clear /home/root/usr/bin/chvt 2 /home/root/usr/bin/chvt 1 exit 0
chmod 755 /usr/local/bin/sw-qt.sh
create launch.default ∞
echo "echo a > launch.default" > /home/zaurus/launch.default
create startd ∞
vi /usr/local/bin/startd
Spoiler
#!/bin/sh clear sudo /bin/mount -o bind /mnt/card /hdd3/debroot/mnt/card sudo /sbin/swapon /hdd3/swapfile sudo ./zdebian start
chmod 755 /usr/local/bin/startd
edit rc.rofilesys ∞
Mount the filesystem as read/write. See Remounting Filesystem as Read/Write or Read Only.
Add the zdebian ‘dual-boot’ flag:
vi /root/etc/rc.d/rc.rofilesys
FIXME — This isn’t very well-described. Where should this text go, at the bottom?
Spoiler
Mount the filesystem as read only. See Remounting Filesystem as Read/Write or Read Only.
Usage / Notes ∞
Remounting Filesystem as Read/Write or Read Only ∞
http://www.users.on.net/~hluc/myZaurus/custom.html
Some partitions/file systems such as / cannot be unmounted. Some are also mounted as read-only. In order to modify the files on those file systems, you need to remount them as read/write and then remount them back to read-only after you have done what you wanted.
To remount as read/write:
mount -o rw,remount /
To remount as read only:
mount -o ro,remount /
Footnotes
| ^ 1 | was www.oesf.org/forums/index.php?showtopic=20058 (not archived) |
| ^ 2 | was http://www.oesf.org/forums/index.php?showuser=9186 |
| ^ 3 | was www.oesf.org/forums/index.php?showtopic=20058&view=findpost&p=131984 (not archived) |
| ^ 4 | was www.oesf.org/forums/index.php?showtopic=20058&view=findpost&p=132001 (not archived) |



ported the initial skeleton — this appears to have been a significant project
ported some more — yeah, this was a big one
ported with some slight edits mostly for formatting