pwd /home/root root@collie:~# df Filesystem Size Used Available Use% Mounted on /dev/mtdblock4 14.1M 13.8M 292.0k 98% / tmpfs 30.5M 60.0k 30.4M 0% /var /dev/hda1 488.4M 14.2M 474.3M 3% /media/cf /dev/mmcda1 843.1M 285.1M 515.5M 36% /media/card root@collie:~# cd /media/cf root@collie:/media/cf# ls -l -rwxrwxrwx 1 root users 14856969 Jun 21 17:19 cardfs-gpe-collie-openzaurus_oz3.5.4.1-rc4-gpe2.7-T1.bin root@collie:/media/cf# # ^ cardfs system to install root@collie:/media/cf# cat /proc/mounts /dev/root / jffs2 rw 0 0 proc /proc proc rw 0 0 ramfs /dev ramfs rw 0 0 tmpfs /var tmpfs rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/hda1 /media/cf vfat rw,sync,noatime,nodev 0 0 /dev/mmcda1 /media/card ext2 rw,noatime,nodev 0 0 root@collie:/media/cf# # the SD card is a 1GB Viking card, formatted as ext2 root@collie:/media/cf# fdisk -l /dev/mmcda Disk /dev/mmcda: 1030 MB, 1030225920 bytes 4 heads, 3 sectors/track, 167680 cylinders Units = cylinders of 12 * 512 = 6144 bytes Device Boot Start End Blocks Id System /dev/mmcda1 1 145068 870406+ 83 Linux /dev/mmcda2 145069 167680 135672 82 Linux swap / Solaris root@collie:/media/cf# ls /media/card README.txt WARNING.txt home lost+found old_system root@collie:/media/cf# # I've moved v ee verything to /medai/ca     ia/card/old_system root@collie:/media/cf# ls /medroot@collie:/media/cf# ls /media/carroot@collie:/media/cf# ls /media/cardo /olroot@collie:/media/cf# ls /media/card/old_system/ bin etc lib opt root sbin srv usr root@collie:/media/cf# # except /home root@collie:/media/cf# root@collie:/media/cf# # i think i might do that too root@collie:/media/cf# cd /media/card root@collie:/media/card# ls README.txt WARNING.txt home lost+found old_system root@collie:/media/card# mv home oldroot@collie:/media/card# mv home old_system/ root@collie:/media/card# # ok root@collie:/media/card# cat READMEroot@collie:/media/card# cat README.txt Changes to the Collie SD card filesystem ---------------------------------------- 10-Oct-09 22:31: Today, I 'retired' the Collie's 256MB Transflash SD card (orange and yellow), and replaced it with a 1GB Viking card. I partitioned this into an 870MB partition and a 128MB swap partition. I needed to disable a few mke2fs features to make it compatible: sudo mke2fs -b 1024 -I 128 -O \ sparse_super,^filetype,^resize_inode,^dir_index,^ext_attr /dev/sdd1 This keeps sparse_super enabled and disables the 'filetype', 'resize_inode', 'dir_index' and 'ext_attr' features. These features are enabled by the mke2fs config file in /etc/mke2fs.conf. After I'd formatted the first partition, I copied the original contents back to it and added gcc 2.7.1 in /opt/gcc-2.95. To use this, you will need to add dirs to the PATH variable: /media/card/opt/gcc-2.95/bin /media/card/opt/gcc-2.95/lib/gcc-lib/arm-linux-gnu/2.95.4 ... and a dir needs to be added to LD_LIBRARY_PATH. This can be done with these commands: PATH=/media/card/opt/gcc-2.95/bin:/media/card/opt/gcc-2.95/lib/gcc-lib/arm-linux-gnu/2.95.4:$PATH export LD_LIBRARY_PATH=/media/card/opt/gcc-2.95/lib root@collie:/media/card# # if only I still had the backup. root@collie:/media/card# #ma   maybe I do.. root@collie:/media/card# cat WARNINGroot@collie:/media/card# cat WARNING.txt 14-Oct-08 This is a CardFS system - do NOT do a 'ipkg upgrade' as it will mess up everything! CardFS HOWTO: http://www.hentges.net/misc/openzaurus/docs/cardfs_howto.shtml CardFS Features: http://www.hentges.net/misc/openzaurus/docs/cardfs_features.shtml root@collie:/media/card# # I am reading the HOWTO now root@collie:/media/card# ls README.txt WARNING.txt lost+found old_system root@collie:/media/card# ls -a /etc/ . hotplug pcmcia .. hotplug.d pointercal .configured hutils.conf ppp X11 init.d profile altboot-2.4.cfg inittab profile.d altboot-menu inittab.bak protocols altboot.conf inputrc rc0.d altboot.func ipaq-sleep.conf rc1.d altboot.rc ipkg rc2.d apm ipkg.conf rc3.d bluetooth ipkg.conf.bak rc4.d bonobo-activation issue rc5.d bootsplash.name issue.net rc6.d bootsplash.raw.gz kbdd.conf rcS.d busybox.links keylaunchrc resolv.conf dbus-1 ld.so.conf rosetta.conf default localtime rpc device_table logcheck samba esd.conf matchbox sdcontrol ethers mhbackup services filesystems mhscripts skel fonts mime-handlers sound fstab modules ssh gconf modules.conf sysconfig gnome-vfs-2.0 modules.conf.old syslog.conf gpe modutils terminfo group motd ts.conf gtk-2.0 mtab udhcpc.d hentges-setup.conf network version hentges.version nsswitch.conf volatile.cache hentges_conf.d openzaurus-version wpa_supplicant.conf host.conf pango xstroke hostname passwd zaurusd hosts passwd- root@collie:/media/card# # ok.. /etc/.cardfs_installed is notpr   present root@collie:/media/card# card    cd root@collie:~# f cardfs_n insroot@collie:~# cardfs_install.sh +----------------------------------------------------------+ | | | * * * NOTE * * * | | | | Do you want to search for cardfs images now? | | | +----------------------------------------------------------+ Enter 'ok' to search for images, 'no' to abort this time, or 'never' to not ask again [ok|no|never]: ok Please choose the destination for cardfs: [1] /media/card Target: 1 +----------------------------------------------------------+ | | | * * * NOTE * * * | | | | I have found a cardfs image on your CF card. | | Answer the following question with 'ok' | | if you want to install it. | | | +----------------------------------------------------------+ Enter 'ok' to continue the installation or 'no' to skip this step [ok|no]: ok Mount opts: [rw,noatime,nodev] Target: [/media/card] -> Installing: [cardfs-gpe-collie-openzaurus]...done -> Configuring cardfs image... -> Calling ipkg-link (may take up to five minutes)...done -> Running postinst for [gconf-dbus]-> Running postinst for [gnome-keyring]-> Running postinst for [gnome-vfs-dbus]-> Running postinst for [gpdf]-> Running postinst for [gpe-bootsplash-theme-hentges-or-gpe]-> Running postinst for [gpgme]-> Running postinst for [kernel-module-ip-conntrack-2.4]-> Running postinst for [kernel-module-ipt-state-2.4]-> Running postinst for [kernel-module-iptable-filter-2.4]-> Running postinst for [libart-lgpl-2-2]-> Running postinst for [libbonobo]-> Running postinst for [libbonoboui]-> Running postinst for [libcurl3]-> Running postinst for [libdisplaymigration0]-> Running postinst for [libgnome]-> Running postinst for [libgnomecanvas-2-0]-> Running postinst for [libgnomeprint-2-2-0]-> Running postinst for [libgnomeprintui-2-2-0]-> Running postinst for [libgnomeui-2-0]-> Running postinst for [libgnutls-openssl11]-> Running postinst for [libgnutls11]-> Running postinst for [libidl-2-0]-> Running postinst for [libjscore0]-> Running postinst for [libmad0]-> Running postinst for [libnrcit0]-> Running postinst for [libnrcore0]-> Running postinst for [libpcre0]-> Running postinst for [libpopt0]-> Running postinst for [libpostproc0]-> Running postinst for [librsvg-2-2]-> Running postinst for [libsdl-1.2-0]-> Running postinst for [libsmbclient0]-> Running postinst for [libstdc++6]-> Running postinst for [libtododb0]-> Running postinst for [libxml2]-> Running postinst for [libxt6]-> Running postinst for [orbit2]-> Running postinst for [pth]-> Running postinst for [rosetta]-> Running postinst for [samba-essential]-> Running postinst for [shared-mime-info]...done root@collie:~# root@collie:~# cardfs_install.sh root@collie:~# pwd /home/root root@collie:~# # that took about 10 minutes. root@collie:~# df Filesystem Size Used Available Use% Mounted on /dev/mtdblock4 14.1M 13.9M 272.0k 98% / tmpfs 30.5M 84.0k 30.4M 0% /var /dev/hda1 488.4M 14.2M 474.3M 3% /media/cf /dev/mmcda1 843.1M 319.6M 481.0M 40% /media/card root@collie:~# cd /media/card root@collie:/media/card# ls -l -rw-r--r-- 1 root root 1168 Oct 10 2009 README.txt -rw-r--r-- 1 root root 257 Oct 14 2008 WARNING.txt drwxr-xr-x 13 root root 1024 Jun 21 18:50 etc drwxr-xr-x 3 root root 1024 Jun 21 18:55 lib drwx------ 2 root root 12288 Oct 10 2009 lost+found drwxr-xr-x 11 root root 1024 Jun 21 18:48 old_system drwxr-xr-x 2 root root 1024 Jun 21 18:50 sbin drwxr-xr-x 8 root root 1024 Jun 21 18:51 usr root@collie:/media/card# # new dirs: etc, lib, sbin, usr root@collie:/media/card# ls -l etc drwxr-xr-x 4 root root 1024 Jun 21 18:50 X11 drwxr-xr-x 2 root root 1024 Jun 21 18:50 bonobo-activation drwxr-xr-x 4 root root 1024 Jun 21 18:50 gconf drwxr-xr-x 4 root root 1024 Jun 21 18:50 gnome-vfs-2.0 drwxr-xr-x 2 root root 1024 Jun 21 18:50 gpe drwxr-xr-x 2 root root 1024 Jun 21 18:50 init.d -rw-r--r-- 1 root root 0 Jun 12 10:38 keylaunchrc drwxr-xr-x 2 root root 1024 Jun 21 18:50 mime-handlers drwxr-xr-x 2 root root 1024 Jun 21 18:50 rcS.d -rw-r--r-- 1 root root 9617 Jun 12 10:41 rosetta.conf drwxr-xr-x 2 root root 1024 Jun 21 18:50 samba drwxr-xr-x 3 root root 1024 Jun 21 18:50 sound drwxr-xr-x 3 root root 1024 Jun 21 18:50 terminfo root@collie:/media/card# # i'll probably need to do ipkg-link for any other root@collie:/media/card# # apcka     packages installed. root@collie:/media/card# # no, tjhe   he links are probably still there - they root@collie:/media/card# # are in the internal flash. root@collie:/media/card# ipkg-linkroot@collie:/media/card# ipkg-link -h Usage: /usr/bin/ipkg-link add packagename (links "packagename" to root filesystem) /usr/bin/ipkg-link remove packagename (unlinks "packagename" from root filesystem) /usr/bin/ipkg-link list mountpoint (lists packages on "mountpoint", e.g. '/mnt/card') /usr/bin/ipkg-link mount mountpoint (links all packages on "mountpoint", e.g. '/mnt/card') /usr/bin/ipkg-link umount mountpoint (unlinks all packages on "mountpoint", e.g. '/mnt/card') root@collie:/media/card# root@collie:/media/card# ipkg-link list Usage: /usr/bin/ipkg-link add packagename (links "packagename" to root filesystem) /usr/bin/ipkg-link remove packagename (unlinks "packagename" from root filesystem) /usr/bin/ipkg-link list mountpoint (lists packages on "mountpoint", e.g. '/mnt/card') /usr/bin/ipkg-link mount mountpoint (links all packages on "mountpoint", e.g. '/mnt/card') /usr/bin/ipkg-link umount mountpoint (unlinks all packages on "mountpoint", e.g. '/mnt/card') root@collie:/media/card# # hmm root@collie:/media/card# # oh. root@collie:/media/card# ipkh-l   g-link list /media/card *** Command: list display-brightness figment gaim-protocol-irc gaim-protocol-jabber gaim-protocol-oscar gaim-protocol-yahoo gaim gconf-dbus gnome-keyring gnome-vfs-dbus gnome-vfs-plugin-computer gnome-vfs-plugin-file gnome-vfs-plugin-ftp gnome-vfs-plugin-http gnome-vfs-plugin-network gnome-vfs-plugin-sftp gnome-vfs-plugin-smb gpdf gpe-aerial gpe-beam gpe-bootsplash-theme-hentges-or-gpe gpe-calculator gpe-calendar gpe-contacts gpe-edit gpe-filemanager gpe-gallery gpe-go gpe-lights gpe-mini-browser gpe-mininet gpe-mixer gpe-othello gpe-package gpe-plucker gpe-shield gpe-sketchbook gpe-soundbite gpe-su gpe-task-apps gpe-task-connectivity gpe-task-games gpe-task-pim gpe-task-settings gpe-taskmanager gpe-terminal gpe-tetris gpe-theme-clearlooks gpe-timesheet gpe-today gpe-todo gpe-watch gpe-what gpesyncd gpgme gsoko gtk-engine-clearlooks iptables kernel-module-ip-conntrack-2.4 kernel-module-ipt-state-2.4 kernel-module-iptable-filter-2.4 keylaunch libart-lgpl-2-2 libbonobo libbonoboui libcurl3 libdisplaymigration0 libgnome libgnomecanvas-2-0 libgnomeprint-2-2-0 libgnomeprintui-2-2-0 libgnomeui-2-0 libgnutls-openssl11 libgnutls11 libidl-2-0 libjscore0 libmad0 libnrcit0 libnrcore0 libpcre0 libpopt0 libpostproc0 librsvg-2-2 libsdl-1.2-0 libsmbclient0 libstdc++6 libtododb0 libxml2 libxt6 matchbox-panel-hacks matchbox-panel-manager minilite minimix mplayer-common mplayer nmap orbit2 prismstumbler pth rosetta samba-essential shared-mime-info snes9x sylpheed task-hentges-core-50m task-hentges-gpe-50m xdemineur xmonobut *** Done. root@collie:/media/card# # good root@collie:/media/card# root@collie:/media/card# # 'mvroot' moves /opt, /usr and /bin to the SD card. root@collie:/media/card# # it uses bind-mounting. root@collie:/media/card# ls README.txt etc lost+found sbin WARNING.txt lib old_system usr root@collie:/media/card# ls oldroot@collie:/media/card# ls old_system/ bin etc home lib opt root sbin srv usr root@collie:/media/card# root@collie:/media/card# # since those dirs are presnet   ent, looks like I used root@collie:/media/card# # them with the old system. root@collie:/media/card# ls -al /etc/.mvroot_done ls: /etc/.mvroot_done: No such file or directory root@collie:/media/card# # it'll be done automatically, on th e  e next reboot, root@collie:/media/card# # since /etc/.mvroot_done doesn't exist. root@collie:/media/card# # rebooting root@collie:/media/card# sync root@collie:/media/card# cd root@collie:~# reboot  Broadcast message from root (ttyS0) (Wed Jun 21 19:04:46 2006): The system is going down for reboot NOW! root@collie:~# »ÿ OpenZaurus 3.5.4.1-rc4 collie ttyS0 collie login: root Password: root@collie:~# # good, GPE starts on bootup now root@collie:~# # there are some things to sort. root@collie:~# # O I moved the opt, home and usr dirs from the old card root@collie:~# # system root@collie:~# df Filesystem Size Used Available Use% Mounted on /dev/mtdblock4 14.1M 13.8M 288.0k 98% / tmpfs 30.5M 88.0k 30.4M 0% /var /dev/mmcda1 843.1M 319.6M 481.0M 40% /media/card /dev/hda1 488.4M 14.2M 474.3M 3% /media/cf /dev/mmcda1 843.1M 319.6M 481.0M 40% /home/root root@collie:~# cd /media/card root@collie:/media/card# ls README.txt etc lost+found root usr WARNING.txt home old_system sbin bin lib opt srv root@collie:/media/card# ls oldroot@collie:/media/card# ls old_system/ etc lib root sbin usr root@collie:/media/card# # there  y e were there. root@collie:/media/card# # didn't move /usr, sorry root@collie:/media/card# # or root.. anything that existed, I left root@collie:/media/card# cat /proc/cmdline console=ttyS0 root=/dev/mtdblock4 rootfstype=jffs2 jffs2_orphaned_inodes=delete mem=64M root@collie:/media/card# # how .. oh.. it's already set as console root@collie:/media/card# bl on 25 root@collie:/media/card# bl 12 root@collie:/media/card# df Filesystem Size Used Available Use% Mounted on /dev/mtdblock4 14.1M 13.8M 288.0k 98% / tmpfs 30.5M 88.0k 30.4M 0% /var /dev/mmcda1 843.1M 319.6M 481.0M 40% /media/card /dev/hda1 488.4M 14.2M 474.3M 3% /media/cf /dev/mmcda1 843.1M 319.6M 481.0M 40% /home/root root@collie:/media/card# rm /medroot@collie:/media/card# rm /media/cfroot@collie:/media/card# rm /media/cf/root@collie:/media/card# rm /media/cf/cardfs-gpe-collie-openzaurus_oz3.5.4.1-rc4 -gpe2.7-T1.bin root@collie:/media/card# sync root@collie:/media/card# umount m /media/cf root@collie:/media/card# pc  cardctlroot@collie:/media/card# cardctl ident Socket 0: product info: "TOSHIBA THNCF512MQG ", "", "", "" manfid: 0x0098, 0x0000 function: 4 (fixed disk) Socket 1: no product info available root@collie:/media/card# root@collie:/media/card# cardctl ident     eject root@collie:/media/card# cardctl ident Socket 0: product info: "NETGEAR", "MA701 Wireless CF Card", "" manfid: 0xd601, 0x0002 function: 6 (network) Socket 1: no product info available root@collie:/media/card# # wi-fi is up root@collie:/media/card# # no problem with it now root@collie:/media/card# iwconfig lo no wireless extensions. irda0 no wireless extensions. irda1 no wireless extensions. wifi0 IEEE 802.11b ESSID:"Brooknet" Mode:Managed Frequency:2.437 GHz Access Point: 00:06:25:E8:B5:02 Bit Rate:11 Mb/s Sensitivity=1/3 Retry min limit:8 RTS thr:off Fragment thr:off Encryption key:43C6-CBB1-89 Security mode:restricted Power Management:off wlan0 IEEE 802.11b ESSID:"Brooknet" Mode:Managed Frequency:2.437 GHz Access Point: 00:06:25:E8:B5:02 Bit Rate:11 Mb/s Sensitivity=1/3 Retry min limit:8 RTS thr:off Fragment thr:off Encryption key:43C6-CBB1-89 Security mode:restricted Power Management:off Link Quality=56/70 Signal level=-26 dBm Noise level=-82 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:5 Missed beacon:0 root@collie:/media/card# # good root@collie:/media/card# ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:09:5B:11:F6:BB inet addr:192.168.135.23 Bcast:192.168.135.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:780 (780.0 B) TX bytes:5276 (5.1 KiB) Interrupt:35 root@collie:/media/card# # boogie root@collie:/media/card#  date Wed Jun 21 18:17:51 BST 2006 root@collie:/media/card# # closing capture file root@collie:/media/card#