View Single Post
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#102
Originally Posted by garfield View Post
Code:
/home/user # fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 2 GB, 2013265920 bytes
4 heads, 16 sectors/track, 61440 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

       Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1               1        7813      250008    c  FAT32 LBA
/dev/mmcblk0p2   *        7814       61440     1716032   83  Linux
/home/user # fdisk -l /dev/mmcblk1

Disk /dev/mmcblk1: 8 GB, 8201961472 bytes
4 heads, 16 sectors/track, 250304 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

       Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk1p1               1      242492     7759736    c  FAT32 LBA
/dev/mmcblk1p2          242493      250304      249952   82  Linux swap
/home/user # sfdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 61440 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk0p1          0+   7812    7813-    250008    c  W95 FAT32 (LBA)
/dev/mmcblk0p2   *   7813   61439   53627    1716064   83  Linux
/dev/mmcblk0p3          0       -       0          0    0  Empty
/dev/mmcblk0p4          0       -       0          0    0  Empty
/home/user # sfdisk -l /dev/mmcblk1

Disk /dev/mmcblk1: 250304 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk1p1          0+ 242491  242492-   7759736    c  W95 FAT32 (LBA)
/dev/mmcblk1p2     242492  250303    7812     249984   82  Linux swap / Solaris
/dev/mmcblk1p3          0       -       0          0    0  Empty
/dev/mmcblk1p4          0       -       0          0    0  Empty
/home/user # cat /etc/fstab
rootfs  /               rootfs  defaults,errors=remount-ro,noatime      0 0
/dev/mmcblk0p1  /media/mmc1 vfat rw,noauto,nodev,noexec,nosuid,utf8,uid=29999 0 0
/dev/mmcblk1p2 none swap sw 0 0
/home/user # ls -ltr /etc/init.d/
-rwxr-xr-x    1 root     root         1177 Aug 24  2006 af-base-apps
-rwxr-xr-x    1 root     root          844 Feb  7  2007 dsp-init
-rwxr-xr-x    1 root     root         1848 Mar 13  2007 hulda
-rwxr-xr-x    1 root     root          574 Jun 14  2007 wlancond
-rwxr-xr-x    1 root     root         1210 Jun 19  2007 btcond
-rwxr-xr-x    1 root     root         2135 Sep  6  2007 alarmd
-rwxr-xr-x    1 root     root          992 Sep 18  2007 zzinitdone
-rwxr-xr-x    1 root     root          542 Sep 19  2007 hildon-desktop
-rwxr-xr-x    1 root     root         1115 Oct  4  2007 libgpsbt
-rwxr-xr-x    1 root     root         2778 Oct 24  2007 ke-recv
-rwxr-xr-x    1 root     root          762 Nov 23  2007 esd
-rwxr-xr-x    1 root     root         1772 Jan 16  2008 osso-systemui-early
-rwxr-xr-x    1 root     root         1589 Jan 16  2008 osso-systemui
-rwxr-xr-x    1 root     root         4157 Jan 23  2008 rcS
-rwxr-xr-x    1 root     root         2288 Jan 23  2008 rc
-rwxr-xr-x    1 root     root         1044 Jan 23  2008 minishutdown
-rwxr-xr-x    1 root     root         1016 Jan 23  2008 minireboot
-rwxr-xr-x    1 root     root          685 Feb 13  2008 osso-ipv6
-rwxr-xr-x    1 root     root         2051 Feb 13  2008 wide-dhcpv6-client
-rwxr-xr-x    1 root     root         2304 Feb 26  2008 mce
-rwxr-xr-x    1 root     root         1213 Mar 14  2008 multimediad
-rwxr-xr-x    1 root     root         1811 Mar 19  2008 ttyusb0
-rwxr-xr-x    1 root     root         2134 Apr  3  2008 af-services
-rwxr-xr-x    1 root     root         1204 Apr  8  2008 gpsdriver
-rwxr-xr-x    1 root     root         2611 Apr  9  2008 dbus
-rwxr-xr-x    1 root     root         1843 Apr 14  2008 hal
-rwxr-xr-x    1 root     root          919 Apr 15  2008 python-launcher
-rwxr-xr-x    1 root     root          704 Apr 17  2008 osso-applet-display
-rwxr-xr-x    1 root     root         2393 May 28  2008 networking
-rwxr-xr-x    1 root     root         2229 Jul  1  2008 af-startup
-rwxr-xr-x    1 root     root         2002 Jul 14 13:26 maemo-launcher
-rwxr-xr-x    1 root     root         1854 Jul 14 18:39 fb-progress.sh
-rwxr-xr-x    1 root     root          326 Jul 19 07:42 brightness-permission
-rwxr-xr-x    1 root     root          579 Aug  5 16:36 product-code
-rwxr-xr-x    1 root     root          933 Aug 20 22:32 tablet-browser-daemon
-rwxr-xr-x    1 root     root         6175 Sep 18 17:11 glibc.sh
-rwxr-xr-x    1 root     root         1345 Sep 18 18:55 dnsmasq
-rwxr-xr-x    1 root     root         1434 Sep 24 21:01 x-server
-rwxr-xr-x    1 root     root         1496 Oct 10 17:50 mediaplayer-daemon
-rwxr-xr-x    1 root     root         1999 Oct 10 17:52 metalayer-crawler0
-rwxr-xr-x    1 root     root         1799 Oct 13 19:15 bluez-utils
-rwxr-xr-x    1 root     root         2039 Oct 15 03:53 privoxy
-rwxr-xr-x    1 root     root         2212 Oct 22 21:23 icd2
-rwxr-xr-x    1 root     root         1126 Oct 27 21:56 obexsrv
-rwxr-xr-x    1 root     root          283 Dec  4 17:05 hildon-application-manager
-rwxr-xr-x    1 root     root          427 Jan 12 19:12 local.sh
/home/user # ls -ltr /etc/rc2.d
lrwxrwxrwx    1 root     root           20 Jan 12 18:56 S99zzinitdone -> ../init.d/zzinitdone
lrwxrwxrwx    1 root     root           17 Jan 12 18:56 S99ttyusb0 -> ../init.d/ttyusb0
lrwxrwxrwx    1 root     root           31 Jan 12 18:56 S99tablet-browser-daemon -> ../init.d/tablet-browser-daemon
lrwxrwxrwx    1 root     root           28 Jan 12 18:56 S99metalayer-crawler0 -> ../init.d/metalayer-crawler0
lrwxrwxrwx    1 root     root           28 Jan 12 18:56 S99mediaplayer-daemon -> ../init.d/mediaplayer-daemon
lrwxrwxrwx    1 root     root           15 Jan 12 18:56 S99hulda -> ../init.d/hulda
lrwxrwxrwx    1 root     root           16 Jan 12 18:56 S99alarmd -> ../init.d/alarmd
lrwxrwxrwx    1 root     root           17 Jan 12 18:56 S70obexsrv -> ../init.d/obexsrv
lrwxrwxrwx    1 root     root           23 Jan 12 18:56 S61osso-systemui -> ../init.d/osso-systemui
lrwxrwxrwx    1 root     root           22 Jan 12 18:56 S60af-base-apps -> ../init.d/af-base-apps
lrwxrwxrwx    1 root     root           14 Jan 12 18:56 S59icd2 -> ../init.d/icd2
lrwxrwxrwx    1 root     root           18 Jan 12 18:56 S58wlancond -> ../init.d/wlancond
lrwxrwxrwx    1 root     root           28 Jan 12 18:56 S58wide-dhcpv6-client -> ../init.d/wide-dhcpv6-client
lrwxrwxrwx    1 root     root           16 Jan 12 18:56 S57btcond -> ../init.d/btcond
lrwxrwxrwx    1 root     root           21 Jan 12 18:56 S56bluez-utils -> ../init.d/bluez-utils
lrwxrwxrwx    1 root     root           19 Jan 12 18:56 S54osso-ipv6 -> ../init.d/osso-ipv6
lrwxrwxrwx    1 root     root           18 Jan 12 18:56 S54libgpsbt -> ../init.d/libgpsbt
lrwxrwxrwx    1 root     root           19 Jan 12 18:56 S54gpsdriver -> ../init.d/gpsdriver
lrwxrwxrwx    1 root     root           17 Jan 12 18:56 S53dnsmasq -> ../init.d/dnsmasq
lrwxrwxrwx    1 root     root           36 Jan 12 18:56 S52hildon-application-manager -> ../init.d/hildon-application-manager
lrwxrwxrwx    1 root     root           24 Jan 12 18:56 S51hildon-desktop -> ../init.d/hildon-desktop
lrwxrwxrwx    1 root     root           20 Jan 12 18:56 S50af-startup -> ../init.d/af-startup
lrwxrwxrwx    1 root     root           24 Jan 12 18:56 S45maemo-launcher -> ../init.d/maemo-launcher
lrwxrwxrwx    1 root     root           25 Jan 12 18:56 S44python-launcher -> ../init.d/python-launcher
lrwxrwxrwx    1 root     root           22 Jan 12 18:56 S41product-code -> ../init.d/product-code
lrwxrwxrwx    1 root     root           17 Jan 12 18:56 S30ke-recv -> ../init.d/ke-recv
lrwxrwxrwx    1 root     root           29 Jan 12 18:56 S26osso-systemui-early -> ../init.d/osso-systemui-early
lrwxrwxrwx    1 root     root           13 Jan 12 18:56 S26esd -> ../init.d/esd
lrwxrwxrwx    1 root     root           21 Jan 12 18:56 S25multimediad -> ../init.d/multimediad
lrwxrwxrwx    1 root     root           18 Jan 12 18:56 S24dsp-init -> ../init.d/dsp-init
lrwxrwxrwx    1 root     root           21 Jan 12 18:56 S22af-services -> ../init.d/af-services
lrwxrwxrwx    1 root     root           18 Jan 12 18:56 S21x-server -> ../init.d/x-server
lrwxrwxrwx    1 root     root           13 Jan 12 18:56 S21mce -> ../init.d/mce
lrwxrwxrwx    1 root     root           17 Jan 12 18:56 S20privoxy -> ../init.d/privoxy
lrwxrwxrwx    1 root     root           29 Jan 12 18:56 S20osso-applet-display -> ../init.d/osso-applet-display
lrwxrwxrwx    1 root     root           13 Jan 12 18:56 S20hal -> ../init.d/hal
lrwxrwxrwx    1 root     root           14 Jan 12 18:56 S20dbus -> ../init.d/dbus
lrwxrwxrwx    1 root     root           24 Jan 12 18:56 S12fb-progress.sh -> ../init.d/fb-progress.sh
lrwxrwxrwx    1 root     root           20 Jan 12 18:56 K00zzinitdone -> ../init.d/zzinitdone
lrwxrwxrwx    1 root     root           20 Jan 12 19:12 S90local -> /etc/init.d/local.sh
/home/user # cat /etc/init.d/local.sh
#!/bin/sh
# Startup script for penguinbait crap
#

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting script penguinbaits crap"

#Load modules plus check and mount local.img
cat /etc/fstab | grep swap | awk '{print $1}' | xargs swapon
;;
  stop)
    echo "Stopping script blah"
    ;;
  *)
    echo "Usage: /etc/init.d/local.sh {start|stop}"
    exit 1
    ;;
esac

exit 0
thanks for help.


HMMMMMMMMMMM, it all looks good.

can you try some more, as root


swapon /dev/mmcblk1p2

free

if its still not working, try this

mkswap /dev/mmcblk1p2

swapon /dev/mmcblk1p2

free


Anything??
__________________
To all my Maemo friends. I will no longer be monitoring any of my threads here on a regular basis. I am no longer supporting anything I did under maemo at maemo.org. If you need some help with something you can reach me at tablethacker.com or www.facebook.com/penguinbait. I have disabled my PM's here, and removed myself from Council email and Community mailing list. There has been some fun times, see you around.
 

The Following User Says Thank You to penguinbait For This Useful Post: