ts-7000
[Top] [All Lists]

Re: [ts-7000] Booting using large initrd

To:
Subject: Re: [ts-7000] Booting using large initrd
From: Craig and Janet Gates <>
Date: Mon, 26 Mar 2007 15:50:11 -0700
it might be possible to fix the /bin/sh file by performing a ftp
to the TS system. It would just depend on if ftpd
is configured or not. This way you could transfer in a fresh
copy of /bin/sh (busybox) without having to login and use
the /bin/sh shell.

Per Öberg wrote:

I tried to figure out if it is possible to boot from a RAM drive to
correct a messed up flash file system. Just to see if it was possible
without a NFS server.

I tried the following:
Create a ext2fs image using /dev/loop0
- dd if=/dev/zero of=initrdfile count=8000 bs=1024
- losetup /dev/loop0 initrdfile
- mount /dev/loop0 /mnt/test
- cp /mnt/tsdistro /mnt/test
- umount /mnt/test
- gzip initrdfile
In Redboot
RedBoot> load -h 192.168.1.3 -r -b 0x00600000 -m http /initrdfile.gz
Raw file loaded 0x00600000-0x0091584d, assumed entry at 0x00600000
RedBoot> fis load vmlinux
RedBoot> exec -r 0x00800000 -b 0x00218000 -c "console=ttyAM0,115200
root=/dev/ram0"

Result: Length required for non-standard base address

Ok, so i try: exec -r 0x00800000 -b 0x00218000 -l 31584d -c
"console=ttyAM0,115200 root=/dev/ram0"

Now i get:
----------------------------------------------------------
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Freeing initrd memory: 4096K
yaffs: Attempting MTD mount on 1.0, "01:00"
Kernel panic: VFS: Unable to mount root fs on 01:00
----------------------------------------------------------

Any ideas or sugestions?
Thanks
/Per Öberg

Per Öberg wrote:
> Worse, or better, he might have replaced the whole of the busybox
> executable or only the softlink. /bin/sh is a hard- or soft-link to
> busybox and i cant remember what happens when you overwrite a hardlink.
>
> I spoke with him off list earlier and found out that he only has a
> Fedora distro running on vmware and a USB stick with vfat. I promised to
> try to come up with a solution that doesn't involve NFS.
>
> One sollution would be to use his USB stick with a debian distro on it
> right? Then he would have to reformat his USB stick (and risking
> destroying it if it's one of those special ones stores the firmware on
> disk.)
>
> Another solution that I am about to try, that would take less effort to
> explain would be the following.
> * Put the default linux-distro of 8Mb on a http-server
> * load it into ram by executing "load -h <server IP> -r -b <memory address>"
> * "exec -r 0x0080_0000 -b 0x00218000 -c "console=ttyAM0,115200
> root=/dev/ram0"
>
> Would that work?
>
> Thanks in advance
> /Per Öberg
>
>
>
> wimpunk wrote:
>> --- In .com, Kyaw Kyaw <naingscorpio@...> 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 ;
>>> ---------------------------------
>> /bin/sh isn't a directory so you replaced your shell by your script
>> which will not work because you replace your shell.
>>
>> wimpunk.
>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>


__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU