I had this lurking feeling that the copy wasn't the problem...it wasn't.
FYI, syntax checking is a great feature:
sh -n linuxrc-mtdroot
linuxrc-mtdroot: 93: Syntax error: ";" unexpected
Found it!!
Thanks!
--- In "Robert" <> wrote:
>
> Howdy!
>
> What is the correct procedure for adding/modifying files in the initrd
> partition on the SD card and/or the NAND flash from Full Debian Linux?
>
> I am trying to modify the linuxrc-mtdroot script and copy it to the
> initrd.
>
> I realize this is a RAM Disk, so I have tried the following methods:
>
>
> / # dd if=/dev/ram0 of=/dev/mtdblock2;
>
> AND
>
> / # mtdcp /dev/ram0 2 0;
>
> AND
>
> / # mount -t ext2 /dev/mtdblock2 /tmp
> / # cp linuxrc-mtdroot /tmp
> / # umount /tmp
>
>
> I have also checked out the /lbin/save script in the initrd partition
> to see how it's done there, but I keep getting inconsistent results.
>
> Any Standard Operating Procedures for this?
>
> Robert
>
------------------------------------
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/
|