Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#175495 - 17/08/2003 03:15 Trouble with hard disc -> Any Help?
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
I have some trouble with my hard disc. After a "Contact support" problem I installed the disc builder image, run it, reinstalled the empeg 2.00b13 sw with hijack 3.40, preinit, mkprgpt and so on. But the hard disc does not work correct. See the follwing boot sequence:

If there is anyone present who wants to upgrade the flash, let them speak now,
or forever hold their peace...it seems not. Let fly the Penguins of Linux!

e000 v1.04
Copying kernel...
Calling linux kernel...
Uncompressing Linux..................................... done, booting the kernel.
Linux version 2.2.17-rmk5-np17-empeg52-hijack-v340 (root@ibbm) (gcc version 2.95.3 20010315 (release)) #2 Wed Jun 18 18:40:14 EDT 2003
Processor: Intel StrongARM-1100 revision 11
NetWinder Floating Point Emulator V0.94.1 (c) 1998 Corel Computer Corp.
empeg-car player (hardware revision 9, serial number 40104354)
Command line: mem=16m
Calibrating delay loop... 207.67 BogoMIPS
Memory: 15016k/16M available (976k code, 20k reserved, 368k data, 4k init)
Dentry hash table entries: 2048 (order 2, 16k)
Buffer cache hash table entries: 16384 (order 4, 64k)
Page cache hash table entries: 4096 (order 2, 16k)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
IrDA (tm) Protocols for Linux-2.2 (Dag Brattli)
Starting kswapd v 1.5
SA1100 serial driver version 4.27 with no serial options enabled
ttyS00 at 0xf8010000 (irq = 15) is a SA1100 UART
ttyS01 at 0xf8050000 (irq = 17) is a SA1100 UART
ttyS02 at 0xf8030000 (irq = 16) is a SA1100 UART
Signature is 206f6972 'rio '
Tuner: loopback=0, ID=-1
empeg display initialised.
empeg dsp audio initialised
empeg dsp mixer initialised
empeg dsp initialised
empeg audio-in initialised, CS4231A revision a0
empeg remote control/panel button initialised.
empeg usb initialised, PDIUSBD12 id 1012
empeg state support initialised 0089/88c1 (save to d0004a80).
empeg RDS driver initialised
empeg power-pic driver initialised (first boot)
RAM disk driver initialized: 16 RAM disks of 4096K size
empeg single channel IDE
Probing primary interface...
hda: FUJITSU MHN2200AT, ATA DISK drive
ide0 at 0x000-0x007,0x038 on irq 6
hda: FUJITSU MHN2200AT, 19077MB w/2048kB Cache, CHS=38760/16/63
empeg-flash driver initialized
smc chip id/revision 0x3349
smc9194.c:v0.12 03/06/96 by Erik Stahlman ([email protected])

