PDA

View Full Version : Help I ran Lgkahn script, and now I"ve lost connection


snake98
05-26-2005, 02:18 AM
I ran Lgkahan script, I can't remeber exatly what I put, but I wanted ip addres 192.168.0.9, when I rebooted, it's not their, nor is it getting an dhcp addres, here is the output out boot, someehelp me here, snice I can't pull the drive to rerun the script, I don't know how to handle it

Here is my output at startup
ATZ
flushing ide devices: hda
Restarting system.
CPU revision is: 00005430
FPU revision is: 00005410
Primary instruction cache 32kb, linesize 32 bytes.
Primary data cache 32kb, linesize 32 bytes.
Linux version 2.4.20 (build@buildmaster5) (gcc version 3.0) #22 Fri Feb 20 18:19
:25 PST 2004
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda4 runideturbo=false console=2,115200 dsscon=tr
ue
Monotonic time calibrated: 81.00 counts per usec
Calibrating delay loop... 161.79 BogoMIPS
Contiguous region 1: 8388608 bytes @ address 0x80d000
Contiguous region 2: 1048576 bytes @ address 0x81500000
Contiguous region 8: 10485760 bytes @ address 0x81600000
Contiguous region of 19922944 bytes total reserved at 0x80d00000.
Memory: 43820k/65536k available (1222k kernel code, 21716k reserved, 81k data, 6
4k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 163
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
ttyS00 at iomem 0xb4100100 (irq = 79) is a 16550A
ttyS00 at port 0xbc010000 (irq = 133) is a unknown
ttyS00 at iomem 0xb4100140 (irq = 81) is a 16550A
ttyS00 at iomem 0xb4100120 (irq = 80) is a 16550A
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb4100100 (irq = 79) is a 16550A
ttyS01 at 0xbc010000 (irq = 133) is a unknown
ttyS02 at 0xb4100140 (irq = 81) is a 16550A
ttyS03 at 0xb4100120 (irq = 80) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: WDC WD1200JB-00EVA0, ATA DISK drive
ide0 at 0x400-0x407,0x438 on irq 87
hda: 234439535 sectors (120033 MB) w/8192KiB Cac
Partition check:
hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13
hda14
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 152 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Starting rc.sysinit
Running boot Stage A_PreKickstart scripts
Scanning for configuration files
Invoking startup scripts for:
platform 'trinity'
implementation 'Series2'
implementer 'TiVo'
Releasing /initrd and clearing ramdisk, if they exist
warning: can't open /var/mtab: No such file or directory
umount: /initrd: not moun
Activating swap partitions
Adding Swap: 130044k swap-space (priority -1)
Loading core system drivers
Parallel modem driver loaded, 1 ports starting at /dev/ttyS1
Loading ircatch
Found rev 'F' Si2433 modem on /dev/cua1
Checking for Kickstart panic signal
Running boot Stage B_PostKickstart scripts
Cleanup /dev/hda9 pass 1
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
hda9 is mounted.
/dev/hda9 was not cleanly unmounted, check forced.
Inode 6154, i_blocks wrong 28 (counted=14). Se

Inode 6148, i_blocks wrong 30 (counted=28). Set i_blocks to counted? yes

Inode 6157, i_blocks wrong 192 (counted=186). Set i_blocks to counted? yes

Inode 6146, i_blocks wrong 72 (counted=68). Set i_blocks to counted? yes

Inode 6152, i_blocks wrong 434 (counted=430). Set i_blocks to counted? yes

Inode 6155, i_blocks wrong 74 (counted=62). Set i_blocks to counted? yes

Inode 22667, i_blocks wrong 16 (counted=8). Set i_blocks to counted? yes

Fix summary information? yes

/dev/hda9: 523/32768 files (5.2% no
Cleanup /dev/hda9 pass 2
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
hda9 is mounted.
/dev/hda9: clean, 523/32768 files, 6960/131072 blocks
/dev/hda9 is clean after pass 2
Mounting /var
/dev/hda9 on /var type ext2 (rw)
Cleaning up files in /var
Checking space in /var
Mounting initial environment
Starting logging daemons
Found Silicon Labs "Si2433" modem, rev F, skipping modem patch
Scanning for phase1 repair scripts
Running boot Stage C_MediaInitialization scripts
Loading input section drivers
cobra module was successfully installed, LNBPA 0x10 LNBPB 0x16
Loading output section drivers
Splash the screen
Running boot Stage D_PreMfs scripts
Remote control is TIVO
MFS partition on /dev/hda10
Loading Trinity dssapp
Look for debug board
/tvbin/dssappAV: DSS Interface Version 1.24, compiled on Nov 12 2004
Loading irblast
Running without ideturbo mode
Loading fan
Loading therm
Loading TvBus router
Updating system clock
Time set to: Thu May 26 05:06:54 2005
Enabling local route
Setting TCP keepalive parameters
Checking for additional disk
Start fan control
First temperature parameters set:
Terminal temp: 71
Critical temp: 62
Logging temp: 60
Target temp: 50
Lowest fan speed: 7
/tvbin/fancontrol is running in the background.
Starting TvLauncher
PokeFirewallPort: Poking hole through firewall at port 2191, protocol tcp
iptables: No chain/target/match by that name
Waiting for launcher to start.
Launcher is running.
Scanning for phase2 repair scripts
Running boot Stage E_PreApplicati
Checking for database conversions
No upgrade to load
NewSoftware: getting SwSystem name
NewSoftware: failure reading SwSystem none: errDbNotFound
Scanning for phase3 repair scripts
Running boot Stage F_ApplicationLaunch scripts
Starting Services.
Microcode version is TiVo!
Found hpk front panel model 1
usb.c: USB device 2 (vend/prod 0x846/0x1040) is not claimed by any active driver
.
PokeFirewallPort: Poking hole through firewall at port 2190, protocol udp
iptables: No chain/target/match by that name
PokeFirewallPort: Poking hole through firewall at port 2190, protocol tcp
iptables: No chain/target/match by that name
using driver frame iter
ApgLogFrequency( 0 sec )
Finished creating ApgDriverFrameIter
Using a smartSorter!
Calling ReadStream()s
....started status session
Initialize with 2 live caches
AddInputSection 1
AddInputSection 2
TvMomMediaSwitchSource::DoSetup()
TvMomMediaSwitchSource::DoSetup()
AddInputSection 3
ApgManager Transition from state INIT to BOOT
....started status session
....sending Booting event
....sending Booting event
iptables: No chain/target/match by that name
Scanning for phase4 repair scripts
Running boot Stage G_PostApplication scripts
/etc/rc.d/rc.sysinit: /etc/rc.d/rc.sysinit.author: Permission denied
rc.sysinit is complete
ApgManager Transition from state BOOT to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to FAST_LOAD
ApgManager Transition from state FAST_LOAD to STEADY_STATE
....sending Done event
....sending Done event

Gunnyman
05-26-2005, 03:44 AM
looks like your author file never gets run. did you chmod it?

snake98
05-26-2005, 01:01 PM
I did, and the telnet was working, then I ran lgkahn script, superpatch67 script, set my name, and also set the cron job to run via echo command by alphawolf. If the authorscript wasn't running, would their be more problems, the tivo works fine, must no mrv, and telnet.

cheer
05-26-2005, 01:29 PM
I did, and the telnet was working, then I ran lgkahn script, superpatch67 script, set my name, and also set the cron job to run via echo command by alphawolf. If the authorscript wasn't running, would their be more problems, the tivo works fine, must no mrv, and telnet.
All depends on what you have running from your .author. Regardless, the output you have above is pretty clear. Can you get in via serial? If so just go in and check rc.sysinit.author's permissions.

snake98
05-26-2005, 01:34 PM
I have a strage feeling that bash is not enable by default on the serial port, time to go looking for the command, and add it to the author file.
Thanks for your Help, I'll give it a try tonight.

cheer
05-26-2005, 01:40 PM
I have a strage feeling that bash is not enable by default on the serial port, time to go looking for the command, and add it to the author file.
Thanks for your Help, I'll give it a try tonight.
No it's not...but if your author file isn't executing this won't help, will it? You may have to pull the drive at this point.

lgkahn
05-26-2005, 02:40 PM
the script has nothing to do with the rc.sysinit.author you either typed the wrong info in the script

and most likely you commented lines out on your rc.sysinit.author and forgot to get rid of dos line endings and make it executable again..

I recommend running the ftp deamon that automatially sets all files it receives to executable...

snake98
05-26-2005, 03:03 PM
I think what happend is when I echo alpahwalfs instruction on the dcron into the rc.sysint file, it may have made in un excutable. I'll pull the drive and chmodd the file. also, I belive my rc.sysinit does not have .author after it. but it was loading the telnet befoer, would this make a difference with lgkahn script?

Gunnyman
05-26-2005, 04:14 PM
you NEED the author file. It is a user created batch file to call your hacks and such.
rc.sysinit is the startup script created by TIVO and probably shouldn't be messed with.

cheer
05-26-2005, 04:45 PM
I think what happend is when I echo alpahwalfs instruction on the dcron into the rc.sysint file, it may have made in un excutable. I'll pull the drive and chmodd the file. also, I belive my rc.sysinit does not have .author after it. but it was loading the telnet befoer, would this make a difference with lgkahn script?
As gunnyman pointed out, rc.sysinit and rc.sysinit.author are two separate files. rc.sysinit is put there by Tivo and it does a lot of system stuff. Generally the philosophy around here is to leave it alone.

rc.sysinit.author is, by convention, the file that most of us launch our various hacks from. Normally rc.sysinit calls rc.sysinit.author. In your case we know this is so because the error listed above shows that it TRIED to call rc.sysinit.author and failed.

snake98
05-26-2005, 08:21 PM
the script has nothing to do with the rc.sysinit.author you either typed the wrong info in the script

and most likely you commented lines out on your rc.sysinit.author and forgot to get rid of dos line endings and make it executable again..

I recommend running the ftp deamon that automatially sets all files it receives to executable...

If that true, then I should be able to ping it, but I can't, will rerunning your script mess it things up, or is it safe to rerun it.

snake98
05-27-2005, 01:10 AM
I"m trying to get a bash prompt over serial so I can rerun Lgkahn, but I can't seem to get it, I added this to my rc.sysint file

/bin/bash </dev/ttyS3 > & /dev/ttyS3 &


but I still don't get a bash promt in hyper termial, any ideas

My serial output is attached.

hayreass
05-27-2005, 01:59 AM
Yeah,
If it's an Series 2, you need ttyS2, not S3.
According to NutKase, the preferred line is./bin/bash </dev/ttyS2&>/dev/ttyS2&Also, if you got into rc.sysinit, I would imagine you pulled your drive. Why didn't you fix rc.sysinit.author while you were at it?

I see it's still not running.

Out of curiosity, what is this lgkahn script?

snake98
05-27-2005, 02:51 AM
Thanks for you help, I got bash serial working, along with telnet again,

Lgkahn script sets a static ip in 6.2, it works great, I messed up the first time and assigned it an ip address that already exsist on the network, doah.

Thanks agiain for all your help, time to start fixing other problems :-)
like why the rc.sysinit.author is not execuing even after i chmod 755 it

hayreass
05-27-2005, 02:58 AM
Attach a copy of your .author file here.

I'll bet it's a simple fix, like removing the dos line endings, or maybe your 1st line isn't #!/bin/bash

lgkahn
05-27-2005, 09:30 AM
Not exactly accurate...

I wrote a script which puts ip address, gateway, etc. info into the correct location in the mfs database as if you configured the box through the ntwork menus which do not exist in 6.2.

this script is needed because putting the normal ifconfig line in rc.sysinit.author while working. brings up the interface too late in the boot cycle for MRV to work on 6.2.

thus I wrote a little tcl script to set ip info in the mfs database. It only needs to be run once.