Skip to contentSkip to conversation

where is the process counter when the linux system shutdown

U-Boot-Users George.Tung 2 participants 2 messages Sep 14, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.447885.1189692859.7786.u-boot-users@lists.sourceforge.net

#1 lore raw

I want to update the system which included kernel and filesystem via internet. Now ,tow question will be solved.

the first:
how to get the kernel or filesystem from long-distance host(not in LAN ) . I want to migrate a ftp tool into U-boot at one time.but it seems so hard and I' m not good at program in U-boot.

maybe.I can get the kernel or filesystem before boot the system.and write the data into RAM.

the second:

how do I copy the RAM data to ROM(nand flash).can I write the data in linux system if can not do this .
I need shutdown the OS and run a nand flash write program.
well ,where is the process counter when the linux system shutdown. and how to call the nand flash writer.

any advice will be appreciate.

#2 lore raw
Quoted 2 lines · In message <001901c7f679$40e08480$6401a8c0@hy> you wrote:

how to get the kernel or filesystem from long-distance host(not in LAN ) .

U-Boot provides TFTP and NFS for download. For anything else you should use an operating system.

Quoted 2 lines

I want to migrate a ftp tool into U-boot at one time.but it seems so hard and I' m not good at program in U-boot.

Foget it. FTP needs TCP/IP, and we will not have this in U-Boot.

Quoted 2 lines

maybe.I can get the kernel or filesystem before boot the system.and write the data into RAM.

This can be done. See kexec.

Quoted 2 lines

how do I copy the RAM data to ROM(nand flash).can I write the data in linux system if can not do this .

You can use standard commands both in U-Boot and Linux to do this. Please read the docs.

Quoted 1 line

I need shutdown the OS and run a nand flash write program.

Why do you need to shutdown the OS for that purpose? Linux can write to NAND flash just fine.

Quoted 1 line

well ,where is the process counter when the linux system shutdown.

If you perform a reboot, the system will usually start through the reset entry point.

Quoted 1 line

and how to call the nand flash writer.

In Linux? See the MTD system. Un U-Boot? See the nand commands.

Please be aware that in general there is no guarantee that memory contents set up in Linux will survive a reset.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
"We don't have to protect the environment -- the Second Coming is  at
hand."                                                   - James Watt