SMC9194: SMC91C94(r:9) at 0x4008000 IRQ:7 INTF:TP MEM:6144b MAC 00:02:d7:28:11:02
Partition check:
hda: hda1 < hda5 hda6 > hda2 hda3 hda4
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 320 blocks [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\done.
VFS: Mounted root (ext2 filesystem).
empeg-pump v0.03 (19980601)
Press Ctrl-A to enter pump... okay
Freeing unused kernel memory: 4k init
empeg-preinit starting...
Using /programs0/preinit.d as startup script directory
empeg-preinit complete
empeg init 0.8
I see this is a developer image!
Mounting proc
Mounting first music partition
Tried to mount /dev/hda4 as reiserfs but got error 19
Mounting second music partition
Tried to mount /dev/hdc4 but got error 6
Error mounting partitions (possibly already mounted)
Remounting first music partition read-only
Remounting second music partition read-only
No secondary hard disk
Press 'q' now to go into development mode. You Have Zero Seconds To Comply...
Starting player
Hijack: intercepting config.ini

hijack: removed menu entry: "Tuner RDS Control"
hijack: removed menu entry: "Serial Port Assignment"
khttpd: listening on port 80
kftpd: listening on port 21
M10empacman is not marked as executable. Not executing.
M20emptris is not marked as executable. Not executing.
M40empan is not marked as executable. Not executing.
M60viewer is not marked as executable. Not executing.
M70empwake is not marked as executable. Not executing.
player.cpp : 385:empeg-car 2.00-beta13 2002/07/24.
Prolux 4 empeg car - 2.1434 Jul 24 2002
Vcb: 0x4086d000


Some files are not accessable (error: read-only) although I have set rw. Scripts are not executed, ...

When forcing a check media with jemplode I get the following:

e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
ext2fs_check_if_mount: No such file or directory while determining whether /dev/hda4 is mounted.

VM: do_try_to_free_pages failed for kswapd...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: killing process fsck.ext2
buffermem : 331776
page_cache_size : 307
nr_free_pages : 32
num_physpages : 4096


When pressing CTRL+T during boot I get all O.K. with the hardware.

When trying to follow the hand work file check (as mentioned in the FAQ) I get errors with /dev/hdc4.

When setting the drive to rw I get an read-only error while accessing for instance config.ini, when setting the drive to rwm it works.

Does anybody have an idea with that problem?

Fossi

Top
#175496 - 17/08/2003 03:40 Re: Trouble with hard disc -> Any Help? [Re: fossi]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
M10empacman is not marked as executable. Not executing.
M20emptris is not marked as executable. Not executing.
M40empan is not marked as executable. Not executing.
M60viewer is not marked as executable. Not executing.
M70empwake is not marked as executable. Not executing.
player.cpp : 385:empeg-car 2.00-beta13 2002/07/24.
Prolux 4 empeg car - 2.1434 Jul 24 2002
Vcb: 0x4086d000


Some files are not accessable (error: read-only) although I have set rw. Scripts are not executed, ...


Are they executeable? ls -l should show ..rwx... in the permissions if they're rEADABLE, wRITEABLE and ExECUTABLE. Try 'chmod 777 [filename'] to set them read/write/execute-able...

ext2fs_check_if_mount: No such file or directory while determining whether /dev/hda4 is mounted.

IIRC this is normal - it looks for the /etc/mtab file for which filesystems that are mounted, but the empeg doesn't have/use that file.

VM: do_try_to_free_pages failed for kswapd...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: do_try_to_free_pages failed for fsck.ext2...
VM: killing process fsck.ext2
buffermem : 331776
page_cache_size : 307
nr_free_pages : 32
num_physpages : 4096


This might be an issue with swap space - not sure... Search the FAQ for 'swap'

When trying to follow the hand work file check (as mentioned in the FAQ) I get errors with /dev/hdc4.

Do you have two drives? According to the boot log only one drive /dev/hda is found. You can't fsck a drive you don't have or the system for some reason doesn't see.

When setting the drive to rw I get an read-only error while accessing for instance config.ini, when setting the drive to rwm it works.

I believe the config file lives on the music partition, which is mounted red/write by the rwm command, the rw command only mounts the system partition as read/write.

/Michael
_________________________
/Michael

Top
#175497 - 17/08/2003 04:58 Re: Trouble with hard disc -> Any Help? [Re: mtempsch]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
Thanks for the response.

The scripts M10, M20, ... are not marked as executable and should not. But the scripts M30, M50 and N10 are marked as executable (chmod 755) but are not executed.

My configuration is a single hard disc.

With the swap file I have no idea, found nothing useful in the FAQ.

When trying to access files in the programs0 folder whether rwm nor rw helps. The error message is alsways read-only.

Anything else I could try?




Top
#175498 - 17/08/2003 06:06 Re: Trouble with hard disc -> Any Help? [Re: fossi]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Where is your programs0 folder?
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#175499 - 17/08/2003 06:11 Re: Trouble with hard disc -> Any Help? [Re: pgrzelak]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
I have used mkprgpt to create programs0, so it is at /dev/hda2:

mount -n -r -t ext2 /dev/hda2 /programs0

Fossi

Top
#175500 - 17/08/2003 06:16 Re: Trouble with hard disc -> Any Help? [Re: fossi]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Hmmm... Why does that mount -r bother me... I do not have a man page handy - is that a read only flag?
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#175501 - 17/08/2003 06:24 Re: Trouble with hard disc -> Any Help? [Re: pgrzelak]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5682
Loc: London, UK
is that a read only flag

Yes.
_________________________
-- roger

Top
#175502 - 17/08/2003 06:27 Re: Trouble with hard disc -> Any Help? [Re: fossi]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
I don't see any messages indicating hard disk problems in that log.

But it does look like "low memory" issues or something. Some app you have installed is taking too much memory away from the player. There's a config.ini parameter for "reserved cache" or some such thing, described in the FAQ, which will likely help here.

-ml

Top
#175503 - 17/08/2003 07:06 Re: Trouble with hard disc -> Any Help? [Re: mlord]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
Now I set ReserveCache=30 and tried again.

The bootlog:



empeg-car bootstrap v1.02 20001106 ([email protected])
If there is anyone present who wants to upgrade the flash, let them speak now,
or forever hold their peace...it seems not. Let fly the Penguins of Linux!

e000 v1.04
Copying kernel...
Calling linux kernel...
Uncompressing Linux..................................... done, booting the kernel.
Linux version 2.2.17-rmk5-np17-empeg52-hijack-v340 (root@ibbm) (gcc version 2.95.3 20010315 (release)) #2 Wed Jun 18 18:40:14 EDT 2003
Processor: Intel StrongARM-1100 revision 11
NetWinder Floating Point Emulator V0.94.1 (c) 1998 Corel Computer Corp.
empeg-car player (hardware revision 9, serial number 40104354)
Command line: mem=16m
Calibrating delay loop... 207.67 BogoMIPS
Memory: 15016k/16M available (976k code, 20k reserved, 368k data, 4k init)
Dentry hash table entries: 2048 (order 2, 16k)
Buffer cache hash table entries: 16384 (order 4, 64k)
Page cache hash table entries: 4096 (order 2, 16k)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
IrDA (tm) Protocols for Linux-2.2 (Dag Brattli)
Starting kswapd v 1.5
SA1100 serial driver version 4.27 with no serial options enabled
ttyS00 at 0xf8010000 (irq = 15) is a SA1100 UART
ttyS01 at 0xf8050000 (irq = 17) is a SA1100 UART
ttyS02 at 0xf8030000 (irq = 16) is a SA1100 UART
Signature is 206f6972 'rio '
Tuner: loopback=0, ID=-1
empeg display initialised.
empeg dsp audio initialised
empeg dsp mixer initialised
empeg dsp initialised
empeg audio-in initialised, CS4231A revision a0
empeg remote control/panel button initialised.
empeg usb initialised, PDIUSBD12 id 1012
empeg state support initialised 0089/88c1 (save to d0005980).
empeg RDS driver initialised
empeg power-pic driver initialised (first boot)
RAM disk driver initialized: 16 RAM disks of 4096K size
empeg single channel IDE
Probing primary interface...
hda: FUJITSU MHN2200AT, ATA DISK drive
ide0 at 0x000-0x007,0x038 on irq 6
hda: FUJITSU MHN2200AT, 19077MB w/2048kB Cache, CHS=38760/16/63
empeg-flash driver initialized
smc chip id/revision 0x3349
smc9194.c:v0.12 03/06/96 by Erik Stahlman ([email protected])

SMC9194: SMC91C94(r:9) at 0x4008000 IRQ:7 INTF:TP MEM:6144b MAC 00:02:d7:28:11:02
Partition check:
hda: hda1 < hda5 hda6 > hda2 hda3 hda4
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 320 blocks [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\done.
VFS: Mounted root (ext2 filesystem).
empeg-pump v0.03 (19980601)
Press Ctrl-A to enter pump... hange_root: old root has d_count=1
Trying to unmount old root ... okay
Freeing unused kernel memory: 4k init
empeg-preinit starting...
Using /programs0/preinit.d as startup script directory
empeg-preinit complete
empeg init 0.8
I see this is a developer image!
Mounting proc
Mounting first music partition
Tried to mount /dev/hda4 as reiserfs but got error 19
Mounting second music partition
Tried to mount /dev/hdc4 but got error 6
Error mounting partitions (possibly already mounted)
Remounting first music partition read-only
Remounting second music partition read-only
No secondary hard disk
Press 'q' now to go into development mode. You Have Zero Seconds To Comply...
Starting player
Hijack: intercepting config.ini

hijack: removed menu entry: "Tuner RDS Control"
hijack: removed menu entry: "Serial Port Assignment"
khttpd: listening on port 80
kftpd: listening on port 21
M10empacman is not marked as executable. Not executing.
M20emptris is not marked as executable. Not executing.
M40empan is not marked as executable. Not executing.
Using non-standard cache size 104 (adjustment 30)
M60viewer is not marked as executable. Not executing.
M70empwake is not marked as executable. Not executing.
player.cpp : 385:empeg-car 2.00-beta13 2002/07/24.
Prolux 4 empeg car - 2.1434 Jul 24 2002
Vcb: 0x4068d000



The log while trying to force check media:

e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
ext2fs_check_if_mount: No such file or directory while determining whether /dev/hda4 is mounted.

Vital Signs says:
Cac: 1223,Buf:81,Fre:102


The problem remains. Scripts don't start, while trying to remove a file in programs0 directly after rw and rwm I get the error:

empeg:/programs0# rm gpsapp
rm: remove write-protected file `gpsapp'? y
rm: cannot unlink `gpsapp': Read-only file system

Fossi

Top
#175504 - 17/08/2003 07:08 Re: Trouble with hard disc -> Any Help? [Re: fossi]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Okay.

/programs0 is a filesystem that you created. If you look carefully at rw and rwm, they only cover the root and music partitions (unless you modified them). That is your likely problem for the read only aspect of things.
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#175505 - 17/08/2003 08:44 Re: Trouble with hard disc -> Any Help? [Re: pgrzelak]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
O.K., that worked (with rwp) - but I don't understand why it worked before with rw ...

But what does not work is still the executing of preinit scripts although they are located right and marked executable.

Any idea?

Fossi

Top
#175506 - 17/08/2003 10:14 Re: Trouble with hard disc -> Any Help? [Re: fossi]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Do me a favor. Go to /programs0, and do an "ls -al" and paste the results. Also, paste one of the scripts (if they are ascii). Thanks.
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#175507 - 17/08/2003 11:17 Re: Trouble with hard disc -> Any Help? [Re: pgrzelak]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
Here we go:

Programs0:

empeg:/programs0# ls -al
total 344
drwxr-xr-x 7 0 0 1024 Aug 17 16:42 .
drwxr-xr-x 17 502 220 1024 Aug 17 15:17 ..
drwxr-xr-x 2 0 0 1024 Jan 19 2003 CVS
-rw-r--r-- 1 0 0 61925 Jan 19 2003 empacman
-rwxr-xr-x 1 0 0 25468 Jan 19 2003 empsoko
-rwxr-xr-x 1 0 0 10336 Jan 19 2003 emptris
drwxr-xr-x 2 0 0 1024 Jan 19 2003 emptriv
-rwxr-xr-x 1 0 0 130574 Jan 19 2003 empwake
-rwxr-xr-x 1 0 0 51768 Aug 17 16:42 gpsapp
-rwxr-xr-x 1 0 0 26192 Mar 2 17:01 gpsd
-rwxr-xr-x 1 0 0 89 Mar 2 22:07 gpsdd
-rwxr-xr-x 1 0 0 3164 Feb 8 2003 incar
drwxr-xr-x 2 0 0 12288 Jan 19 2003 lost+found
-rwxr-xr-x 1 0 0 3204 Mar 26 18:26 mini_ifconfig
drwxr-xr-x 2 0 0 1024 Mar 2 16:10 preinit.d
drwxr-xr-x 3 0 0 2048 Jul 27 09:10 routes
-rwxr-xr-x 1 0 0 9048 Jan 19 2003 viewer


subdirectory preinit.d:

empeg:/programs0/preinit.d# ls -al
total 10
drwxr-xr-x 2 0 0 1024 Mar 2 16:10 .
drwxr-xr-x 7 0 0 1024 Aug 17 16:42 ..
---------- 1 0 0 62 Jan 19 2003 M10empacman
---------- 1 0 0 60 Jan 19 2003 M20emptris
-rw------- 1 0 0 136 Jan 19 2003 M30emptriv
---------- 1 0 0 56 Jan 19 2003 M40empan
-rwxr-xr-x 1 0 0 189 Jan 19 2003 M50gpsapp
---------- 1 0 0 58 Jan 19 2003 M60viewer
---------- 1 0 0 60 Jan 19 2003 M70empwake
-rwxr-xr-x 1 0 0 48 Jan 19 2003 N10telnetd

and the script M50gpsapp:

#!/bin/bash

#Could also be Garmin, TSIP, TAIP
#Most GPS's understand NMEA.
PROTOCOL=NMEA
[ -x /programs0/incar ] && /programs0/incar || exit
[ -x /programs0/gpsapp ] && /programs0/gpsapp


Fossi

Top
#175508 - 17/08/2003 11:44 Re: Trouble with hard disc -> Any Help? [Re: fossi]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Give this a shot:

(make your programs0 read/write)
cd /programs0/preinit.d
chmod 777 M*
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#175509 - 17/08/2003 18:46 Re: Trouble with hard disc -> Any Help? [Re: pgrzelak]
genixia
Carpal Tunnel

Registered: 08/02/2002
Posts: 3411
No, don't do that - it'll increase your boot time somewhat as all the preinit scripts load, check whether their application exists and then bail.

preinit is clever enough to ignore unexecutable scripts, as shown by your log. At one point it wasn't - I assume that your running a recent version. I don't think that it has changed in ages though. so you probably are. We use permissions to decide what is going to run - this made it possible for mkprgpt to provide a bunch of scripts for various applications that could then be tweaked fairly easily, without anyone having to vi them from scratch. I would suggest that the M30emptriv permissions are wrong (based upon a previous post listing which scripts should execute) and need to chmod'd;

chmod 755 /programs0/preinit.d/M30emptriv


Aside from that, nothing in the log suggests that N10telnetd or M50gpsapp aren't executing. The log lists those scripts that didn't execute, and those weren't in that list.
Now, if you're testing in AC mode then gpsapp won't start. the 'incar' application is used to ensure that gpsapp only starts in DC mode. So you'll need to force DC power to see GPSapp on your hijack menu.
I suspect that telnetd is running. Why do you think it isn't?

_________________________
Mk2a 60GB Blue. Serial 030102962 sig.mp3: File Format not Valid.

Top
#175510 - 17/08/2003 21:17 Re: Trouble with hard disc -> Any Help? [Re: genixia]
fossi
journeyman

Registered: 12/01/2003
Posts: 64
Loc: Germany
Yep!

That was it. GPSapp does in fact only run when DC mode is forced (Didn't found it documented).

Telnet now also starts. After rebuilding my hard disc I didn't run "devs" which prevents telnetd from starting - this was documented, so my fault.

So both apps run again, many thanks for all your help.

The low memory issue was a very interesting one. Before rebuilding my player I had some mysterious effects which are reported sometimes here, like hang-ups of gpsapp in the long-run. Probably these effects are somehow linked ... we will see.

Fossi

Top