From: Wolfgang Denk Date: Fri, 14 Sep 2007 09:36:08 +0200 Subject: [U-Boot-Users] where is the process counter when the linux system shutdown In-Reply-To: Your message of "Fri, 14 Sep 2007 10:44:47 +0800." <001901c7f679$40e08480$6401a8c0@hy> Message-ID: <20070914073608.72D3024669@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. > 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. > maybe.I can get the kernel or filesystem before boot the system.and write the > data into RAM. This can be done. See kexec. > 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. > 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. > 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. > 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 -- 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