maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Introducing console-tools v1 (install-tools replacemement) (https://talk.maemo.org/showthread.php?t=25714)

penguinbait 2009-01-12 21:20

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by fanoush (Post 256600)
As mentioned in the other thread tomstratton created for this, I have hopefully fixed keyboard handling for RX-48. However it sounds completely unrelated to the wimax error so if it doesn't help my only idea is that the 'remove unneeded extra and factory testing stuff' initfs_flasher step removes something needed for wimax device. What is your default in console-tools for this step, yes or no? No is safer and yes no longer makes much difference since Diablo release enlarged initfs partiton.

It defaults to yes, because it was always needed.

Has anyone confirmed a manual initfs_flasher install for RX-48 is working?

I can alter it, but I prefer to do it after its confirmed working

penguinbait 2009-01-12 21:25

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by garfield (Post 256807)
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??

tomstratton 2009-01-12 22:33

Re: Introducing console-tools v1 (install-tools replacemement)
 
Success! I am going to re-do the whole procedure once or twice and keep notes - I will post the entire results including step-by-step on the other thread...

Tom

garfield 2009-01-13 15:49

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 256968)
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??

wow, it is work. Thank you very much.

penguinbait 2009-01-13 16:06

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by garfield (Post 257241)
wow, it is work. Thank you very much.

Does it work if you reboot?

Perhaps my mkswap is hosed?

FRZ 2009-01-13 16:54

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 257246)
Does it work if you reboot?

Perhaps my mkswap is hosed?

The swap seem to disappeared after reboot. I thought that was weird since I did enable swap from the pb menu and every time I checked it, it wasn't there. It seem that it has to be reset every time the device is rebooted.

penguinbait 2009-01-13 17:47

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by FRZ (Post 257255)
The swap seem to disappeared after reboot. I thought that was weird since I did enable swap from the pb menu and every time I checked it, it wasn't there. It seem that it has to be reset every time the device is rebooted.

do you have the file /etc/init.d/local.sh ?

This should start the swap partition on boot.

as root try running

/etc/init.d/local.sh start

Does this start it?

buaalrj 2009-01-16 08:44

Re: Introducing console-tools v1 (install-tools replacemement)
 
Hi,
I got a N810, and trying to clone the system to the internal card(2G).
After partitioning, i got a err in the clone stage:
mount: mounting /dev/mmcblk0p2 on /TRG failed.

And the "fdisk -l" shows that the partitioning was successful.
/dev/mmcblk0p1 can be mounted successfully, while mmcblk0p2 and mmcblk0p3 can't be mounted.
"dmsg" shows nothing valuable related with this err.

So can anyone help me out? thx.

penguinbait 2009-01-17 20:45

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by buaalrj (Post 258016)
Hi,
I got a N810, and trying to clone the system to the internal card(2G).
After partitioning, i got a err in the clone stage:
mount: mounting /dev/mmcblk0p2 on /TRG failed.

And the "fdisk -l" shows that the partitioning was successful.
/dev/mmcblk0p1 can be mounted successfully, while mmcblk0p2 and mmcblk0p3 can't be mounted.
"dmsg" shows nothing valuable related with this err.

So can anyone help me out? thx.

What happens if you retry the operation?

Do you have virtual memory disabled?

buaalrj 2009-01-18 15:28

Re: Introducing console-tools v1 (install-tools replacemement)
 
I did it several times, and got the same result.
the vm has been disabled.


All times are GMT. The time now is 12:04.

vBulletin® Version 3.8.8