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
>>
>>
>>
>