are you sure it was called '/bin/logins' and not '/bin/login' ??
The latter would have a fairly huge effect :)
What you should do actually, is press Ctrl+c at the '+' sign you see
when the ts linux kernel boots. Alter the default command line to
something like
exec -c "console=ttyAM0,115200 root=/dev/mtdblock1 init=/bin/sh"
(normally, init=/sbin/init)
That will give you a shell prompt - nothing else very pretty otherwise -
but then you should be able to mv rm /bin/login* and do a ln -sf
<whatever busybox's location is> /bin/login
You may have to do a
mount -o rw,remount /
somwhere along the way.
I hope that helps ;-)
~/Chris
Kyaw Kyaw wrote:
> Hi guys,
> I tried to test in Shell scripting with the example program
> shown in "teach yourself in Shell scripting within 24 hrs". I tested with
> the program of
> --------------logins--------------
> #!/bin/sh
> # print out the date and who's logged on
> date ; who ;
> ---------------------------------
>
> I changed the mode of this file with "chmod a+x logins" and move
> file to /bin/sh folder. Then I reboot it. After rebooting, I cannot login and
> login fails. I also tried to login with telnet but stilll cannot. How can I
> get the default setting from TS ( I mean I have no useful stored data on the
> board)? Moreover I don't have SD card but I got TS-Linux ARM CD (downloaded
> from TS ftp server).
> Below is the mesg shown via com1.
> Do you have any idea to get the default setting?
>
>
>>> TS-BOOTROM, Rev 1.08 - built 10:44:37, May 26
>>>
>>> Copyright (C) 2006, Technologic Systems
> ad
> ttyAM1 at MMIO 0x808d0000 (irq =
>>> TS-7200: Rev E1 CPU, Rev C PLD, 32MB SDRAM, options ( MAX197-ADC RS485 )
>>>
> ttyAM2 at MMIO 0x808e0000 (irq =
> +No devices on IDE controller 0itions on "TS-7200 flash":
> Ethernet eth0: MAC address 00:d0:69:40:71:6din: cannot run /bin/sh: E
>
> IP: 192.168.0.50/255.255.255.0, Gateway: 192.168.0.1ailablet_o
>
> Default server: 192.168.0.
>
> 0x00e20000
> Non-certified release, version current-TS_5 - built 11:53:02, Jun 7 2006
> FLASH: 0x600
> NET4: Linux TCP/IP 1.0 for NET4.0oot login on
> Platform: TS-7200 Board (ARM920T) Rev A
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.h: Exec format er
>
> RAM: 0x00000000-0x02000000, [0x00044f88-0x01fdd000] available12 buckets,
> 4Kbytes[105]: root login on `console'cuting boot
> FLASH: 0x60000000 - 0x61000000, 128 blocks of 0x00020000 bytes each.
>
> TCP: Hash tables confi
> == Executing boot script in 0.100 seconds - enter ^C to abort
>
> RedBoot> fis load vmlinux1
> NET4: Unix domai
> RedBoot> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
>
>
> zone(1): 0 pages.
> zone(2): 0 pages.execute "/bin/sh"
> On node 1 totalpages: 2048
> login[
> login[13]
> zone(0): 2048 @P.^
> zone(1): 0 pages.
> zone(2): 0 pages.nnot run /bin/sh:
> On node 4 totalpages: 2048
> zone(0): 2048 pages.gi
> login[15]: ro
> zone(1): 0 pages.ole'^E^A..J...^
> zone(2): 0 pages.
> On node 5 totalpages: 2048
> l
> login: cannot run /
> zone(0): 2048 pages.rror
> zone(1): 0 pages.
> IN
>
> NET4: Unix domain
> CPU: Testing write buffer: passelease, version current-TS_5 -
> POSIX conformance testing by
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039ard (ARM920T) Rev
>
> Initializing RT netlink socketArm920Tid(wb)
> Starting kswapd2000, 2001, 200
> devfs: v1.12c (20020818) Richard Gooch
>
> On node 0 totalpa
> devfs: boot_options: 0x1
>
> ^@
> zone(2
> JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.script in 0.100 seconds - enter
> ^C to abort
> ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
> zone(0): 2048 pages.
> ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBAt> fis load vmlinux(2): 0
> pages.n "TS-7200 f
> ttyAM2 at MMIO 0x808e0000 (irq =
>
> C
> Kernel c
> Creating 3 MTD partitions on "TS-7200 flash":tdblock1OSIX conformance testing
> by UNIFIX
> 0x00000000-0x00020000 : "TS-BOOTROM"
> 0x00020000-0x00e20000 : "Linux": Entering
> Consol
> 0x00e20000-0x01000000 : "RedBoot"
> NET4: Linux TCP/IP 1.0 for NET4.0 loop... 99.94
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
>
> TCP: Hash tables configured (established 2048 bind 4096)
> ttyAM2 at MMIO 0x808e0000 (irq
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.tries: 8192 (order: 3,
> 32768 bytes)pd
> NetWinder Floating Point Emulator V0.97 (double precision)nix98 ptys
>
> INIT: Entering runlevel: 3
> Based upo
> INIT: cannot execute "/bin/sh"ociety NET3.039xx_eth.c: V1.0
> login[13]: root login on `console'4.08
> login: cannot run /bin/sh: Exec format error
> login[16]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[17]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[18]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[19]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[20]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[21]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> login[22]: root login on `console'
> login: cannot run /bin/sh: Exec format error
> INIT: Id "lgn0" respawning too fast: disabled for 5 minutes
>
>
> Best Regards,
> KyawKyaw.
>
>
>
> ____________________________________________________
> Yahoo! Singapore Answers
> Real people. Real questions. Real answers. Share what you know at
> http://answers.yahoo.com.sg
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|