* [U-Boot] U-Boot ram disk
@ 2010-05-03 16:43 Nuno Cardoso
2010-05-03 20:43 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Nuno Cardoso @ 2010-05-03 16:43 UTC (permalink / raw)
To: u-boot
hi list,
Is it possible copy a file from ramdisk address on target machine (U-Boot
command line) to host machine. I want to save the linux kernel image saved
inside the Nand Flash, to a directory inside my machine. Is it possible???
Thanks,
Nuno Cardoso.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] U-Boot ram disk
2010-05-03 16:43 Nuno Cardoso
@ 2010-05-03 20:43 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2010-05-03 20:43 UTC (permalink / raw)
To: u-boot
Dear Nuno Cardoso,
In message <k2i3cf2debb1005030943j5f36981k5ad16afca164f387@mail.gmail.com> you wrote:
>
> Is it possible copy a file from ramdisk address on target machine (U-Boot
> command line) to host machine. I want to save the linux kernel image saved
> inside the Nand Flash, to a directory inside my machine. Is it possible???
Your request makes little sense to me.
If the kernel image in stored in NAND flash, then there is no "ramdisk
address" for it, first because the kernel is not a ramdisk, and second
because NAND flash is a storage device which has things like block
numbers or offsets but no such thing as addresses.
"Save ... to a directory" does not work in U-Boot either, as all file
system support is read-only.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Beware of bugs in the above code; I have only proved it correct, not
tried it." - Donald Knuth
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] U-Boot ram disk
@ 2010-05-03 22:33 Nuno Cardoso
2010-05-03 22:49 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Nuno Cardoso @ 2010-05-03 22:33 UTC (permalink / raw)
To: u-boot
hi,
the big problem is that I have an embedded system where I don't know the
login password to login. I forgot the password, and try and try... but I
can't remember. The system had some important information, so I want to
restore the system.
The steps that I want to follow are:
1) save the target rootfs to my machine;
2) mount the filesystem on my machine;
3) change the rot password;
4) finally, store the new file system on the taget machine (embedded
system).
To do the first step, I need to save the rootfs image on my machine to mount
it. So, I need to stop the u-boot initialization, before the login step, to
save the rootfs. But, U-Boot doesn't have any kind of command to do that.
Can I load the rootfs from NAND Flash to ramdisk (nand read xxxx rootfs
size) and print the memory at address xxxx from memory to display (md xxxxx)
and save the GTKTerm display to a local file and do some kind of process to
remove the wrong caracters??? Maybe with this I can do this??? What is yout
opinion????
Thanks a lot,
Nuno Cardoso.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] U-Boot ram disk
2010-05-03 22:33 [U-Boot] U-Boot ram disk Nuno Cardoso
@ 2010-05-03 22:49 ` Scott Wood
0 siblings, 0 replies; 4+ messages in thread
From: Scott Wood @ 2010-05-03 22:49 UTC (permalink / raw)
To: u-boot
On 05/03/2010 05:33 PM, Nuno Cardoso wrote:
> hi,
>
> the big problem is that I have an embedded system where I don't know the
> login password to login. I forgot the password, and try and try... but I
> can't remember. The system had some important information, so I want to
> restore the system.
>
> The steps that I want to follow are:
> 1) save the target rootfs to my machine;
> 2) mount the filesystem on my machine;
> 3) change the rot password;
> 4) finally, store the new file system on the taget machine (embedded
> system).
Have you tried adding "init=/bin/sh" to the bootargs variable?
> Can I load the rootfs from NAND Flash to ramdisk (nand read xxxx rootfs
> size) and print the memory at address xxxx from memory to display (md xxxxx)
> and save the GTKTerm display to a local file and do some kind of process to
> remove the wrong caracters??? Maybe with this I can do this??? What is yout
> opinion????
I suppose you could do this (using something like xxd to undo the hex
dump), but that would be a lot to copy and paste.
The only other option I can see from a quick look is the "saves" command
to upload data to the host in S-record format.
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-03 22:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 22:33 [U-Boot] U-Boot ram disk Nuno Cardoso
2010-05-03 22:49 ` Scott Wood
-- strict thread matches above, loose matches on Subject: below --
2010-05-03 16:43 Nuno Cardoso
2010-05-03 20:43 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox